/* ===================================================================
   БӘХЕТЛЕ КЕШЕ — Premium Design System
   Palette: Warm cream, rose, deep browns — no playful elements
   =================================================================== */

:root {
    /* Core Palette */
    --rose-50: #fdf2f4;
    --rose-100: #fce7eb;
    --rose-200: #f9ced8;
    --rose-300: #f4a3b8;
    --rose-400: #ec7093;
    --rose-500: #e04672;
    --rose-600: #cc2558;
    --cream-50: #fefcf9;
    --cream-100: #fdf8f0;
    --cream-200: #f9f0e1;
    --cream-300: #f2e3cc;
    --warm-white: #fdfaf6;
    --bg: #fdfaf6;
    --surface: #ffffff;
    --surface-alt: #faf7f2;

    /* Text */
    --ink: #1a0f0a;
    --ink-secondary: #5c4a41;
    --ink-muted: #8f7e74;
    --ink-faint: #b8a99e;

    /* Borders */
    --border: #ede5dd;
    --border-hover: #d9cfc5;

    /* Effects */
    --shadow-xs: 0 1px 3px rgba(26,15,10,0.03);
    --shadow-sm: 0 2px 10px rgba(26,15,10,0.04);
    --shadow-md: 0 8px 30px rgba(26,15,10,0.07);
    --shadow-lg: 0 20px 50px rgba(26,15,10,0.10);
    --shadow-xl: 0 30px 70px rgba(26,15,10,0.14);

    /* Radii */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 100px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.2s;
    --t-normal: 0.4s;
    --t-slow: 0.7s;

    /* Typography */
    --f-display: 'Cormorant Garamond', 'Georgia', serif;
    --f-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --f-hand: 'Caveat', cursive;

    /* Layout */
    --max-w: 1320px;
    --header-h: 68px;
}

/* ─── 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 { font-family: var(--f-body); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--rose-200); color: var(--ink); }

/* ─── Typography ─── */
.t-display { font-family: var(--f-display); font-weight: 300; }
.t-body { font-family: var(--f-body); }
.t-hand { font-family: var(--f-hand); }

/* ─── Container ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ─── Preloader ─── */
.preloader {
    position: fixed; inset: 0; z-index: 9999; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { height: 56px; animation: preloaderBreath 1.8s ease-in-out infinite; }
.preloader-bar { width: 100px; height: 1px; background: var(--border); margin-top: 20px; overflow: hidden; border-radius: 1px; }
.preloader-fill { height: 100%; width: 0; background: var(--rose-400); animation: fillBar 1.4s ease forwards; }
@keyframes preloaderBreath { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes fillBar { to { width: 100%; } }

/* ─── Header ─── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h); background: transparent;
    transition: background var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease);
}
.header.scrolled {
    background: rgba(253,250,246,0.95);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border);
    color: var(--ink) !important;
}
/* Header on dark hero */
.header[style*="color: white"] .nav-link { color: rgba(255,255,255,0.7); }
.header[style*="color: white"] .nav-link:hover { color: white; }
.header[style*="color: white"] .nav-link::after { background: white; }
.header[style*="color: white"] .nav-logo img { filter: brightness(0) invert(1); }
.header[style*="color: white"] .lang-toggle { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.2); }
.header[style*="color: white"] .lang-toggle:hover { color: white; border-color: rgba(255,255,255,0.4); }
.header[style*="color: white"] .nav-icon-btn { color: white; }
.header[style*="color: white"] .burger span { background: white; }
.header.scrolled .nav-link { color: var(--ink-secondary) !important; }
.header.scrolled .nav-logo img { filter: none !important; }
.header.scrolled .lang-toggle { color: var(--ink-muted) !important; border-color: var(--border) !important; }
.header.scrolled .nav-icon-btn { color: var(--ink) !important; }
.header.scrolled .burger span { background: var(--ink) !important; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo img { height: 26px; transition: opacity var(--t-fast); }
.nav-logo:hover img { opacity: 0.6; }

.nav-center { display: flex; gap: 32px; }
.nav-link {
    font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-secondary); padding: 4px 0; position: relative;
    transition: color var(--t-fast);
}
.nav-link::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px;
    background: var(--ink); transition: width var(--t-normal) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-pill);
    transition: all var(--t-fast);
}
.lang-toggle:hover { border-color: var(--ink-secondary); color: var(--ink-secondary); }

