/* ==========================================================================
   WHITE-LABEL KINETIC 3D SHOWCASE & EDITORIAL JOURNEY - STYLESHEET
   ========================================================================== */

:root {
    /* Color Schemes - Default Theme (Emerald Essence) */
    --bg-inner: #0b8a78;
    --bg-mid: #044e3b;
    --bg-outer: #011411;
    --accent-color: #fbcfe8;
    --accent-dark: #011d17;
    --accent-glow: rgba(251, 207, 232, 0.45);
    --disc-glow: rgba(16, 185, 129, 0.35);

    /* Neutral Luxury Palette */
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-dim: rgba(255, 255, 255, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-bg-hover: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.16);
    --card-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);

    /* Typography - Default Preset 4: Editorial Modern (Syne + Prompt) */
    --font-heading: 'Syne', 'Prompt', sans-serif;
    --font-display: 'Syne', 'Prompt', sans-serif;
    --font-main: 'Inter', 'Prompt', sans-serif;
    --font-ui: 'Manrope', 'Prompt', sans-serif;

    /* Viewport Spacing */
    --edge-pad: clamp(1.5rem, 5vw, 5rem);
    --header-height: 80px;
}

/* Theme 2: Cobalt Mist */
body.theme-cobalt {
    --bg-inner: #0b4f8a;
    --bg-mid: #04294e;
    --bg-outer: #010c14;
    --accent-color: #38bdf8;
    --accent-dark: #021526;
    --accent-glow: rgba(56, 189, 248, 0.45);
    --disc-glow: rgba(56, 189, 248, 0.35);
}

/* Theme 3: Crimson Solstice */
body.theme-crimson {
    --bg-inner: #b91c1c;
    --bg-mid: #7f1d1d;
    --bg-outer: #1c0a06;
    --accent-color: #fbbf24;
    --accent-dark: #2a0b06;
    --accent-glow: rgba(251, 191, 36, 0.45);
    --disc-glow: rgba(249, 115, 22, 0.35);
}

/* Theme 4: Imperial Amethyst */
body.theme-amethyst {
    --bg-inner: #6b21a8;
    --bg-mid: #3b0764;
    --bg-outer: #140524;
    --accent-color: #c084fc;
    --accent-dark: #1f0834;
    --accent-glow: rgba(192, 132, 252, 0.45);
    --disc-glow: rgba(168, 85, 247, 0.35);
}

/* Theme 5: Obsidian Aurum */
body.theme-obsidian {
    --bg-inner: #3f3f46;
    --bg-mid: #18181b;
    --bg-outer: #09090b;
    --accent-color: #fef08a;
    --accent-dark: #18181b;
    --accent-glow: rgba(254, 240, 138, 0.45);
    --disc-glow: rgba(202, 138, 4, 0.35);
}

/* ==========================================================================
   DYNAMIC TYPOGRAPHY PRESETS
   ========================================================================== */
/* Preset 4: Editorial Modern (Kinfolk / Monocle) - DEFAULT */
body,
body.font-editorial-sans {
    --font-heading: 'Syne', 'Prompt', sans-serif;
    --font-display: 'Syne', 'Prompt', sans-serif;
    --font-main: 'Inter', 'Prompt', sans-serif;
    --font-ui: 'Manrope', 'Prompt', sans-serif;
}

/* Preset 1: Tech-Minimal (Apple / Modern Craft) */
body.font-tech-minimal {
    --font-heading: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
    --font-display: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
    --font-main: 'Inter', 'IBM Plex Sans Thai', sans-serif;
    --font-ui: 'Manrope', 'IBM Plex Sans Thai', sans-serif;
}

/* Preset 2: Haute Parfumerie (Vogue / High-Fashion Luxury) */
body.font-haute-serif {
    --font-heading: 'Playfair Display', 'Pridi', serif;
    --font-display: 'Playfair Display', 'Pridi', serif;
    --font-main: 'Cormorant Garamond', 'Pridi', serif;
    --font-ui: 'Inter', 'Pridi', sans-serif;
}
body.font-haute-serif .main-title {
    font-style: italic;
    font-weight: 600;
    line-height: 0.95;
}

