/* ═══════════════════════════════════════
   SALSABIL — Homepage Sections
   ═══════════════════════════════════════ */

/* ── Popular Categories Carousel ── */
.home-cat-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px var(--content-padding-x, 32px);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.home-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.home-cat-title {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--baseblack-500);
    margin: 0;
}
.home-cat-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #02a0b4;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 1px solid #02a0b4;
    padding: 4px 0;
    letter-spacing: .26px;
    transition: opacity .15s;
}
.home-cat-view-all:hover { opacity: .75; }
.home-cat-view-all svg { display: none; }

/* Carousel wrapper — viewport is full width, arrows float on top */
.home-cat-carousel {
    position: relative;
    width: 100%;
}

.home-cat-viewport {
    overflow: hidden;
    width: 100%;
}

.home-cat-track {
    display: flex;
    gap: 16px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Category card — no background, just icon + name */
.home-cat-card {
    flex: 0 0 calc((100% - 48px) / 4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--baseblack-500);
    cursor: pointer;
    user-select: none;
}

/* Square icon — full image, no background */
.home-cat-icon-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.home-cat-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.home-cat-icon-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-200);
}

.home-cat-name {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--baseblack-500);
    line-height: 1.35;
    word-break: break-word;
}

/* Nav arrows — float on top of the cards */
.home-cat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--grey-200);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--baseblack-500);
    transition: border-color .15s, background .15s, box-shadow .15s, opacity .2s, transform .2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
#homeCatPrev { left: 8px; }
#homeCatNext { right: 8px; }

.home-cat-nav:hover:not(:disabled) {
    border-color: #02a0b4;
    color: #02a0b4;
    background: #fff;
    box-shadow: 0 4px 16px rgba(2, 160, 180, .22);
}
.home-cat-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Loading / empty state */
.home-cat-skeleton {
    display: flex;
    gap: 16px;
    flex: 1;
}
.home-cat-skeleton-item {
    flex: 0 0 calc((100% - 48px) / 4);
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: catShimmer 1.4s infinite;
}
@keyframes catShimmer { to { background-position: -200% 0; } }

/* ═══════════════════════════════════════
   NEW PRODUCTS SECTION
   ═══════════════════════════════════════ */
.home-new-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px var(--content-padding-x, 32px);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.home-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.home-new-title {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--baseblack-500);
    margin: 0;
}

