/* =================================================================
   HOME PAGE — Sayman Digital inspired layout for gaming store
   ================================================================= */

/* Featured category cards (rectangle tiles below hero) */
.home-featured-categories {
    padding: 1.25rem 0 0.5rem;
}

.home-featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.home-featured-category-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-800);
    background: #fff;
    border: 1.5px solid var(--card-accent-soft, #e8eaf2);
    border-radius: var(--radius-xl);
    padding: 0.75rem 0.625rem 0.875rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 14px rgba(15, 23, 42, 0.06);
    transition:
        transform var(--transition-base),
        color var(--transition-base),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.home-featured-category-card:hover {
    transform: translateY(-4px);
    color: var(--primary);
    border-color: var(--card-accent, var(--primary));
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 12px 28px var(--card-accent-shadow, rgba(92, 77, 255, 0.18));
}

/* Soft per-card accent colors (matches hero palette) */
.home-featured-category-card:nth-child(6n + 1) {
    --card-accent: #a78bfa;
    --card-accent-soft: rgba(167, 139, 250, 0.38);
    --card-accent-shadow: rgba(167, 139, 250, 0.28);
}

.home-featured-category-card:nth-child(6n + 2) {
    --card-accent: #60a5fa;
    --card-accent-soft: rgba(96, 165, 250, 0.38);
    --card-accent-shadow: rgba(96, 165, 250, 0.28);
}

.home-featured-category-card:nth-child(6n + 3) {
    --card-accent: #4ade80;
    --card-accent-soft: rgba(74, 222, 128, 0.38);
    --card-accent-shadow: rgba(74, 222, 128, 0.28);
}

.home-featured-category-card:nth-child(6n + 4) {
    --card-accent: #fb923c;
    --card-accent-soft: rgba(251, 146, 60, 0.38);
    --card-accent-shadow: rgba(251, 146, 60, 0.28);
}

.home-featured-category-card:nth-child(6n + 5) {
    --card-accent: #94a3b8;
    --card-accent-soft: rgba(148, 163, 184, 0.42);
    --card-accent-shadow: rgba(148, 163, 184, 0.26);
}

.home-featured-category-card:nth-child(6n + 6) {
    --card-accent: #f472b6;
    --card-accent-soft: rgba(244, 114, 182, 0.38);
    --card-accent-shadow: rgba(244, 114, 182, 0.28);
}

.home-featured-category-card__media {
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius-xl) - 4px);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, transparent 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.home-featured-category-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.home-featured-category-card:hover .home-featured-category-card__media img {
    transform: scale(1.03);
}

.home-featured-category-card__label {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    line-height: 1.45;
    padding: 0 0.25rem;
    transition: color 0.35s ease;
}

@media (max-width: 991.98px) {
    .home-featured-categories .container {
        padding-inline: 0.75rem;
    }

    .home-featured-categories-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
    }

    .home-featured-categories-grid::-webkit-scrollbar {
        display: none;
    }

    .home-featured-category-card {
        flex: 0 0 clamp(6.75rem, 28vw, 8.5rem);
        max-width: 8.5rem;
        scroll-snap-align: start;
        padding: 0.5rem 0.5rem 0.625rem;
    }

    .home-featured-category-card__media {
        aspect-ratio: 1 / 1;
        padding: 0.375rem;
    }

    .home-featured-category-card__media img {
        mix-blend-mode: normal;
    }

    .home-featured-category-card__label {
        font-size: 0.6875rem;
    }
}

@media (max-width: 575.98px) {
    .home-featured-categories {
        padding-top: 1rem;
    }

    .home-featured-category-card {
        flex: 0 0 clamp(6.25rem, 34vw, 7.75rem);
        max-width: 7.75rem;
    }

    .home-featured-category-card__media {
        aspect-ratio: 1 / 1;
        padding: 0.25rem;
    }

    .home-featured-category-card__label {
        font-size: 0.625rem;
        line-height: 1.35;
    }
}

/* Legacy category icon grid (kept for other pages if referenced) */
.home-category-icons {
    padding: 0;
}

.home-category-icons-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.5rem 0;
}

.home-category-icons-grid::-webkit-scrollbar {
    display: none;
}

