/* ============================================================
   LIQUIDMOOD — LUXURY DARK THEME DESIGN SYSTEM
   Ultra-premium obsidian + champagne gold visual identity
   ============================================================ */

/* ── Google Fonts Import ── */
@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');

/* ── Design Tokens ── */
:root {
    /* Color Palette */
    --lm-black: #0a0a0a;
    --lm-obsidian: #0d0d0f;
    --lm-surface: #1a1a1f;
    --lm-surface-elevated: #242429;
    --lm-surface-hover: #2a2a30;
    --lm-border: rgba(201, 169, 110, 0.12);
    --lm-border-strong: rgba(201, 169, 110, 0.25);

    /* Gold Spectrum */
    --lm-gold: #c9a96e;
    --lm-gold-light: #d4b87a;
    --lm-gold-deep: #b8964e;
    --lm-gold-muted: rgba(201, 169, 110, 0.15);
    --lm-gold-glow: rgba(201, 169, 110, 0.3);

    /* Text Colors */
    --lm-text-primary: #f5f0e8;
    --lm-text-secondary: #8a8a8e;
    --lm-text-muted: #5a5a5e;
    --lm-text-inverse: #0a0a0a;

    /* Functional Colors */
    --lm-success: #4a9e6e;
    --lm-error: #c45c5c;
    --lm-warning: #c9a96e;
    --lm-info: #6e8ec9;

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

    /* Font Sizes — Mobile First */
    --fs-display: clamp(2.2rem, 6vw, 3.5rem);
    --fs-h1: clamp(1.8rem, 4.5vw, 2.8rem);
    --fs-h2: clamp(1.5rem, 3.5vw, 2.2rem);
    --fs-h3: clamp(1.2rem, 3vw, 1.6rem);
    --fs-h4: clamp(1rem, 2.5vw, 1.25rem);
    --fs-body: 0.938rem;
    --fs-body-sm: 0.838rem;
    --fs-caption: 0.75rem;
    --fs-overline: 0.688rem;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.15);
    --shadow-gold-strong: 0 4px 30px rgba(201, 169, 110, 0.25);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-luxury: cubic-bezier(0.23, 1, 0.32, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;
    --duration-reveal: 900ms;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--lm-text-primary);
    background-color: var(--lm-black);
    overflow-x: hidden;
}

body.cart-open {
    overflow: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6,
.heading-serif {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--lm-text-primary);
    letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
    font-family: var(--font-sans);
    color: var(--lm-text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

a {
    color: var(--lm-gold);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
    color: var(--lm-gold-light);
}

.text-gold { color: var(--lm-gold) !important; }
.text-ivory { color: var(--lm-text-primary) !important; }
.text-muted-lm { color: var(--lm-text-secondary) !important; }

.overline {
    font-family: var(--font-sans);
    font-size: var(--fs-overline);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

/* ── Buttons ── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--lm-gold) 0%, var(--lm-gold-deep) 100%);
    color: var(--lm-text-inverse);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--fs-body-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left var(--duration-slow) var(--ease-smooth);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong);
    color: var(--lm-text-inverse);
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--lm-gold);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--fs-body-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px 31px;
    border: 1.5px solid var(--lm-gold);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-gold-outline:hover {
    background: var(--lm-gold);
    color: var(--lm-text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-gold-full {
    width: 100%;
    padding: 16px 32px;
    font-size: var(--fs-body);
    border-radius: var(--radius-md);
}

/* ── Cards ── */
.lm-card {
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.lm-card:hover {
    border-color: var(--lm-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.lm-card-elevated {
    background: var(--lm-surface-elevated);
    border: 1px solid var(--lm-border);
    border-radius: var(--radius-lg);
}

.lm-card-glass {
    background: rgba(26, 26, 31, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lm-border);
    border-radius: var(--radius-lg);
}

/* ── Section Layout ── */
.lm-section {
    padding: var(--space-3xl) 0;
}

.lm-container {
    width: 100%;
    max-width: 428px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header .gold-line {
    width: 40px;
    height: 1.5px;
    background: var(--lm-gold);
    margin: var(--space-md) auto 0;
}

/* ── Divider ── */
.lm-divider {
    height: 1px;
    background: var(--lm-border);
    border: none;
    margin: var(--space-xl) 0;
}

/* ── Badge ── */
.lm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--lm-gold);
    color: var(--lm-text-inverse);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    line-height: 1;
}

.lm-badge:empty {
    display: none;
}

/* ── Stars ── */
.lm-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--lm-gold);
    font-size: 14px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--lm-obsidian);
}

::-webkit-scrollbar-thumb {
    background: var(--lm-surface-elevated);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lm-gold-muted);
}

/* ── Selection ── */
::selection {
    background: var(--lm-gold-muted);
    color: var(--lm-text-primary);
}

/* ── Keyframe Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.2);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(201, 169, 110, 0.15);
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-1%, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes borderShimmer {
    0% {
        border-color: var(--lm-border);
    }
    50% {
        border-color: var(--lm-border-strong);
    }
    100% {
        border-color: var(--lm-border);
    }
}

@keyframes progressFill {
    from { width: 0; }
}

/* ── Animation Utility Classes ── */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-reveal) var(--ease-luxury),
                transform var(--duration-reveal) var(--ease-luxury);
}

.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-in {
    opacity: 0;
    transition: opacity var(--duration-reveal) var(--ease-luxury);
}

.anim-fade-in.is-visible {
    opacity: 1;
}

.anim-delay-1 { transition-delay: 100ms; }
.anim-delay-2 { transition-delay: 200ms; }
.anim-delay-3 { transition-delay: 300ms; }
.anim-delay-4 { transition-delay: 400ms; }
.anim-delay-5 { transition-delay: 500ms; }

/* ── Utility: Hide Scrollbar for carousels ── */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* ── Responsive Breakpoints ── */
/* Small phones */
@media (max-width: 374px) {
    :root {
        --fs-display: 1.9rem;
        --fs-h1: 1.6rem;
    }
    .lm-container {
        padding: 0 var(--space-md);
    }
}

/* Standard phones (375px - 428px) — default target */

/* Large phones / small tablets */
@media (min-width: 429px) {
    .lm-container {
        max-width: 500px;
    }
}

/* Tablets */
@media (min-width: 768px) {
    .lm-container {
        max-width: 720px;
    }
    .lm-section {
        padding: var(--space-4xl) 0;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .lm-container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .lm-container {
        max-width: 1200px;
    }
}

/* ── Image Reset ── */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Form Reset for dark theme ── */
input, textarea, select {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    color: var(--lm-text-primary);
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-smooth);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--lm-gold);
}

/* ── Bootstrap Overrides for Dark Theme ── */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 var(--lm-border) !important;
}

.alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--lm-border);
    background: var(--lm-surface);
    color: var(--lm-text-primary);
}

.alert-success {
    border-color: rgba(74, 158, 110, 0.3);
    background: rgba(74, 158, 110, 0.1);
}

.alert-danger {
    border-color: rgba(196, 92, 92, 0.3);
    background: rgba(196, 92, 92, 0.1);
}

.breadcrumb {
    background: none !important;
    padding: 0 !important;
}

.breadcrumb-item a {
    color: var(--lm-text-secondary) !important;
    font-size: var(--fs-caption);
}

.breadcrumb-item.active {
    color: var(--lm-gold) !important;
    font-size: var(--fs-caption);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--lm-text-muted) !important;
}