/* Preset 3: Architectural Luxe (Bvlgari / High Jewellery) */
body.font-monumental {
    --font-heading: 'Cinzel', 'Bai Jamjuree', serif;
    --font-display: 'Cinzel', 'Bai Jamjuree', sans-serif;
    --font-main: 'Inter', 'Bai Jamjuree', sans-serif;
    --font-ui: 'Manrope', 'Bai Jamjuree', sans-serif;
}
body.font-monumental .main-title {
    letter-spacing: 0.04em;
    font-size: clamp(3.5rem, 7vw, 7.5rem);
}

/* Preset 4: Editorial Modern (Kinfolk / Monocle) */
body.font-editorial-sans {
    --font-heading: 'Syne', 'Prompt', sans-serif;
    --font-display: 'Syne', 'Prompt', sans-serif;
    --font-main: 'Inter', 'Prompt', sans-serif;
    --font-ui: 'Manrope', 'Prompt', sans-serif;
}

/* Preset 5: Vintage Cursive (Original Sign-Painter Style) */
body.font-vintage-cursive {
    --font-heading: 'Galada', cursive;
    --font-display: 'Outfit', 'Noto Sans Thai', sans-serif;
    --font-main: 'Inter', 'Noto Sans Thai', sans-serif;
    --font-ui: 'Manrope', 'Noto Sans Thai', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background: #011411;
    color: var(--text-primary);
    font-family: var(--font-main);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    background: radial-gradient(circle at 50% 45%, var(--bg-inner) 0%, var(--bg-mid) 50%, var(--bg-outer) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Language Switcher display rule */
body[data-lang="th"] [data-en] {
    display: inherit;
}

/* ==========================================================================
   1. AMBIENT BUBBLES
   ========================================================================== */
#bubbles-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble-img {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@keyframes floatUpImg {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    15% { opacity: 0.45; }
    85% { opacity: 0.45; }
    100% {
        transform: translateY(-115vh) translateX(35px) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--edge-pad);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.logo svg {
    color: var(--accent-color);
    transition: color 0.5s ease;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.showcase-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
}

.nav {
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 100px;
}

.nav.glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    font-family: var(--font-ui);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item:hover,
.nav-item.active {
    background: var(--accent-color);
    color: var(--accent-dark);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.35);
}

.lang-toggle-btn .active-lang {
    color: var(--accent-color);
}

.contact-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.65rem 1.45rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* Scroll Tracker Line */
.scroll-tracker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 101;
}

.scroll-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, var(--accent-color));
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.1s linear;
}

/* ==========================================================================
   3. PERSISTENT FIXED 3D STAGE & CAN FLOATING
   ========================================================================== */
.fixed-3d-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Background & Foreground Floating Particles */
.leaves-container,
.berries-container-bg,
.berries-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaves-container {
    z-index: 2;
    transition: transform 0.15s ease-out;
}

.berries-container-bg {
    z-index: 3;
    transition: transform 0.15s ease-out;
}

.berries-container {
    z-index: 10;
    transition: transform 0.15s ease-out;
}

.leaf {
    position: absolute;
    width: 70px;
    height: 70px;
    pointer-events: none;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.l1 { top: 12%; left: 14%; }
.l2 { top: 44%; left: 82%; width: 130px; height: 130px; opacity: 0.4; }
.l3 { top: 72%; left: 74%; width: 90px; height: 90px; }
.l4 { top: 82%; left: 18%; width: 110px; height: 110px; opacity: 0.35; }

.berry {
    position: absolute;
    outline: none;
    --progress-bar-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.b1 { top: 22%; left: 28%; width: 220px; height: 220px; }
.b2 { top: 62%; left: 40%; width: 110px; height: 110px; }
.b3 { top: 28%; left: 64%; width: 240px; height: 240px; }
.b4 { top: 14%; left: 47%; width: 135px; height: 135px; }
.b5 { top: 74%; left: 22%; width: 120px; height: 120px; }
.b6 { top: 46%; left: 76%; width: 175px; height: 175px; }
.b7 { top: 16%; left: 39%; width: 85px; height: 85px; opacity: 0.65; }
.b8 { top: 52%; left: 56%; width: 75px; height: 75px; opacity: 0.6; }
.b9 { top: 78%; left: 36%; width: 80px; height: 80px; opacity: 0.65; }

/* Center 3D Model Anchor */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 6;
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.can-glow-disc {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--disc-glow) 0%, transparent 68%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    transition: background 1.4s ease;
}

.main-product-3d {
    width: 80vw;
    height: 80vh;
    max-width: 950px;
    max-height: 950px;
    outline: none;
    --progress-bar-color: transparent;
    --poster-color: transparent;
    position: relative;
    z-index: 1;
    transform: rotate(24deg);
    pointer-events: auto;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.55));
}

