/* Rotonda Brands — Homepage */

/* Hero */
.home-hero {
    position: relative;
    min-height: 92vh;
    max-height: 960px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    touch-action: pan-y;
}

/* Hero content is injected after page load — never hide via .reveal */
.home-hero .reveal {
    opacity: 1;
    transform: none;
}

.home-hero__track {
    position: absolute;
    inset: 0;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    isolation: isolate;
}

.home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__bg img,
.home-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    display: block;
}

.home-hero__slide--video .home-hero__bg {
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__slide--portrait .home-hero__video,
.home-hero__slide--landscape .home-hero__video {
    object-fit: cover;
    object-position: center;
    transform: none;
}

.home-hero--portrait-video {
    min-height: auto;
    max-height: 92dvh;
    aspect-ratio: 9 / 16;
}

.home-hero--has-video .home-hero__slide--portrait .home-hero__video,
.home-hero--has-video .home-hero__slide--landscape .home-hero__video {
    width: 100%;
    height: 100%;
    max-width: none;
}

@media (max-width: 767px) {
    body[data-page="home"] > main {
        padding-top: var(--site-nav-height);
    }

    .home-hero--has-video {
        min-height: 0;
        max-height: none;
    }

    .home-hero--portrait-video,
    .home-hero--landscape-video {
        width: 100%;
        aspect-ratio: auto;
        max-height: none;
    }

    .home-hero--has-video .home-hero__video,
    .home-hero--has-video .home-hero__slide--portrait .home-hero__video,
    .home-hero--has-video .home-hero__slide--landscape .home-hero__video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
        transform: none;
    }

    .home-hero--has-video .home-hero__overlay {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.45) 42%,
            rgba(0, 0, 0, 0.12) 68%,
            transparent 100%
        );
    }

    .home-hero--has-video .home-hero__inner {
        padding: 0 1.25rem 4.25rem;
        justify-content: flex-end;
    }

    .home-hero--has-video .home-hero__text {
        max-width: 100%;
    }

    .home-hero--has-video .home-hero__title {
        font-size: clamp(1.65rem, 7.5vw, 2.15rem);
        line-height: 1.15;
    }

    .home-hero--has-video .home-hero__desc {
        font-size: 0.9rem;
        margin-top: 0.65rem;
    }

    .home-hero--has-video .home-hero__actions {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .home-hero--has-video .home-hero__panel,
    .home-hero--has-video .home-hero__stats {
        display: none;
    }

    .home-hero--has-video .home-hero__dots {
        bottom: 1rem;
    }

    .home-hero--has-video .home-hero__nav {
        width: 2.15rem;
        height: 2.15rem;
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .home-hero--has-video .home-hero__nav--prev {
        left: 0.75rem;
    }

    .home-hero--has-video .home-hero__nav--next {
        right: 0.75rem;
    }
}

@media (min-width: 768px) {
    .home-hero--portrait-video {
        aspect-ratio: auto;
        min-height: 92vh;
        max-height: 960px;
    }

    .home-hero--landscape-video {
        min-height: 92vh;
        max-height: 960px;
    }

    .home-hero__slide--portrait .home-hero__video {
        width: auto;
        height: 100%;
        max-width: min(42vw, 520px);
        object-fit: contain;
    }

    .home-hero__slide--landscape .home-hero__video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
    }
}

.home-hero__video {
    pointer-events: none;
}

.home-hero__bg-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #3d3428 50%, #1a1a1a 100%);
}

.home-hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.home-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-hero__dot.is-active {
    width: 24px;
    background: var(--primary);
}

.home-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}

.home-hero__nav:hover {
    background: rgba(0, 0, 0, 0.45);
}

.home-hero__nav--prev { left: 1rem; }
.home-hero__nav--next { right: 1rem; }

@media (min-width: 768px) {
    .home-hero__nav--prev { left: 2rem; }
    .home-hero__nav--next { right: 2rem; }
}

