:root {
    /* Palette: Cream & Pastel Orange */
    --bg: oklch(98% 0.01 95);          /* Soft Cream Background */
    --surface: oklch(95% 0.02 95);     /* Subtle Off-white Cards */
    --fg: oklch(10% 0 0);              /* Matte Black Text */
    --muted: oklch(45% 0.01 95);       /* Muted Brownish Gray */
    --border: oklch(90% 0.02 95);      /* Light Creamy Border */
    --accent: oklch(82% 0.12 70);      /* Warm Pastel Orange */
    --accent-2: oklch(75% 0.15 70);    /* Deep Pastel Orange */
    
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    
    --nav-height: 72px;
    --grid-margin: clamp(1.5rem, 5vw, 4rem);
    --radius: 4px;
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

.mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Layout Helpers */
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--grid-margin); }
.section { padding: 80px 0; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: var(--radius);
    font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600;
    text-transform: uppercase; cursor: pointer; border: none; transition: 0.2s;
}
.btn-primary { background: var(--accent); color: var(--fg); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-outline { border: 0.5px solid var(--border); color: var(--fg); }

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--grid-margin);
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border);
    z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }

/* Product Grid Elements */
.product-card { position: relative; cursor: pointer; }
.product-image {
    aspect-ratio: 4/5; background: var(--surface);
    overflow: hidden; border-radius: var(--radius);
    margin-bottom: 1rem; position: relative;
    border: 1.5px solid var(--fg); /* Contrasting outline added */
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-image img { transform: scale(1.05); }

/* Global Image and Container Outline */
img, 
.product-image, 
.gallery-image, 
.featured-banner, 
.cart-item-image,
[style*="aspect-ratio"] {
    border: 1.5px solid var(--fg) !important;
    border-radius: var(--radius);
}

/* Fix for containers that shouldn't have borders but contain images */
.hero-video-placeholder { border: none !important; }

.product-image img, 
.gallery-image img,
[style*="aspect-ratio"] img { 
    border: none !important; 
} /* Remove nested border to avoid double lines on internal img tags */

.product-info { display: flex; justify-content: space-between; align-items: flex-start; }
.product-name { font-size: 0.9rem; font-weight: 500; }
.product-price { font-family: var(--font-mono); color: var(--muted); }

/* Cart Slide-out */
.cart-overlay {
    position: fixed; top: 0; right: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); backdrop-filter: blur(4px);
    z-index: 2000; visibility: hidden; opacity: 0; transition: 0.3s;
}
.cart-overlay.active { visibility: visible; opacity: 1; }
.cart-panel {
    position: absolute; top: 0; right: -400px; width: 400px; height: 100%;
    background: var(--bg); border-left: 0.5px solid var(--border);
    padding: 2rem; display: flex; flex-direction: column;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-overlay.active .cart-panel { right: 0; }