.nav-icon-btn {
    position: relative; color: var(--ink); padding: 8px; transition: color var(--t-fast);
}
.nav-icon-btn:hover { color: var(--rose-500); }
.nav-icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
    position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px;
    background: var(--ink); color: white; font-size: 9px; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0); transition: all 0.3s var(--ease-spring);
}
.cart-badge.show { opacity: 1; transform: scale(1); }

.burger {
    display: none; flex-direction: column; gap: 5px; padding: 8px; width: 40px;
}
.burger span {
    width: 20px; height: 1.5px; background: var(--ink); transition: all var(--t-fast); transform-origin: center;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile nav */
.mobile-nav {
    position: fixed; inset: 0; z-index: 99; background: rgba(253,250,246,0.98);
    backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--t-normal) var(--ease);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
    display: block; font-family: var(--f-display); font-size: 32px; font-weight: 300;
    padding: 14px 0; text-align: center; color: var(--ink); transition: color var(--t-fast);
}
.mobile-nav a:hover { color: var(--rose-500); }

/* ─── Hero ─── */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
    padding-top: var(--header-h);
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 15% 50%, var(--rose-50) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, var(--cream-200) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(244,163,184,0.08) 0%, transparent 40%),
        var(--bg);
}
.hero .container {
    position: relative; z-index: 1; display: flex; align-items: center;
    justify-content: space-between; gap: 80px; width: 100%;
}
.hero-text { flex: 1; max-width: 580px; }
.hero-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rose-500); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.hero-label::before { content: ''; width: 24px; height: 1px; background: var(--rose-400); }
.hero-title {
    font-family: var(--f-display); font-weight: 300; line-height: 1.05; margin-bottom: 24px;
}
.hero-title .line1 { display: block; font-size: clamp(48px, 7vw, 88px); color: var(--ink); }
.hero-title .line2 {
    display: block; font-size: clamp(54px, 8vw, 96px);
    color: var(--rose-500); font-style: italic; font-weight: 400;
}
.hero-subtitle {
    font-size: 16px; color: var(--ink-secondary); line-height: 1.8; margin-bottom: 40px;
    max-width: 440px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500;
    letter-spacing: 0.04em; padding: 15px 32px; border-radius: var(--r-pill);
    transition: all var(--t-normal) var(--ease); position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
    background: var(--ink); color: white;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0; background: var(--rose-600);
    transform: translateX(-101%); transition: transform var(--t-normal) var(--ease); border-radius: inherit;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline {
    border: 1.5px solid var(--border); color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }

.hero-visual {
    flex: 0 0 auto; width: 440px; height: 520px; position: relative;
}
.hero-illustration {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(224,70,114,0.08));
    animation: gentleFloat 7s ease-in-out infinite;
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
.hero-glow {
    position: absolute; width: 280px; height: 280px;
    background: radial-gradient(circle, var(--rose-100) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
    opacity: 0.4; animation: glowBreath 5s ease-in-out infinite alternate;
}
@keyframes glowBreath { from { opacity: 0.25; scale: 0.9; } to { opacity: 0.5; scale: 1.1; } }

.scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 1px; height: 44px; background: var(--border); overflow: hidden;
}
.scroll-hint::after {
    content: ''; display: block; width: 1px; height: 20px; background: var(--rose-400);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }

/* ─── Marquee ─── */
.marquee {
    padding: 24px 0; overflow: hidden;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}
.marquee-track { display: flex; animation: marqueeMove 30s linear infinite; white-space: nowrap; }
.marquee-content {
    display: flex; align-items: center; gap: 48px; min-width: max-content;
    font-family: var(--f-display); font-size: 18px; font-weight: 400;
    color: var(--ink-muted); letter-spacing: 0.03em;
}
.marquee-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--rose-400); flex-shrink: 0; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Section Headers ─── */
.sec-header { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.sec-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rose-500); margin-bottom: 14px; display: block;
}
.sec-title {
    font-family: var(--f-display); font-size: clamp(28px, 4vw, 42px); font-weight: 300;
    line-height: 1.2; color: var(--ink); margin-bottom: 14px;
}
.sec-desc { font-size: 15px; color: var(--ink-muted); line-height: 1.7; font-weight: 300; }

