/* ========================================
   HAUS OF MAAR — Design System
   Based on Stitch Designs
   Dark luxury streetwear aesthetic
   ======================================== */

/* === CSS Custom Properties === */
:root {
    /* Minimalist K-Fashion Theme (Musinsa style) */
    --color-bg: #FFFFFF;
    --color-bg-elevated: #F9F9F9;
    --color-bg-card: #FFFFFF;
    --color-bg-card-hover: #FFFFFF;
    --color-surface: #F3F3F3;
    --color-border: #EEEEEE;
    --color-border-subtle: #F5F5F5;

    --color-text-primary: #111111;
    --color-text-secondary: #777777;
    --color-text-muted: #AAAAAA;

    --color-accent: #000000;
    --color-accent-hover: #333333;
    --color-accent-dim: rgba(0, 0, 0, 0.05);

    --color-badge-new: #111111;
    --color-badge-bestseller: #E50010; /* Musinsa Red */
    --color-badge-limited: #0044CC; /* Musinsa Blue */

    --color-success: #00B900;
    --color-error: #FF0000;

    /* Gradients */
    --gradient-gold: #111111; /* Changed to solid black */
    --gradient-gold-hover: #333333;
    --gradient-hero: linear-gradient(180deg, transparent 0%, transparent 60%, transparent 100%); /* Removed gradient */

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; /* Keep Manrope for now, but clean */

    --text-xs: 0.75rem;
    --text-sm: 0.8125rem; /* Musinsa uses slightly smaller base fonts */
    --text-base: 0.875rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --text-5xl: 2.25rem;
    --text-6xl: 3rem;
    --text-7xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;

    /* Border Radius - Sharp */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --radius-full: 9999px;

    /* Shadows - Removed */
    --shadow-card: none;
    --shadow-card-hover: none;
    --shadow-glow: none;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 80px; /* Matched to .navbar__top height */
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override material icons to use delicate rounded symbols */
.material-icons-outlined {
    font-family: 'Material Symbols Rounded' !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

input,
select {
    font-family: var(--font-primary);
    outline: none;
}

ul,
ol {
    list-style: none;
}

/* === Utility === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.show-on-mobile {
    display: none;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* height: var(--nav-height); - removed so it can fit content */
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background var(--transition-base);
}

.navbar__top {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar__bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-sm) var(--space-xl);
    display: flex;
    justify-content: center;
}

.navbar__left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
}

.navbar__center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.navbar__logo {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 1000;
    color: var(--color-text-primary);
    /* removed uppercase and letter-spacing for handwriting style */
}

.navbar__logo span {
    color: var(--color-accent);
}

.navbar__logo-img {
    height: 60px;
}

