/* ============================================================
   SINZA COFFEE SHOP — $10k EDITORIAL DESIGN SYSTEM
   Velvety Dark Espresso & Warm Cream Milky Latte
   ============================================================ */

/* ── Typography and Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Rich Espresso Dark Theme Variables */
    --bg-dark: #0A0908;
    --bg-card: #141210;
    --bg-card-hover: #1D1A17;
    --bg-elevated: #24201D;
    --bg-surface: #0E0C0A;
    
    /* Text Hierarchy */
    --text-primary: #FDFBF7;
    --text-secondary: #EADFD0;
    --text-muted: #A39684;
    --text-faint: #6E6354;
    
    /* Champagne Gold Accents */
    --accent: #C5A880;
    --accent-light: #DDC8A6;
    --accent-dark: #A1825B;
    --accent-glow: rgba(197, 168, 128, 0.12);
    --accent-glow-strong: rgba(197, 168, 128, 0.28);
    
    /* Borders */
    --border-color: rgba(197, 168, 128, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.04);
    
    /* Semantics */
    --success: #88C399;
    --danger: #E27E6A;
    --warning: #C5A880;
    --info: #86A8C3;
    
    /* Fonts */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Transitions */
    --section-padding: clamp(60px, 8vw, 120px);
    --container-max: 1280px;
    --container-padding: clamp(16px, 5vw, 48px);
    --ease-luxury: cubic-bezier(0.85, 0, 0.15, 1);
    --ease-bounce: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Light Theme (Cream & Latte Latte) ── */
body.light-theme, :root.light-theme {
    --bg-dark: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F5EE;
    --bg-elevated: #F1ECE2;
    --bg-surface: #FAF7F0;
    
    --text-primary: #1C1713;
    --text-secondary: #3D322A;
    --text-muted: #827163;
    --text-faint: #B5A698;
    
    --accent: #9A7751;
    --accent-light: #B8966E;
    --accent-dark: #785836;
    --accent-glow: rgba(154, 119, 81, 0.12);
    --accent-glow-strong: rgba(154, 119, 81, 0.28);
    
    --border-color: rgba(154, 119, 81, 0.22);
    --border-subtle: rgba(0, 0, 0, 0.05);
}

/* ── Global Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
    letter-spacing: 0.2px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s var(--ease-luxury);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.serif-text {
    font-family: var(--font-serif);
}

.gold-text {
    color: var(--accent);
}

/* Glassmorphism */
.glass {
    background: rgba(10, 9, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
}

body.light-theme .glass {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-subtle);
}

.glass-premium {
    background: linear-gradient(145deg, rgba(20, 18, 16, 0.85), rgba(12, 10, 9, 0.95));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

body.light-theme .glass-premium {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 242, 0.95));
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.mobile-only {
    display: none !important;
}

/* ── Preloader ── */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0A0908;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s var(--ease-luxury), opacity 1.2s ease;
}

.preloader.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.preloader-wrap {
    text-align: center;
    max-width: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-logo-wrap {
    width: 100px;
    height: 100px;
    margin-bottom: 28px;
}

.preloader-logo-svg {
    width: 100%;
    height: 100%;
}

.draw-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 2.2s var(--ease-luxury) forwards;
}

.delay-path {
    animation-delay: 0.4s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.steam-dot {
    opacity: 0;
    transform: translateY(10px);
    animation: steamFloat 2.5s ease-in-out infinite;
}

.steam-dot-1 { animation-delay: 0.2s; }
.steam-dot-2 { animation-delay: 0.8s; }
.steam-dot-3 { animation-delay: 1.4s; }

@keyframes steamFloat {
    0% { opacity: 0; transform: translateY(5px) scale(0.6); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-15px) scale(1.2); }
}

.preloader-text-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.preloader-brand {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--text-primary);
}

.preloader-count {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
}

.preloader-bar {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}

.preloader-subtitle {
    font-family: var(--font-sans);
    font-size: 8px;
    letter-spacing: 4px;
    color: var(--text-faint);
}

/* ── Custom Cursor ── */
.custom-cursor {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s, transform-origin 0.3s;
}