.home-category-icon-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--gray-800);
    width: 6.5rem;
    transition: transform var(--transition-fast);
}

.home-category-icon-item:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

.home-category-icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: box-shadow var(--transition-base);
}

.home-category-icon-item:hover .home-category-icon-circle {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.home-category-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.home-category-icon-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    line-height: 1.4;
    max-width: 6.5rem;
}

/* Section header with "more" link */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.home-section-header__balance {
    flex-shrink: 0;
    width: 4rem;
}

.home-section-header .section-header {
    flex: 1;
    text-align: center;
}

.home-section-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-section-footer {
    display: none;
    justify-content: flex-end;
    margin-top: 0;
    padding-inline: 0.75rem;
}

.home-section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    white-space: nowrap;
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.home-section-more i {
    font-size: 0.6875rem;
    transition: transform var(--transition-fast);
}

.home-section-more:hover {
    background: rgba(92, 77, 255, 0.08);
    color: var(--primary-dark);
    box-shadow: none;
}

.home-section-more:hover i {
    transform: translateX(-3px);
}

/* Brands carousel */
.home-brands-section .sectionContent {
    gap: 1.5rem;
}

.home-brands-scroll {
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
}

.home-brands-track {
    gap: 1rem !important;
    padding-block: 0.25rem;
}

.home-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(6.5rem, 12vw, 8.5rem);
    min-height: 4.75rem;
    text-decoration: none;
    color: var(--gray-800);
    background: #fff;
    border: 1.5px solid rgba(232, 234, 242, 1);
    border-radius: var(--radius-xl);
    padding: 0.875rem 0.75rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 14px rgba(15, 23, 42, 0.06);
    transition:
        transform var(--transition-base),
        color var(--transition-base),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-brand-card:hover {
    transform: translateY(-4px);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 12px 28px rgba(92, 77, 255, 0.15);
}

.home-brand-card__media {
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.home-brand-card__media img {
    max-width: 100%;
    max-height: 2.75rem;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.home-brand-card__fallback {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
}

.home-category-showcase__products {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Special offer countdown badge */
.home-offer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8400 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.home-countdown-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.home-countdown-digits {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Category showcase: banner + products (Sayman category rails) */
.home-category-showcase {
    display: grid;
    grid-template-columns: minmax(0, 16.688rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.home-showcase-banner {
    position: relative;
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 26rem;
    height: 100%;
    background: var(--gray-100);
    text-decoration: none;
    border: 1px solid var(--gray-200);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 14px rgba(15, 23, 42, 0.06);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.home-showcase-banner:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 12px 24px rgba(15, 23, 42, 0.1);
}

.home-showcase-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.home-showcase-banner:hover img {
    transform: scale(1.04);
}

.home-showcase-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: white;
    pointer-events: none;
}

.home-showcase-banner-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.375rem;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.home-showcase-banner-subtitle {
    font-size: 0.8125rem;
    opacity: 0.92;
    margin: 0 0 0.875rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: white;
    color: var(--gray-800);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    width: fit-content;
    transition: transform var(--transition-fast), color var(--transition-fast);
    pointer-events: auto;
}

.home-showcase-banner:hover .home-showcase-cta {
    transform: scale(1.03);
    color: var(--primary);
}

/* Adverb banners — image overlays with hover details */
.adverb-slider-row .adverb-card-banner > a {
    aspect-ratio: 16 / 9;
}

.adverb-card-banner img {
    transition: transform 0.45s ease;
}

.adverb-card-banner > a:hover img,
.adverb-card-banner > a:focus-visible img {
    transform: scale(1.04);
}

.adverb-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.125rem 1.25rem;
    color: #fff;
    text-align: right;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.42) 42%,
        rgba(0, 0, 0, 0.18) 100%
    );
    transition: background 0.35s ease;
    pointer-events: none;
}

.adverb-card-banner > a:hover .adverb-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.62) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.adverb-card-banner > a:focus-visible .adverb-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.62) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.adverb-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.adverb-card-subtitle {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.92;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.adverb-card-details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(0.375rem);
    transition:
        max-height 0.35s ease,
        opacity 0.35s ease,
        margin-top 0.35s ease,
        transform 0.35s ease;
}