/* Products carousel wrapper */
.home-products-carousel {
    position: relative;
    width: 100%;
}
.home-products-viewport {
    overflow: hidden;
    width: 100%;
}
.home-products-track {
    display: flex;
    gap: 16px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
/* Each product card in track */
.home-products-track .home-product-card {
    flex: 0 0 calc((100% - 48px) / 4);
}
/* Nav buttons positioned same as categories */
#homeNewPrev { left: 8px; }
#homeNewNext { right: 8px; }
/* Also keep old grid for the skeleton */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* ── Product card (Figma design) ── */
.home-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 24px;
    position: relative;
    box-sizing: border-box;
    border: none;
}
.home-product-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}
.home-product-card .product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.home-product-card .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform .3s;
}
.home-product-card:hover .product-card-image img { transform: scale(1.04); }
.home-product-card .product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: none;
    border-radius: 8px;
}
.home-product-card .product-card-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.home-product-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1;
    text-transform: uppercase;
}
.home-product-card .badge-new  { background: #02a0b4; color: #fff; }
.home-product-card .badge-sale { background: #dddd07; color: #1a202c; }
.home-product-card .badge-hit  { background: #e65100; color: #fff; }
.home-product-card .product-card-wishlist {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: transform .18s;
    z-index: 2;
    padding: 0;
}
.home-product-card .product-card-wishlist:hover { transform: scale(1.12); }
.home-product-card .product-card-wishlist.liked svg { fill: #e65100; stroke: #e65100; }

.home-product-card .product-card-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}
.home-product-card .product-card-text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.home-product-card .product-card-category {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #4a5568;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: .44px;
}
.home-product-card .product-card-name {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    opacity: 0.9;
    line-height: normal;
    letter-spacing: .26px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-product-card .product-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-product-card .product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-product-card .rating-icon { width: 14px; height: 14px; flex-shrink: 0; }
.home-product-card .rating-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #4a5568;
    opacity: 0.9;
    line-height: normal;
}
.home-product-card .product-card-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-product-card .delivery-icon { width: 14px; height: 14px; flex-shrink: 0; }
.home-product-card .delivery-text {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #38a169;
    opacity: 0.9;
    line-height: normal;
}
.home-product-card .product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.home-product-card .product-card-price-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}
.home-product-card .price-current {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #02a0b4;
    white-space: nowrap;
    letter-spacing: -0.4px;
    opacity: 0.9;
    line-height: normal;
}
.home-product-card .price-old {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #a0aec0;
    text-decoration: line-through;
    white-space: nowrap;
    opacity: 0.9;
    line-height: normal;
}
.home-product-card .product-card-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: #e0f5f8;
    color: #02a0b4;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    align-self: stretch;
    transition: background .15s;
    padding: 0;
}
.home-product-card .product-card-add-btn:hover {
    background: #02a0b4;
    color: #fff;
}
.home-product-card .product-card-placeholder-text {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #9cb8c4;
    letter-spacing: 0.3px;
}
/* Hide old basket button */
.home-product-card .product-card-basket {
    display: none;
}
.home-product-card .product-card-price { display: none; }
/* Keep for backward compat but hidden */
.home-product-card .product-card-basket-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #e0f5f8;
    color: #02a0b4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, transform .15s, color .15s;
    padding: 0;
}
.home-product-card .product-card-basket::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.home-product-card .product-card-basket:hover {
    background: #02a0b4;
    color: #fff;
    transform: scale(1.08);
}
.home-product-card .product-card-basket img { display: none; }
.home-product-card .product-card-basket span { display: none; }

/* Skeleton */
.home-products-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}
.home-products-skeleton-item {
    border-radius: 12px;
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--grey-100, #ececec) 25%, var(--grey-50, #f3f3f3) 50%, var(--grey-100, #ececec) 75%);
    background-size: 200% 100%;
    animation: catShimmer 1.4s infinite;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .home-cat-card { flex: 0 0 calc((100% - 16px) / 2); }
    .home-cat-skeleton-item { flex: 0 0 calc((100% - 16px) / 2); }
    .home-cat-title { font-size: 22px; }
    .home-new-title { font-size: 22px; }
    .home-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-products-skeleton { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-products-track { gap: 12px; }
    .home-products-track .home-product-card { flex: 0 0 calc((100% - 12px) / 2); }
}
@media (max-width: 700px) {
    .home-cat-section { padding: 28px 14px; }
    .home-cat-title { font-size: 20px; }
    .home-cat-card { flex: 0 0 calc((100% - 10px) / 2); gap: 8px; }
    .home-cat-name { font-size: 13px; }
    .home-cat-track { gap: 10px; }
    .home-cat-nav { width: 32px; height: 32px; }
    #homeCatPrev { left: 4px; }
    #homeCatNext { right: 4px; }
    .home-cat-skeleton-item { flex: 0 0 calc((100% - 10px) / 2); height: 140px; }

    .home-new-section { padding: 28px 14px; }
    .home-new-title { font-size: 20px; }
    .home-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-products-skeleton { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-products-track { gap: 10px; }
    .home-products-track .home-product-card { flex: 0 0 calc((100% - 10px) / 2); }
    .home-product-card .product-card-name { font-size: 12px; }
    .home-product-card .price-current { font-size: 14px; }
    .home-product-card .product-card-info { padding: 10px 10px 12px; }
    .home-product-card .product-card-basket { font-size: 11px; height: 36px; }
    .home-product-card .product-card-basket img { width: 26px; height: 26px; }
    #homeNewPrev { left: 4px; }
    #homeNewNext { right: 4px; }
}

/* ═══════════════════════════════════════
   MOBILE (≤ 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    /* Categories: show 3 per view */
    .home-cat-card { flex: 0 0 calc((100% - 20px) / 3); gap: 6px; }
    .home-cat-skeleton-item { flex: 0 0 calc((100% - 20px) / 3); height: 110px; }
    .home-cat-name { font-size: 12px; }
    .home-cat-view-all { font-size: 14px; }

    /* Mobile 2×2 product grid */
    .home-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }

    /* Mobile pagination */
    .home-mobile-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 16px;
    }
    .hm-pag-prev,
    .hm-pag-next {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1.5px solid var(--grey-200);
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--baseblack-500);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
        transition: border-color .15s, color .15s;
        padding: 0;
        flex-shrink: 0;
    }
    .hm-pag-prev:hover:not(:disabled),
    .hm-pag-next:hover:not(:disabled) { border-color: #02a0b4; color: #02a0b4; }
    .hm-pag-prev:disabled,
    .hm-pag-next:disabled { opacity: 0.3; pointer-events: none; }
    .hm-pag-info {
        font-family: 'Manrope', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--baseblack-500);
        min-width: 44px;
        text-align: center;
    }

    /* Product card tweaks inside mobile grid */
    .home-mobile-grid .home-product-card .product-card-name { font-size: 12px; }
    .home-mobile-grid .home-product-card .price-current { font-size: 14px; }
    .home-mobile-grid .home-product-card .product-card-info { padding: 10px 10px 12px; }
    .home-mobile-grid .home-product-card .product-card-basket { font-size: 11px; height: 36px; }
    .home-mobile-grid .home-product-card .product-card-basket img { width: 26px; height: 26px; }
}