.custom-cursor.hovering {
    background: transparent;
    width: 0;
    height: 0;
}

.custom-cursor-follower.hovering {
    width: 64px;
    height: 64px;
    border-color: var(--accent-light);
    background: var(--accent-glow);
}

.custom-cursor-follower.clicking {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--accent-glow-strong);
}

.custom-cursor-follower.view-mode::after {
    content: 'VIEW';
    font-family: var(--font-sans);
    font-size: 8px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.touch-device .custom-cursor,
.touch-device .custom-cursor-follower {
    display: none !important;
}

/* ── Grain Overlay ── */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 99999;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s var(--ease-luxury);
    padding: 30px 0;
    background: transparent;
}

.header-nav.scrolled {
    padding: 18px 0;
    background: rgba(10, 9, 8, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
}

body.light-theme .header-nav.scrolled {
    background: rgba(250, 248, 245, 0.9);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
}

.nav-logo {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(22px, 2.5vw, 26px);
    letter-spacing: 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-logo span {
    color: var(--accent);
    font-weight: 300;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.nav-logo-img {
    height: 58px !important;
    width: auto;
    object-fit: contain;
    transition: height 0.4s var(--ease-luxury);
}

.header-nav.scrolled .nav-logo-img {
    height: 48px !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3.5vw, 48px);
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    color: var(--text-muted);
    transition: color 0.4s var(--ease-luxury);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-luxury);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    font-size: 16px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.4s var(--ease-luxury);
    border: 1px solid transparent;
    color: var(--text-muted);
}

.nav-icon-btn:hover {
    color: var(--accent);
    border-color: var(--border-color);
    background: var(--accent-glow);
}

.nav-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

/* ── User Dropdown Menu ── */
.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    min-width: 220px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0,0,0,0.55);
    padding: 8px 0;
}

.user-dropdown-menu.active {
    display: block;
    animation: fadeInUp 0.4s var(--ease-luxury);
}

.user-dropdown-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s;
    color: var(--text-secondary);
}

.user-dropdown-menu a:hover {
    background: var(--accent-glow);
    color: var(--accent-light);
    padding-left: 28px;
}

.dropdown-signout-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.3s;
}

.dropdown-signout-btn:hover {
    background: rgba(226, 126, 106, 0.08);
    padding-left: 28px;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 15px 36px;
    cursor: pointer;
    transition: all 0.4s var(--ease-luxury);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 15px 36px;
    cursor: pointer;
    transition: all 0.4s var(--ease-luxury);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--bg-dark);
    background: var(--accent);
    transform: translateY(-2px);
}

body.light-theme .btn-outline:hover {
    color: #FFF;
    background: var(--accent);
}


/* ============================================================
   HERO SECTION — Full-Screen Cinematic Video
   ============================================================ */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0A0908;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-fallback-bg {
    background: linear-gradient(135deg, #0A0908 0%, #151310 50%, #050404 100%);
    z-index: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(10,9,8,0.4) 0%, rgba(10,9,8,0.1) 40%, rgba(10,9,8,0.3) 70%, rgba(10,9,8,0.92) 100%),
        radial-gradient(ellipse at center, transparent 35%, rgba(10,9,8,0.5) 100%);
}

/* Light theme keeps the dark cinematic video overlay for contrast */

.hero-video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--container-padding);
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-mega-title {
    font-family: var(--font-serif);
    font-size: clamp(54px, 9vw, 115px);
    font-weight: 300;
    line-height: 0.92;
    color: #FDFBF7;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
    display: block;
    font-size: 0.52em;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 10px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.8vw, 16px);
    color: #EADFD0;
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    min-width: 180px;
    text-align: center;
    justify-content: center;
    border-radius: 40px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #A39684;
    font-weight: 600;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}


/* ============================================================
   COFFEE POUR SECTION — Scroll-Triggered SVG Animation
   ============================================================ */
.coffee-pour-section {
    position: relative;
    height: 250vh;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.pour-sticky-container {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    gap: 80px;
}

.pour-cup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Golden backlit glow behind the cup */
.pour-cup-wrapper::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.coffee-cup-svg {
    width: clamp(180px, 22vw, 260px);
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.3));
}

