/* ============================================================
   REN - Core Design System
   Quiet Luxury · Editorial · Minimalist · Timeless
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap&subset=latin,latin-ext,cyrillic,cyrillic-ext');

/* ============================================================
   1. CSS VARIABLES (Design Tokens)
   ============================================================ */

:root {
    /* --- REN Mode (Light - Default) --- */
    --body-bg: #F5F5F7;
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --text-primary: #171717;
    --text-secondary: #666666;
    --border-color: #E5E5E5;
    --accent-color: #171717;
    --accent-text: #FFFFFF;

    /* --- Glassmorphism --- */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: 16px;

    /* --- Spacing (8pt Grid) --- */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;

    /* --- Typography --- */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 64px;

    --tracking-tight: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;
    --tracking-luxury: 0.1em;

    /* --- Layout --- */
    --container-sm: 600px;
    --container-md: 800px;
    --container-lg: 1024px;
    --container-xl: 1200px;

    /* --- Animation --- */
    --duration-fast: 200ms;
    --duration-base: 300ms;
    --duration-luxury: 600ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Borders --- */
    --radius-none: 0px;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* --- Shadows (minimal) --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- LUX Mode (Dark - System Sync for Admin) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --oled-black: #000000;
        --surface-dark: #141414;
        --surface-elevated: #1A1A1A;
        --body-bg: #000000;
        --bg-primary: #0A0A0A;
        --bg-secondary: #141414;
        --text-primary: #F5F5F7;
        --text-secondary: #A1A1AA;
        --border-color: #333333;
        --accent-color: #E3E4E6;
        --accent-text: #0A0A0A;

        --glass-bg: rgba(20, 20, 20, 0.72);
        --glass-border: rgba(255, 255, 255, 0.08);

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* --- Dark Mode (Forced via data attribute - Public Profile) --- */
[data-theme="dark"] {
    --oled-black: #000000;
    --surface-dark: #141414;
    --surface-elevated: #1A1A1A;
    --body-bg: #000000;
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --border-color: #333333;
    --accent-color: #E3E4E6;
    --accent-text: #0A0A0A;

    --glass-bg: rgba(20, 20, 20, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Light Mode (Forced via data attribute - Public Profile) --- */
[data-theme="light"] {
    --body-bg: #F5F5F7;
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --text-primary: #171717;
    --text-secondary: #666666;
    --border-color: #E5E5E5;
    --accent-color: #171717;
    --accent-text: #FFFFFF;

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--body-bg, var(--bg-primary));
    transition: background-color var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
    overscroll-behavior: none;
}

input, textarea, select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-out);
}

a:hover {
    opacity: 0.7;
}

::selection {
    background: var(--accent-color);
    color: var(--accent-text);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--text-2xl);
}

h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

p {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-serif {
    font-family: var(--font-serif);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--tracking-luxury);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-center {
    text-align: center;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-md);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.container-sm {
    max-width: var(--container-sm);
}

.container-lg {
    max-width: var(--container-lg);
}

.container-xl {
    max-width: var(--container-xl);
}

.section {
    padding: var(--space-8) 0;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.w-full { width: 100%; }

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 12px var(--space-3);
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--accent-text);
    opacity: 1;
}

.btn:active {
    transform: scale(0.96);
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filled:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn-filled {
    background: var(--accent-color);
    color: var(--accent-text);
}

.btn-filled:hover {
    opacity: 0.85;
    background: var(--accent-color);
    color: var(--accent-text);
}

.btn-sm {
    font-size: var(--text-xs);
    padding: 8px var(--space-2);
    min-height: 36px;
}

.btn-lg {
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-4);
    min-height: 52px;
}

.btn-link {
    border: none;
    background: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    letter-spacing: var(--tracking-normal);
    font-weight: 400;
    min-height: auto;
    color: var(--text-secondary);
}

.btn-link:hover {
    background: none;
    color: var(--text-primary);
    opacity: 1;
}