.adverb-card-banner > a:hover .adverb-card-details {
    max-height: 4.5rem;
    opacity: 1;
    margin-top: 0.625rem;
    transform: translateY(0);
}

.adverb-card-banner > a:focus-visible .adverb-card-details {
    max-height: 4.5rem;
    opacity: 1;
    margin-top: 0.625rem;
    transform: translateY(0);
}

.adverb-card-details li {
    font-size: 0.6875rem;
    line-height: 1.35;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.adverb-section-two .adverb-card-overlay {
    padding: 1.25rem 1.5rem;
}

.adverb-section-two .adverb-card-title {
    font-size: 1.25rem;
}

.adverb-section-two .adverb-card-subtitle {
    font-size: 0.875rem;
}

.adverb-section-two .adverb-card-details li {
    font-size: 0.75rem;
}

.adverb-section-two .adverb-card-banner > a:hover .adverb-card-details,
.adverb-section-two .adverb-card-banner > a:focus-visible .adverb-card-details {
    max-height: 5rem;
}

@media (max-width: 36rem) {
    .adverb-card-overlay {
        padding: 0.875rem 1rem;
    }

    .adverb-card-title {
        font-size: 1rem;
    }

    .adverb-card-subtitle {
        font-size: 0.75rem;
    }

    .adverb-card-details li {
        font-size: 0.625rem;
    }
}

/* Gaming setup grid (Takht Jamshid "ستاپ گیمینگ") */
.home-gaming-setup {
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f3f3 100%);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
}

.home-gaming-setup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-setup-item {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.home-setup-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.home-setup-item img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.home-setup-item-title {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-setup-item-price {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    color: var(--success);
}

/* Popular / bestseller tabs */
.home-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.home-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    font-family: var(--font-primary);
}

.home-tab-btn.active {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.home-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.home-tab-panel {
    display: none;
}

.home-tab-panel.active {
    display: block;
}

/* Hero — contained card with product collage */
.home-hero {
    margin-bottom: 0;
}

.home-hero .carousel-inner {
    border-radius: 0;
    min-height: 0;
}

.home-hero .carousel-item {
    min-height: 0;
}

.home-hero:has(.home-hero-indicators) .home-hero-shell {
    padding-bottom: 2.5rem;
}

.home-hero-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0;
    padding: 0;
}

.home-hero-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(92, 77, 255, 0.35);
    border: none;
}

.home-hero-indicators button.active {
    background-color: var(--primary);
}

@media (min-width: 992px) {
    .home-hero:has(.home-hero-indicators) .home-hero-shell {
        padding-bottom: 2.75rem;
    }

    .home-hero-indicators {
        bottom: 0.875rem;
        gap: 0.5rem;
    }

    .home-hero-indicators button {
        width: 2.25rem;
        height: 0.375rem;
        border-radius: 999px;
        margin: 0;
    }
}

.home-hero-slide {
    position: relative;
}

.home-hero-shell {
    padding: 1.25rem 0 1.75rem;
}

