/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    background: #ffffff;
    border: 1px solid #111111;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.product-card__periods + .product-card__price {
    margin-top: 0;
}

/* =========================================================
   LABEL / DISCOUNT
   ========================================================= */

.product-card__label,
.product-card__discount-badge {
    position: absolute;
    top: 12px;

    z-index: 2;

    padding: 6px 9px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card__label {
    left: 12px;

    background: #ffffff;
    color: #111111;

    border: 1px solid #111111;
}

.product-card__discount-badge {
    right: 12px;

    background: #315cff;
    color: #ffffff;
}


/* =========================================================
   MEDIA
   ========================================================= */

.product-card__media {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #e9e8e4;

    border-bottom: 1px solid #111111;
}

.product-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.035);
}

/* =========================================================
   CATEGORY
   ========================================================= */

.product-card__category {
    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #777777;
}


/* =========================================================
   NAME
   ========================================================= */

.product-card__name {
    margin: 0;

    font-size: 25px;
    font-weight: 900;
    line-height: 0.98;

    letter-spacing: -0.045em;

    color: #111111;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.product-card__description {
    margin: 12px 0 0;

    max-width: 440px;

    font-size: 13px;
    line-height: 1.5;

    color: #666666;
}


/* =========================================================
   INCLUDES
   ========================================================= */

.product-card__includes {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    background: #f7f7f4;
    border: 1px solid #e3e3df;
    font-size: 12px;
    line-height: 1.5;
}

.product-card__includes-title {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
}

.product-card__includes-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card__includes-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
    color: #444444;
}

.product-card__includes-list li:last-child {
    margin-bottom: 0;
}

.product-card__includes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    background: #315cff;
    border-radius: 50%;
}


/* =========================================================
   DURATIONS
   ========================================================= */

.product-card__periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: auto;
    padding-top: 22px;
}

.product-card__period {
    min-width: 0;
    min-height: 42px;
    padding: 8px 4px;
    border: 1px solid #cfcfcb;
    border-right: 0;
    background: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    color: #555555;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-card__period:last-child {
    border-right: 1px solid #cfcfcb;
}

.product-card__period:hover {
    background: #f2f2ef;
    color: #111111;
}

.product-card__period.is-active {
    background: #111111;
    border-color: #111111;

    color: #ffffff;
}

.product-card__period-label {
    display: block;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;

    min-height: 48px;

    padding-top: 16px;
    margin-top: auto;
}

.product-card__price-new {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -0.04em;

    color: #111111;
}

.product-card__price-old {
    font-size: 13px;
    font-weight: 600;

    color: #999999;

    text-decoration: line-through;
}


/* =========================================================
   BUY BUTTON
   ========================================================= */

.product-card__buy {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 48px;

    margin-top: 14px;
    padding: 0 16px;

    border: 1px solid #111111;

    background: #315cff;

    font: inherit;
    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.product-card__buy::after {
    content: "→";

    font-size: 19px;
    line-height: 1;

    transition: transform 0.15s ease;
}

.product-card__buy:hover {
    background: #111111;
}

.product-card__buy:hover::after {
    transform: translateX(4px);
}

.product-card__buy:active {
    transform: translateY(1px);
}


/* =========================================================
   FOCUS
   ========================================================= */

.product-card__buy:focus-visible,
.product-card__period:focus-visible {
    outline: 2px solid #315cff;
    outline-offset: 2px;
}


/* =========================================================
   FILTER HIDDEN STATE
   ========================================================= */

.product-card[hidden] {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {
    .product-card__body {
        padding: 17px;
    }

    .product-card__name {
        font-size: 22px;
    }

    .product-card__price-new {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-card__media {
        aspect-ratio: 16 / 9;
    }

    .product-card__body {
        padding: 15px;
    }

    .product-card__name {
        font-size: 21px;
    }

    .product-card__description {
        font-size: 12px;
    }

    .product-card__period {
        min-height: 40px;

        font-size: 10px;
    }

    .product-card__price-new {
        font-size: 21px;
    }
}