.btn-icon {
    padding: 8px;
    border: none;
    background: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.btn-icon:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* FAB (Floating Action Button) */
.fab {
    position: fixed;
    bottom: calc(72px + var(--space-3));
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    z-index: 100;
}

.fab:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* ============================================================
   6. CARDS
   ============================================================ */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.card-lg {
    padding: var(--space-4);
}

.card-flush {
    border: none;
    background: transparent;
    padding: 0;
}

/* Stat Card */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.stat-card__value {
    font-family: var(--font-sans);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-card__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Hero Stat */
.stat-hero {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.stat-hero__value {
    font-family: var(--font-sans);
    font-size: var(--text-6xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-hero__label {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* ============================================================
   7. FORMS
   ============================================================ */

.form-group {
    margin-bottom: var(--space-3);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.form-input {
    width: 100%;
    padding: 12px var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out);
    min-height: 44px;
}

.form-input:focus {
    border-color: var(--accent-color);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================================
   8. PHOTO GRID (Masonry)
   ============================================================ */

.masonry-grid {
    columns: 2;
    column-gap: var(--space-2);
}

.masonry-grid__item {
    break-inside: avoid;
    margin-bottom: var(--space-2);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                opacity var(--duration-fast) var(--ease-out);
}

.masonry-grid__item:hover {
    transform: scale(0.98);
}

.masonry-grid__item img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* Product Tag Dot (base) */
.tag-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 5;
    transform: translate(-50%, -50%);
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

/* Grid tag dots - hidden until hover/tap */
.tag-dot--grid {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: none;
}

.masonry-grid__item:hover .tag-dot--grid {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Glass modal photo wrapper */
.glass-modal__photo-wrap {
    position: relative;
    margin-bottom: var(--space-3);
}

.glass-modal__photo-wrap .glass-modal__photo {
    margin-bottom: 0;
}

/* Modal interactive tag dots */
.glass-modal__tag-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 5;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: tag-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               tag-breathe 2.5s ease-in-out 0.6s infinite;
}

.glass-modal__tag-dot:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Tag Tooltip */
.tag-tooltip {
    position: absolute;
    transform: translateX(-50%) translateY(-100%);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    animation: tooltip-in 0.2s ease-out forwards;
}

.tag-tooltip--below {
    transform: translateX(-50%) translateY(0);
}

.tag-tooltip__icon {
    flex-shrink: 0;
    opacity: 0.6;
    display: flex;
    align-items: center;
}

.tag-tooltip__text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tooltip arrow (pointing down) */
.tag-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.82);
}

.tag-tooltip--below::after {
    bottom: auto;
    top: -4px;
}

@keyframes tooltip-in {
    0% { opacity: 0; transform: translateX(-50%) translateY(-100%) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(-100%) scale(1); }
}

.tag-tooltip--below {
    animation-name: tooltip-in-below;
}

@keyframes tooltip-in-below {
    0% { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes tag-appear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes tag-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Modal product list */
.glass-modal__products {
    padding-top: var(--space-1);
}

.glass-modal__product.highlight {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding-left: var(--space-2);
    padding-right: var(--space-2);
    transition: background 0.3s ease;
}

/* ============================================================
   9. GLASS MODAL (The Shoppable Glass)
   ============================================================ */

/* ─── Photo Viewer (Full-Screen) ────────────────── */
.photo-viewer,
.pv-track {
    scroll-behavior: auto;
}

.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.photo-viewer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ─── Top Bar (fixed app-like navbar) ───────────── */
.photo-viewer__topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top, 8px) var(--space-2) 8px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    min-height: 48px;
    gap: var(--space-1);
}

.pv-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: background var(--duration-fast) var(--ease-out);
}

.pv-back:hover {
    background: var(--bg-secondary);
}

.pv-title {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--text-primary);
    letter-spacing: var(--tracking-luxury);
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-counter {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    letter-spacing: var(--tracking-wide);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
    flex-shrink: 0;
}

/* ─── Desktop Side Arrows ───────────────────────── */
.pv-arrow {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1015;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.pv-arrow:hover {
    background: var(--accent-color);
    color: var(--accent-text);
    border-color: var(--accent-color);
}

.pv-arrow--left { left: var(--space-3); }
.pv-arrow--right { right: var(--space-3); }

/* ─── 3-Slide Track ─────────────────────────────── */
.pv-track {
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 0;
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    width: 300vw;
    transform: translateX(-100vw);
    will-change: transform;
    overflow: hidden;
}

.pv-slide {
    width: 100vw;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* ─── Content wrapper (mobile: stacked, desktop: split) ── */
.pv-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ─── Photo Section ─────────────────────────────── */
.pv-photo-section {
    flex-shrink: 0;
}

.pv-photo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: var(--space-2);
    overflow: visible;
}

.pv-photo {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

/* Override progressive-img opacity:0 for viewer photos */
.pv-photo.progressive-img {
    opacity: 1;
    filter: blur(6px);
    transform: scale(1.01);
}

.pv-photo.progressive-img.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* ─── Details section ───────────────────────────── */
.pv-details {
    padding: var(--space-3) var(--space-3) var(--space-8);
    width: 100%;
}

.pv-details:empty {
    display: none;
}

.pv-no-tags {
    padding: var(--space-4) 0;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════
   DESKTOP - Split Layout (photo left, details right)
   ═══════════════════════════════════════════════════ */
@media (min-width: 900px) {

    .pv-arrow {
        display: flex;
    }

    /* Arrows sit on the photo side */
    .pv-arrow--left { left: 20px; }
    .pv-arrow--right { left: calc(55vw - 64px); }

    .pv-content {
        flex-direction: row;
        height: 100%;
    }

    /* Photo takes ~55% left */
    .pv-photo-section {
        width: 55%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-4);
        border-right: 1px solid var(--border-color);
        overflow: hidden;
    }

    .pv-photo-wrap {
        min-height: auto;
        padding: 0;
        width: 100%;
    }

    .pv-photo {
        max-height: calc(100vh - 96px);
        max-width: 100%;
    }

    /* Details take ~45% right, scrollable */
    .pv-details {
        width: 45%;
        overflow-y: auto;
        padding: var(--space-4) var(--space-4) var(--space-6);
        -webkit-overflow-scrolling: touch;
    }

    /* Slide itself doesn't scroll on desktop - the details panel does */
    .pv-slide {
        overflow-y: hidden;
    }
}

/* ─── Legacy Glass Overlay (kept for admin) ─────── */
.glass-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out),
                visibility var(--duration-base) var(--ease-out);
}

.glass-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.glass-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: var(--container-sm);
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-4);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.25s ease;
}

.glass-overlay.active .glass-modal {
    transform: translateY(0);
    opacity: 1;
}

.glass-modal__handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto var(--space-3);
}

.glass-modal__photo {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.glass-modal__product {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

.glass-modal__product:last-child {
    border-bottom: none;
}

.glass-modal__product-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.glass-modal__product-info {
    flex: 1;
    min-width: 0;
}

.glass-modal__product-name {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.glass-modal__product-price {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================================
   9b. ATMOSPHERE SUITE (Glass Modal Metadata)
   ============================================================ */

.glass-modal__atmosphere {
    padding: var(--space-2) 0;
    margin-bottom: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    animation: atmosphere-fade 0.5s ease 0.3s both;
}

@keyframes atmosphere-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Caption - Editorial Micro-Caption (gallery plaque style) */
.atmosphere__caption {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    padding: var(--space-1) var(--space-2);
    opacity: 0.9;
    letter-spacing: 0.01em;
    max-width: 320px;
    margin: 0 auto;
}

/* Auto-Palette */
.atmosphere__palette {
    display: flex;
    gap: 6px;
    align-items: center;
}

.atmosphere__swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--glass-border);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.atmosphere__swatch:hover {
    transform: scale(1.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* EXIF Badge */
.atmosphere__exif {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.atmosphere__exif svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* Archive Date */
.atmosphere__archive {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-serif);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-style: italic;
}

.atmosphere__archive svg {
    opacity: 0.4;
    flex-shrink: 0;
}

/* Location */
.atmosphere__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--text-primary);
    opacity: 0.85;
}

.atmosphere__location svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.atmosphere__location-detail {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-left: 2px;
}

/* ─── Scent Spray Overlay ──────────────────────── */

/* Trigger button - bottom-left of photo */
.scent-trigger {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}
.scent-trigger:hover {
    background: rgba(0,0,0,0.6);
    color: #fff;
}
.scent-trigger svg {
    opacity: 0.8;
    flex-shrink: 0;
}

/* Full overlay on photo */
.scent-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    border-radius: inherit;
}
.scent-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.scent-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}

/* Spray container - bottle + mist */
.scent-overlay__spray {
    position: relative;
    width: 120px;
    height: 160px;
    margin-bottom: 20px;
}

/* Perfume bottle SVG */
.scent-bottle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 80px;
    opacity: 0;
}
.scent-overlay.active .scent-bottle {
    animation: bottleAppear 0.6s var(--ease-out) forwards;
}
@keyframes bottleAppear {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.7); }
    50%  { opacity: 0.9; transform: translateX(-50%) scale(1.02); }
    100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
}