/* ─── Product Grid ─── */
.products-section { padding: 100px 0; }
.filter-bar { display: flex; justify-content: center; gap: 6px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    padding: 9px 22px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500;
    color: var(--ink-secondary); border: 1px solid var(--border); transition: all var(--t-fast);
    letter-spacing: 0.02em;
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: white; border-color: var(--ink); }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px;
}

.p-card {
    background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
    transition: all var(--t-normal) var(--ease); cursor: pointer; border: 1px solid transparent;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.p-card-img {
    position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream-100);
}
.p-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-card-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,15,10,0.35) 0%, transparent 50%);
    opacity: 0; transition: opacity var(--t-normal); display: flex; align-items: flex-end; justify-content: center; padding: 20px;
}
.p-card:hover .p-card-overlay { opacity: 1; }
.p-card-quickview {
    padding: 10px 24px; background: var(--surface); border-radius: var(--r-pill);
    font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: 0.03em;
    transform: translateY(12px); opacity: 0; transition: all var(--t-normal) var(--ease);
}
.p-card:hover .p-card-quickview { transform: translateY(0); opacity: 1; }
.p-card-badge {
    position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: var(--r-pill);
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; z-index: 2;
}
.badge-new { background: var(--rose-500); color: white; }
.badge-hit { background: var(--ink); color: white; }
.p-card-info { padding: 18px 20px 22px; }
.p-card-cat {
    font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-faint); margin-bottom: 5px;
}
.p-card-name {
    font-family: var(--f-display); font-size: 19px; font-weight: 400; color: var(--ink);
    margin-bottom: 10px; line-height: 1.3;
}
.p-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.p-card-price { font-size: 16px; font-weight: 600; color: var(--ink); }
.p-card-cart {
    width: 36px; height: 36px; border-radius: 50%; background: var(--surface-alt);
    display: flex; align-items: center; justify-content: center; transition: all var(--t-fast);
    color: var(--ink);
}
.p-card-cart svg { width: 16px; height: 16px; }
.p-card-cart:hover { background: var(--ink); color: white; transform: scale(1.08); }