/* ═══════════════════════════════════════════════════════════
   NEW HOMEPAGE DESIGN — idx-* components
   ═══════════════════════════════════════════════════════════ */

/* ── Shared section layout ── */
.idx-products-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px var(--content-padding-x, 32px);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.idx-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.idx-products-title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    line-height: 1.1;
}

/* ── HERO ── */
.idx-hero {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    padding: 24px var(--content-padding-x, 40px);
}
.idx-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 16px;
    max-width: 1360px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 338px;
}

/* ── Left: main banner panel ── */
.idx-hero-main {
    flex: 1.9;
    min-width: 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 44px 28px;

    /* Hero background: supplement bottles photo */
    background-image: url('/images/banners/1.png');
    background-size: cover;
    background-position: center right;
    background-color: #02a0b4; /* fallback while image loads */
}

/* Left gradient overlay */
.idx-hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #02a0b4 0%,
        rgba(2,160,180,0.85) 40%,
        rgba(2,160,180,0.3) 65%,
        rgba(2,160,180,0) 85%
    );
    pointer-events: none;
    border-radius: 24px;
    z-index: 0;
}

.idx-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

/* Badge */
.idx-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
    text-transform: uppercase;
}

/* Title */
.idx-hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

/* Subtitle */
.idx-hero-sub {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0;
    letter-spacing: .26px;
}

/* CTA Button */
.idx-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dddd07;
    color: #1a202c;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .26px;
    padding: 16px 24px;
    border-radius: 100px;
    text-decoration: none;
    width: fit-content;
    transition: transform .18s, box-shadow .18s, background .15s;
    text-transform: uppercase;
}
.idx-hero-btn:hover {
    background: #c8c806;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

/* Pagination dots */
.idx-hero-dots {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}
.idx-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(255,255,255,0.45);
    transition: background .2s, width .2s;
    display: block;
}
.idx-hero-dot.active {
    background: rgba(255,255,255,0.95);
    width: 22px;
}

