/* This is custom css added by YXL */
.sub-menu__link:before {
    content: '';
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: block;
    border-radius: 50%;
    margin-right: 10px;
    background: #e6eef0;
}

.sub-menu__link {
    display: flex;
    align-items: center;
}

.sub-menu__img + .sub-menu__link:before {
    display: none;
}

.hidden {
    display: none;
}

header + .main > .container > .card-offer.block-margin > h2:first-child + #bx_3633892551_vue + script + .offer-block {
    display: none;
}

/* ===== Mobile: app-style aspect ratio for all product cards ===== */
@media (max-width: 767.98px) {
    .item-product__img {
        padding-bottom: 115% !important;
    }
    .item-product-images-slider__img {
        padding-bottom: 115% !important;
    }
    .item-product-images-slider__video {
        padding-bottom: 115% !important;
    }
    .product-item__img {
        padding-bottom: 115% !important;
    }
    .product-item__images .item-product-images-slider .item-product-images-slider__img {
        padding-bottom: 115% !important;
    }
    .product-item__images .item-product-images-slider .item-product-images-slider__video {
        padding-bottom: 115% !important;
    }
}

/* ===== Mobile Featured Product Card (app-style 6+1 layout) ===== */
@media (max-width: 767.98px) {
    .product-list__col--featured {
        width: 100% !important;
        max-width: 100%;
    }

    /* item-product (default card type) */
    .product-list__col--featured .item-product {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .product-list__col--featured .item-product__top {
        flex: 1 1 65%;
        min-width: 0;
        margin-bottom: 0;
    }
    .product-list__col--featured .item-product__body {
        flex: 1 1 35%;
        min-width: 0;
    }
    .product-list__col--featured .item-product__bottom {
        flex-direction: column;
        row-gap: 8px;
    }
    .product-list__col--featured .item-product__actions {
        width: 100%;
    }

    /* product-item (card2 type) */
    .product-list__col--featured .product-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border: none;
        padding: 0;
        height: auto;
    }
    .product-list__col--featured .product-item__top {
        flex: 1 1 65%;
        min-width: 0;
        margin-bottom: 0;
    }
    .product-list__col--featured .product-item__body {
        flex: 1 1 35%;
        min-width: 0;
    }
    .product-list__col--featured .product-item__bottom {
        position: static;
        opacity: 1;
        visibility: visible;
        padding: 0;
        background: none;
        border: none;
    }

    /* Text always left-aligned in featured cards */
    .product-list__col--featured .item-product__body,
    .product-list__col--featured .product-item__body {
        text-align: left;
    }

    /* Row-reverse for right-positioned image */
    .product-list__col--featured-right .item-product {
        flex-direction: row-reverse;
    }
    .product-list__col--featured-right .product-item {
        flex-direction: row-reverse;
    }

}

/* ===== Featured video overlay — все экраны ===== */
/* position: absolute нужен на любом размере экрана,
   иначе <video> разрывает grid-сетку на десктопе */
.featured-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    z-index: 2;
}

/* ===== Product Composition ===== */
.composition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

.composition-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composition-item__qty {
    width: 28px;
    height: 28px;
    background: #1A1A1A;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.composition-item__name {
    font-size: 14px;
    color: var(--color-black, #1A1A1A);
}

/* ===== Prime & Corp pages: full-width hero slider ===== */
.offer--prime .offer__right,
.offer--corp .offer__right  { display: none; }

.offer--prime .offer__row,
.offer--corp .offer__row    { margin: 0; }

.offer--prime .offer__left,
.offer--corp .offer__left   {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
/* Keep the same pixel height as original 66.666%-wide slider — crop top/bottom */
/* desktop: 66.666% × (673/860) ≈ 52.17% */
.offer--prime .offer-slider__img,
.offer--prime .offer__img,
.offer--corp .offer-slider__img,
.offer--corp .offer__img    {
    padding-bottom: 52.17% !important;
}
/* tablet (≤1199.98px): 66.666% × (411/376) ≈ 72.9% */
@media (max-width: 1199.98px) {
    .offer--prime .offer-slider__img,
    .offer--prime .offer__img,
    .offer--corp .offer-slider__img,
    .offer--corp .offer__img {
        padding-bottom: 72.9% !important;
    }
}