@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    pointer-events: none;
    /* Let clicks pass through to canvas */
}

/* Re-enable clicks for specific containers if needed, or just children */
.container>* {
    pointer-events: none;
}

/* Exception for interactive elements */
a,
button,
input,
.product-card,
.filter-option,
.nav-icons i,
pointer-auto {
    pointer-events: auto;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 0;
    /* Premium sharp edges */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 0.9rem;
    pointer-events: auto;
    /* Ensure buttons are clickable */
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    pointer-events: auto;
    /* Ensure navbar captures clicks */
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons i {
    cursor: pointer;
    font-size: 1.2rem;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100%;
    background: var(--surface-color);
    z-index: 2001;
    padding: 3rem;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-active .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-active .cart-drawer {
    right: 0;
}

/* 3D Scene Container */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }


}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.search-active .search-overlay {
    opacity: 1;
    visibility: visible;
}

.search-box {
    width: 80%;
    max-width: 800px;
    position: relative;
    border-bottom: 2px solid #333;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem 0;
    font-family: var(--font-main);
    outline: none;
}

.close-search {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    z-index: 3001;
}