.steam-container {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s var(--ease-luxury);
    z-index: 2;
}

.steam-wisp {
    position: absolute;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to top, var(--accent-glow-strong), transparent);
    border-radius: 50%;
    filter: blur(4px);
}

.steam-1 { left: 20px; height: 60px; animation: steamRise 3.5s ease-in-out infinite; }
.steam-2 { left: 40px; height: 50px; animation: steamRise 3.5s ease-in-out 0.9s infinite; }
.steam-3 { left: 55px; height: 40px; animation: steamRise 3.5s ease-in-out 1.8s infinite; }

@keyframes steamRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    30% { opacity: 0.7; }
    60% { transform: translateY(-40px) scaleX(1.6); opacity: 0.3; }
    100% { transform: translateY(-80px) scaleX(2); opacity: 0; }
}

.pour-text-container {
    position: relative;
    height: 220px;
    width: 100%;
}

.pour-text-block {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-luxury);
    max-width: 460px;
}

.pour-text-block.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
}

.pour-text-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.pour-text-block h2 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.pour-text-block p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.85;
    font-weight: 300;
}


/* ============================================================
   EDITORIAL CATEGORIES
   ============================================================ */
.category-row-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.category-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    padding: 44px 32px;
    text-align: center;
    transition: all 0.6s var(--ease-luxury);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease-luxury);
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
}

.category-card:hover::before {
    width: 90px;
}

.category-card-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.85;
    transition: transform 0.6s var(--ease-luxury);
}

.category-card:hover .category-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.category-card p {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}


/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    transition: all 0.6s var(--ease-luxury);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
}

.product-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--bg-surface);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-luxury);
}

.product-card:hover .product-card-img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    border-radius: 40px;
}

.badge-featured {
    background: var(--accent);
    color: var(--bg-dark);
}

.badge-outofstock {
    background: rgba(40, 40, 40, 0.9);
    color: #888;
}

.product-wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 9, 8, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: all 0.4s var(--ease-luxury);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
}

.product-wishlist-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.15);
}

.product-wishlist-btn.active {
    color: var(--danger);
    background: rgba(226, 126, 106, 0.15);
    border-color: rgba(226, 126, 106, 0.3);
}

.product-card-info {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card-category {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.product-card-title:hover {
    color: var(--accent);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.product-card-price {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.add-cart-btn-icon {
    background: transparent;
    color: var(--accent);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-luxury);
    font-size: 18px;
}

.add-cart-btn-icon:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: scale(1.1);
}


/* ============================================================
   STATS COUNTER BAR
   ============================================================ */
.stats-bar {
    padding: 90px 0;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.04) 0%, rgba(197, 168, 128, 0.01) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(197, 168, 128, 0.03);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    transition: all 0.5s var(--ease-luxury);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent);
    transition: width 0.5s var(--ease-luxury);
}

.stat-card:hover {
    background: rgba(197, 168, 128, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.stat-card:hover::before {
    width: 70px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 300;
    color: var(--accent);
    letter-spacing: -1.5px;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 30px);
    color: var(--accent);
    opacity: 0.85;
    margin-left: 2px;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 14px;
}


/* ============================================================
   ABOUT & ASYMMETRIC MASONRY
   ============================================================ */
.about-section {
    position: relative;
}

.about-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

/* Dual-image puzzle frame style */
.about-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 520px;
    position: relative;
}

.about-masonry-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-masonry-item-1 {
    grid-column: 1 / 9;
    grid-row: 1 / 10;
    z-index: 1;
}

.about-masonry-item-2 {
    grid-column: 5 / 13;
    grid-row: 5 / 13;
    z-index: 2;
    border-color: var(--accent);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-luxury);
}

.about-masonry-item:hover .about-img {
    transform: scale(1.06);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.about-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 300;
}

/* Team Master Craftsmen */
.team-section {
    background: rgba(197, 168, 128, 0.02);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.team-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 48px 30px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: all 0.5s var(--ease-luxury);
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.team-avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 28px auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-luxury);
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
}

