/* ============================================
   RESTNEST — Landing Page Styles
   1:1 Recreation from Reference Screenshots
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --color-bg-cream: #0b1411;
    --color-bg-white: #111e19;
    --color-text-dark: #ffffff;
    --color-text-body: #4b3621;
    --color-text-light: #4b3621;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-cta-dark: #e5c599;
    --color-cta-hover: #c4a173;

    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --max-width: 87.5rem;
    --nav-height-top: 2.75rem;
    --nav-height-main: 2.75rem;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Caps at standard 16px on large monitors to match original size, but scales down beautifully on Macbooks to keep layout uniform */
    font-size: min(16px, calc(100vw / 110)); 
}

@media (max-width: 768px) {
    html {
        font-size: 16px; /* Fixed size for mobile/vertical screens */
    }
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    background-image: url('assets/bg-leaves.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Sections with solid backgrounds cover the texture; categories & collection are transparent to reveal it */
.bg-texture {
    display: none;
}

.top-bar,
.main-nav,
.hero,
.showcase {
    background-color: transparent;
}

.story,
.categories,
.collection {
    position: relative;
    overflow: hidden;
    /* transparent — lets body texture show through seamlessly */
}

.categories > *,
.collection > * {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}


/* ==============================================
   UNIFIED PILL NAVIGATION
   ============================================== */
.pill-nav {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pill-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    height: 4.5rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Scrolled state (snapped to top) */
.pill-nav.scrolled {
    top: 0;
    left: 0;
    right: 0;
}
.pill-nav.scrolled .pill-nav__inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(75, 54, 33, 0.95);
}

.pill-nav.scrolled .main-nav__link,
.pill-nav.scrolled .top-bar__link {
    color: #fff;
}

.pill-nav__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pill-nav__logo img {
    height: 34px;
    object-fit: contain;
}

.page-home .pill-nav:not(.scrolled) .pill-nav__logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pill-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}



.pill-nav__utils {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 1;
}

/* Link Styles */
.top-bar__link,
.main-nav__link {
    color: #704214;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.landing-page .top-bar__link,
.landing-page .main-nav__link {
    color: #fff;
}

.top-bar__link {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.0938rem;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

.main-nav__link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.0938rem;
    text-transform: uppercase;
    padding: 0.5rem 0.875rem;
}

.top-bar__link::after,
.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background: var(--color-cta-dark);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.top-bar__link::after {
    left: 0;
    right: 0;
}
.main-nav__link::after {
    left: 0.875rem;
    right: 0.875rem;
}

.top-bar__link:hover,
.main-nav__link:hover {
    color: var(--color-cta-dark);
    transform: translateY(-0.2rem) scale(1.1);
}

.top-bar__link:hover::after,
.main-nav__link:hover::after {
    transform: scaleX(1);
}

.top-bar__link svg {
    flex-shrink: 0;
    transition: fill 0.3s ease;
}
.top-bar__link:hover svg path {
    fill: var(--color-cta-dark);
}


/* ==============================================
   HERO SLIDER
   ============================================== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 40rem;
    overflow: hidden;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.hero__fixed-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    z-index: 5;
    pointer-events: none;
}

.hero__fixed-logo {
    height: 16rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 2.5rem;
    mix-blend-mode: difference;
    pointer-events: none;
}

.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    z-index: 2;
}

.hero__logo {
    height: 16rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 2.5rem;
    pointer-events: none;
}

.hero__heading {
    font-family: var(--font-script);
    font-size: clamp(3rem, 7vw, 5.625rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    text-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(1.875rem);
}

.hero__slide--active .hero__heading {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero__cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-cta-dark);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1562rem;
    text-transform: uppercase;
    border: none;
    opacity: 0;
    transform: translateY(1.25rem);
}

.hero__slide--active .hero__cta {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero__cta:hover {
    background: var(--color-cta-hover);
    opacity: 1;
    transform: translateY(-0.125rem);
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Hero Navigation Arrows */
.hero__nav {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.hero__arrow {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.hero__arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(1.875rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==============================================
   FEATURES MARQUEE
   ============================================== */
.features-marquee {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 0;
    white-space: nowrap;
}

.features-marquee__track {
    display: inline-flex;
    will-change: transform;
}

.features-marquee__set {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem; /* matches gap so the seam is invisible */
}

.features-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #4B3621;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.features-marquee__item .story__icon {
    width: 2.5rem;
    height: 2.5rem;
}

.features-marquee__item .story__icon svg {
    width: 100%;
    height: 100%;
}

.features-marquee__dot {
    color: var(--color-cta-dark);
    font-size: 1.5rem;
    opacity: 0.5;
}


/* ==============================================
   THE RUGS STORY
   ============================================== */
.story {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2.5rem 4rem;
}

.story__container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.story__label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1875rem;
    text-transform: uppercase;
    color: var(--color-text-body);
    margin-bottom: 1.5rem;
}

.story__text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-body);
    max-width: 42.5rem;
    margin: 0 auto 3.75rem;
}

.story__features {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.story__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 8.75rem;
}

.story__icon {
    width: 6.25rem;
    height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story__icon svg {
    width: 5.625rem;
    height: 5.625rem;
    stroke: var(--color-text-dark);
}

.story__feature-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 0.0187rem;
}


/* ==============================================
   CATEGORIES
   ============================================== */
.collections-wrapper {
    background: transparent;
    position: relative;
}

.categories {
    padding: 5rem 2.5rem 5.625rem;
}

.categories__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.categories__heading {
    font-family: var(--font-script);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    text-align: center;
    color: #4b3621;
    margin-bottom: 3.125rem;
    letter-spacing: 0.125rem;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
    align-items: end;
    max-width: 50rem;
    margin: 0 auto;
}

.categories__card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.categories__card:hover .categories__img-wrap {
    transform: translateY(-1.5625rem);
}

.categories__card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.categories__img-wrap {
    width: 100%;
    aspect-ratio: 1.25;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.categories__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.categories__card:hover .categories__img {
    transform: scale(1.05);
}

.categories__label {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-body);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.125rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.categories__card:hover .categories__label {
    color: var(--color-cta-dark);
    border-bottom: 1px solid var(--color-cta-dark);
}


/* ==============================================
   THE 17TH CENTURY COLLECTION
   ============================================== */
.collection {
    padding: 5rem 2.5rem 6.25rem;
}

.collection__container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.collection__heading {
    font-family: var(--font-script);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    color: #4b3621;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.collection__subtitle {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: var(--color-text-body);
    margin-bottom: 3.125rem;
}

.collection__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.875rem;
    text-align: left;
}

.collection__card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection__card:hover .collection__img-wrap {
    transform: translateY(-1.5625rem);
}

.collection__card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.collection__img-wrap {
    width: 100%;
    aspect-ratio: 0.78;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection__card:hover .collection__img {
    transform: scale(1.05);
}

.collection__label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    color: var(--color-text-dark);
    padding-top: 0.25rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.125rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.collection__card:hover .collection__label {
    color: var(--color-cta-dark);
    border-bottom: 1px solid var(--color-cta-dark);
}


/* ==============================================
   FULL-WIDTH SHOWCASE
   ============================================== */
.showcase {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.showcase__image {
    width: 100%;
    height: auto;
    min-height: 25rem;
    max-height: 43.75rem;
    object-fit: cover;
    object-position: center;
}


/* ==============================================
   SCROLL REVEAL ANIMATIONS
   ============================================== */
.story__feature,
.categories__card,
.collection__card {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.story__feature.revealed,
.categories__card.revealed,
.collection__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.categories__card:nth-child(1),
.collection__card:nth-child(1),
.story__feature:nth-child(1) {
    transition-delay: 0.05s;
}

.categories__card:nth-child(2),
.collection__card:nth-child(2),
.story__feature:nth-child(2) {
    transition-delay: 0.15s;
}

.categories__card:nth-child(3),
.collection__card:nth-child(3),
.story__feature:nth-child(3) {
    transition-delay: 0.25s;
}

.categories__card:nth-child(4),
.collection__card:nth-child(4),
.story__feature:nth-child(4) {
    transition-delay: 0.35s;
}

.categories__card:nth-child(5) {
    transition-delay: 0.45s;
}

/* Section headings fade in */
.story__label,
.story__text,
.categories__heading,
.collection__heading,
.collection__subtitle {
    opacity: 0;
    transform: translateY(1.5625rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story__label.revealed,
.story__text.revealed,
.categories__heading.revealed,
.collection__heading.revealed,
.collection__subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 64rem) {
    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .collection__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .story__features {
        gap: 2.5rem;
    }

    .main-nav__list {
        gap: 0.25rem;
    }

    .main-nav__link {
        font-size: 0.6875rem;
        padding: 0.5rem 0.625rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 48rem) {
    .top-bar {
        padding: 0 1.25rem;
    }

    .top-bar__logo a {
        font-size: 1.625rem;
    }

    .top-bar__link {
        font-size: 0.625rem;
        gap: 0.25rem;
    }

    .top-bar__left,
    .top-bar__right {
        gap: 0.75rem;
    }

    .main-nav__list {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1.25rem;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav__list::-webkit-scrollbar {
        display: none;
    }

    .main-nav__link {
        font-size: 0.625rem;
        padding: 0.5rem 0.625rem;
        white-space: nowrap;
    }

    .hero {
        max-height: 31.25rem;
    }

    .hero__heading {
        font-size: 2.5rem;
    }

    .hero__cta {
        padding: 0.875rem 1.875rem;
        font-size: 0.6875rem;
    }

    .story {
        padding: 3.75rem 1.25rem 4.375rem;
    }

    .story__text {
        font-size: 1.125rem;
    }

    .story__features {
        gap: 1.875rem;
    }

    .story__icon {
        width: 4.375rem;
        height: 4.375rem;
    }

    .story__icon svg {
        width: 3.75rem;
        height: 3.75rem;
    }

    .categories {
        padding: 3.75rem 1.25rem 4.375rem;
    }

    .categories__heading {
        font-size: 2rem;
    }

    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .collection {
        padding: 3.75rem 1.25rem 5rem;
    }

    .collection__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 30rem) {
    .top-bar__link span {
        display: none;
    }

    .categories__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .collection__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .story__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.875rem;
    }
}/* ==============================================
   1. WASHABLE RUG
   ============================================== */
.washable {
    display: flex;
    background-color: transparent;
    color: #4B3621;
}
.washable__content {
    flex: 1;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.washable__heading {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.washable__sub {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 3rem;
}
.washable__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.washable__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
}
.washable__icon {
    width: 2.5rem;
    height: 2.5rem;
}
.washable__btn {
    display: inline-block;
    background-color: #9c5c46;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    align-self: flex-start;
    transition: background 0.3s;
}
.washable__btn:hover {
    background-color: #7a4635;
}
.washable__image-wrap {
    flex: 1;
    padding: 2rem;
}
.washable__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}



/* ==============================================
   3. WOVEN STORIES
   ============================================== */
.stories {
    background: transparent;
    color: var(--color-text-dark);
    padding: 6rem 2.5rem;
}
.stories__header {
    text-align: center;
    margin-bottom: 4rem;
}
.stories__heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.stories__sub {
    font-size: 1rem;
    max-width: 50rem;
    margin: 0 auto;
}
.stories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.stories__img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1rem;
}
.stories__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.stories__card:hover .stories__img {
    transform: scale(1.05);
}
.stories__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.stories__link {
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-text-dark);
    padding-bottom: 0.2rem;
}

/* ==============================================
   4. TOP REVIEWS
   ============================================== */
.reviews {
    background: transparent;
    color: #4B3621;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}
.reviews__label {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: #4B3621;
}
.reviews__heading {
    font-size: 3rem;
    margin-bottom: 3rem;
}
.reviews__carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    max-width: 85rem;
    margin: 0 auto;
}
.reviews__track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
    max-width: 75rem;
}
.reviews__track::-webkit-scrollbar {
    display: none;
}
.review-card {
    display: flex;
    flex-direction: column;
    width: 22rem;
    height: 38rem;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: #fff;
    overflow: hidden;
    color: #111;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.review-card__bg {
    width: 100%;
    height: 70%;
    object-fit: cover;
}
.review-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    flex: 1;
}
.review-card__tag {
    display: none;
}
.review-card__box {
    text-align: center;
    width: 100%;
}
.review-card__stars {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.reviews__arrow {
    width: 3rem;
    height: 3rem;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 10;
    position: absolute;
}
.reviews__arrow--prev {
    left: 2rem;
}
.reviews__arrow--next {
    right: 2rem;
}

/* ==============================================
   5. INSPIRATION MARQUEE
   ============================================== */
.social-marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 4rem 0;
    overflow: hidden;
    background: transparent;
}
.marquee-row {
    width: 100vw;
    overflow: hidden;
    display: flex;
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}
.marquee-content {
    display: flex;
    gap: 1.5rem;
    animation: scroll-left 40s linear infinite;
}
.marquee-track--reverse .marquee-content {
    animation: scroll-right 40s linear infinite;
}
.marquee-item {
    width: 25vw;
    aspect-ratio: 1;
    flex-shrink: 0;
}
.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 1.5rem)); }
}
@keyframes scroll-right {
    from { transform: translateX(calc(-100% - 1.5rem)); }
    to { transform: translateX(0); }
}