/* Mist origin - sits at the nozzle of the bottle */
.scent-mist {
    position: absolute;
    bottom: 68px;
    left: 50%;
    width: 0;
    height: 0;
}

/* Individual mist droplets - fan upward from nozzle */
.scent-drop {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    will-change: transform, opacity;
}
.scent-overlay.active .scent-drop {
    animation: mistDrop var(--drop-dur, 1s) var(--drop-delay, 0s) var(--ease-out) forwards;
}

/* Each droplet: unique angle, distance, size, timing */
.scent-drop--1  { --dx: -6px;  --dy: -50px; width: 4px; height: 4px; --drop-dur: 0.9s; --drop-delay: 0.08s; }
.scent-drop--2  { --dx: 4px;   --dy: -58px; width: 3px; height: 3px; --drop-dur: 1s;   --drop-delay: 0.05s; }
.scent-drop--3  { --dx: -14px; --dy: -44px; width: 5px; height: 5px; --drop-dur: 0.85s; --drop-delay: 0.12s; }
.scent-drop--4  { --dx: 12px;  --dy: -48px; width: 3px; height: 3px; --drop-dur: 0.95s; --drop-delay: 0.1s; }
.scent-drop--5  { --dx: -2px;  --dy: -62px; width: 2px; height: 2px; --drop-dur: 1.1s;  --drop-delay: 0.03s; }
.scent-drop--6  { --dx: 8px;   --dy: -40px; width: 4px; height: 4px; --drop-dur: 0.8s;  --drop-delay: 0.15s; }
.scent-drop--7  { --dx: -20px; --dy: -36px; width: 3px; height: 3px; --drop-dur: 0.9s;  --drop-delay: 0.18s; }
.scent-drop--8  { --dx: 18px;  --dy: -38px; width: 2px; height: 2px; --drop-dur: 0.85s; --drop-delay: 0.2s; }
.scent-drop--9  { --dx: -10px; --dy: -56px; width: 2px; height: 2px; --drop-dur: 1.05s; --drop-delay: 0.07s; }
.scent-drop--10 { --dx: 0px;   --dy: -68px; width: 2px; height: 2px; --drop-dur: 1.15s; --drop-delay: 0.02s; }
.scent-drop--11 { --dx: -24px; --dy: -28px; width: 3px; height: 3px; --drop-dur: 0.75s; --drop-delay: 0.22s; }
.scent-drop--12 { --dx: 22px;  --dy: -30px; width: 2px; height: 2px; --drop-dur: 0.8s;  --drop-delay: 0.25s; }

