/* ─── Base Styles ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; }

/* ─── Glass Buttons ─── */
.glass-button {
    position: relative; overflow: hidden; border-radius: 0.5rem;
    padding: 1rem 2rem; font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600; font-size: 0.875rem; text-transform: uppercase;
    letter-spacing: 0.2em; text-decoration: none; display: inline-block;
    background: linear-gradient(135deg, hsla(38,45%,60%,0.9), hsla(38,50%,45%,0.95));
    color: hsl(0,0%,100%); backdrop-filter: blur(10px);
    border: 1px solid hsla(38,40%,75%,0.3);
    box-shadow: 0 8px 32px hsla(38,45%,60%,0.25), inset 0 1px 0 hsla(0,0%,100%,0.2);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
}
.glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px hsla(38,45%,60%,0.35), inset 0 1px 0 hsla(0,0%,100%,0.3);
}

.glass-button-outline {
    position: relative; overflow: hidden; border-radius: 0.5rem;
    padding: 1rem 2rem; font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600; font-size: 0.875rem; text-transform: uppercase;
    letter-spacing: 0.2em; text-decoration: none; display: inline-block;
    background: hsla(0,0%,100%,0.08); color: hsl(0,0%,100%);
    backdrop-filter: blur(10px); border: 1px solid hsla(0,0%,100%,0.25);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
}
.glass-button-outline:hover {
    background: hsla(0,0%,100%,0.15);
    border-color: hsla(0,0%,100%,0.4);
    transform: translateY(-2px);
}

/* ─── Category Cards ─── */
.category-card {
    position: relative; overflow: hidden; border-radius: 0.75rem; cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}
.category-card .card-bg { transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.category-card:hover .card-bg { transform: scale(1.08); filter: brightness(0.5); }
.category-card .card-content { transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.category-card:hover .card-content { transform: translateY(-8px); }

/* ─── Section Reveal Animations ─── */
.section-reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
}
.section-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ─── Hero Slider ─── */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1), transform 1.2s cubic-bezier(0.4,0,0.2,1); transform: scale(1.05); z-index: 0; }
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
/* Grid stack: all hero-content items share the same cell */
.hero-content-stack { display: grid; }
.hero-content-stack > .hero-content { grid-area: 1 / 1; }
.hero-content { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.7s cubic-bezier(0.4,0,0.2,1); pointer-events: none; }
.hero-content.active { opacity: 1; transform: translateY(0); filter: blur(0px); pointer-events: auto; }

/* ─── Parallax Hero ─── */
.parallax-hero-img { transition: transform 0.1s linear; will-change: transform; }

/* ─── Scrollbar ─── */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Mega Menu ─── */
.mega-trigger:hover .mega-menu,
.mega-menu:hover { display: block !important; opacity: 1 !important; }
.mega-trigger:hover .chevron-icon { transform: rotate(180deg); }

/* Mobile navigation */
.mobile-nav-toggle {
    -webkit-tap-highlight-color: transparent;
}

html.mobile-menu-open .mobile-nav-toggle {
    border-color: rgba(201,169,110,0.45);
    background: rgba(201,169,110,0.16);
    color: white;
}

.mobile-menu-panel {
    --mobile-nav-height: 64px;
}