.navbar__links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.navbar__link {
    font-family: 'Caveat', cursive;
    font-size: 1.28rem;
    font-weight: 1000;
    -webkit-text-stroke: 0.4px var(--color-text-primary);
    color: var(--color-text-primary);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

/* Right-side navbar icons — larger & bolder to balance the left links */
.navbar__right .material-icons-outlined {
    font-size: 31px;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.navbar__right .navbar__icon-btn img {
    width: auto !important;
    height: 25px !important;
}

/* EN / TH language selector — match the left nav links */
.navbar__right .language-selector {
    font-size: 1.28rem !important;
}

.navbar__right .language-selector .lang-option {
    -webkit-text-stroke: 0.4px currentColor;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Moved down to prevent cutting through cursive text */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--color-text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__right button {
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.navbar__right .material-icons-outlined {
    font-size: 23px; /* Adjusted to 23px as requested */
}

.navbar__cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar__cart-btn:hover {
    color: var(--color-text-primary);
}

.navbar__cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Mobile Menu */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-sm);
}

.navbar__hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    :root {
        --nav-height: 80px;
    }

    .navbar__top {
        padding: 0 5%;
    }

    .navbar__logo-img {
        height: 50px;
    }

    .navbar__top .material-icons-outlined {
        font-size: 24px;
    }

    .hero-multi-carousel .carousel-slide {
        flex: 0 0 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    .navbar__links {
        display: none;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: flex !important;
    }

    .navbar__hamburger {
        display: flex;
    }

    .products-grid--4,
    .products-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ethos__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .ethos__features {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .collection-header__title {
        font-size: var(--text-2xl);
    }

    .product-detail__layout {
        grid-template-columns: 1fr;
    }

    .related-products .products-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter__form {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .product-detail__actions {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .navbar__top {
        position: relative;
    }

    .navbar__center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .navbar__left,
    .navbar__right {
        min-width: 0;
        z-index: 2;
    }

    .navbar__left {
        position: relative;
    }

    /* JavaScript toggles compact mode only when the natural menu width would
       enter the logo's safe area. Visibility preserves its measurable width. */
    .navbar--compact .navbar__links {
        position: absolute;
        left: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .navbar--compact .navbar__top {
        padding: 0 5%;
    }

    .navbar--compact .hide-on-mobile {
        display: none !important;
    }

    .navbar--compact .show-on-mobile {
        display: flex !important;
    }

    .navbar--compact .navbar__logo-img {
        height: 34px !important;
    }

    .navbar--compact .navbar__top .material-icons-outlined {
        font-size: 24px;
    }

    .navbar--compact ~ .bottom-nav {
        display: flex;
    }
}

@media (max-width: 480px) {

    .products-grid--4,
    .products-grid--3,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: var(--text-3xl);
    }

    .related-products .products-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE NAVIGATION DRAWER
   ======================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #FFFFFF;
    border-right: 1px solid var(--color-border);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
    height: var(--nav-height);
}

.mobile-nav__title {
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mobile-nav__title span {
    color: var(--color-accent);
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.mobile-nav__close:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.mobile-nav__links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) 0;
    overflow-y: auto;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
    color: var(--color-text-primary);
    background: rgba(196, 162, 101, 0.05);
    border-left-color: var(--color-accent);
}

.mobile-nav__footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--color-border-subtle);
}

/* Hamburger animation */
.navbar__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO MULTI CAROUSEL
   ======================================== */
.hero-multi-carousel {
    position: relative;
    width: 100%;
}

.hero-multi-carousel .carousel-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.hero-multi-carousel .carousel-track::-webkit-scrollbar {
    display: none;
}

.hero-multi-carousel .carousel-slide {
    flex: 0 0 33.333333%; /* 3 items per view exactly */
    scroll-snap-align: start;
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    background: #f4f4f4;
}

.hero-multi-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-multi-carousel .carousel-slide:hover img {
    transform: none;
}

.carousel-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 24px;
    background: none;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.carousel-slide-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.2;
}

.carousel-slide-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3); /* Translucent dark */
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFFFFF; /* White arrow */
    box-shadow: none;
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.hero-multi-carousel .carousel-btn--prev { left: 24px; }
.hero-multi-carousel .carousel-btn--next { right: 24px; }

@media (max-width: 768px) {
    .carousel-btn {
        background: #FFFFFF;
        color: var(--color-text-primary);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

.product-slider-btn--prev { left: -60px; top: 35%; }
.product-slider-btn--next { right: -60px; top: 35%; }

@media (max-width: 768px) {
    .product-slider-btn {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
    }
    .product-slider-btn--prev { left: -10px; }
    .product-slider-btn--next { right: -10px; }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm); /* 0px */
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background: #111111;
    color: #FFFFFF;
}

.btn--primary:hover {
    background: #333333;
    color: #FFFFFF;
}

.btn--outline {
    background: #FFFFFF;
    color: #111111;
    border-color: #DDDDDD;
}

.btn--outline:hover {
    border-color: #111111;
    color: #111111;
}

.btn--sm {
    padding: 8px 20px;
    font-size: var(--text-xs);
}

.btn--full {
    width: 100%;
}

.btn--icon {
    padding: 10px;
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section {
    padding: 0;
    margin-top: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.section__header {
    text-align: left;
    margin-bottom: var(--space-3xl);
}

.section__eyebrow {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section__title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section__title-line {
    display: inline-block;
    position: relative;
}

.section__title-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

/* ========================================
   PRODUCT CARDS (Musinsa Style)
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.products-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.products-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    position: relative;
    background: transparent;
    overflow: hidden;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: none;
}

.product-card__image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #F3F3F3;
    margin-bottom: 12px;
}

/*
    Cards fill their frame. Photography arrives at mixed ratios — portrait, square
    and landscape in the same collection — so anything that fits the whole image
    inside the card leaves background showing on most of the grid.

    The anchor sits above centre for the same reason as the product gallery: these
    are full-body shots, and cropping evenly takes the top of the model's head.
*/
.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform var(--transition-fast);
}

.product-card:hover .product-card__image {
    transform: scale(1.02);
}

.product-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
}

.product-card__badge--new {
    background: #111111;
    color: #FFFFFF;
}

.product-card__badge--bestseller {
    background: #E50010;
    color: #FFFFFF;
}

.product-card__badge--limited {
    background: var(--color-badge-limited);
    color: var(--color-text-primary);
}

.product-card__wishlist {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    z-index: 2;
    font-size: 18px;
}

.product-card__wishlist:hover {
    color: var(--color-text-secondary);
    background: transparent;
}

.product-card__quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.9));
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-card__quick-add {
    transform: translateY(0);
}

.products-slider {
    display: flex;
    overflow-x: auto;
    gap: var(--space-lg);
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding-bottom: var(--space-md);
}

.products-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.products-slider .product-card {
    min-width: 200px;
    width: calc((100% - 3 * var(--space-lg)) / 4);
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Background shows only while the packshot is still loading; the image itself
   covers the frame like every other card. */
#new-arrivals-slider .product-card__image-wrapper,
#recently-viewed-slider .product-card__image-wrapper {
    background-color: #F4F8FB;
}


.products-slider--small .product-card {
    min-width: 180px;
    width: 14vw;
    max-width: 280px;
}

.products-slider--large .product-card {
    min-width: 320px;
    width: 30vw;
    max-width: 500px;
}

.product-card__info {
    padding: var(--space-lg);
}

.product-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.02em;
}