@keyframes mistDrop {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.3);
    }
    20% {
        opacity: 1;
        transform: translate(calc(-50% + var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1);
    }
    60% {
        opacity: 0.7;
        transform: translate(calc(-50% + var(--dx) * 0.8), calc(var(--dy) * 0.8)) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx) * 1.2), calc(var(--dy) * 1.2)) scale(0.3);
    }
}

/* Soft mist cloud - diffused glow above nozzle */
.scent-cloud {
    position: absolute;
    bottom: 60px;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, transparent 70%);
    opacity: 0;
    filter: blur(8px);
}
.scent-overlay.active .scent-cloud {
    animation: mistCloud 1.4s 0.05s var(--ease-out) forwards;
}
@keyframes mistCloud {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.3); }
    30%  { opacity: 1; transform: translateX(-50%) scale(1); }
    70%  { opacity: 0.6; transform: translateX(-50%) scale(1.3); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.5); }
}

/* Scent info text */
.scent-overlay__info {
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
}
.scent-overlay.active .scent-overlay__info {
    animation: scentInfoIn 0.5s 0.3s var(--ease-out) forwards;
}
@keyframes scentInfoIn {
    to { opacity: 1; transform: translateY(0); }
}

.scent-overlay__name {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.scent-overlay__brand {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}
.scent-overlay__notes {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
    font-style: italic;
}

/* Body Reference */
.atmosphere__bodyref {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    opacity: 0.7;
}

/* Tag type icon in product list */
.glass-modal__tag-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    flex-shrink: 0;
    opacity: 0.6;
}