/* ── Right: two side cards ── */
.idx-hero-cards {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.idx-hero-card {
    flex: 1;
    display: block;
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    background-size: cover;
    background-position: center;
}
.idx-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.idx-hero-card-new {
    background-color: #fff3e0;
    background-image: url('/images/banners/2.png');
}
.idx-hero-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,243,224,0.9) 50%, rgba(255,243,224,0.5) 100%);
    border-radius: 16px;
}
.idx-hero-card-sale {
    background-color: #e0f2f1;
    background-image: url('/images/banners/3.png');
}
.idx-hero-card-sale::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(224,242,241,0.9) 50%, rgba(224,242,241,0.5) 100%);
    border-radius: 16px;
}
.idx-hero-card-inner {
    padding: 24px;
    position: relative;
    z-index: 1;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.idx-hero-card-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: .48px;
}
.idx-hcb-orange {
    background: #e65100;
    color: #fff;
}
.idx-hcb-teal {
    background: #02a0b4;
    color: #fff;
}
.idx-hero-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    margin: 0;
}
.idx-hero-card-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(26,32,44,0.6);
    line-height: 1.4;
    margin: 0;
    letter-spacing: .26px;
}

/* ── QUICK CATEGORIES ── */
.idx-quick-cats {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--grey-100);
    box-sizing: border-box;
}
.idx-quick-cats-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 20px var(--content-padding-x, 40px);
    max-width: 1440px;
    margin: 0 auto;
    gap: 24px;
    box-sizing: border-box;
}
.idx-qcat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--baseblack-500);
    cursor: pointer;
    transition: transform .15s;
}
.idx-qcat:hover {
    transform: translateY(-2px);
}
.idx-qcat-icon {
    width: 100%;
    height: 90px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: #fff;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .15s;
}
.idx-qcat-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.idx-qcat-overlay {
    position: absolute;
    inset: 0;
    background: var(--teal-500, #02a0b4);
    mix-blend-mode: color;
    border-radius: 24px;
}
.idx-qcat:hover .idx-qcat-icon {
    border-color: var(--teal-500);
}
/* "Все товары" icon — svg centered, no overlay */
.idx-qcat-icon-all {
    background: #f7feff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.idx-qcat-icon-all img {
    position: static;
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.idx-qcat-name {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    color: var(--baseblack-500);
    letter-spacing: 0.26px;
    line-height: normal;
    white-space: nowrap;
}

/* ── PROMO BANNERS ── */
.idx-promo-banners {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}
.idx-promo-banners-inner {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 32px var(--content-padding-x, 40px);
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}
/* First banner is fixed-width per Figma (668px at 1440px canvas) */
.idx-promo-vit {
    flex: 0 0 668px;
}
/* Other banners split remaining space equally */
.idx-promo-oils,
.idx-promo-tea {
    flex: 1 1 0;
    min-width: 0;
}
.idx-promo-banner {
    border-radius: 16px;
    height: 161px;
    display: flex;
    align-items: center;
    padding: 32px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.idx-promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}
/* Background photo */
.idx-promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
/* Gradient overlays */
.idx-promo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.idx-promo-overlay-vit {
    background: linear-gradient(to right, rgba(224,242,241,0.9) 0%, rgba(224,242,241,0.8) 100%);
}
.idx-promo-overlay-oils {
    background: linear-gradient(to left, rgba(255,243,224,0.9) 0%, rgba(255,243,224,0.8) 100%);
}
.idx-promo-overlay-tea {
    background: linear-gradient(to left, rgba(232,234,246,0.9) 0%, rgba(232,234,246,0.8) 100%);
}
/* Content */
.idx-promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 0;
}
.idx-promo-text-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.idx-promo-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: var(--baseblack-500, #1a202c);
}
.idx-promo-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(26,32,44,0.6);
    line-height: normal;
    letter-spacing: 0.26px;
    margin: 0;
}
.idx-promo-link {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.26px;
    color: var(--teal-500, #02a0b4);
    display: inline-block;
}

/* ── REVIEWS ── */
.idx-reviews-grid {
    display: flex;
    gap: 24px;
    width: 100%;
}
.idx-reviews-skeleton {
    display: contents;
}
.idx-review-skel {
    height: 200px;
    border-radius: 24px;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: catShimmer 1.4s infinite;
    flex: 1;
}
.idx-review-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(1,19,54,0.2);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
}
/* Review body: text + author */
.idx-review-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}
.idx-review-text {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #011336;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0 0 16px;
}
.idx-review-author {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #011336;
    opacity: 0.8;
    margin: 0;
}
/* Divider */
.idx-review-divider {
    width: 100%;
    height: 1px;
    background: rgba(1,19,54,0.1);
    flex-shrink: 0;
}
/* Meta: stars + subtitle */
.idx-review-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.idx-review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.idx-review-star-icon {
    width: 16px;
    height: 16px;
}
.idx-review-star { display: none; }
.idx-review-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(1,19,54,0.8);
    opacity: 0.5;
    line-height: 1.5;
    margin: 0;
}
/* Legacy compat */
.idx-review-footer { display: none; }
.idx-review-product { display: none; }
.idx-reviews-empty {
    width: 100%;
    padding: 32px;
    text-align: center;
    color: var(--grey-400, #bbb);
    font-size: 14px;
}

/* ── BRANDS ── */
.idx-brands {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}
.idx-brands-inner {
    padding: 0 var(--content-padding-x, 40px) 32px;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}
.idx-brands-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 88px;
    padding: 25px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}