.product-card__description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.product-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent);
}

.product-card__original-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-left: var(--space-sm);
}

/* ========================================
   ETHOS / BRAND STORY
   ======================================== */
.ethos {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.ethos__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.ethos__text h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.ethos__text p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.ethos__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.ethos__feature {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    transition: all var(--transition-base);
}

.ethos__feature:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.ethos__feature-icon {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.ethos__feature h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.ethos__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.ethos__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    border: 1px solid var(--color-border-subtle);
    max-width: 700px;
    margin: 0 auto;
}

.newsletter h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.newsletter p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.newsletter__form {
    display: flex;
    gap: var(--space-md);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter__input {
    flex: 1;
    padding: 14px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    transition: border-color var(--transition-fast);
}

.newsletter__input:focus {
    border-color: var(--color-accent);
}

.newsletter__input::placeholder {
    color: var(--color-text-muted);
}

/* ========================================
   BOTTOM NAVIGATION BAR (MOBILE)
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.bottom-nav__item.active {
    color: var(--color-text-secondary);
}

.bottom-nav__item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.bottom-nav__label {
    font-size: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    .navbar__bottom {
        display: none;
    }
    
    .hero-multi-carousel .carousel-slide {
        flex: 0 0 calc(85% - 16px);
    }
    
    .hero-multi-carousel .carousel-btn {
        display: none;
    }
    
    .footer {
        padding-bottom: calc(var(--space-xl) + 60px);
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #FAFAFA;
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer__centered-brand {
    text-align: center;
    margin-bottom: var(--space-3xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__centered-brand .footer__brand-name {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer__centered-brand .footer__brand-desc {
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
    text-align: center;
}

.footer__brand-name {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.footer__brand-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    font-size: 18px;
}

.footer__social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-dim);
}

.footer__column h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.footer__column ul li {
    margin-bottom: var(--space-sm);
}

.footer__column ul li a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__column ul li a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer__bottom-links a {
    color: var(--color-text-muted);
}

.footer__bottom-links a:hover {
    color: var(--color-accent);
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
}

.breadcrumb {
    display: flex;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    align-items: center;
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb__separator {
    color: var(--color-text-muted);
}

.breadcrumb__current {
    color: var(--color-text-primary);
}
.product-detail-container {
    width: 100%;
    padding: 0 10% 0 11.5%;
    max-width: 100%;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.product-detail__gallery {
    /* position: sticky removed to allow scrolling of multiple large images */
}

@media (min-width: 769px) {
    .product-detail__gallery {
        width: 100%;
        max-width: min(680px, 72vh);
        justify-self: center;
    }
}

.product-detail__main-image {
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #F4F8FB;
    margin-bottom: var(--space-md);
}

/*
    Product photography is not shot to one ratio — the same gallery mixes portrait
    (~0.74–0.83), square and landscape (~1.18) frames. Fitting those inside a fixed
    frame with `contain` left wide bands of background on almost every shot, so the
    photo filled maybe two thirds of the space it was given.

    `cover` fills the frame at the photo's own ratio, so nothing is ever stretched;
    the cost is that the overflowing edge is cropped. The vertical anchor sits above
    centre because these are full-body shots: cropping evenly clipped the top of the
    model's head, which reads as a mistake, while taking more from the bottom just
    shortens the frame. Tapping CLOSER LOOK still shows every image uncropped at its
    natural ratio.
*/
.product-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    background-color: #F4F8FB;
    transition: transform var(--transition-slow);
}