/* ==========================================================================
   4. SCROLLABLE PAGE CONTAINER & SCENES
   ========================================================================== */
.page-container {
    position: relative;
    z-index: 20;
    width: 100%;
}

.scene {
    position: relative;
    min-height: 100vh;
    padding: 0 var(--edge-pad);
    display: flex;
    align-items: center;
}

/* Scene 1: Kinetic Hero Layout */
.scene-hero {
    height: 100vh;
    padding-top: var(--header-height);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 460px;
    gap: 1.6rem;
    z-index: 10;
}

.hero-pre-badge {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--accent-color);
    text-transform: uppercase;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(4.2rem, 8.5vw, 9.5rem);
    line-height: 0.85;
    font-weight: 400;
    color: #ffffff;
}

.main-title .outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    color: transparent;
}

.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.4rem 0.4rem 0.4rem 1.6rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.plus-icon {
    background: var(--accent-color);
    color: var(--accent-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.3s ease;
}

.primary-btn:hover .plus-icon {
    transform: rotate(90deg);
}

.ghost-btn {
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ghost-btn:hover {
    color: var(--accent-color);
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.award-icon {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.award-text {
    display: flex;
    flex-direction: column;
}

.award-title {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.award-subtitle {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

/* Hero Right Column: Dual-Variant Switcher */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    height: 100%;
    padding: 3.5rem 0 2rem 0;
    z-index: 10;
    width: 420px;
}

.product-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-end;
}

.carousel-cards {
    display: flex;
    gap: 0.85rem;
    max-width: 440px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px;
    scroll-behavior: smooth;
}

.carousel-cards::-webkit-scrollbar {
    display: none;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 0.85rem;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    width: 142px;
    flex-shrink: 0;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
}

.card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-glow), inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.card-thumb-wrap {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-pill-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
}

.card-color-preview {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.emerald-preview {
    background: linear-gradient(135deg, #10b981 0%, #044e3b 100%);
}

.cobalt-preview {
    background: linear-gradient(135deg, #38bdf8 0%, #04294e 100%);
}

.crimson-preview {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 35%, #b91c1c 100%);
}

.amethyst-preview {
    background: linear-gradient(135deg, #e879f9 0%, #a855f7 40%, #581c87 100%);
}

.obsidian-preview {
    background: linear-gradient(135deg, #fef08a 0%, #ca8a04 30%, #18181b 100%);
}

.card:hover .card-color-preview {
    transform: scale(1.08) rotate(-4deg);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.card-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    color: #ffffff;
    white-space: nowrap;
}

.card-flavor {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.card-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-top: 0.3rem;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-arrow {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.nav-arrow:hover {
    background: var(--accent-color);
    color: var(--accent-dark);
}

.carousel-counter {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.carousel-counter strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.side-title {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 5.5vw, 6.5rem);
    line-height: 0.9;
    color: #ffffff;
}

.side-title .outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
    color: transparent;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-wheel {
    width: 3px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: mouseScroll 1.6s infinite;
}

@keyframes mouseScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   5. EDITORIAL SECTIONS (SCENES 2, 3, 4)
   ========================================================================== */
.editorial-container {
    max-width: 580px;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    z-index: 10;
}

.left-layout {
    margin-right: auto;
}

.right-layout {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
}

.center-layout {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.chapter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    width: fit-content;
}

.chapter-dot {
    color: var(--text-dim);
}

.editorial-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.editorial-copy {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.max-copy {
    max-width: 640px;
}

/* Scene 2: Spec Metrics Grid */
.spec-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1rem;
    width: 100%;
}

.metric-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.metric-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    color: var(--accent-color);
    line-height: 1;
}

.metric-value small {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.metric-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Scene 3: Notes Stack */
.notes-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.note-row {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.note-row:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-color);
    transform: translateX(-5px);
}

.note-tier {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent-color);
}

.note-details strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.note-details p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Scene 4: Pillars Row */
.pillars-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.pillar-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
}

.pillar-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.pillar-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.pillar-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   6. SCENE 5: BOUTIQUE SELECTION & SHOP DRAWER (Nacre Inspired)
   ========================================================================== */
.scene-boutique {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 8rem;
}

.boutique-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 3rem;
}

.boutique-left {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.boutique-heading {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.boutique-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.boutique-variant-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.toggle-lead {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.mini-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mini-swatch {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.mini-swatch:hover {
    background: var(--glass-bg-hover);
}

.mini-swatch.active {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 20px var(--accent-glow);
}

.swatch-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.emerald-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }
.cobalt-dot { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.crimson-dot { background: #f97316; box-shadow: 0 0 8px #f97316; }
.amethyst-dot { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.obsidian-dot { background: #fef08a; box-shadow: 0 0 8px #fef08a; }

/* Right Column: Luxury Glassmorphism Purchase Card */
.boutique-right {
    width: 440px;
    z-index: 10;
}

.shop-card {
    background: linear-gradient(135deg, rgba(20, 45, 40, 0.85) 0%, rgba(5, 18, 15, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    padding: 2.2rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

body.theme-cobalt .shop-card {
    background: linear-gradient(135deg, rgba(14, 35, 58, 0.85) 0%, rgba(4, 15, 28, 0.92) 100%);
}

body.theme-crimson .shop-card {
    background: linear-gradient(135deg, rgba(65, 18, 18, 0.85) 0%, rgba(28, 10, 6, 0.92) 100%);
}

body.theme-amethyst .shop-card {
    background: linear-gradient(135deg, rgba(48, 16, 68, 0.85) 0%, rgba(20, 5, 36, 0.92) 100%);
}

body.theme-obsidian .shop-card {
    background: linear-gradient(135deg, rgba(38, 38, 42, 0.85) 0%, rgba(12, 12, 15, 0.92) 100%);
}

.shop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1.1rem;
}

.edition-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    text-transform: uppercase;
}

.shop-product-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.2rem;
}

.shop-badge {
    background: var(--accent-color);
    color: var(--accent-dark);
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

.shop-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-selection-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selection-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.select-label {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-display {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    color: #ffffff;
}

.size-pill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.size-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.25s ease;
}

.size-btn span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.size-btn small {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.size-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.size-btn.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
}

.qty-counter {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    padding: 0.35rem 0.75rem;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.qty-btn:hover {
    color: var(--accent-color);
}

.qty-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
}

.checkout-btn {
    background: var(--accent-color);
    color: var(--accent-dark);
    border: none;
    border-radius: 100px;
    padding: 1.1rem 2rem;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--accent-glow);
    filter: brightness(1.05);
}

.card-footer-notes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.7);
    padding: 2.5rem var(--edge-pad);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

.footer-links a {
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .hero-left {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .hero-right {
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .product-carousel {
        align-items: center;
    }

    .side-title {
        display: none;
    }

    .boutique-layout {
        flex-direction: column;
        align-items: center;
    }

    .boutique-left {
        text-align: center;
        align-items: center;
    }

    .mini-swatch-group {
        justify-content: center;
    }

    .boutique-right {
        width: 100%;
        max-width: 440px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .main-title {
        font-size: 4.2rem;
    }

    .spec-metrics-grid,
    .pillars-row {
        grid-template-columns: 1fr;
    }

    .right-layout {
        text-align: left;
        align-items: flex-start;
    }

    .hero-center {
        width: 100vw;
        height: 50vh;
    }

    .main-product-3d {
        width: 95vw;
        height: 60vh;
}