/* ─── Story Section ─── */
.story-section { padding: 100px 0; background: var(--surface-alt); }
.story-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.story-img-wrap { position: relative; }
.story-img {
    border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.story-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-img-accent {
    position: absolute; bottom: -12px; right: 20px; background: var(--surface);
    padding: 10px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
    font-size: 12px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.story-img-accent svg { width: 14px; height: 14px; color: var(--rose-500); }
.story-text h2 { text-align: left; }
.story-text .sec-label { text-align: left; }
.story-text p {
    font-size: 15px; color: var(--ink-secondary); line-height: 1.8; margin-bottom: 16px; font-weight: 300;
}
.story-stats {
    display: flex; gap: 28px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.story-stat { text-align: center; }
.story-stat-val {
    display: block; font-family: var(--f-display); font-size: 26px; font-weight: 300;
    color: var(--rose-500); margin-bottom: 2px;
}
.story-stat-lbl { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.02em; }

/* ─── Philosophy ─── */
.philosophy-section { padding: 120px 0; position: relative; overflow: hidden; }
.philosophy-section .sec-header { max-width: 760px; }
.philosophy-quote {
    font-family: var(--f-display); font-size: clamp(24px, 3.5vw, 44px); font-weight: 300;
    font-style: italic; line-height: 1.4; text-align: center; color: var(--ink); margin-bottom: 60px;
}
.philosophy-quote .qm { color: var(--rose-300); font-size: 1.4em; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
    padding: 36px 28px; background: var(--surface); border-radius: var(--r-lg);
    border: 1px solid var(--border); transition: all var(--t-normal) var(--ease); text-align: center;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--rose-200); }
.value-icon {
    width: 48px; height: 48px; margin: 0 auto 18px;
    background: var(--rose-50); border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center; color: var(--rose-500);
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 {
    font-family: var(--f-display); font-size: 20px; font-weight: 400; margin-bottom: 8px; color: var(--ink);
}
.value-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.6; font-weight: 300; }

/* ─── Footer ─── */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid {
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 26px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-tagline { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.4); }
.footer-group h4 {
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 18px;
}
.footer-group a {
    display: block; font-size: 13px; color: rgba(255,255,255,0.6); padding: 5px 0;
    transition: color var(--t-fast);
}
.footer-group a:hover { color: var(--rose-300); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.25);
}
.footer-heart { color: var(--rose-400); }
.footer-credit { font-size: 12px; color: rgba(255, 255, 255, 0.25); }
.footer-credit a { color: rgba(255, 255, 255, 0.4); text-decoration: none; transition: color 0.3s; }
.footer-credit a:hover { color: var(--rose-400); }

/* ─── Cart Drawer ─── */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(26,15,10,0.25); backdrop-filter: blur(4px);
    z-index: 200; opacity: 0; visibility: hidden; transition: all var(--t-normal);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw;
    background: var(--surface); z-index: 201; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform var(--t-normal) var(--ease); box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: translateX(0); }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-top h3 { font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.cart-close-btn { color: var(--ink-muted); padding: 4px; transition: color var(--t-fast); }
.cart-close-btn:hover { color: var(--ink); }
.cart-close-btn svg { width: 20px; height: 20px; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty-state { text-align: center; padding: 48px 0; color: var(--ink-muted); }
.cart-empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: 0.25; }
.cart-empty-state p { font-size: 15px; color: var(--ink-secondary); margin-bottom: 4px; }
.cart-empty-state span { font-size: 12px; }
.cart-item {
    display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border);
    animation: slideInRight 0.3s var(--ease);
}
@keyframes slideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.cart-item-thumb { width: 72px; height: 90px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.cart-item-meta { font-size: 11px; color: var(--ink-muted); margin-bottom: 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 14px; font-weight: 600; }
.cart-item-del {
    font-size: 11px; color: var(--ink-faint); text-decoration: underline; transition: color var(--t-fast);
}
.cart-item-del:hover { color: var(--rose-500); }
.cart-foot {
    padding: 20px 24px; border-top: 1px solid var(--border); background: var(--cream-50);
}
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 15px; }
.cart-total-val { font-size: 20px; font-weight: 700; color: var(--ink); }
.cart-checkout {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; background: var(--ink); color: white; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; transition: all var(--t-normal);
}
.cart-checkout:hover { background: var(--rose-600); box-shadow: var(--shadow-md); }
.cart-checkout svg { width: 16px; height: 16px; }
.cart-msg { text-align: center; font-size: 11px; color: var(--ink-muted); margin-top: 10px; }