.product-detail__mobile-image {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center 25%;
    scroll-snap-align: start;
    background-color: var(--color-surface);
}

/* Legacy inline gallery styles set their own fit; keep them in step with the above. */
.product-detail__mobile-gallery img {
    object-fit: cover !important;
    object-position: center 25%;
    background-color: #F4F8FB !important;
}

.product-detail__mobile-gallery,
.product-detail__mobile-gallery > div {
    background-color: #F4F8FB !important;
}

.product-detail__main-image:hover img {
    transform: scale(1.05);
}

.product-detail__thumbnails {
    display: flex;
    overflow-x: auto;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
}
.product-detail__thumbnails::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.product-detail__thumbnail {
    flex: 0 0 80px; /* Increased from 60px to 80px for a slightly larger thumbnail */
    scroll-snap-align: start;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    background: var(--color-surface);
}

.product-detail__thumbnail.active,
.product-detail__thumbnail:hover {
    border-color: var(--color-accent);
}

.product-detail__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__info {
    padding-top: var(--space-md);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
    max-width: 75%;
}

.product-detail {
    padding-top: calc(var(--nav-height, 80px) + 7rem);
}

.product-detail__name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.product-detail__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 40px;
}



.product-detail__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.product-detail__stars {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
}

.product-detail__review-count {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.product-detail__section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
}

.product-detail__label {
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: var(--space-md);
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    background: none;
    padding: 0;
}

.color-swatch__inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
}

.color-swatch.active,
.color-swatch:hover {
    border-color: var(--color-accent);
}