.glass-modal__product-type {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ============================================================
   10. TABLES
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table th {
    text-align: left;
    font-weight: 500;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-secondary);
    padding: var(--space-2);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: var(--space-2);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color var(--duration-fast) var(--ease-out);
}

.table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* ============================================================
   11. BADGES & TAGS
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--border-color);
    color: var(--text-secondary);
    line-height: 1;
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF8E1;
    color: #F57F17;
}

.badge-danger {
    background: #FFEBEE;
    color: #C62828;
}

[data-theme="dark"] .badge-success,
@media (prefers-color-scheme: dark) {
    .badge-success {
        background: #1B3A1E;
        color: #66BB6A;
    }
    .badge-warning {
        background: #3A2E00;
        color: #FFCA28;
    }
    .badge-danger {
        background: #3A1515;
        color: #EF5350;
    }
}

/* ============================================================
   12. NAVIGATION
   ============================================================ */

/* Public Glass Navbar (Marketing, Pricing, Apply, Manifesto) */
.public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: max(16px, env(safe-area-inset-top)) 0 16px;
    transition: background var(--duration-luxury) var(--ease-luxury),
                backdrop-filter var(--duration-luxury) var(--ease-luxury);
}

.public-nav.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .public-nav.scrolled,
.public-nav.scrolled--light {
    background: rgba(245, 245, 247, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.public-nav__inner {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-nav__brand {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: var(--tracking-luxury);
    color: var(--text-primary);
    text-decoration: none;
}

/* Top Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    min-height: 56px;
    position: sticky;
    top: 0;
    z-index: 500;
}

.navbar__brand {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-luxury);
    color: var(--text-primary);
    text-decoration: none;
}

.navbar__brand:hover {
    opacity: 1;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Bottom Navigation (Mobile Admin) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-1) 0;
    padding-bottom: max(var(--space-1), env(safe-area-inset-bottom));
    height: 72px;
    z-index: 500;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-1);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    transition: color var(--duration-fast) var(--ease-out);
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
    color: var(--text-primary);
    opacity: 1;
}

.bottom-nav__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

/* Sidebar (Desktop Admin) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-3);
    display: none;
    flex-direction: column;
    z-index: 600;
    overflow-y: auto;
}

.sidebar__profile {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.sidebar__brand {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-luxury);
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-2);
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sidebar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar__avatar--placeholder {
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.sidebar__user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar__display-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__plan-badge {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--text-secondary);
}

.sidebar__footer {
    margin-top: auto;
    padding-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar__footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: 8px var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.sidebar__footer-link:hover {
    background: var(--bg-primary);
    opacity: 1;
}

.sidebar__footer-link--muted {
    color: var(--text-secondary);
}

.sidebar__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px var(--space-2);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 400;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 44px;
}

.sidebar__link:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
    opacity: 1;
}

.sidebar__link.active {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-primary);
}

.sidebar__link svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* ============================================================
   13. SKELETON LOADING
   ============================================================ */

.skeleton {
    background: linear-gradient(90deg,
        var(--border-color) 25%,
        var(--bg-secondary) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-1);
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-img {
    width: 56px;
    height: 56px;
}

/* ─── Per-Card Skeleton (each photo has its own) ─── */
.photo-card {
    position: relative;
}

.photo-card__skeleton {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: var(--radius-md);
}

.photo-card > img {
    position: relative;
    z-index: 1;
}

.photo-card.revealed .photo-card__skeleton {
    display: none;
}

/* ─── Modal Skeleton ─────────────────────────────── */
.skeleton-modal-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.skeleton-modal-product {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

.skeleton-modal-product__img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.skeleton-modal-product__text {
    flex: 1;
}

.skeleton-modal-product__btn {
    width: 60px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ─── Progressive Wrap (modal context) ────────────── */
.progressive-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--border-color);
}

.progressive-wrap > img {
    display: block;
    width: 100%;
}

/* ============================================================
   14. TOAST / NOTIFICATION BAR
   ============================================================ */

.toast-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px var(--space-3);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: 2000;
    transform: translateY(-100%);
    pointer-events: none;
    transition: transform var(--duration-base) var(--ease-out);
}

.toast-bar.active {
    transform: translateY(0);
    pointer-events: auto;
}

.toast-bar--success {
    background: #171717;
    color: #FFFFFF;
}

[data-theme="dark"] .toast-bar--success {
    background: #F5F5F7;
    color: #0A0A0A;
}

/* ============================================================
   15. UPSELL BANNER
   ============================================================ */

.upsell-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.upsell-banner__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.upsell-banner__text strong {
    color: var(--text-primary);
    font-family: var(--font-serif);
}

/* ============================================================
   16. AVATAR
   ============================================================ */

.avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
}

.avatar-xl {
    width: 120px;
    height: 120px;
}

/* ============================================================
   17. TABS (Horizontal Scroll - Categories)
   ============================================================ */

.tabs {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.tabs__item {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: var(--space-1);
    border-bottom: 2px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.tabs__item:hover,
.tabs__item.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
    opacity: 1;
}

/* ============================================================
   18. WIZARD / STEPS
   ============================================================ */

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.wizard-step {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    transition: background var(--duration-base) var(--ease-out);
}

.wizard-step.active {
    background: var(--accent-color);
}

.wizard-step.completed {
    background: var(--accent-color);
    opacity: 0.5;
}

/* ============================================================
   19. UTILITY CLASSES
   ============================================================ */

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }

.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* ─── Progressive Image Loading ──────────────────── */
.progressive-img {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.01);
    transition: opacity 0.3s ease,
                filter 500ms var(--ease-luxury),
                transform 500ms var(--ease-luxury);
}

/* Thumb loaded - show blurred */
.progressive-img.thumb-ready {
    opacity: 1;
}

/* Full image loaded - unblur */
.progressive-img.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
   20. RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
    .masonry-grid {
        columns: 3;
        column-gap: var(--space-3);
    }

    .masonry-grid__item {
        margin-bottom: var(--space-3);
    }

    .glass-modal {
        max-width: 480px;
    }

    /* Show sidebar, hide bottom nav on desktop */
    .sidebar {
        display: flex;
    }

    .bottom-nav {
        display: none;
    }

    .mobile-header {
        display: none;
    }

    .admin-main {
        margin-left: 260px;
    }

    .navbar--admin {
        margin-left: 260px;
    }

    h1 {
        font-size: var(--text-6xl);
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        columns: 3;
    }
}