/* ─── Quick View Modal ─── */
.qv-overlay {
    position: fixed; inset: 0; background: rgba(26,15,10,0.35); backdrop-filter: blur(8px);
    z-index: 300; opacity: 0; visibility: hidden; transition: all var(--t-normal);
}
.qv-overlay.open { opacity: 1; visibility: visible; }
.qv-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.92);
    z-index: 301; background: var(--surface); border-radius: var(--r-xl);
    max-width: 920px; width: 92vw; max-height: 88vh; overflow: hidden;
    opacity: 0; visibility: hidden; transition: all var(--t-normal) var(--ease); box-shadow: var(--shadow-xl);
}
.qv-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.qv-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border-radius: 50%; box-shadow: var(--shadow-sm);
    color: var(--ink); transition: all var(--t-fast);
}
.qv-close svg { width: 18px; height: 18px; }
.qv-close:hover { background: var(--rose-50); color: var(--rose-500); }
.qv-body { display: grid; grid-template-columns: 1fr 1fr; max-height: 88vh; }
.qv-gallery { background: var(--cream-50); padding: 28px; }
.qv-main-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 10px; }
.qv-main-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-fast); }
.qv-thumbs { display: flex; gap: 6px; }
.qv-thumb {
    width: 54px; height: 66px; border-radius: var(--r-xs); overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: border-color var(--t-fast); flex-shrink: 0;
}
.qv-thumb.active { border-color: var(--rose-400); }
.qv-thumb:hover { border-color: var(--rose-200); }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 36px 32px; overflow-y: auto; }
.qv-cat {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--rose-500); margin-bottom: 6px;
}
.qv-name {
    font-family: var(--f-display); font-size: 26px; font-weight: 400; line-height: 1.2;
    color: var(--ink); margin-bottom: 10px;
}
.qv-desc { font-size: 13px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 20px; }
.qv-price { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.qv-sizes { margin-bottom: 24px; }
.qv-sizes-label { font-size: 12px; font-weight: 500; color: var(--ink-secondary); margin-bottom: 8px; }
.qv-sizes-list { display: flex; gap: 6px; }
.size-opt {
    width: 42px; height: 42px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-size: 12px; font-weight: 500; color: var(--ink-secondary);
    display: flex; align-items: center; justify-content: center; transition: all var(--t-fast);
}
.size-opt:hover { border-color: var(--rose-300); color: var(--rose-500); }
.size-opt.active { background: var(--ink); border-color: var(--ink); color: white; }
.qv-add-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; background: var(--ink); color: white; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; transition: all var(--t-normal); margin-bottom: 24px;
}
.qv-add-btn:hover { background: var(--rose-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.qv-add-btn svg { width: 18px; height: 18px; }
.qv-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qv-detail {
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-muted);
    padding: 10px; background: var(--cream-50); border-radius: var(--r-sm);
}
.qv-detail svg { width: 16px; height: 16px; color: var(--rose-400); flex-shrink: 0; }

/* ─── Toast ─── */
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: var(--ink); color: white; padding: 12px 24px; border-radius: var(--r-pill);
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
    z-index: 500; box-shadow: var(--shadow-lg); transition: transform 0.5s var(--ease-spring);
    pointer-events: none;
}
.toast svg { width: 16px; height: 16px; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── Page: About ─── */
.page-hero {
    padding: 160px 0 80px; text-align: center; position: relative;
    background: radial-gradient(ellipse at 50% 80%, var(--rose-50) 0%, transparent 50%), var(--bg);
}
.page-hero-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rose-500); margin-bottom: 14px;
}
.page-hero-title {
    font-family: var(--f-display); font-size: clamp(36px, 5vw, 56px); font-weight: 300;
    line-height: 1.1; color: var(--ink); margin-bottom: 16px;
}
.page-hero-desc { font-size: 16px; color: var(--ink-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.about-content { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text h3 {
    font-family: var(--f-display); font-size: 28px; font-weight: 300; margin-bottom: 16px;
}
.about-text p { font-size: 14px; color: var(--ink-secondary); line-height: 1.8; margin-bottom: 14px; }
.about-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ─── Page: Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 80px 0; }
.contact-info h3 {
    font-family: var(--f-display); font-size: 28px; font-weight: 300; margin-bottom: 20px;
}
.contact-info p { font-size: 14px; color: var(--ink-secondary); line-height: 1.7; margin-bottom: 24px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
    display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink);
    padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-md);
    transition: all var(--t-fast);
}
.contact-link svg { width: 20px; height: 20px; color: var(--rose-500); flex-shrink: 0; }
.contact-link:hover { border-color: var(--rose-300); background: var(--rose-50); }
.contact-form { background: var(--surface-alt); padding: 36px; border-radius: var(--r-xl); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-secondary); margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-md);
    background: var(--surface); color: var(--ink); transition: border-color var(--t-fast); outline: none;
}
.form-input:focus { border-color: var(--rose-400); }
textarea.form-input { min-height: 100px; resize: vertical; }