/* ==============================================
   PRODUCTS SLIDER
   ============================================== */
.products-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.products-slider__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products-slider__card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.products-slider__card > a,
.products-slider__card > div {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-slider__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-cta-dark);
    color: #0b1411;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    z-index: 2;
    letter-spacing: 0.03rem;
}

.products-slider__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.products-slider__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.products-slider__card:hover .products-slider__img-wrap img {
    transform: scale(1.05);
}

.products-slider__name {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8em !important; /* Exactly 2 lines */
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left;
}

.products-slider__price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    margin-top: auto;
}

.products-slider__card .add-to-cart-btn,
.products-slider__card .btn--primary {
    margin-top: auto !important;
}

.products-slider__sale {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.products-slider__original {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-cta-dark);
    text-decoration: line-through;
}

/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials {
    padding: 6.25rem 0;
    background: transparent;
}

.testimonials__container {
    width: 90%;
    max-width: 90rem;
    margin: 0 auto;
}

.testimonials__heading {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-text-dark);
    margin-bottom: 3.125rem;
    text-align: center;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
    max-width: 65rem;
    margin: 0 auto;
}

.testimonials__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Pop effect like categories card */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.testimonials__card:hover {
    transform: scale(1.05);
}

.testimonials__stars {
    color: var(--color-cta-dark);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.1rem;
}