/* Page body padding for bottom nav on mobile */
.has-bottom-nav {
    padding-bottom: 88px;
}

@media (min-width: 768px) {
    .has-bottom-nav {
        padding-bottom: 0;
    }
}

/* ============================================================
   21. DRAG & DROP STATES
   ============================================================ */

.sortable-ghost {
    opacity: 0.3;
}

.sortable-chosen {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.sortable-drag {
    transform: scale(1.05);
}

/* ============================================================
   22. EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.empty-state__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.empty-state__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* ============================================================
   23. PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin-top: var(--space-4);
}

.pagination__item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.pagination__item:hover {
    border-color: var(--border-color);
    color: var(--text-primary);
    opacity: 1;
}

.pagination__item.active {
    border-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================
   24. COOKIE CONSENT BAR (Privacy-First)
   ============================================================ */

.consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    will-change: transform;
}

.consent-bar--visible {
    transform: translateY(0);
}

.consent-bar--hiding {
    transform: translateY(100%);
    transition: transform 0.3s ease-in;
}

.consent-bar__text {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
}

.consent-bar__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.consent-bar__accept {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.consent-bar__accept:hover {
    opacity: 0.7;
}

.consent-bar__decline {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.consent-bar__decline:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .consent-bar {
        height: auto;
        padding: 10px var(--space-2);
        flex-wrap: wrap;
        gap: var(--space-1);
    }
    .consent-bar__text {
        font-size: 11px;
        text-align: center;
        width: 100%;
    }
}

/* ============================================================
   25. ESSENTIALS BAR (Toggle Drawer)
   ============================================================ */

/* Toggle trigger - thin strip, always visible */
.essentials-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.essentials-toggle__text {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.essentials-toggle__icon {
    color: var(--text-primary);
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
}

.essentials-toggle.open .essentials-toggle__icon {
    transform: rotate(180deg);
}

/* Collapsible drawer */
.essentials-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
    opacity: 0;
}

.essentials-drawer.open {
    max-height: 300px;
    opacity: 1;
}

.essentials {
    padding: var(--space-2) 0;
}

.essentials__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 var(--space-2);
    scroll-snap-type: x mandatory;
}

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