.home-hero-bg--lavender { background: linear-gradient(135deg, #f3f1ff 0%, #ece8ff 100%); }
.home-hero-bg--sky      { background: linear-gradient(135deg, #eef6ff 0%, #e3f0ff 100%); }
.home-hero-bg--mint     { background: linear-gradient(135deg, #eefaf3 0%, #e2f5ea 100%); }
.home-hero-bg--peach    { background: linear-gradient(135deg, #fff4ee 0%, #ffe8dc 100%); }
.home-hero-bg--slate    { background: linear-gradient(135deg, #f4f6f8 0%, #e9edf2 100%); }
.home-hero-bg--rose     { background: linear-gradient(135deg, #fff0f3 0%, #ffe3ea 100%); }

.home-hero-card {
    max-width: 72rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    padding: clamp(1rem, 2.5vw, 2rem);
    backdrop-filter: blur(8px);
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.home-hero-title {
    font-size: clamp(1.375rem, 2.8vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin: 0;
    line-height: 1.3;
}

.home-hero-subtitle {
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    width: fit-content;
    transition: background var(--transition-fast);
    margin-top: 0.25rem;
}

.home-hero-cta:hover {
    background: var(--primary-dark);
    color: white;
}

/* Product collage — combined preview grid */
.home-hero-collage {
    display: grid;
    gap: 0.625rem;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    min-height: 14rem;
    min-width: 0;
}

.home-hero-collage-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    padding: 0.75rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
}

.home-hero-collage-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.home-hero-collage-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    flex: 1 1 auto;
}

/* 1 product */
.home-hero-collage--count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 16rem;
}

/* 2 products */
.home-hero-collage--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 22rem;
}

/* 3 products — bento */
.home-hero-collage--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    max-width: 24rem;
}

.home-hero-collage--count-3 .home-hero-collage-item--1 {
    grid-row: span 2;
}

/* 4+ products — 2x2 */
.home-hero-collage--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    max-width: 26rem;
}

.home-hero-overlay {
    display: none;
}

.home-hero-text {
    max-width: 28rem;
    color: white;
    pointer-events: auto;
}

.home-hero-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-hero-text p {
    font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
    opacity: 0.95;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 61.9375rem) {
    .home-category-showcase {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .home-showcase-banner {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 2.15 / 1;
    }

    .home-section-header--showcase {
        display: none;
    }

    .home-showcase-banner-title {
        display: block;
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .home-showcase-cta {
        display: none;
    }

    .home-showcase-banner-overlay {
        padding: 1rem;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.28) 50%,
            rgba(0, 0, 0, 0.08) 100%
        );
    }

    .home-showcase-banner-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .home-section-footer {
        display: flex;
        justify-content: flex-end;
        padding-inline: 0.5rem;
    }

    .home-gaming-setup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hero .carousel-item.active {
        display: block;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .home-hero-copy {
        order: 1;
        text-align: center;
        align-items: center;
    }

    .home-hero-collage {
        order: 2;
        width: 100%;
        max-width: min(100%, 18rem);
        min-height: 11rem;
        margin-inline: auto;
    }

    /* Flatten bento on narrow screens — prevents 0-height grid rows */
    .home-hero-collage--count-3 .home-hero-collage-item--1 {
        grid-row: auto;
    }

    .home-hero-collage--count-3,
    .home-hero-collage--count-4 {
        grid-template-rows: auto;
    }

    .home-hero-collage-item {
        padding: 0.5rem;
    }

    .home-hero-card {
        padding: 1rem;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }

    .home-hero-shell {
        padding: 0.75rem 0 1rem;
    }

    .home-hero:has(.home-hero-indicators) .home-hero-shell {
        padding-bottom: 2rem;
    }

    .home-hero-indicators {
        bottom: 0.5rem;
    }

    .home-section-header {
        flex-direction: column;
        align-items: center;
    }

    .home-section-header__balance {
        display: none;
    }

    .home-section-body,
    .home-category-showcase__products {
        gap: 0.375rem;
    }

    .home-section-more {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .home-offer-header .home-section-header > .home-section-header__balance {
        display: none;
    }

    .home-offer-header .home-section-header {
        align-items: center;
        gap: 0.625rem;
    }

    .home-countdown {
        direction: rtl;
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
        margin-inline: 1rem;
        align-self: center;
        max-width: calc(100% - 2rem);
    }

    .home-countdown-label {
        font-size: 0.6875rem;
    }

    .home-countdown-digits {
        font-size: 0.75rem;
    }

    .home-brands-track {
        gap: 0.75rem !important;
    }

    .home-brand-card {
        width: clamp(5.75rem, 18vw, 7.5rem);
        padding: 0.75rem 0.625rem;
    }
}

@media (max-width: 30rem) {
    .home-section-more {
        white-space: normal;
        line-height: 1.45;
    }

    .home-hero-collage {
        max-width: 100%;
        gap: 0.5rem;
        min-height: 9.5rem;
    }

    .home-hero-collage-item {
        padding: 0.375rem;
    }

    .home-showcase-banner {
        aspect-ratio: 2 / 1;
    }

    .home-showcase-banner-subtitle {
        font-size: 0.75rem;
    }

    .home-gaming-setup-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .home-setup-item {
        padding: 0.625rem;
    }

    .home-setup-item img {
        width: 3.5rem;
        height: 3.5rem;
    }
}