[dir="rtl"] .home-hero__nav--prev .material-symbols-outlined,
[dir="rtl"] .home-hero__nav--next .material-symbols-outlined {
    transform: scaleX(-1);
}

.home-hero__slide.is-active .home-hero__text {
    animation: homeHeroFadeUp 0.65s ease 0.1s both;
}

@keyframes homeHeroFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(270deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 42%, rgba(0,0,0,0.08) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.25) 0%, transparent 40%);
}

.home-hero__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 7rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .home-hero__inner {
        padding: 9rem 4rem 4rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 3rem;
    }
}

.home-hero__text { max-width: 34rem; }

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    background: rgba(197, 162, 103, 0.2);
    border: 1px solid rgba(197, 162, 103, 0.45);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.home-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.home-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1rem;
}

.home-hero__title em {
    font-style: italic;
    color: var(--primary);
}

.home-hero__desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn-hero-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-hero-light:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .home-hero__panel {
        align-self: end;
        justify-self: start;
    }

    .home-hero__stats {
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 20px;
        padding: 1.25rem;
        gap: 0;
    }
}

.home-hero__stat {
    text-align: center;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .home-hero__stat + .home-hero__stat {
        border-right: 1px solid rgba(255,255,255,0.12);
    }
}

.home-hero__stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.home-hero__stat span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
}

/* Quick nav */
.home-quick {
    background: #fff;
    border-bottom: 1px solid rgba(196,199,199,0.35);
    padding: 1rem 0;
    position: sticky;
    top: 64px;
    z-index: 40;
}

@media (min-width: 768px) {
    .home-quick { top: 72px; }
}