.testimonials__text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-dark);
}
.marquee-row {
    width: 100vw;
    overflow: hidden;
    display: flex;
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}
.marquee-content {
    display: flex;
    gap: 1.5rem;
    animation: scroll-left 40s linear infinite;
}
.marquee-track--reverse .marquee-content {
    animation: scroll-right 40s linear infinite;
}
.marquee-item {
    width: 25vw;
    aspect-ratio: 1;
    flex-shrink: 0;
}
.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 1.5rem)); }
}
@keyframes scroll-right {
    from { transform: translateX(calc(-100% - 1.5rem)); }
    to { transform: translateX(0); }
}

/* ==============================================
   PRODUCTS SLIDER
   ============================================== */
.products-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.products-slider__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products-slider__card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
    position: relative;
}

.products-slider__card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.products-slider__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-cta-dark);
    color: #0b1411;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    z-index: 2;
    letter-spacing: 0.03rem;
}

.products-slider__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.products-slider__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.products-slider__card:hover .products-slider__img-wrap img {
    transform: scale(1.05);
}

.products-slider__name {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-slider__price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
}

.products-slider__sale {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.products-slider__original {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-cta-dark);
    text-decoration: line-through;
}

/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials {
    padding: 6.25rem 0;
    background: transparent;
}

.testimonials__container {
    width: 90%;
    max-width: 90rem;
    margin: 0 auto;
}