.idx-brand {
    font-family: 'Inter', 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #606c7d;
    letter-spacing: -1px;
    text-transform: uppercase;
    opacity: 0.6;
    white-space: nowrap;
    transition: opacity .18s;
    cursor: default;
}
.idx-brand:hover { opacity: 1; }
.idx-brand-sep {
    width: 1px;
    height: 20px;
    background: var(--grey-100);
    align-self: center;
    flex-shrink: 0;
}

/* ── ARTICLES ── */
.idx-articles-grid {
    display: flex;
    gap: 24px;
    width: 100%;
}
.idx-articles-skeleton {
    display: contents;
}
.idx-article-skel {
    height: 360px;
    border-radius: 24px;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: catShimmer 1.4s infinite;
    flex: 1;
}
.idx-article-card {
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
    transition: transform .2s, box-shadow .2s;
    flex: 1;
    min-width: 0;
}
.idx-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.idx-article-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.idx-article-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.idx-article-card:hover .idx-article-img-wrap img { transform: scale(1.05); }
.idx-article-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
/* Hide old date badge */
.idx-article-date-badge { display: none; }
/* New date style */
.idx-article-date {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #141414;
    opacity: 0.5;
    letter-spacing: 0.35px;
    line-height: 1.4;
}
.idx-article-body {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.idx-article-text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.idx-article-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #141414;
    line-height: 1.1;
    letter-spacing: -0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.idx-article-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #141414;
    opacity: 0.8;
    line-height: 1.4;
    letter-spacing: 0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.idx-article-read-more { display: none; }

/* ── SUBSCRIBE BANNER ── */
.idx-subscribe {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}
.idx-subscribe-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 32px var(--content-padding-x, 40px);
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* CTA card (teal with photo bg) */
.idx-subscribe-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
}
.idx-subscribe-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.idx-subscribe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 160, 180, 0.9);
    pointer-events: none;
}
.idx-subscribe-title {
    position: relative;
    z-index: 1;
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    max-width: 620px;
    line-height: 1.1;
}
.idx-subscribe-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 226px;
    padding: 14px 24px;
    background: #fff;
    color: var(--baseblack-500, #1a202c);
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.36px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: stretch;
    transition: opacity .18s;
}
.idx-subscribe-btn:hover { opacity: 0.9; }

/* Trust badges card (white) */
.idx-trust-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
}
.idx-trust-item {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}
.idx-trust-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-50, #e0f5f8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.idx-trust-icon img {
    width: 24px;
    height: 24px;
    display: block;
}
.idx-trust-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.idx-trust-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--baseblack-500, #1a202c);
    letter-spacing: 0.28px;
    line-height: normal;
}
.idx-trust-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(26,32,44,0.6);
    letter-spacing: 0.26px;
    line-height: normal;
}

/* ── Product delivery tag ── */
.product-card-delivery {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--teal-500);
    margin-top: 4px;
}