.essentials__all {
    min-width: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-secondary);
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--duration-base) var(--ease-out);
}

.essentials__all.active {
    border-color: var(--accent-color);
    border-width: 1.5px;
    color: var(--text-primary);
}

.essentials__item {
    min-width: 72px;
    max-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-1);
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: opacity var(--duration-base) var(--ease-out);
}

.essentials__item.dimmed {
    opacity: 0.35;
}

.essentials__item.active .essentials__img {
    box-shadow: 0 0 0 2px var(--accent-color);
}

.essentials__img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-secondary);
    transition: box-shadow var(--duration-base) var(--ease-out);
}

.essentials__img--placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.5;
}

.essentials__name {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.essentials__count {
    font-family: var(--font-sans);
    font-size: 9px;
    color: var(--text-secondary);
}

/* Essentials filter title */
.essentials-title {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-2);
    margin-bottom: var(--space-2);
}

.essentials-title.visible {
    display: flex;
}

.essentials-title__text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--text-primary);
}

.essentials-title__clear {
    font-family: var(--font-sans);
    font-size: 12px;
    text-decoration: underline;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Grid filter states */
.masonry-grid__item.filtered-out {
    opacity: 0.06;
    filter: grayscale(1);
    pointer-events: none;
    transition: all 0.4s ease;
}

.masonry-grid__item.filtered-in {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transition: all 0.4s ease;
}

/* ============================================================
   26. EDITS TABS (Sticky Serif Italic)
   ============================================================ */

.edits-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

.edits-tabs__scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 var(--space-2);
}