.color-swatch__name {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.color-swatch:hover .color-swatch__name {
    opacity: 1;
}

/* Size Selector */
.size-selector {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.size-btn {
    min-width: 58px;
    padding: 12px 18px;
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.size-btn:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.size-btn.active {
    border-color: var(--color-accent);
    background: var(--color-accent-dim);
    color: var(--color-accent);
}

/* The size row answering a buy press that arrived without a size. Focus is what scrolls the
   row into view, so its own outline is suppressed — the pulse is the signal, and a ring around
   the whole group on a page that has no other focus rings would read as a rendering fault. */
.size-selector:focus,
.size-selector:focus-visible {
    outline: none;
}

.size-selector.needs-size .size-btn:not(:disabled) {
    animation: hom-size-pulse 620ms ease-out 2;
}

@keyframes hom-size-pulse {
    0%, 100% {
        border-color: var(--color-border);
        box-shadow: none;
    }
    50% {
        border-color: var(--color-text-primary);
        box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
    }
}

/* Movement is the cue, so for anyone who has asked for less of it the cue becomes a held
   border instead of nothing at all. */
@media (prefers-reduced-motion: reduce) {
    .size-selector.needs-size .size-btn:not(:disabled) {
        animation: none;
        border-color: var(--color-text-primary);
    }
}

.oversize-note {
    margin-top: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Quantity */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: background var(--transition-fast);
    font-size: var(--text-lg);
}

.quantity-btn:hover {
    background: var(--color-bg-card-hover);
}

.quantity-value {
    width: 60px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-base);
    background: var(--color-bg-card);
}

/* Cart Buttons */
.product-detail__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* Tabs */
.tabs {
    border-top: 1px solid var(--color-border-subtle);
}

.tabs__header {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.tabs__btn {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.tabs__btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tabs__btn:hover,
.tabs__btn.active {
    color: var(--color-text-primary);
}

.tabs__btn.active::after {
    transform: scaleX(1);
}

.tabs__content {
    padding: var(--space-2xl) 0;
}

.tabs__panel {
    display: none;
}

.tabs__panel.active {
    display: block;
}

.tabs__panel p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.feature-list li .material-icons-outlined {
    color: var(--color-accent);
    font-size: 18px;
}

/* ========================================
   COLLECTION PAGE
   ======================================== */
.collection-page {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
}

.collection__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.collection__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
    height: fit-content;
    backdrop-filter: blur(20px);
}

.filter-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.filter-category {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-category__btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    text-align: left;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-category__btn:hover,
.filter-category__btn.active {
    color: var(--color-accent);
    background: var(--color-accent-dim);
}

.filter-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-size-btn {
    min-width: 44px;
    padding: 6px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-size-btn:hover,
.filter-size-btn.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-dim);
}

.filter-sort select {
    width: 100%;
    padding: 10px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
}

.filter-sort select:focus {
    border-color: var(--color-accent);
}

/* ========================================
   CART DRAWER
   ======================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--color-bg-elevated);
    border-left: 1px solid var(--color-border-subtle);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
}

.cart-drawer__title {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cart-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.cart-drawer__close:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-card-hover);
}

.cart-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.cart-item__image {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-surface);
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__details {
    flex: 1;
}

.cart-item__name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.cart-item__variant {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.cart-item__price {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
}

.cart-item__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.cart-item__remove {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.cart-item__remove:hover {
    color: var(--color-error);
}

.cart-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    text-align: center;
    gap: var(--space-lg);
}

.cart-drawer__empty .material-icons-outlined {
    font-size: 48px;
    color: var(--color-surface);
}

.cart-drawer__footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--color-border-subtle);
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    font-weight: 700;
}

.cart-drawer__total-price {
    color: var(--color-accent);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
    padding-top: var(--nav-height);
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    /* Square banner on phones, matching the home hero: 412x412 on a 412px-wide
       handset, and square on any other width because the height is tied to it.

       The extra nav-height is what makes the two pages agree. The home carousel
       sits below the fixed header, so all of its square shows; this section
       starts at the top of the page with the header laid over it, so without the
       allowance the top 80px of the photo is covered and the banner reads shorter
       than the home one. min-height has to go or it would stretch the short edge
       on narrower screens and break the ratio.

       80px rather than var(--nav-height): the variable drops to 64px on mobile
       further down this file while the bar still measures 80, so it would leave
       the photo short. This is the same literal the home hero section clears the
       header with, which is what keeps the two banners the same size. */
    .about-hero {
        height: calc(100vw + 80px);
        min-height: 0;
    }
}

.about-hero__bg {
    position: absolute;
    inset: 0;
}

.about-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.about-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: center;
    width: 100%;
}

.about-section {
    padding: var(--space-4xl) 0;
}

.about-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-section__text h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.about-section__text p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-section__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.value-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.value-card__icon {
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.value-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.value-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */
.checkout-page {
    padding: 1.5rem 0;
    margin-top: var(--nav-height, 80px);
    padding-bottom: var(--space-4xl);
    min-height: 100vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.checkout-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.checkout-header p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.checkout-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-payment {
    flex: 1;
}

.checkout-summary {
    width: 320px;
    position: sticky;
    top: 100px;
}

.checkout-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.checkout-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--color-text-primary);
}

.checkout-card__title .material-icons-outlined {
    color: var(--color-accent);
    font-size: 22px;
}

/* Order Items */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-subtle);
}