.testimonials__heading {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-text-dark);
    margin-bottom: 3.125rem;
    text-align: center;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
    max-width: 65rem;
    margin: 0 auto;
}

.testimonials__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Pop effect like categories card */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.testimonials__card:hover {
    transform: scale(1.05);
}

.testimonials__stars {
    color: var(--color-cta-dark);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.1rem;
}

.testimonials__text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonials__author {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* ==============================================
   SEARCH MODAL
   ============================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 20, 0.9);
    backdrop-filter: blur(10px);
}

.search-modal__content {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 40rem;
    background: transparent;
    text-align: center;
    transform: translateY(-2rem);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-modal.active .search-modal__content {
    transform: translateY(0);
}

.search-modal__close {
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 3rem;
    color: var(--color-text-light);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.search-modal__close:hover {
    color: var(--color-text-dark);
}

.search-modal__heading {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.search-modal__form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-cta-dark);
    padding-bottom: 0.5rem;
}

.search-modal__input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    outline: none;
    padding: 0.5rem;
}

.search-modal__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-modal__submit {
    background: none;
    border: none;
    color: var(--color-cta-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.search-modal__submit:hover {
    transform: scale(1.1);
}

/* ==============================================
   PRODUCT PAGE LAYOUT
   ============================================== */
.product-page {
    --color-text: #4b3621;
    padding: 8rem 5%;
    background-color: transparent;
    color: var(--color-text);
}

.product-page__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .product-page__container {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.product-gallery {
    display: flex;
    gap: 1.5rem;
    max-width: 700px;
    width: 100%;
}

.product-gallery__thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active, .thumbnail:hover {
    border-color: var(--color-primary);
}

.product-gallery__main {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    position: relative;
    border: 1px solid #eee;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-details__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

.product-details__reviews {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
    color: #eab308;
}

.stars svg {
    width: 16px;
    height: 16px;
}

.reviews-count {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.product-details__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.product-details__price-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.price-sale {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.price-original {
    font-size: 1.125rem;
    color: var(--color-text);
    text-decoration: line-through;
}

.price-badge {
    background-color: #e6e4d5;
    color: var(--color-text);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-options__label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
}

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

.size-btn {
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.size-btn.active, .size-btn:hover {
    border-color: var(--color-primary);
    background-color: rgba(94, 107, 88, 0.05);
}

.size-btn strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.size-btn span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Quantity */
.product-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    width: fit-content;
    overflow: hidden;
}

.quantity-selector button {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-text);
    transition: var(--transition);
}

.quantity-selector button:hover {
    background-color: rgba(0,0,0,0.05);
}

.quantity-selector input {
    width: 40px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    background: transparent;
}

.quantity-selector input:focus {
    outline: none;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Perks */
.product-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.perk {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.perk svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.perk-text span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.25rem;
}

.perk-text small {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Engineered Features */
.engineered-features {
    padding: 6rem 5%;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.engineered-features__heading {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 4rem;
    color: var(--color-text);
}

.engineered-features__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

@media (max-width: 900px) {
    .engineered-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 600px) {
    .engineered-features__grid {
        grid-template-columns: 1fr;
    }
}

.eng-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.eng-feature__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e6e4d5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.eng-feature__icon svg {
    width: 32px;
    height: 32px;
}

.eng-feature__content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.eng-feature__content p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* Product Page Button Overrides */
.product-actions .btn--primary {
    background-color: #C3B091 !important; /* Soft premium gold/champagne */
    color: #ffffff !important;
    border: 1px solid #C3B091 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.product-actions .btn--primary:hover {
    background-color: #a89578 !important;
    border-color: #a89578 !important;
}

.product-actions .btn--secondary {
    background-color: transparent !important;
    color: #4b3621 !important;
    border: 1px solid #4b3621 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.product-actions .btn--secondary:hover {
    background-color: rgba(75, 54, 33, 0.1) !important;
}
.product-actions .btn--primary, .product-actions .btn--secondary {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}


/* =========================================
   CART UI STYLES
========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-dropdown {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: #FAF9F6;
    border-left: 1px solid rgba(75, 54, 33, 0.1);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    font-family: var(--font-sans);
}

.cart-dropdown.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(75, 54, 33, 0.1);
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #4B3621;
    font-family: var(--font-serif);
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #4B3621;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-close-btn:hover {
    opacity: 0.7;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: #4B3621;
    opacity: 0.7;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(75, 54, 33, 0.1);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(75, 54, 33, 0.1);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #4B3621;
}

.cart-item-price {
    color: #4B3621;
    font-weight: 500;
    margin-bottom: 3px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(75, 54, 33, 0.1);
    background: rgba(75, 54, 33, 0.02);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4B3621;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #4B3621;
    color: #FAF9F6;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

/* Quantity Controls */
.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(75, 54, 33, 0.3);
    background: transparent;
    color: #4B3621;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.qty-btn:hover {
    background: #4B3621;
    color: #FAF9F6;
    border-color: #4B3621;
}

.qty-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4B3621;
    min-width: 20px;
    text-align: center;
}

/* ==============================================
   CART STYLES
   ============================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-dropdown {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: #FAF9F6;
    border-left: 1px solid rgba(75, 54, 33, 0.1);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    font-family: var(--font-sans);
}

.cart-dropdown.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(75, 54, 33, 0.1);
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #4B3621;
    font-family: var(--font-serif);
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #4B3621;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-close-btn:hover {
    opacity: 0.7;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: #4B3621;
    opacity: 0.7;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(75, 54, 33, 0.1);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(75, 54, 33, 0.1);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #4B3621;
}

.cart-item-price {
    color: #4B3621;
    font-weight: 500;
    margin-bottom: 3px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(75, 54, 33, 0.1);
    background: rgba(75, 54, 33, 0.02);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4B3621;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #4B3621;
    color: #FAF9F6;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* ==============================================
   SHOWCASE PLACEHOLDERS
   ============================================== */
.showcase {
    background-color: var(--color-bg);
}
.showcase__placeholders {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.showcase__placeholder {
    height: 450px;
    background-color: #e8e6e1;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase__placeholder:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15), 0 0 25px rgba(255, 255, 255, 0.6);
}
.showcase__placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .showcase__placeholders {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .showcase__placeholders {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   MOBILE HAMBURGER MENU BUTTON
   ============================================== */
.mobile-menu-toggle {
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002; /* ABOVE the curtain overlay */
    position: relative;
    padding: 0.25rem;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #704214;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

/* Color overrides */
.landing-page .mobile-menu-toggle__bar {
    background: #fff;
}
.pill-nav.scrolled .mobile-menu-toggle__bar {
    background: #fff;
}
/* When menu is open, always white bars (for X on dark curtain) */
.mobile-menu-toggle.active .mobile-menu-toggle__bar {
    background: #fff !important;
}

/* ---- Animated X (cross) when open ---- */
/* gap is 5px, bar height is 2px, so offset = 5 + 2 = 7px */
.mobile-menu-toggle.active .mobile-menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .mobile-menu-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.active .mobile-menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================
   MOBILE NAV CURTAIN OVERLAY
   ============================================== */
.mobile-nav-curtain {
    display: none; /* hidden on desktop */
}

/* ==============================================
   MOBILE RESPONSIVE OVERRIDES (≤ 768px)
   ============================================== */
@media (max-width: 768px) {

    /* ---- PILL NAV: Hamburger + Compact ---- */
    .mobile-menu-toggle {
        display: flex;
    }

    .pill-nav {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        z-index: 10001; /* nav bar above curtain */
    }

    .pill-nav__inner {
        padding: 0.4rem 1rem;
        height: 3.5rem;
        gap: 0.5rem;
    }

    /* HIDE the inline nav list on mobile (it's replaced by the curtain) */
    .pill-nav__list {
        display: none !important;
    }

    /* ---- MOBILE CURTAIN: drops from top ---- */
    .mobile-nav-curtain {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        background: rgba(11, 20, 17, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s ease;
        pointer-events: none;
    }

    .mobile-nav-curtain.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-curtain__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 0;
        padding: 5rem 2rem;
    }

    .mobile-nav-curtain__link {
        font-family: var(--font-serif);
        font-size: 2rem;
        font-weight: 400;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.2rem;
        padding: 1.25rem 2rem;
        opacity: 0;
        transform: translateY(2rem);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
        position: relative;
    }

    .mobile-nav-curtain__link::after {
        content: '';
        position: absolute;
        bottom: 0.75rem;
        left: 2rem;
        right: 2rem;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .mobile-nav-curtain__link:hover::after,
    .mobile-nav-curtain__link:active::after {
        transform: scaleX(1);
    }

    .mobile-nav-curtain__link:hover,
    .mobile-nav-curtain__link:active {
        color: var(--color-cta-dark);
    }

    /* Staggered entrance of links */
    .mobile-nav-curtain.open .mobile-nav-curtain__link {
        opacity: 1;
        transform: translateY(0);
    }
    .mobile-nav-curtain.open .mobile-nav-curtain__link:nth-child(1) { transition-delay: 0.12s; }
    .mobile-nav-curtain.open .mobile-nav-curtain__link:nth-child(2) { transition-delay: 0.2s; }
    .mobile-nav-curtain.open .mobile-nav-curtain__link:nth-child(3) { transition-delay: 0.28s; }
    .mobile-nav-curtain.open .mobile-nav-curtain__link:nth-child(4) { transition-delay: 0.36s; }

    /* Reset delays when closing so links disappear quickly */
    .mobile-nav-curtain:not(.open) .mobile-nav-curtain__link {
        transition-delay: 0s;
    }

    /* Utility icons: keep compact */
    .pill-nav__utils {
        gap: 0.75rem;
    }

    /* Hide text labels in utils on mobile, show only icons */
    .pill-nav__utils .top-bar__link {
        font-size: 0;
        gap: 0;
        padding-bottom: 0;
    }
    .pill-nav__utils .top-bar__link svg {
        width: 18px;
        height: 18px;
    }

    /* Cart button text hide, keep icon */
    .pill-nav__utils .cart-btn {
        font-size: 0 !important;
        position: relative !important;
    }
    .pill-nav__utils .cart-btn svg {
        width: 18px;
        height: 18px;
    }
    .pill-nav__utils .cart-btn .cart-badge {
        position: absolute !important;
        top: -6px !important;
        right: -8px !important;
        font-size: 0.6rem !important;
        width: 1rem !important;
        height: 1rem !important;
        margin-left: 0 !important;
    }


    /* ---- HERO ---- */
    .hero {
        height: 75vh;
        min-height: 28rem;
    }

    .hero__logo {
        height: 8rem;
        margin-bottom: 1.5rem;
    }

    .hero__heading {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .hero__cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.625rem;
    }

    .hero__arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }

    .hero__nav {
        bottom: 1.5rem;
    }

    .hero__fixed-logo {
        height: 8rem !important;
    }


    /* ---- FEATURES MARQUEE ---- */
    .features-marquee {
        padding: 0.75rem 0;
    }

    .features-marquee__item {
        font-size: 0.6875rem;
        gap: 0.5rem;
    }

    .features-marquee__item .story__icon {
        width: 1.75rem;
        height: 1.75rem;
    }


    /* ---- CATEGORIES ---- */
    .categories {
        padding: 2.5rem 1rem 3rem;
    }

    .categories__heading {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .categories__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        max-width: 100%;
    }

    .categories__img-wrap {
        border-radius: 1rem;
    }

    .categories__img {
        border-radius: 1rem;
    }

    .categories__label {
        font-size: 0.875rem;
    }


    /* ---- COLLECTION / TOP SELLING ---- */
    .collection {
        padding: 2.5rem 1rem 3.5rem;
    }

    .collection__heading {
        font-size: 1.75rem;
        margin-bottom: 0.375rem;
    }


    /* ---- PRODUCTS SLIDER: 2-column grid on mobile ---- */
    .products-slider {
        overflow: visible;
    }

    .products-slider__track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        transform: none !important;
    }

    .products-slider__card {
        flex: unset;
        width: 100%;
    }

    .products-slider__img-wrap {
        border-radius: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .products-slider__name {
        font-size: 0.6875rem;
        line-height: 1.3;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .products-slider__price {
        gap: 0.375rem;
    }

    .products-slider__sale {
        font-size: 0.75rem;
    }

    .products-slider__original {
        font-size: 0.625rem;
    }

    .products-slider__badge {
        font-size: 0.5625rem;
        padding: 0.15rem 0.4rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    /* Inline Add to Cart buttons on mobile */
    .products-slider__card .add-to-cart-btn,
    .products-slider__card .btn--primary {
        margin-top: 0.5rem !important;
        padding: 0.5rem !important;
        font-size: 0.6875rem !important;
    }


    /* ---- SHOWCASE ---- */
    .showcase__placeholders {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 2rem 1rem;
    }

    .showcase__placeholder {
        height: 220px;
        border-radius: 12px;
    }


    /* ---- WASHABLE SECTION ---- */
    .washable {
        flex-direction: column;
    }

    .washable__content {
        padding: 2.5rem 1.25rem;
    }

    .washable__heading {
        font-size: 2rem;
    }

    .washable__sub {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }

    .washable__features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .washable__feature {
        font-size: 0.75rem;
    }

    .washable__btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }

    .washable__image-wrap {
        padding: 1rem;
    }

    .washable__img {
        border-radius: 12px;
    }


    /* ---- REVIEWS ---- */
    .reviews {
        padding: 3rem 0;
    }

    .reviews__label {
        font-size: 1.75rem;
    }

    .reviews__heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .reviews__carousel {
        padding: 0 0.5rem;
    }

    .review-card {
        width: 16rem;
        height: 28rem;
    }

    .review-card__bg {
        height: 60%;
    }

    .review-card__content {
        padding: 1.25rem 1rem;
    }

    .review-card__text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .reviews__arrow {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }

    .reviews__arrow--prev {
        left: 0.5rem;
    }

    .reviews__arrow--next {
        right: 0.5rem;
    }

    .reviews__track {
        gap: 1rem;
    }


    /* ---- STORY SECTION ---- */
    .story {
        padding: 2.5rem 1rem 3rem;
    }

    .story__text {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .story__features {
        gap: 1.5rem;
    }

    .story__icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .story__icon svg {
        width: 3rem;
        height: 3rem;
    }


    /* ---- INSPIRATION MARQUEE ---- */
    .social-marquee {
        padding: 2rem 0;
        gap: 0.75rem;
    }

    .marquee-item {
        width: 45vw;
    }

    .marquee-item img {
        border-radius: 0.625rem;
    }


    /* ---- SEARCH MODAL ---- */
    .search-modal__heading {
        font-size: 1.5rem;
    }

    .search-modal__input {
        font-size: 1rem;
    }


    /* ---- CART ---- */
    .cart-dropdown {
        max-width: 100%;
        right: -100%;
    }

    .cart-dropdown.active {
        right: 0;
    }


    /* ---- PRODUCT PAGE ---- */
    .product-page {
        padding: 5rem 1rem 3rem;
    }

    .product-page__container {
        gap: 2rem;
    }

    .product-details__title {
        font-size: 1.5rem;
    }

    .product-gallery {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .product-gallery__thumbnails {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
        overflow-x: auto;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .product-options__grid {
        grid-template-columns: 1fr;
    }

    .product-perks {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}


/* ==============================================
   EXTRA SMALL SCREENS (≤ 400px)
   ============================================== */
@media (max-width: 400px) {
    .pill-nav {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .pill-nav__inner {
        padding: 0.35rem 0.75rem;
        height: 3rem;
    }

    .hero {
        height: 65vh;
        min-height: 22rem;
    }

    .hero__logo {
        height: 6rem;
    }

    .hero__fixed-logo {
        height: 6rem !important;
    }

    .hero__heading {
        font-size: 1.5rem;
    }

    .categories__heading,
    .collection__heading {
        font-size: 1.5rem;
    }

    .showcase__placeholder {
        height: 180px;
    }

    .review-card {
        width: 14rem;
        height: 24rem;
    }

    .washable__heading {
        font-size: 1.5rem;
    }
}


/* ==============================================
   PRODUCTS GRID (PILLOWS & CUSHIONS PAGES)
   ============================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .products-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .products-grid {
        /* Keep 2 columns even on very small screens? I'll do 2 columns to match the request */
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}


/* Adjust font sizes inside products-grid to match the larger 2-column cards */
.products-grid .products-slider__name {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    white-space: normal;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    height: auto;
}

.products-grid .products-slider__sale {
    font-size: 1.125rem;
}

.products-grid .products-slider__original {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .products-grid .products-slider__name {
        font-size: 0.875rem;
    }
    .products-grid .products-slider__sale {
        font-size: 1rem;
    }
    .products-grid .products-slider__original {
        font-size: 0.75rem;
    }
}