.edits-tabs__scroll::-webkit-scrollbar {
    display: none;
}

.edits-tabs__item {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 4px 0;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
    transition: color var(--duration-base) var(--ease-out);
}

.edits-tabs__item:hover {
    color: var(--text-primary);
    opacity: 0.7;
}

.edits-tabs__item.active {
    color: var(--text-primary);
}

/* ============================================================
   27. AI SUGGESTION CHIPS
   ============================================================ */

.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    animation: chipFadeIn 0.3s ease both;
}

.ai-chip:hover {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.ai-chip:active {
    transform: scale(0.95);
}

.ai-chip.active {
    border-color: var(--accent-color);
}

.ai-chip__icon {
    width: 10px;
    height: 10px;
    opacity: 0.4;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smart Recents */
.smart-recents {
    margin-bottom: var(--space-2);
    padding: var(--space-1) 0;
}

.smart-recents__title {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.smart-recents__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.smart-recents__list::-webkit-scrollbar {
    display: none;
}

.smart-recents__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    white-space: nowrap;
    min-width: fit-content;
    transition: all var(--duration-fast) var(--ease-out);
}

.smart-recents__item:hover {
    border-color: var(--accent-color);
}

.smart-recents__item:active {
    transform: scale(0.97);
}

.smart-recents__img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.smart-recents__name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.smart-recents__add {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: auto;
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 500;
}

.mobile-header__brand {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-luxury);
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.mobile-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-header__avatar--placeholder {
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-in {
    animation: fadeSlideUp 0.4s var(--ease-out) both;
}

.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }
.stagger-6 { animation-delay: 300ms; }

.hover-lift {
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
    .hover-lift:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

/* Page entrance wrapper */
.page-enter {
    animation: fadeSlideUp 0.4s var(--ease-out) both;
}

.page-section {
    opacity: 0;
    transform: translateY(12px);
}

.page-section.visible {
    animation: fadeSlideUp 0.4s var(--ease-out) both;
}

/* Animate on scroll (triggered by IntersectionObserver) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SESSIZ LÜKS - Additional Components
   ============================================================ */

/* ─── Skeleton Loading (Shimmer - replaces spinners) ─── */
.skeleton {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.skeleton--text { height: 14px; width: 60%; }
.skeleton--title { height: 24px; width: 40%; }
.skeleton--avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton--image { width: 100%; aspect-ratio: 4/5; }
.skeleton--card { width: 100%; height: 120px; }

/* ─── Touch Target (44px minimum - Apple HIG) ─── */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ─── UI Chrome: No Text Selection (Native App Feel) ─── */
.btn, .public-nav, .compare__handle-dot, .tag-dot,
.floating-trigger, .index-drawer, .consent-bar,
.essentials-toggle, .edits-tabs {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ─── Scroll Reveal Animation ─── */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-luxury) var(--ease-luxury),
                transform var(--duration-luxury) var(--ease-luxury);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Hero Stagger Reveal (landing, manifesto, atelier) ─── */
.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal var(--duration-luxury) var(--ease-luxury) forwards;
}
.hero-reveal--1 { animation-delay: 200ms; }
.hero-reveal--2 { animation-delay: 400ms; }
.hero-reveal--3 { animation-delay: 600ms; }
.hero-reveal--4 { animation-delay: 800ms; }
@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Legal Pages ────────────────────────────────── */
.legal-page {
    padding: var(--space-8) var(--space-4);
    max-width: 720px;
    margin: 0 auto;
}
.legal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: var(--tracking-luxury);
    margin-bottom: var(--space-2);
}
.legal-updated {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-8);
}
.legal-section {
    margin-bottom: var(--space-6);
}
.legal-section h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}
.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-base);
}
.legal-section ul {
    padding-left: var(--space-4);
    margin-top: var(--space-2);
}
.legal-section li {
    margin-bottom: var(--space-1);
}