.checkout-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-item__image {
    width: 72px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-surface);
}

.checkout-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item__name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.checkout-item__variant {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.checkout-item__qty {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.checkout-item__price {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-accent);
    white-space: nowrap;
}

/* Totals */
.checkout-totals {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checkout-totals__row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.checkout-totals__free {
    color: var(--color-success);
    font-weight: 600;
}

.checkout-totals__row--total {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
}

.checkout-totals__row--total span:last-child {
    color: var(--color-accent);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    width: 100%;
}

.payment-method:hover {
    border-color: var(--color-border);
    background: var(--color-bg-card-hover);
}

.payment-method--selected {
    border-color: var(--color-accent);
    background: var(--color-accent-dim);
    box-shadow: 0 0 20px rgba(196, 162, 101, 0.1);
}

.payment-method--selected:hover {
    border-color: var(--color-accent);
}

.payment-method__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.payment-method--selected .payment-method__icon {
    background: var(--color-accent);
    color: var(--color-bg);
}

.payment-method__icon .material-icons-outlined {
    font-size: 24px;
}

.payment-method__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-method__name {
    font-weight: 600;
    font-size: var(--text-base);
}

.payment-method__desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.payment-method__check {
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
    color: var(--color-accent);
}

.payment-method--selected .payment-method__check {
    opacity: 1;
    transform: scale(1);
}

.payment-method__check .material-icons-outlined {
    font-size: 24px;
}

/* Pay Button */
.checkout-pay-btn {
    padding: 18px 36px;
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

.checkout-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.checkout-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
}

.checkout-secure .material-icons-outlined {
    font-size: 14px;
    color: var(--color-success);
}

/* Error */
.checkout-error {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.checkout-error .material-icons-outlined {
    font-size: 18px;
    flex-shrink: 0;
}

/* Empty Checkout */
.checkout-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    min-height: 50vh;
    text-align: center;
    color: var(--color-text-muted);
}

.checkout-empty .material-icons-outlined {
    font-size: 64px;
    color: var(--color-surface);
}

.checkout-empty h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.checkout-empty p {
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-header h1 {
        font-size: var(--text-2xl);
    }

    .payment-method {
        padding: var(--space-md) var(--space-lg);
    }

    .checkout-card {
        padding: var(--space-xl);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* ========== CAROUSEL INDICATORS ========== */
.carousel-indicators {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D3D3D3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 30px;
    border-radius: 5px;
    background-color: #000000;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .products-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-container {
        width: 100%;
        padding: 0 12%;
        max-width: 100%;
    }
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .product-detail__info {
        max-width: 100% !important;
    }

    .product-detail__gallery {
        position: static;
    }

    .collection__layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .ethos__grid {
        grid-template-columns: 1fr;
    }

    .about-section__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .hero {
        min-height: 500px;
    }

    /* Hide hero carousel indicator dots on mobile — they overlap the slide text */
    .carousel-indicators {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid--4,
    .products-grid--3,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .ethos__features {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .product-detail__actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .products-grid--4,
    .products-grid--3,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: var(--text-3xl);
    }
}

/* === Editorial Section specific overrides === */
.editorial-header-wrapper {
    position: relative;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.editorial-header-wrapper .section__title {
    margin-bottom: 0;
}
.editorial-view-all {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem; /* Decrease text size slightly */
    font-weight: 700;
    color: #888888; /* Changed to gray to look like a shadow */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s;
    letter-spacing: normal;
    /* Remove absolute positioning so it aligns right naturally via flex */
}

.editorial-view-all:hover {
    color: #111111; /* Turn black on hover */
}

@media (max-width: 768px) {
    .editorial-view-all {
        font-size: 1.1rem !important;
        transform: translateY(20px);
    }
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.color-swatch-btn {
    width: 90px;
    height: 105px;
}
.size-swatch-btn {
    min-width: 36px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}
.product-detail__actions-grid {
    display: grid;
    grid-template-columns: 1fr 48px 48px;
    gap: 16px 8px;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 24px;
    width: 100%;
}

.home-section-container {
    width: 100%;
    padding: 0 12%;
    max-width: 100%;
}

.wishlist-empty-msg {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .home-section-container {
        padding: 0 16px !important;
    }
    
    .products-slider {
        gap: 1rem !important;
    }
    
    .products-slider .product-card {
        min-width: unset !important;
        width: calc(50% - 0.5rem) !important;
    }
    
    .home-section-container .product-card__name,
    .home-section-container .product-card__price {
        font-size: 0.85rem !important;
    }
    
    .home-section-container .product-card__description {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .home-section-container .product-card__original-price {
        font-size: 11px !important;
    }
    .wishlist-empty-msg {
        font-size: 0.85rem !important;
    }
    .product-detail__grid {
        gap: var(--space-md) !important;
    }
    .product-detail {
        padding-top: var(--nav-height, 80px) !important;
    }
    .product-detail-container {
        padding: 0 !important;
    }
    .product-detail__info {
        padding: 0 5% !important;
    }
    .product-detail__name {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
    }
    .product-detail__price {
        font-size: 0.95rem !important;
        margin-bottom: 24px !important;
    }
    .product-color-section {
        margin-top: -12px !important;
        margin-bottom: 12px !important;
    }
    .size-label {
        font-size: 0.8rem !important;
    }
    .selected-item-name,
    .selected-item-size,
    .selected-item-quantity button,
    .selected-item-quantity span,
    .selected-item-price,
    .checkout-total-label,
    .checkout-total-price,
    .checkout-total-items,
    .checkout-btn-buy {
        font-size: 0.85rem !important;
    }
    .color-swatch-btn {
        width: 65px !important;
        height: 75px !important;
    }
    .size-swatch-btn {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    .product-detail__actions-grid {
        grid-template-columns: 1fr 48px 48px !important;
        max-width: 100% !important;
    }
    .section__title-line {
        font-size: 1.5rem !important;
    }
    .section {
        margin-top: 40px !important; 
        margin-bottom: 20px !important;
    }
    .section:first-of-type {
        margin-top: 0 !important; /* Prevent gap above hero section */
    }
    
    /* Make editorial grid behave like products-slider on mobile */
    .editorial-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--space-lg);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: var(--space-md);
    }
    .editorial-grid::-webkit-scrollbar {
        display: none;
    }
    .editorial-grid .product-card {
        min-width: unset !important;
        width: 85% !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    /* Resize wishlist button on mobile */
    .product-card__wishlist {
        width: 32px !important;
        height: 32px !important;
        bottom: 6px !important;
        right: 6px !important;
    }
    .product-card__wishlist img {
        width: 18px !important;
        height: 18px !important;
    }
    
    
    .review-th {
        font-size: 1.1rem !important;
    }
    .review-empty-msg {
        font-size: 0.85rem !important;
    }
    .reviews-container {
        padding: 0 5% !important;
    }
    .reviews-inner {
        width: 100% !important;
    }
    .product-reviews-section {
        width: 100% !important;
        padding: 0 5% !important;
    }
    .product-reviews-section .section__header {
        text-align: left !important;
    }
    .product-reviews-section .section__title-line {
        font-size: 1.5rem !important;
    }
    .product-reviews-section .reviews-table-container {
        display: none !important;
    }
    .product-reviews-section.show-reviews .reviews-table-container {
        display: block !important;
    }
}

/* Move sections up slightly on Desktop */
@media (min-width: 769px) {
    .section {
        margin-top: var(--space-xl); /* Reduced further */
        margin-bottom: var(--space-xl);
    }
}

/* Visibility Utilities */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Collection and Editorial Shared Layout */
.collection-inner {
    padding: 0 12%;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.collection-grid .product-card__image-wrapper {
    background-color: #F4F8FB;
}

@media (max-width: 768px) {
    .collection-inner {
        padding: 0 5% !important;
    }
    
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .editorial-page-container .product-card__name,
    .editorial-page-container .product-card__price {
        font-size: 0.85rem !important;
    }
    
    .editorial-page-container .product-card__description {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .editorial-page-container .product-card__original-price {
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .mobile-home-lang .language-selector {
        font-size: 1.05rem !important;
        font-weight: 400 !important;
    }
}