@media (max-width: 1023px) {
    .mobile-menu-panel {
        position: fixed;
        inset: var(--mobile-nav-height) 0 0 0;
        z-index: 55;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - var(--mobile-nav-height));
        height: calc(100dvh - var(--mobile-nav-height));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.035), transparent 150px),
            hsl(0,0%,17%);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .mobile-menu-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-menu-inner {
        min-height: 100%;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .mobile-menu-inner > a,
    .mobile-menu-inner > button,
    .mobile-submenu > button {
        width: 100%;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 0.95rem;
        background: rgba(255,255,255,0.035);
        padding: 0.95rem 1rem;
        color: rgba(255,255,255,0.82);
        line-height: 1.25;
    }

    .mobile-menu-inner > a:hover,
    .mobile-menu-inner > button:hover,
    .mobile-submenu > button:hover {
        border-color: rgba(201,169,110,0.35);
        background: rgba(201,169,110,0.10);
        color: hsl(38,45%,70%);
    }

    .mobile-submenu {
        display: grid;
        gap: 0.45rem;
    }

    .mobile-menu-panel .submenu-content {
        margin: 0.15rem 0 0.35rem 0.6rem;
        padding-left: 0.85rem !important;
    }

    .mobile-menu-panel .submenu-content a {
        border-radius: 0.85rem;
        padding: 0.72rem 0.85rem !important;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-menu-panel .submenu-content a:hover {
        background: rgba(255,255,255,0.045);
    }

    .mobile-language-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .mobile-language-grid .lang-option-mobile {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.035);
    }

    .mobile-language-grid .lang-option-mobile span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    #hero-section .hero-arrow {
        top: auto !important;
        bottom: 7.25rem !important;
        transform: none !important;
    }

    #hero-section .hero-arrow--prev {
        left: 1.5rem !important;
    }

    #hero-section .hero-arrow--next {
        right: 1.5rem !important;
    }
}

/* Floating social links and cookies */
.floating-socials {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 48;
    display: grid;
    gap: 0.45rem;
    transform: translateY(-50%);
}

.floating-socials__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-left: 0;
    border-radius: 0 0.8rem 0.8rem 0;
    background: rgba(31,32,35,0.88);
    color: white;
    padding: 0 0.85rem;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    backdrop-filter: blur(14px);
    transition: width 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.floating-socials__link:hover,
.floating-socials__link:focus-visible {
    width: 10.5rem;
    border-color: rgba(201,169,110,0.45);
    background: rgba(31,32,35,0.96);
    color: hsl(38,45%,68%);
}

.floating-socials__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
}

.floating-socials__link span {
    min-width: 7rem;
    color: currentColor;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0;
    text-transform: uppercase;
    transform: translateX(-0.35rem);
    transition: opacity 0.18s ease, transform 0.24s ease, visibility 0.18s ease;
    visibility: hidden;
    white-space: nowrap;
}

.floating-socials__link:hover span,
.floating-socials__link:focus-visible span {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.cookie-trigger {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 65;
    display: inline-flex;
    width: 3.1rem;
    height: 3.1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201,169,110,0.42);
    border-radius: 999px;
    background: rgba(31,32,35,0.92);
    color: hsl(38,45%,68%);
    box-shadow: 0 18px 46px rgba(0,0,0,0.25);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease;
}

.cookie-trigger:hover {
    transform: translateY(-2px);
    background: hsl(0,0%,18%);
}

