/* =========================================================
   SUPON — СТОРІНКА АКЦІЙ
   Окремі стилі сторінки. Без !important.
   Класи картки відповідають розмітці actions.js.
========================================================= */

.actions-page {
    padding: 28px 0 40px;
    background: #f7f9fc;
}

.actions-page .container {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}

.actions-page__header {
    margin-bottom: 30px;
}

.actions-page__header h1 {
    margin: 0 0 12px;
    color: #171c2b;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 750;
    line-height: 1.12;
}

.actions-page__header p {
    margin: 0;
    color: #283246;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.45;
}

.actions-products {
    margin: 0;
}

.actions-products__header {
    margin: 0;
}

#actions-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin-top: 28px;
}
/* Картка */
#actions-products .action-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 340px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#actions-products .action-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(31, 41, 55, 0.13);
}
/* Фото та плашка знижки */
#actions-products .product-card__image {
    position: relative;
    flex: 0 0 40%;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #eef1f5;
    box-sizing: border-box;
}
/* Сердечко на фото акционного товара */
#actions-products .product-card__favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #737987;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Плашка состояния: Нове / Б/У */
#actions-products .product-card__condition {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    padding: 5px 10px;
    border-radius: 12px;
    background: #e77b2c;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
}

#actions-products .product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

#actions-products .product-card__sale {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 26px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #e77b2c;
    color: #fff;
    font-size:10px;
    font-weight: 550;
    line-height: 1;
}

/* Текстовая часть */
#actions-products .product-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 16px 14px 18px;
    box-sizing: border-box;
    overflow: visible;
}
#actions-products .product-card__title {
    display: -webkit-box;
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    color: #202b3d;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#actions-products .product-card__car {
    min-height: 1.45em;
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    color: #68758a;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}


#actions-products .product-card__oem {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: #8b95a5;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

/* Ціни: старі ціни, знижка й актуальна ціна вирівняні в колонку */

#actions-products .product-card__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 10px;
    margin-top: 0;
    padding-top: 0;
}
#actions-products .product-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 4px;
}

#actions-products .product-card__old-price {
   color: #888;
    font-size: 16px;
    text-decoration: line-through;
}

#actions-products .product-card__discount {
    color: #e77b2c;
    font-size: 16px;
    font-weight: 700;
}

#actions-products .product-card__price {
    flex-basis: 100%;
    width: auto;
    margin: 0;
    padding: 0;
    color: #e77b2c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
/* Кнопка кошика */
#actions-products .product-card__cart {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dc9a4b;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

#actions-products .product-card__cart:hover {
    background: #ca8231;
    transform: scale(1.04);
}

#actions-products .product-card__cart img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Повідомлення завантаження / відсутності товарів */
#actions-products > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px 0;
    color: #68758a;
    font-size: 17px;
    line-height: 1.5;
}
/* Інформаційний блок унизу */
.actions-info {
    margin: 68px 0 48px;
    padding: 48px 32px;
    border-radius: 24px;
    background: #252b3b;
    text-align: center;
}

.actions-info h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 750;
    line-height: 1.25;
}

.actions-info p {
    max-width: 850px;
    margin: 0 auto 28px;
    color: #c1c9d6;
    font-size: 18px;
    line-height: 1.6;
}

.actions-info__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 10px;
    background: #e77b2c;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}


.actions-info__button:hover {
    transform: translateY(-2px);
    background: #e77b2c;
}
/* Планшети */
@media (max-width: 1000px) {
    .actions-page .container {
        width: min(100% - 36px, 900px);
    }
    #actions-products .action-product-card {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
}

    #actions-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #actions-products .product-card__content {
       padding: 16px;
       flex: 0 0 auto;
       display: flex;
       flex-direction: column;
       gap: 0;
    }

    #actions-products .product-card__image {
        height: 210px;
    }

    #actions-products .product-card__title {
        font-size: 22px;
    }

    #actions-products .product-card__car {
        font-size: 16px;
    }

    #actions-products .product-card__oem {
        font-size: 15px;
    }

    #actions-products .product-card__bottom {
        margin-top: -30px;
        padding-top: 0;
        flex-grow: 0;
        margin-bottom: 0;
    }

    #actions-products .product-card__cart {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    #actions-products .product-card__cart img {
        width: 27px;
        height: 27px;
    }
    /* Телефони */
      @media (max-width: 600px) {
    .actions-page {
        padding: 22px 0 24px;
    }
     .actions-page .container {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
}
    .actions-page__header {
        margin-bottom: 22px;
    }

    .actions-page__header h1 {
        margin-bottom: 10px;
        font-size: 24px;
        line-height: 1.15;
    }

    .actions-page__header p {
        font-size: 13px;
        line-height: 1.45;
    }
    #actions-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:6px;
    margin-top: 20px;
    width: 100%;
    min-width: 0;
   }

#actions-products .action-product-card {
    width: 100%;
    min-width: 0;
    height: auto;
}

    #actions-products .product-card__image {
        height: auto;
        aspect-ratio: 1.18 / 1;
    }
    #actions-products .product-card__sale {
        bottom: 8px;
        left: 8px;
        min-width: 0;
        min-height: 0;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 13px;
    }

    #actions-products .product-card__content {
        padding: 12px;
    }

    #actions-products .product-card__title {
        margin-bottom: 7px;
        font-size: 15px;
        line-height: 1.25;
    }

    #actions-products .product-card__car {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.3;
    }
     #actions-products .product-card__oem {
        font-size: 11px;
        line-height: 1.35;
    }

    #actions-products .product-card__bottom {
        align-items: flex-end;
        gap: 6px;
        padding-top: 16px;
    }

    #actions-products .product-card__prices {
        gap: 4px;
    }

    #actions-products .product-card__old-price {
        font-size: 12px;
        line-height: 1.2;;
    }

    #actions-products .product-card__discount {
        font-size: 12px;
        line-height: 1.2;
    }

    #actions-products .product-card__price {
        font-size: 14px;
        line-height: 1.2;
    }

    #actions-products .product-card__cart {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        margin-bottom: 0;
    }

    #actions-products .product-card__cart img {
        width: 21px;
        height: 21px;
    }

    .actions-info {
        margin: 36px 0 28px;
        padding: 28px 18px;
        border-radius: 18px;
    }
    .actions-info h2 {
        margin-bottom: 12px;
        font-size: 21px;
    }
    .actions-info p {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.5;
    }
    .actions-info__button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 13px 16px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    #actions-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #actions-products .product-card__image {
        aspect-ratio: 1.6 / 1;
    }
}

}