:root {
    --bg: #F5F5F7;
    --bg2: #FFFFFF;
    --text: #080808;
    --text-sec: #6B6B6B;
    --text-muted: #B0B0B0;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.2);
    --card-bg: rgba(0,0,0,0.025);
    --accent: #080808;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img { display: block; }

/* ===================================
   GLASS CARD UTILITY
=================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.03), 
                inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ===================================
   SECTION TITLE
=================================== */
.section-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

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

.loading-text {
    color: var(--text-sec);
    font-size: 0.9rem;
    padding: 3rem;
    text-align: center;
}

/* ===================================
   NAVBAR
=================================== */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.8rem;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    z-index: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03), 
                inset 0 1px 2px rgba(255, 255, 255, 0.6),
                0 1px 0 rgba(0, 0, 0, 0.01);
    transition: opacity 0.8s ease, 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease, 
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

.navbar.scrolled {
    top: 16px;
    max-width: 860px;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 
                inset 0 1px 3px rgba(255, 255, 255, 0.7);
}

.nav-left .logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    color: var(--text);
}

.nav-center {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-sec);
    transition: color 0.25s ease;
}

.nav-center a:hover { color: var(--text); }

.nav-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-sec);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--text);
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.nav-icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidden-initially {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   INTRO OVERLAY
=================================== */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.intro-logo {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: var(--text);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

.intro-logo.show {
    opacity: 1;
    transform: scale(1);
}

.intro-words {
    display: flex;
    gap: 1.5vw;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.intro-words.show {
    opacity: 1;
}

.intro-word {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    color: var(--text);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-word.animate-in { opacity: 1; filter: blur(0); }

#word-1 { transform: translate(-100vw, -50vh); }
#word-2 { transform: translate(100vw, -50vh); }
#word-3 { transform: translate(-100vw, 50vh); }
#word-4 { transform: translate(100vw, 50vh); }

.intro-word.centered {
    transform: translate(0, 0);
    position: relative;
    margin: 0 0.4rem;
}

.intro-overlay.fade-out { opacity: 0; }

/* ===================================
   CART COUNT BADGE
=================================== */
#cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #080808;
    color: #F5F5F7;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Locate Me Button */
.btn-locate-me {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-locate-me:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* 3D Depth Elements */
.product-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02), 0 1px 2px rgba(255,255,255,0.03) inset;
    border-radius: 12px;
}

.product-info {
    transform: translateZ(20px);
    transition: transform 0.4s ease;
}

.product-card-img {
    transform: translateZ(0) scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 1px 2px rgba(255,255,255,0.05) inset;
}

.product-card:hover .product-info {
    transform: translateZ(40px);
}

.product-card:hover .product-card-img {
    transform: translateZ(10px) scale(1.03);
}

/* ===================================
   CINEMATIC & LUXURY UX ELEMENTS
=================================== */

/* Film Grain */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    animation: grainAnimation 1.5s steps(3) infinite;
}

@keyframes grainAnimation {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-2%, -2%); }
    40% { transform: translate(2%, 2%); }
    50% { transform: translate(-1%, 2%); }
    60% { transform: translate(1%, -2%); }
    70% { transform: translate(2%, 1%); }
    80% { transform: translate(-2%, -1%); }
    90% { transform: translate(1%, 2%); }
    100% { transform: translate(0, 0); }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    will-change: width, height, transform;
}

.custom-cursor.hover {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.3);
    mix-blend-mode: normal;
}

@media (max-width: 768px) {
    .custom-cursor { display: none !important; }
}

/* Magnetic Buttons */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.magnetic-child {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient Soft Lighting */
.ambient-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hamburger — hidden on desktop */
.hamburger-btn { display: none; }

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(245,245,247,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 490;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-menu-link {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }

.mobile-menu-link:hover { color: var(--text-sec); }