.home-quick__scroll {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.home-quick__scroll::-webkit-scrollbar { display: none; }

.home-quick__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: #f5f3f3;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1b1c1c;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.home-quick__chip:hover,
.home-quick__chip.active {
    background: #000;
    color: #fff;
}

.home-quick__chip .material-symbols-outlined { font-size: 18px; }

/* Brand logo marquee — classic luxury strip */
.home-brands {
    position: relative;
    padding: 2rem 0 0;
    overflow: hidden;
}

.home-brands__head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.home-brands__eyebrow {
    margin: 0;
    font-family: 'Playfair Display', 'IBM Plex Sans Arabic', serif;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--secondary, #5c5346);
}

.home-brands__eyebrow::before,
.home-brands__eyebrow::after {
    content: '';
    display: inline-block;
    width: clamp(2rem, 6vw, 4rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(119, 90, 0, 0.45), transparent);
    vertical-align: middle;
    margin: 0 1rem;
}

.home-brands__frame {
    position: relative;
    border-block: 1px solid rgba(119, 90, 0, 0.22);
    background:
        linear-gradient(180deg, rgba(250, 248, 245, 0.98) 0%, rgba(245, 241, 234, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-brands__viewport {
    position: relative;
    overflow: hidden;
}

.home-brands__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(2.5rem, 10vw, 6rem);
    z-index: 2;
    pointer-events: none;
}

.home-brands__fade--left {
    left: 0;
    background: linear-gradient(90deg, #faf8f5 15%, transparent 100%);
}

.home-brands__fade--right {
    right: 0;
    background: linear-gradient(270deg, #faf8f5 15%, transparent 100%);
}

.home-brands__bar {
    min-height: 6rem;
}

.home-brands__track {
    display: flex;
    width: max-content;
    align-items: stretch;
    animation: home-brands-scroll var(--home-brands-duration, 320s) linear infinite;
    will-change: transform;
}

.home-brands__track--loading {
    animation: none;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.home-brands__group {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.home-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(7rem, 13vw, 10rem);
    height: 6rem;
    padding: 0 1.35rem;
    text-decoration: none;
    border-inline-end: 1px solid rgba(119, 90, 0, 0.12);
    opacity: 0.82;
    transition: opacity 0.35s ease, background-color 0.35s ease;
    user-select: none;
}

.home-brands__item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.45);
}

.home-brands__logo {
    display: block;
    max-width: clamp(5rem, 9vw, 7.5rem);
    max-height: 2.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.95);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.home-brands__item:hover .home-brands__logo {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.home-brands__loading {
    color: var(--outline, #807663);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes home-brands-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 768px) {
    .home-brands {
        padding-top: 2.5rem;
    }

    .home-brands__bar {
        min-height: 6.75rem;
    }

    .home-brands__item {
        min-width: clamp(7.5rem, 11vw, 11rem);
        height: 6.75rem;
        padding-inline: 1.75rem;
    }

    .home-brands__logo {
        max-height: 2.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-brands__track {
        animation-duration: calc(var(--home-brands-duration, 320s) * 1.5);
    }
}

[data-theme="dark"] .home-brands__frame {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98) 0%, rgba(18, 18, 18, 0.94) 100%);
    border-block-color: rgba(212, 175, 95, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .home-brands__eyebrow {
    color: rgba(245, 243, 243, 0.72);
}

[data-theme="dark"] .home-brands__fade--left {
    background: linear-gradient(90deg, #181818 15%, transparent 100%);
}

[data-theme="dark"] .home-brands__fade--right {
    background: linear-gradient(270deg, #181818 15%, transparent 100%);
}

[data-theme="dark"] .home-brands__item {
    border-inline-end-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .home-brands__item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Brand cover showcases — home page */
.home-brand-covers {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.home-brand-covers[hidden] {
    display: none !important;
}

.home-brand-covers .home-section__head {
    margin-bottom: 0.5rem;
}

@media (max-width: 899px) {
    .home-brand-covers .brand-showcase__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
    }

    .home-brand-covers .brand-showcase__grid .product-card {
        flex: 0 0 38%;
        min-width: 130px;
    }
}

/* Section divider */
.home-section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .home-section { padding: 5rem 0; }
}

.home-section--muted {
    background: #f5f3f3;
}

.home-section__head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.home-section__head .section-eyebrow { justify-content: center; }
.home-section__head .section-eyebrow::before { display: none; }
.home-section__head .section-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.home-section__head .section-title { margin-top: 0.75rem; }
.home-section__head .section-desc { margin: 0.75rem auto 0; text-align: center; }

/* Department product showcases */
.home-dept-loading {
    padding: 3rem 0;
    text-align: center;
    color: var(--outline, #807663);
}

.home-dept-block {
    margin: 0;
}

.home-dept-block__inner {
    width: 100%;
}

.home-dept-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.home-dept-block__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.875rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-dept-block__link {
    flex-shrink: 0;
    margin: 0;
}

.home-dept-block__grid--scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.875rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 0 0 0.75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(119, 90, 0, 0.35) transparent;
    grid-template-columns: unset;
}

.home-dept-block__grid--scroll::-webkit-scrollbar {
    height: 6px;
}

.home-dept-block__grid--scroll::-webkit-scrollbar-thumb {
    background: rgba(119, 90, 0, 0.35);
    border-radius: 999px;
}

.home-dept-block__grid--scroll .product-card {
    flex: 0 0 auto;
    width: clamp(148px, 42vw, 220px);
    scroll-snap-align: start;
}

.home-dept-block__grid--scroll.is-loading {
    min-height: 18rem;
    align-items: center;
}

.home-dept-block__grid--scroll .col-span-full {
    flex: 0 0 100%;
    width: 100%;
}

/* Mobile — match Best Sellers: 2-column grid, no sideways scroll */
@media (max-width: 767px) {
    .home-section.home-dept-block {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .home-dept-block__head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
    }

    .home-dept-block__title {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .home-dept-block__link {
        align-self: start;
        font-size: 0.8125rem;
    }

    .home-dept-block__grid--scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
        overflow: visible;
        flex-wrap: unset;
        scroll-snap-type: none;
        padding: 0;
        margin: 0;
        -webkit-overflow-scrolling: auto;
        scrollbar-width: auto;
    }

    .home-dept-block__grid--scroll .product-card {
        flex: unset;
        width: auto;
        min-width: 0;
        scroll-snap-align: unset;
    }

    .home-dept-block__grid--scroll .product-card-name {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-dept-block__grid--scroll .product-card-price {
        font-size: 0.8125rem;
    }

    .home-dept-block__grid--scroll .product-card-image {
        border-radius: 12px;
        margin-bottom: 0.625rem;
    }

    .home-dept-block__grid--scroll .product-card-cat {
        font-size: 0.5625rem;
    }

    .home-dept-block__grid--scroll.is-loading {
        min-height: 14rem;
        align-items: stretch;
    }

    .home-dept-block__grid--scroll .col-span-full {
        grid-column: 1 / -1;
        flex: unset;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .home-dept-block__grid--scroll {
        gap: 1.25rem;
    }

    .home-dept-block__grid--scroll .product-card {
        width: clamp(180px, 22vw, 240px);
    }
}

/* 4-column categories */
.home-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .home-cats { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

@media (min-width: 1100px) {
    #categories-view .home-cats { grid-template-columns: repeat(5, 1fr); }
}

/* Homepage — horizontal scroll row (all screen sizes) */
.home-cats--scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.875rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(119, 90, 0, 0.35) transparent;
}

.home-cats--scroll::-webkit-scrollbar {
    height: 6px;
}

.home-cats--scroll::-webkit-scrollbar-thumb {
    background: rgba(119, 90, 0, 0.35);
    border-radius: 999px;
}

.home-cats--scroll .home-cat {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.home-cats--scroll .home-cat--text {
    width: clamp(180px, 24vw, 240px);
}

.home-cats--scroll .home-cats__status {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--outline, #807663);
}

@media (min-width: 768px) {
    .home-cats--scroll {
        gap: 1.25rem;
    }

    .home-cats--scroll .home-cat--text {
        width: clamp(200px, 18vw, 260px);
    }
}

.home-cat {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-cat--text {
    aspect-ratio: auto;
    min-height: auto;
    padding: 1.1rem 1.35rem;
    background: var(--surface, #fff);
    border: 1px solid rgba(119, 90, 0, 0.14);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-cat--text:hover {
    transform: translateY(-3px);
    border-color: rgba(119, 90, 0, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: rgba(250, 248, 245, 0.98);
}

.home-cat--text .home-cat__name {
    font-family: 'Playfair Display', 'IBM Plex Sans Arabic', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--on-surface, #1b1c1c);
}

.home-cat--text .home-cat__count {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--outline, #807663);
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .home-cat--text {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .home-cat--text:hover {
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .home-cat--text .home-cat__name {
    color: var(--on-surface, #f5f3f3);
}

.home-cat__arrow {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.home-cat:hover .home-cat__arrow {
    opacity: 1;
    transform: translateY(0);
}

/* Product filters */
.home-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.home-filter {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #5e5e5b;
    background: #fff;
    border: 1px solid rgba(196,199,199,0.5);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-filter:hover { border-color: #000; color: #000; }

.home-filter.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Enhanced product card */
.home-products .product-card-image { border-radius: 16px; }

.home-products .product-card-info {
    padding: 0.25rem 0;
}

.product-card-cat {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #5e5e5b;
}

.product-card-rating .material-symbols-outlined {
    font-size: 14px;
    color: var(--primary);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Editorial */
.home-editorial {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .home-editorial { grid-template-columns: 1.1fr 0.9fr; min-height: 480px; }
}

.home-editorial__image {
    position: relative;
    min-height: 280px;
}

.home-editorial__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.home-editorial__content {
    background: #1c1b1b;
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .home-editorial__content { padding: 3.5rem; }
}

.home-editorial__content .section-eyebrow { color: var(--primary); }
.home-editorial__content .section-eyebrow::before { background: var(--primary); }

.home-editorial__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.home-editorial__content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Values */
.home-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .home-values { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.home-value {
    background: #fff;
    border: 1px solid rgba(196,199,199,0.35);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-value:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.home-value__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f5f3f3, #e1dfdb);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.home-value h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1b1c1c;
}

.home-value p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #5e5e5b;
}

/* Newsletter premium */
.home-newsletter {
    background: linear-gradient(135deg, #1c1b1b 0%, #2d2b2a 100%);
    border-radius: 28px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .home-newsletter {
        grid-template-columns: 1.2fr 0.8fr;
        padding: 3.5rem 4rem;
    }
}

.home-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(197,162,103,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-newsletter__text { position: relative; z-index: 1; }

.home-newsletter__text .newsletter-tag {
    border-color: var(--primary);
    color: var(--primary);
}

.home-newsletter__text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: #fff;
    margin: 1rem 0;
    line-height: 1.3;
}

.home-newsletter__text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.home-newsletter__form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-newsletter__form input {
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.25s;
}

.home-newsletter__form input::placeholder { color: rgba(255,255,255,0.4); }

.home-newsletter__form input:focus {
    border-color: var(--primary);
}

.home-newsletter__form button {
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}

.home-newsletter__form button:hover { background: #b08d55; }

.home-newsletter__note {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.5rem;
}

.newsletter-feedback {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.newsletter-feedback--success { color: #d4b87a; }
.newsletter-feedback--error { color: #f2a8a8; }

.newsletter-offer {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.newsletter-offer__label {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.newsletter-offer__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-offer__code {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
}

.newsletter-offer__copy {
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.newsletter-offer__copy:hover { background: rgba(255,255,255,0.08); }

.newsletter-offer__discount {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.about-join__form .newsletter-feedback {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    text-align: center;
}

.about-join__form .newsletter-feedback--success { color: var(--primary, #a67c52); }
.about-join__form .newsletter-feedback--error { color: var(--error, #bc4749); }

.about-join__form .newsletter-offer {
    margin-top: 1rem;
    background: var(--surface-muted, #f7f5f2);
    border-color: var(--border, #e8e4de);
}

.about-join__form .newsletter-offer__label,
.about-join__form .newsletter-offer__code,
.about-join__form .newsletter-offer__discount {
    color: var(--text, #1a1a1a);
}

.about-join__form .newsletter-offer__copy {
    border-color: var(--border, #e8e4de);
    color: var(--text, #1a1a1a);
}

.home-trust {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(196,199,199,0.3);
}

.home-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-trust__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .home-trust__item {
        padding: 0.75rem 1.5rem;
        border-left: 1px solid rgba(196,199,199,0.35);
    }

    .home-trust__item:first-child { border-left: none; }
}

.home-trust__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.home-trust__icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, #f5f3f3, #fff);
    border: 1px solid rgba(196,199,199,0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-trust__item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1b1c1c;
}

.home-trust__item span {
    font-size: 0.72rem;
    color: #5e5e5b;
}

[dir="rtl"] .btn-hero-light .material-symbols-outlined,
[dir="rtl"] .btn-gold .material-symbols-outlined,
[dir="rtl"] .link-arrow .material-symbols-outlined,
[dir="rtl"] .home-cat__arrow .material-symbols-outlined,
[dir="rtl"] .home-dept-block__link .material-symbols-outlined {
    transform: scaleX(-1);
}

/* Dark mode — homepage */
[data-theme="dark"] .home-quick {
    background: var(--surface);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .home-quick__chip {
    background: var(--surface-muted);
    color: var(--text);
}

[data-theme="dark"] .home-quick__chip:hover,
[data-theme="dark"] .home-quick__chip.active {
    background: var(--primary);
    color: #fff;
}

[data-theme="dark"] .home-section--muted {
    background: var(--surface-muted);
}

[data-theme="dark"] .home-filter {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
}

[data-theme="dark"] .home-filter:hover {
    border-color: var(--primary);
    color: var(--text);
}

[data-theme="dark"] .home-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

[data-theme="dark"] .product-card-rating {
    color: var(--text-muted);
}

[data-theme="dark"] .home-value {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .home-value__icon {
    background: var(--surface-muted);
    color: var(--primary);
}

[data-theme="dark"] .home-value h3 {
    color: var(--text);
}

[data-theme="dark"] .home-value p {
    color: var(--text-muted);
}

[data-theme="dark"] .home-trust {
    background: var(--surface);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .home-trust__item {
    border-left-color: var(--border);
}

[data-theme="dark"] .home-trust__icon {
    background: var(--surface-muted);
    border-color: var(--border);
}

[data-theme="dark"] .home-trust__item strong {
    color: var(--text);
}

[data-theme="dark"] .home-trust__item span {
    color: var(--text-muted);
}

[data-theme="dark"] .home-cat {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .home-cat:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .home-cat__arrow {
    background: rgba(30, 30, 30, 0.95);
    color: var(--primary);
}

[data-theme="dark"] .home-editorial {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Welcome offer modal */
html.welcome-offer-lock,
html.site-loader-lock.welcome-offer-lock {
    overflow: hidden;
}

.welcome-offer {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.welcome-offer.is-open {
    opacity: 1;
    visibility: visible;
}

.welcome-offer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 8, 0.62);
    backdrop-filter: blur(4px);
}

.welcome-offer__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: var(--surface, #fbf9f8);
    border: 1px solid var(--border, #e8e4dc);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    text-align: center;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s ease;
}

.welcome-offer.is-open .welcome-offer__panel {
    transform: translateY(0) scale(1);
}

.welcome-offer__close {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    border: 0;
    background: transparent;
    color: var(--text-muted, #807663);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
}

.welcome-offer__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary, #775a00);
    background: rgba(119, 90, 0, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.welcome-offer__title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    line-height: 1.2;
    color: var(--text, #1b1c1c);
    margin: 0 0 0.65rem;
}

.welcome-offer__lead {
    font-size: 0.9375rem;
    color: var(--text-muted, #4e4635);
    margin: 0 0 0.5rem;
    line-height: 1.55;
}

.welcome-offer__desc {
    font-size: 0.875rem;
    color: var(--text-muted, #807663);
    margin: 0 0 0.75rem;
}

.welcome-offer__discount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary, #775a00);
    margin: 0 0 1.25rem;
}

.welcome-offer__code-box {
    background: var(--surface-muted, #efeded);
    border: 1px dashed var(--border, #d2c5af);
    border-radius: 0.875rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.welcome-offer__code-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #807663);
    margin-bottom: 0.5rem;
}

.welcome-offer__code-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.welcome-offer__code {
    font-family: ui-monospace, monospace;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text, #1b1c1c);
}

.welcome-offer__copy {
    flex-shrink: 0;
    border: 1px solid var(--primary, #775a00);
    background: #fff;
    color: var(--primary, #775a00);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
}

.welcome-offer__copy:hover {
    background: var(--primary, #775a00);
    color: #fff;
}

.welcome-offer__copy-feedback {
    display: block;
    min-height: 1.125rem;
    font-size: 0.75rem;
    color: var(--success, #2D6A4F);
    margin-top: 0.35rem;
}

.welcome-offer__note {
    font-size: 0.75rem;
    color: var(--text-muted, #807663);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.welcome-offer__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
}

.welcome-offer__shop {
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.welcome-offer__dismiss {
    border: 0;
    background: transparent;
    color: var(--text-muted, #807663);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
}

.welcome-offer__dismiss:hover {
    color: var(--text, #1b1c1c);
}