/* ── Nav buttons for new carousels ── */
#homeTrendPrev  { left: 8px; }
#homeTrendNext  { right: 8px; }
#homeParfumPrev { left: 8px; }
#homeParfumNext { right: 8px; }
#homeFacePrev   { left: 8px; }
#homeFaceNext   { right: 8px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .idx-hero-title { font-size: 32px; }
    .idx-hero-cards { flex: 0 0 280px; }
    .idx-promo-banners-inner { gap: 16px; padding: 24px 20px; }
    .idx-promo-vit { flex: 0 0 48%; }
    .idx-articles-grid { flex-wrap: wrap; }
    .idx-articles-grid .idx-article-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 900px) {
    .idx-hero { padding: 12px 16px; }
    .idx-hero-inner { flex-direction: column; gap: 12px; min-height: auto; }
    .idx-hero-main { min-height: 300px; padding: 30px 28px 22px; }
    .idx-hero-cards { flex: none; flex-direction: row; gap: 12px; }
    .idx-hero-card { flex: 1; }
    .idx-hero-title { font-size: 28px; }
    .idx-quick-cats-inner { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
    .idx-qcat { flex: 0 0 calc(25% - 12px); }
    .idx-qcat-icon { height: 72px; }
    .idx-promo-banners-inner { flex-wrap: wrap; gap: 16px; padding: 24px 20px; }
    .idx-promo-vit { flex: 0 0 100%; height: auto; min-height: 140px; }
    .idx-promo-oils, .idx-promo-tea { flex: 1 1 calc(50% - 8px); min-width: 0; }
    .idx-reviews-grid { grid-template-columns: 1fr 1fr; }
    .idx-articles-grid { flex-wrap: wrap; gap: 16px; }
    .idx-articles-grid .idx-article-card { flex: 0 0 calc(50% - 8px); }
    .idx-article-img-wrap { height: 180px; }
    .idx-subscribe-inner { gap: 24px; padding: 24px 20px; }
    .idx-subscribe-cta-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px; }
    .idx-subscribe-title { font-size: 22px; }
    .idx-subscribe-btn { width: auto; align-self: auto; }
    .idx-trust-card { flex-wrap: wrap; gap: 20px; }
    .idx-trust-item { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 768px) {
    .home-products-track .home-product-card,
    .home-products-grid .home-product-card { flex: 0 0 calc((100% - 16px) / 2); }
    .home-cat-card { flex: 0 0 calc((100% - 32px) / 3); }
    .idx-products-title { font-size: 22px; }
    .idx-qcat { flex: 0 0 calc(33.333% - 12px); }
    .idx-promo-oils, .idx-promo-tea { flex: 1 1 100%; }
    .idx-reviews-grid { display: flex; flex-direction: column; gap: 16px; }
    .idx-trust-item { flex: 1 1 100%; }
    .idx-brands-card { gap: 16px; flex-wrap: wrap; padding: 16px; }
    .idx-brand { font-size: 14px; }
    .idx-hero-title { font-size: 26px; }
    .idx-subscribe-title { font-size: 20px; }
    .idx-subscribe-btn { width: 100%; }
}
@media (max-width: 650px) {
    .idx-hero-cards { flex-direction: column; }
    .idx-hero-title { font-size: 24px; }
    .idx-hero-main::after { display: none; }
    .idx-quick-cats-inner { gap: 8px; padding: 12px 14px; }
    .idx-qcat { flex: 0 0 calc(25% - 8px); }
    .idx-qcat-icon { height: 60px; border-radius: 16px; }
    .idx-qcat-name { font-size: 11px; }
    .idx-promo-banners-inner { gap: 12px; padding: 16px 14px; }
    .idx-promo-vit, .idx-promo-oils, .idx-promo-tea { flex: 0 0 100%; height: auto; min-height: 130px; }
    .idx-promo-banner { height: auto; min-height: 130px; padding: 24px; }
    .idx-reviews-grid { grid-template-columns: 1fr; }
    .idx-articles-grid { flex-wrap: wrap; gap: 16px; }
    .idx-articles-grid .idx-article-card { flex: 0 0 calc(50% - 8px); }
    .idx-article-img-wrap { height: 180px; }
    .idx-brands-card { gap: 24px; flex-wrap: wrap; padding: 20px 16px; }
    .idx-brand { font-size: 14px; }
    .idx-brand-sep { display: none; }
    .idx-trust-item { flex: 0 0 100%; }
    .idx-subscribe-title { font-size: 18px; }
    .idx-products-title { font-size: 22px; }
    .idx-products-section { padding: 28px 14px; }
}

/* ── Mobile 480px and below ── */
@media (max-width: 480px) {
    .idx-hero { padding: 10px 12px; }
    .idx-hero-main { min-height: 240px; padding: 20px 20px 18px; border-radius: 16px; }
    .idx-hero-title { font-size: 20px; line-height: 1.15; }
    .idx-hero-subtitle { font-size: 12px; }
    .idx-hero-btn { padding: 10px 20px; font-size: 13px; }
    .idx-hero-card { padding: 18px 16px; min-height: 140px; }
    .idx-hero-card-title { font-size: 18px; }
    .idx-hero-card-desc { font-size: 12px; }

    /* Quick cats — 4 in a row on mobile */
    .idx-quick-cats-inner { gap: 6px; padding: 10px 12px; }
    .idx-qcat { flex: 0 0 calc(25% - 5px); gap: 8px; }
    .idx-qcat-icon { height: 52px; border-radius: 12px; }
    .idx-qcat-name { font-size: 10px; letter-spacing: 0.1px; }

    /* Products carousels — 1 per view */
    .home-products-track .home-product-card,
    .home-products-grid .home-product-card { flex: 0 0 calc(100% - 0px); }
    .home-cat-card { flex: 0 0 calc(50% - 8px); }

    /* Product card sizing */
    .home-product-card { padding: 12px 12px 20px; }
    .home-product-card .product-card-info { gap: 16px; }
    .home-product-card .product-card-name { font-size: 12px; }
    .home-product-card .price-current { font-size: 18px; }
    .home-product-card .product-card-badges { top: 18px; left: 18px; }
    .home-product-card .product-card-wishlist { top: 18px; right: 18px; }

    /* Promo banners stacked */
    .idx-promo-banners-inner { padding: 14px 12px; gap: 10px; }
    .idx-promo-banner { padding: 20px; min-height: 120px; }
    .idx-promo-title { font-size: 20px; }
    .idx-promo-desc { font-size: 12px; }

    /* Reviews single column */
    .idx-review-card { padding: 20px; border-radius: 16px; }
    .idx-review-text { font-size: 14px; }
    .idx-review-author { font-size: 14px; }

    /* Articles single column */
    .idx-articles-grid { gap: 12px; }
    .idx-articles-grid .idx-article-card { flex: 0 0 100%; }
    .idx-article-img-wrap { height: 200px; }
    .idx-article-title { font-size: 17px; }
    .idx-article-desc { font-size: 14px; }

    /* Brands */
    .idx-brands-card { gap: 16px; padding: 16px 12px; }
    .idx-brand { font-size: 13px; letter-spacing: -0.5px; }

    /* Subscribe */
    .idx-subscribe-inner { padding: 20px 12px; gap: 16px; }
    .idx-subscribe-cta-card { padding: 24px 20px; }
    .idx-subscribe-title { font-size: 18px; }
    .idx-subscribe-btn { padding: 12px 20px; font-size: 14px; height: auto; }
    .idx-trust-card { padding: 16px; gap: 14px; border-radius: 16px; }
    .idx-trust-item { gap: 14px; }
    .idx-trust-icon { width: 40px; height: 40px; border-radius: 10px; }

    /* Section title */
    .idx-products-title { font-size: 18px; }
    .idx-products-section { padding: 20px 12px; gap: 16px; }
    .idx-products-header { gap: 10px; }
    .home-cat-view-all { font-size: 12px; }
}

/* ── Very small mobile 360px and below ── */
@media (max-width: 360px) {
    .idx-qcat { flex: 0 0 calc(33.333% - 5px); }
    .idx-hero-title { font-size: 18px; }
    .idx-products-title { font-size: 17px; }
}