.cookie-trigger__icon {
    width: 1.45rem;
    height: 1.45rem;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(10,10,10,0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent__panel {
    width: min(100%, 760px);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    border: 1px solid rgba(31,32,35,0.12);
    border-radius: 1.1rem;
    background: white;
    color: hsl(0,0%,18%);
    padding: 1.15rem;
    box-shadow: 0 28px 80px rgba(0,0,0,0.28);
    transform: translateY(0.8rem);
    transition: transform 0.22s ease;
}

.cookie-consent.is-visible .cookie-consent__panel {
    transform: translateY(0);
}

.cookie-consent__intro {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-consent__badge {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: rgba(201,169,110,0.14);
    color: hsl(38,45%,45%);
}

.cookie-consent h2 {
    color: hsl(0,0%,18%);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.cookie-consent p {
    margin-top: 0.35rem;
    color: hsl(0,0%,42%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-consent__settings {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid hsl(40,10%,90%);
    border-radius: 0.85rem;
    padding: 0.85rem;
}

.cookie-consent__category strong,
.cookie-consent__category small {
    display: block;
}

.cookie-consent__category strong {
    color: hsl(0,0%,18%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.88rem;
}

.cookie-consent__category small {
    margin-top: 0.2rem;
    color: hsl(0,0%,45%);
    font-size: 0.78rem;
    line-height: 1.45;
}

.cookie-consent__category input {
    width: 2.75rem;
    height: 1.45rem;
    flex: 0 0 auto;
    accent-color: hsl(38,45%,55%);
}

.cookie-consent__always {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(201,169,110,0.12);
    color: hsl(38,45%,42%);
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.cookie-consent__details {
    border: 1px solid hsl(40,10%,90%);
    border-radius: 0.85rem;
    padding: 0.85rem;
}

.cookie-consent__details summary {
    cursor: pointer;
    color: hsl(38,45%,42%);
    font-weight: 800;
}

.cookie-consent__table {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.cookie-consent__table article {
    border-top: 1px solid hsl(40,10%,92%);
    padding-top: 0.65rem;
}

.cookie-consent__table strong,
.cookie-consent__table span,
.cookie-consent__table small {
    display: block;
}

.cookie-consent__table span,
.cookie-consent__table small {
    color: hsl(0,0%,48%);
    font-size: 0.78rem;
}

.cookie-consent__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cookie-consent__btn {
    min-height: 2.65rem;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-consent__btn--ghost {
    border: 1px solid hsl(40,10%,88%);
    background: white;
    color: hsl(0,0%,26%);
}

.cookie-consent__btn--primary {
    border: 1px solid hsl(38,45%,55%);
    background: hsl(38,45%,55%);
    color: white;
}

.cookie-blocked-content {
    display: grid;
    min-height: 320px;
    place-items: center;
    gap: 0.8rem;
    padding: 2rem;
    background: linear-gradient(145deg, hsl(40,30%,97%), hsl(40,15%,91%));
    color: hsl(0,0%,26%);
    text-align: center;
}

.cookie-blocked-content__icon {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(201,169,110,0.16);
    color: hsl(38,45%,45%);
}

.cookie-blocked-content button {
    border: 1px solid hsl(38,45%,55%);
    border-radius: 0.75rem;
    background: hsl(38,45%,55%);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 767px) {
    .floating-socials {
        display: none;
    }

    .cookie-consent {
        padding: 0.75rem;
    }

    .cookie-consent__intro {
        gap: 0.75rem;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}

/* ─── Accessibility ─── */
.dyslexic-font * { font-family: 'Lexend', sans-serif !important; letter-spacing: 0.05em; word-spacing: 0.1em; line-height: 1.8 !important; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
.underline-links a { text-decoration: underline !important; text-underline-offset: 3px; }
.grayscale-mode { filter: grayscale(1); }
.big-cursor, .big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l28 20H20l-4 16z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important; }

/* ─── Toast Notification ─── */
.toast-notification {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
    background: hsl(0,0%,18%); color: hsl(0,0%,98%); padding: 1rem 1.5rem;
    border-radius: 0.75rem; font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.875rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid hsla(38,45%,60%,0.3);
    transform: translateY(120%); opacity: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.toast-notification.show { transform: translateY(0); opacity: 1; }

/* ─── Product Card Hover Line ─── */
.product-card-line { width: 2.5rem; transition: width 0.5s ease; }
.group:hover .product-card-line { width: 3.5rem; }

.category-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-pagination__button {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    border: 1px solid hsl(40,10%,86%);
    border-radius: 0.75rem;
    background: #fff;
    color: hsl(0,0%,18%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-pagination__button:hover:not(:disabled):not(.is-active) {
    border-color: hsl(38,45%,60%);
    color: hsl(38,45%,45%);
    transform: translateY(-1px);
}

.category-pagination__button.is-active {
    border-color: hsl(38,45%,60%);
    background: hsl(38,45%,60%);
    color: #fff;
}

.category-pagination__button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.category-pagination__ellipsis {
    display: inline-flex;
    min-width: 1.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: hsl(0,0%,55%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.category-product-item .text-primary-foreground\/40.line-through {
    color: hsl(0,0%,48%) !important;
}

/* Fitting room */
.fitting-item.is-selected > span {
    border-color: hsl(38,45%,60%);
    box-shadow: 0 18px 44px rgba(201,169,110,0.24);
}
.fitting-hero {
    min-height: 500px;
}

.fitting-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.55), transparent);
}

.fitting-hero__lead-space {
    height: 5.6rem;
}

.fitting-form {
    position: relative;
    overflow: hidden;
}

.fitting-selection-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    border: 1px solid hsl(40,10%,90%);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, hsla(38,45%,60%,0.08), transparent 42%),
        hsl(40,30%,98%);
    padding: 1.25rem;
}

.fitting-chooser.is-complete [data-fitting-categories],
.fitting-chooser.is-complete [data-fitting-grid],
.fitting-chooser.is-complete [data-fitting-pagination] {
    display: none !important;
}

.fitting-details {
    scroll-margin-top: 6rem;
}

.fitting-consent {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid hsl(40,10%,88%);
    border-radius: 0.8rem;
    background: hsl(0,0%,100%);
    padding: 0.72rem 0.85rem;
}

.fitting-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: hsl(0,0%,30%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fitting-progress__header strong {
    color: hsl(38,45%,48%);
    font-size: 0.9rem;
}

.fitting-progress__track {
    height: 0.7rem;
    margin-top: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: hsl(40,18%,91%);
}

.fitting-progress__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: hsl(38,45%,60%);
    transition: width 0.35s linear;
}

.fitting-result {
    border: 1px solid hsl(7,70%,82%);
    border-radius: 0.8rem;
    background: hsl(7,70%,97%);
    padding: 0.85rem 1rem;
    color: hsl(7,55%,38%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.86rem;
    line-height: 1.55;
}

.fitting-output {
    display: flex;
    min-height: min(72vh, 760px);
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.fitting-output img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    max-height: 74vh;
    border-radius: 1.25rem;
    object-fit: contain;
}

.fitting-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    overflow: visible;
}

.fitting-category-btn {
    max-width: 100%;
    min-height: 2.7rem;
    border: 1px solid hsl(40,10%,90%);
    border-radius: 0.75rem;
    background: hsl(0,0%,100%);
    color: hsl(0,0%,45%);
    padding: 0.75rem 1rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.fitting-category-btn:hover,
.fitting-category-btn.is-active {
    border-color: hsl(38,45%,60%);
    background: hsl(38,45%,60%);
    color: white;
}

.fitting-product-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid hsl(40,10%,90%);
    border-radius: 1rem;
    background: hsl(0,0%,100%);
    box-shadow: 0 14px 34px rgba(31,32,35,0.07);
    transition: all 0.3s ease;
}

.fitting-item:hover .fitting-product-card {
    transform: translateY(-3px);
    border-color: hsla(38,45%,60%,0.55);
    box-shadow: 0 20px 46px rgba(31,32,35,0.12);
}

.fitting-item.is-selected .fitting-product-card {
    border-color: hsl(38,45%,60%);
    box-shadow: 0 22px 54px rgba(201,169,110,0.24);
}

.fitting-product-card__media {
    position: relative;
    display: flex;
    aspect-ratio: 4 / 5;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    background:
        radial-gradient(circle at 50% 32%, rgba(255,255,255,0.95), rgba(255,255,255,0.35) 38%, transparent 62%),
        linear-gradient(145deg, hsl(40,30%,97%), hsl(40,10%,92%));
}

.fitting-product-card__media::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 1.1rem;
    height: 22px;
    border-radius: 50%;
    background: rgba(31,32,35,0.10);
    filter: blur(12px);
}

.fitting-product-card__media img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 24px 24px rgba(31,32,35,0.16));
}

.fitting-product-card__body {
    display: block;
    min-height: 5.2rem;
    padding: 1rem;
}

.fitting-page-btn {
    border: 1px solid hsl(40,10%,90%);
    border-radius: 0.75rem;
    background: hsl(0,0%,100%);
    color: hsl(0,0%,18%);
    padding: 0.72rem 1rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.fitting-page-btn:hover:not(:disabled) {
    border-color: hsl(38,45%,60%);
    color: hsl(38,45%,45%);
}

.fitting-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fitting-empty {
    margin-top: 1rem;
    border: 1px dashed hsl(40,10%,85%);
    border-radius: 0.9rem;
    background: hsl(40,30%,97%);
    padding: 1rem;
    color: hsl(0,0%,45%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fitting-selected-list {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.fitting-selected-empty {
    border: 1px dashed hsl(40,10%,86%);
    border-radius: 0.9rem;
    background: hsl(40,30%,97%);
    padding: 0.95rem 1rem;
    color: hsl(0,0%,45%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
}

.fitting-selected-pill {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr) 34px;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid hsl(40,10%,90%);
    border-radius: 0.95rem;
    background: hsl(0,0%,100%);
    padding: 0.55rem;
}

.fitting-selected-pill img {
    width: 54px;
    height: 54px;
    border-radius: 0.75rem;
    background: hsl(40,30%,96%);
    object-fit: contain;
}

.fitting-selected-pill span {
    min-width: 0;
}

.fitting-selected-pill small,
.fitting-selected-pill strong {
    display: block;
    font-family: 'Manrope', system-ui, sans-serif;
}

.fitting-selected-pill small {
    color: hsl(38,45%,48%);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fitting-selected-pill strong {
    margin-top: 0.18rem;
    overflow: hidden;
    color: hsl(0,0%,18%);
    font-size: 0.86rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fitting-selected-pill button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(40,10%,88%);
    border-radius: 999px;
    background: hsl(0,0%,100%);
    color: hsl(0,0%,35%);
    font-size: 1.15rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.fitting-selected-pill button:hover {
    border-color: hsl(7,85%,54%);
    color: hsl(7,85%,54%);
}

.fitting-model-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.fitting-model-choice label {
    position: relative;
    cursor: pointer;
}

.fitting-model-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fitting-model-choice span {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(40,10%,88%);
    border-radius: 0.9rem;
    background: hsl(0,0%,100%);
    color: hsl(0,0%,30%);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.fitting-model-choice input:checked + span {
    border-color: hsl(38,45%,60%);
    background: hsl(38,45%,60%);
    color: white;
    box-shadow: 0 16px 28px rgba(201,169,110,0.22);
}

@media (max-width: 640px) {
    .fitting-hero {
        min-height: 430px;
    }

    .fitting-hero__inner {
        min-height: 360px !important;
        align-items: flex-end !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 3rem !important;
    }

    .fitting-hero__breadcrumbs {
        display: none !important;
    }

    .fitting-hero__kicker {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.66rem !important;
        letter-spacing: 0.18em !important;
    }

    .fitting-hero__title {
        max-width: 20rem !important;
        margin-top: 1rem !important;
        font-size: clamp(2.55rem, 13vw, 3.65rem) !important;
        line-height: 0.98 !important;
    }

    .fitting-hero__lead-space {
        height: 3.8rem !important;
    }

    .fitting-page [data-fitting-room] {
        margin-top: -1.35rem !important;
        padding-bottom: 4rem !important;
    }

    .fitting-page [data-fitting-room] > .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .fitting-chooser {
        border-radius: 1rem !important;
        box-shadow: 0 14px 34px rgba(31,32,35,0.08) !important;
    }

    .fitting-chooser h2,
    .fitting-selection-summary h2,
    .fitting-details h2 {
        font-size: 1.7rem !important;
        line-height: 1.08 !important;
    }

    .fitting-selection-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .fitting-selected-list {
        grid-template-columns: 1fr;
    }

    .fitting-chooser p {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
    }

    .fitting-category-list {
        flex-wrap: nowrap;
        margin-right: -1rem;
        padding-right: 1rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .fitting-category-list::-webkit-scrollbar {
        display: none;
    }

    .fitting-category-btn {
        flex: 0 0 auto;
        max-width: 74vw;
        min-height: 2.25rem;
        padding: 0.58rem 0.72rem;
        border-radius: 0.62rem;
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .fitting-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }

    .fitting-item {
        min-width: 0;
    }

    .fitting-product-card {
        border-radius: 0.82rem;
        box-shadow: 0 10px 24px rgba(31,32,35,0.06);
    }

    .fitting-item:hover .fitting-product-card {
        transform: none;
    }

    .fitting-product-card__media {
        aspect-ratio: 1 / 1;
        padding: 0.45rem;
    }

    .fitting-product-card__media::after {
        left: 24%;
        right: 24%;
        bottom: 0.45rem;
        height: 14px;
        filter: blur(8px);
    }

    .fitting-product-card__media img {
        filter: drop-shadow(0 12px 14px rgba(31,32,35,0.14));
    }

    .fitting-product-card__body {
        min-height: 4.15rem;
        padding: 0.68rem;
    }

    .fitting-product-card__body span:first-child {
        display: none;
    }

    .fitting-product-card__body span:last-child {
        margin-top: 0 !important;
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        word-break: break-word;
    }

    .fitting-page-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 0.85rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .fitting-output {
        min-height: 0;
        padding: 0.65rem;
    }

    .fitting-output img {
        max-width: 100%;
        max-height: 72vh;
        border-radius: 1rem;
    }
}

/* ─── Bounce Arrow ─── */
@keyframes bounceArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.bounce-arrow { animation: bounceArrow 2s ease-in-out infinite; }

/* ─── Spin Animation ─── */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ─── Fade Animations ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 0.7s ease-out forwards; }

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1.0s; }
.delay-1100 { animation-delay: 1.1s; }
.delay-1200 { animation-delay: 1.2s; }
.delay-1500 { animation-delay: 1.5s; }

/* Initially hidden for scroll reveal */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.scroll-reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.scroll-reveal-left.visible { opacity: 1; transform: translateX(0); }
.scroll-reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.scroll-reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Rich text blocks */
.grapil-rich-text { line-height: 1.85; }
.grapil-rich-text > * + * { margin-top: 1rem; }
.grapil-rich-text h1,
.grapil-rich-text h2,
.grapil-rich-text h3,
.grapil-rich-text h4 {
    color: hsl(0,0%,15%);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    margin-top: 1.5rem;
}
.grapil-rich-text h1 { font-size: 1.9rem; }
.grapil-rich-text h2 { font-size: 1.55rem; }
.grapil-rich-text h3 { font-size: 1.25rem; }
.grapil-rich-text ul,
.grapil-rich-text ol {
    margin: 1rem 0 1rem 1.25rem;
    display: grid;
    gap: 0.45rem;
}
.grapil-rich-text a {
    color: hsl(38,45%,45%);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.grapil-rich-text figure {
    margin: 1.5rem 0;
}
.grapil-rich-text img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1.1rem;
    border: 1px solid rgba(31,32,35,0.08);
    background: rgba(255,255,255,0.7);
}
.grapil-rich-text figcaption {
    margin-top: 0.55rem;
    color: hsl(0,0%,45%);
    font-size: 0.9rem;
}
.grapil-rich-text blockquote {
    padding: 1rem 1.1rem;
    border-left: 3px solid hsl(38,45%,55%);
    background: rgba(201,169,110,0.08);
    border-radius: 0.85rem;
}
.grapil-rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(31,32,35,0.12);
    border-radius: 0.75rem;
    overflow: hidden;
}
.grapil-rich-text th,
.grapil-rich-text td {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(31,32,35,0.08);
    vertical-align: top;
}
.grapil-rich-text th {
    background: rgba(31,32,35,0.05);
    font-weight: 700;
}

@media (max-width: 768px) {
    .grapil-rich-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