/* ─── Page: Cart ─── */
.cart-page { padding: 40px 0 80px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-muted); text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-table td { padding: 16px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table-img { width: 60px; height: 75px; border-radius: var(--r-sm); overflow: hidden; }
.cart-table-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-table-name { font-size: 14px; font-weight: 500; }
.cart-table-meta { font-size: 12px; color: var(--ink-muted); }
.cart-summary {
    max-width: 400px; margin-left: auto; margin-top: 32px; padding: 28px;
    background: var(--surface-alt); border-radius: var(--r-lg);
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cart-summary-total { font-size: 18px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--border); }

/* ─── Page: Catalog ─── */
.catalog-hero { padding: 140px 0 40px; }
.catalog-count { font-size: 13px; color: var(--ink-muted); margin-bottom: 32px; text-align: center; }

/* ─── Page: Product Detail ─── */
.pd-section { padding: 120px 0 80px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pd-gallery {}
.pd-main-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 12px; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumb {
    width: 72px; height: 90px; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: border-color var(--t-fast);
}
.pd-thumb.active { border-color: var(--rose-400); }
.pd-thumb:hover { border-color: var(--rose-200); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info {}
.pd-breadcrumb { font-size: 12px; color: var(--ink-muted); margin-bottom: 20px; }
.pd-breadcrumb a { color: var(--ink-secondary); transition: color var(--t-fast); }
.pd-breadcrumb a:hover { color: var(--rose-500); }
.pd-cat {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--rose-500); margin-bottom: 8px;
}
.pd-name {
    font-family: var(--f-display); font-size: clamp(28px, 3vw, 36px); font-weight: 300;
    line-height: 1.2; color: var(--ink); margin-bottom: 14px;
}
.pd-price { font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.pd-desc { font-size: 14px; color: var(--ink-secondary); line-height: 1.8; margin-bottom: 28px; }
.pd-sizes { margin-bottom: 28px; }
.pd-sizes-label { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.pd-sizes-list { display: flex; gap: 8px; }
.pd-size-btn {
    width: 48px; height: 48px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-size: 13px; font-weight: 500; color: var(--ink-secondary);
    display: flex; align-items: center; justify-content: center; transition: all var(--t-fast);
}
.pd-size-btn:hover { border-color: var(--rose-300); color: var(--rose-500); }
.pd-size-btn.active { background: var(--ink); border-color: var(--ink); color: white; }
.pd-add-btn {
    width: 100%; max-width: 360px; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; background: var(--ink); color: white; border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600; transition: all var(--t-normal); margin-bottom: 28px;
}
.pd-add-btn:hover { background: var(--rose-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-feature {
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted);
    padding: 12px 14px; background: var(--surface-alt); border-radius: var(--r-sm);
}
.pd-feature svg { width: 18px; height: 18px; color: var(--rose-400); flex-shrink: 0; }

/* ─── Scroll Reveal ─── */
.sr { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.sr.visible { opacity: 1; transform: translateY(0); }
.sr-delay-1 { transition-delay: 0.1s; }
.sr-delay-2 { transition-delay: 0.2s; }
.sr-delay-3 { transition-delay: 0.3s; }
.sr-delay-4 { transition-delay: 0.4s; }

/* ─── Page Transition ─── */
.page-transition {
    position: fixed; inset: 0; z-index: 9998; background: var(--bg);
    transform: translateY(100%); transition: transform 0.5s var(--ease);
    pointer-events: none;
}
.page-transition.entering { transform: translateY(0); }
.page-transition.leaving { transform: translateY(-100%); }

/* ─── Responsive ─── */

/* Tablet: 1024px */
@media (max-width: 1024px) {
    /* Hero old class fallback */
    .hero .container { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-label { justify-content: center; }
    .hero-visual { width: 320px; height: 380px; }

    /* Layout grids → single col */
    .story-grid { grid-template-columns: 1fr; gap: 48px; }
    .story-text h2, .story-text .sec-label { text-align: center; }
    .story-text p { text-align: center; }
    .story-stats { justify-content: center; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .qv-body { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .pd-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Cart page table scroll */
    .cart-table { display: block; overflow-x: auto; }
}

/* Mobile landscape / small tablet: 768px */
@media (max-width: 768px) {
    /* Header → burger */
    .nav-center { display: none; }
    .burger { display: flex; }

    /* Product grid 2 col */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .p-card-info { padding: 12px 14px 16px; }
    .p-card-name { font-size: 15px; }
    .p-card-price { font-size: 14px; }
    .p-card-cart { width: 32px; height: 32px; }

    /* Layout resets */
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
    .cart-drawer { width: 100%; }
    .qv-modal { width: 96vw; max-height: 92vh; }
    .hero-visual { width: 260px; height: 320px; }

    /* Hero cinematic */
    .hero-cinematic { min-height: 85vh; }
    .hero-mega-title .hero-t1 { font-size: clamp(44px, 12vw, 80px); }
    .hero-mega-title .hero-t2 { font-size: clamp(50px, 14vw, 90px); }
    .hero-tagline { font-size: 14px; padding: 0 12px; }
    .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
    .hero-btn-light, .hero-btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
    .hero-dots { bottom: 60px; }
    .hero-scroll { bottom: 16px; }

    /* Brand soul section */
    .brand-soul { grid-template-columns: 1fr; min-height: auto; }
    .brand-soul-art { padding: 48px 32px; min-height: 350px; }
    .brand-soul-art img { max-width: 280px; }
    .brand-soul-text { padding: 40px 24px; }
    .brand-soul-text::before { font-size: 120px; top: 10px; left: 20px; }

    /* Section headers */
    .sec-header { margin-bottom: 36px; }
    .sec-title { font-size: clamp(24px, 5vw, 36px); }

    /* Sections */
    .products-section { padding: 60px 0; }
    .story-section { padding: 60px 0; }
    .philosophy-section { padding: 60px 0; }

    /* Page hero */
    .page-hero { padding: 120px 0 48px; }
    .page-hero-title { font-size: clamp(28px, 6vw, 42px); }

    /* Quick view */
    .qv-info { padding: 24px 20px; }
    .qv-gallery { padding: 16px; }
    .qv-name { font-size: 22px; }
    .qv-price { font-size: 20px; }
    .qv-details { grid-template-columns: 1fr; }

    /* Cart drawer */
    .cart-top h3 { font-size: 18px; }
    .cart-item-thumb { width: 60px; height: 75px; }

    /* Contact form */
    .contact-form { padding: 24px; }
}

/* Mobile phones: 480px */
@media (max-width: 480px) {
    /* Tighter container */
    .container { padding: 0 16px; }

    /* Hero cinematic tighter */
    .hero-cinematic { min-height: 90vh; }
    .hero-center { padding: 0 16px; }
    .hero-brand-label { font-size: 9px; letter-spacing: 0.2em; margin-bottom: 16px; }
    .hero-mega-title { margin-bottom: 16px; }
    .hero-mega-title .hero-t1 { font-size: 42px; }
    .hero-mega-title .hero-t2 { font-size: 48px; }
    .hero-tagline { font-size: 13px; margin-bottom: 28px; }

    /* Products */
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .p-card-name { font-size: 13px; }
    .p-card-cat { font-size: 9px; }
    .p-card-info { padding: 10px 10px 14px; }
    .p-card-badge { padding: 3px 8px; font-size: 9px; top: 8px; left: 8px; }
    .filter-btn { padding: 7px 14px; font-size: 11px; }
    .btn { padding: 13px 24px; font-size: 12px; }

    /* Brand soul */
    .brand-soul-art { padding: 40px 20px; min-height: 300px; }
    .brand-soul-art img { max-width: 220px; }
    .brand-soul-text { padding: 32px 20px; }
    .brand-soul-text h2 { font-size: 24px; }
    .brand-soul-text p { font-size: 14px; }
    .brand-soul-text::before { font-size: 80px; top: 5px; left: 12px; }

    /* Story */
    .story-grid { gap: 32px; }
    .story-stats { flex-wrap: wrap; gap: 20px; }
    .story-stat-val { font-size: 22px; }

    /* Dual feature (in index.html) */
    .dual-feature { grid-template-columns: 1fr !important; min-height: auto !important; }
    .dual-feature-content { padding: 32px 20px !important; }

    /* Quote banner */
    .quote-banner { padding: 60px 20px !important; }

    /* Features strip */
    .features-strip { grid-template-columns: 1fr 1fr !important; }
    .feature-item { padding: 24px 16px !important; }
    .feature-item:nth-child(2) { border-right: none !important; }
    .feature-item:nth-child(1), .feature-item:nth-child(2) { border-bottom: 1px solid var(--border); }

    /* Insta bento */
    .insta-bento { grid-template-columns: 1fr 1fr !important; grid-template-rows: 160px 160px 160px !important; }
    .insta-bento-item:first-child { grid-row: span 1 !important; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-tagline { font-size: 12px; }
    .footer-bottom { font-size: 11px; }

    /* Cart page */
    .cart-summary { max-width: 100%; padding: 20px; }
    .cart-table-img { width: 48px; height: 60px; }

    /* Page hero */
    .page-hero { padding: 100px 0 36px; }
    .page-hero-desc { font-size: 14px; }

    /* Quick view */
    .qv-modal { width: 100vw; max-height: 100vh; border-radius: 0; }
    .qv-main-img { aspect-ratio: 1/1; }
    .qv-sizes-list { flex-wrap: wrap; }
    .qv-add-btn { padding: 12px; }

    /* Marquee */
    .marquee { padding: 16px 0; }
    .marquee-content { font-size: 14px; gap: 32px; }

    /* Lifestyle banner */
    .lifestyle-banner { height: 30vh !important; min-height: 220px !important; }
}

/* Small phones: 375px and below */
@media (max-width: 375px) {
    .hero-mega-title .hero-t1 { font-size: 36px; }
    .hero-mega-title .hero-t2 { font-size: 40px; }
    .hero-tagline { font-size: 12px; }
    .hero-btn-light, .hero-btn-ghost { padding: 12px 24px; font-size: 12px; }

    .products-grid { gap: 8px; }
    .p-card-name { font-size: 12px; }
    .p-card-price { font-size: 12px; }
    .p-card-info { padding: 8px 8px 12px; }
    .p-card-cart { width: 28px; height: 28px; }
    .p-card-cart svg { width: 12px; height: 12px; }

    .brand-soul-text h2 { font-size: 22px; }
    .sec-title { font-size: 22px; }

    .cart-drawer { width: 100vw; }
    .cart-item-thumb { width: 50px; height: 60px; }
    .cart-item-name { font-size: 12px; }

    .footer-group h4 { font-size: 10px; }
    .footer-group a { font-size: 12px; }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .cart-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .p-card-overlay { opacity: 0 !important; }
    .p-card:active { transform: scale(0.98); }
    .btn:active { transform: scale(0.97); }
    .hero-btn-light:active { transform: scale(0.97); }
    .filter-btn:active { background: var(--cream-100); }
    .insta-bento-item::after { display: none; }
}