.team-card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.team-card p {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(30px, 5vw, 60px);
}

.contact-info-panel {
    padding: 48px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.contact-info-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 18px;
}

.contact-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 1px;
    background: var(--accent);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-info-icon {
    font-size: 20px;
    color: var(--accent);
    margin-top: 2px;
    opacity: 0.9;
}

.contact-info-content h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.contact-info-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
}

.contact-form-panel {
    padding: 48px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* Forms input tags */
.form-group {
    margin-bottom: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    padding: 15px 20px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: all 0.4s var(--ease-luxury);
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-faint);
    font-weight: 300;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    line-height: 1.8;
}


/* ============================================================
   SLIDING CART DRAWER
   ============================================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-luxury);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    box-shadow: -25px 0 60px rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.6s var(--ease-bounce);
}

.cart-overlay.open .cart-drawer {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cart-close-btn {
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    color: var(--accent);
}

/* Delivery bar goal */
.cart-delivery-goal {
    padding: 16px 30px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
}

.delivery-goal-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.delivery-goal-bar {
    width: 100%;
    height: 3px;
    background: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.delivery-goal-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.6s var(--ease-luxury);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.cart-item-price {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.cart-item-qty-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxury);
    color: var(--text-muted);
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cart-item-qty {
    font-size: 13px;
    font-weight: 600;
}

.cart-item-remove {
    font-size: 10px;
    color: var(--text-faint);
    cursor: pointer;
    margin-left: auto;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 600;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-total-price {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 21px;
    letter-spacing: 0.5px;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-empty-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
    font-size: 15px;
    font-family: var(--font-serif);
    font-style: italic;
    letter-spacing: 0.5px;
}


/* ============================================================
   SHARED SECTIONS & HEADER
   ============================================================ */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 70px auto;
    padding: 0 var(--container-padding);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 300;
}

.reveal-section {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   SHOP CATALOG
   ============================================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 130px var(--container-padding) 80px;
}

.shop-sidebar {
    padding: 32px;
    height: fit-content;
    position: sticky;
    top: 110px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.filter-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-item-link {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    transition: all 0.3s var(--ease-luxury);
    font-weight: 500;
}

.filter-item-link:hover {
    color: var(--accent);
    padding-left: 20px;
}

.filter-item-link.active {
    color: var(--accent-light);
    background: var(--accent-glow);
    border-left: 2px solid var(--accent);
}

.subcategory-list {
    list-style: none;
    margin-left: 14px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    max-width: 320px;
    width: 100%;
}

.search-input {
    padding: 11px 18px;
    font-size: 13px;
    flex-grow: 1;
    background: none;
    font-weight: 400;
}

.search-btn {
    padding: 11px 20px;
    background: var(--accent-glow);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s;
    border-left: 1px solid var(--border-subtle);
}

.search-btn:hover {
    color: var(--accent);
    background: var(--accent-glow-strong);
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 11px 18px;
    font-size: 13px;
    outline: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination-container nav div {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-container nav a, .pagination-container nav span {
    padding: 12px 18px;
    font-size: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all 0.4s var(--ease-luxury);
    font-weight: 600;
}

.pagination-container nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-container nav .active span {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    border-color: var(--accent);
}


/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.details-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px var(--container-padding) 80px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 90px);
}

.details-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-main-img-frame {
    overflow: hidden;
    height: 600px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

.details-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-luxury);
}

.details-main-img:hover {
    transform: scale(1.04);
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 15px;
}

.details-category {
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    font-weight: 700;
}

.details-title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4.5vw, 48px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.5px;
}

.details-price {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
}

.details-desc {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
    font-weight: 300;
}

.details-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
}


/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--container-padding) 60px;
    background: var(--bg-dark);
}

.auth-card {
    max-width: 480px;
    width: 100%;
    padding: 56px 48px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 1px;
    background: var(--accent);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
}


/* ============================================================
   USER PROFILE & ORDERS
   ============================================================ */
.user-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 130px var(--container-padding) 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.user-sidebar {
    padding: 32px;
    height: fit-content;
    position: sticky;
    top: 110px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.user-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-nav-link {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease-luxury);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.user-nav-link:hover {
    color: var(--accent);
    padding-left: 24px;
}

.user-nav-link.active {
    color: var(--accent-light);
    background: var(--accent-glow);
    border-left: 2px solid var(--accent);
    padding-left: 22px;
}

.user-main-panel {
    padding: 44px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.panel-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: 1px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.custom-table th {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-faint);
    font-weight: 750;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
}

.custom-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.custom-table tr {
    transition: background-color 0.3s;
}

.custom-table tr:hover {
    background-color: var(--accent-glow);
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 40px;
}

.status-badge.pending { background: rgba(197, 168, 128, 0.08); color: var(--warning); border: 1px solid rgba(197, 168, 128, 0.2); }
.status-badge.shipped { background: rgba(134, 168, 195, 0.08); color: var(--info); border: 1px solid rgba(134, 168, 195, 0.2); }
.status-badge.done { background: rgba(136, 195, 153, 0.08); color: var(--success); border: 1px solid rgba(136, 195, 153, 0.2); }
.status-badge.failed { background: rgba(226, 126, 106, 0.08); color: var(--danger); border: 1px solid rgba(226, 126, 106, 0.2); }


/* ============================================================
   SECURE CHECKOUT
   ============================================================ */
.checkout-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 130px var(--container-padding) 80px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
}

.checkout-card {
    padding: 44px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.checkout-summary-card {
    padding: 32px;
    height: fit-content;
    position: sticky;
    top: 110px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.summary-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 1px;
}

.checkout-summary-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    align-items: flex-start;
}

.checkout-payment-box {
    background: rgba(197, 168, 128, 0.03);
    border: 1px solid var(--border-color);
    padding: 28px;
    margin-top: 28px;
    margin-bottom: 32px;
}

.payment-code-block {
    text-align: center;
    background: var(--bg-dark);
    border: 1px dashed var(--accent);
    padding: 16px;
    margin: 20px 0;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
}


/* ============================================================
   ADMIN CONTROL PANEL
   ============================================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: #0A0908;
    border-right: 1px solid var(--border-color);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

body.light-theme .admin-sidebar {
    background-color: #F1ECE2;
}

.admin-main {
    background-color: var(--bg-dark);
    padding: 48px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 44px;
}

.admin-title h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-serif);
}

.admin-title p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.admin-stat-card {
    border-radius: 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    background-color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.stat-info h3 {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.stat-info p {
    font-size: 26px;
    font-weight: 700;
    margin-top: 4px;
    font-family: var(--font-serif);
}

.image-preview-container {
    margin-top: 12px;
    width: 130px;
    height: 130px;
    border: 1px dashed var(--border-color);
    overflow: hidden;
    position: relative;
    background-color: var(--bg-surface);
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   FOOTER SECTION
   ============================================================ */
.footer-main {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 100px var(--container-padding) 40px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 28px);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.footer-brand h2 span {
    color: var(--accent);
    font-weight: 300;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.4s var(--ease-luxury);
}

.footer-social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-glow);
    transform: translateY(-3px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-column h3 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent);
    margin-top: 10px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column ul li a {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    transition: all 0.4s var(--ease-luxury);
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-column p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 1px;
}


/* ============================================================
   RESPONSIVE DESIGN — MOBILE VIEWS
   ============================================================ */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--accent);
}

.mobile-filter-toggle {
    display: none;
    padding: 14px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: 700;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.mobile-filter-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-masonry {
        max-width: 600px;
        margin: 0 auto;
        height: 460px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
    }

    .shop-sidebar.mobile-visible {
        display: block;
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-card {
        position: static;
        width: 100%;
    }

    .user-layout {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Tablet Portrait & Mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-logo-img {
        height: 52px !important;
    }

    .mobile-nav-separator {
        width: 60px;
        height: 1px;
        background: var(--border-color);
        margin: 10px auto;
        opacity: 0.5;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
        transition: left 0.6s var(--ease-luxury);
        z-index: 999;
        border: none;
        overflow-y: auto;
        padding: 120px 24px 60px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 15px;
        letter-spacing: 4px;
        display: inline-block;
        text-align: center;
    }

    .details-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details-main-img-frame {
        height: 420px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 36px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cart-drawer {
        max-width: 100%;
        right: -100%;
    }

    .pour-sticky-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        top: 80px;
        height: calc(100vh - 80px);
    }

    .pour-cup-wrapper {
        order: -1;
        height: 220px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .coffee-cup-svg {
        width: 160px;
        height: auto;
    }

    .pour-text-container {
        height: 180px;
        margin: 0 auto;
    }

    .pour-text-block {
        text-align: center;
        max-width: 100%;
        padding: 0 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screen */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 28px 16px;
    }

    .category-flex {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 28px 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-img-wrapper {
        height: 300px;
    }

    .btn-primary, .btn-outline {
        padding: 14px 28px;
        font-size: 9px;
        width: 100%;
    }

    .details-actions {
        flex-direction: column;
        width: 100%;
    }

    .qty-selector {
        width: 100%;
        justify-content: space-between;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-bar {
        max-width: 100%;
    }

    .nav-logo {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .nav-logo-img {
        height: 46px !important;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-icon-btn {
        width: 38px;
        height: 38px;
    }

    .about-masonry {
        height: 380px;
    }
}


/* ============================================================
   SCROLLBAR & SELECTIONS
   ============================================================ */
::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   LIGHT MODE READABILITY & CONTRAST OVERRIDES
   ============================================================ */

/* 1. Homepage Transparent Header over Dark Hero */
body.light-theme.home-page .header-nav:not(.scrolled) .nav-logo {
    color: #FDFBF7;
}
body.light-theme.home-page .header-nav:not(.scrolled) .nav-link {
    color: #EADFD0;
}
body.light-theme.home-page .header-nav:not(.scrolled) .nav-link:hover,
body.light-theme.home-page .header-nav:not(.scrolled) .nav-link.active {
    color: #FDFBF7;
}
body.light-theme.home-page .header-nav:not(.scrolled) .nav-icon-btn {
    color: #EADFD0;
}
body.light-theme.home-page .header-nav:not(.scrolled) .nav-icon-btn:hover {
    color: var(--accent);
}
body.light-theme.home-page .header-nav:not(.scrolled) .user-menu-btn {
    color: #FDFBF7;
    border-color: rgba(255, 255, 255, 0.25);
}
body.light-theme.home-page .header-nav:not(.scrolled) .user-menu-btn:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
}
body.light-theme.home-page .header-nav:not(.scrolled) .menu-toggle {
    color: #FDFBF7;
}

/* 2. Non-Homepage Transparent Header over Light Backgrounds */
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .nav-logo {
    color: var(--text-primary);
}
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .nav-link {
    color: var(--text-secondary);
}
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .nav-link:hover,
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .nav-link.active {
    color: var(--text-primary);
}
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .nav-icon-btn {
    color: var(--text-secondary);
}
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .nav-icon-btn:hover {
    color: var(--accent);
}
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .user-menu-btn {
    color: var(--text-primary);
    border-color: var(--border-color);
}
body.light-theme:not(.home-page) .header-nav:not(.scrolled) .menu-toggle {
    color: var(--text-primary);
}

/* 3. Scrolled Header Link Visibility Boost */
body.light-theme .header-nav.scrolled .nav-link {
    color: var(--text-secondary);
}
body.light-theme .header-nav.scrolled .nav-link:hover,
body.light-theme .header-nav.scrolled .nav-link.active {
    color: var(--text-primary);
}
body.light-theme .header-nav.scrolled .nav-icon-btn {
    color: var(--text-secondary);
}
body.light-theme .header-nav.scrolled .nav-icon-btn:hover {
    color: var(--accent);
}

/* 4. Active Sidebar Items High Contrast */
body.light-theme .filter-item-link.active {
    color: var(--accent-dark);
}
body.light-theme .user-nav-link.active {
    color: var(--accent-dark);
}
body.light-theme .user-dropdown-menu a:hover {
    color: var(--accent-dark);
}
