@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-pure-black: #050505;
  --bg-deep-charcoal: #0f0f12;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --accent-gold: #d4af37;
  --accent-ice-blue: #60a5fa;
  --text-silver: #cbd5f5;
  --text-white: #ffffff;
  --text-muted: #8892b0;
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: clamp(4rem, 8vw, 8rem);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-pure-black);
  color: var(--text-silver);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-weight: 400;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Fluid Scaling */
.title-xl { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.02em; }
.title-lg { font-size: clamp(2rem, 5vw, 4rem); }
.title-md { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.text-lg { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-muted); }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-silver);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--accent-gold);
  color: var(--bg-pure-black);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-pure-black);
}

.btn-primary:hover {
  background: #e6c85e;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--bg-pure-black);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-white);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-gold);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.9) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--spacing-md);
  z-index: 1;
}

.hero-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Product Cards */
.product-card {
  background: var(--bg-deep-charcoal);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-glass);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-info {
  padding: var(--spacing-md);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.25rem;
  margin: var(--spacing-xs) 0;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-weight: 500;
}

.product-price {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

/* Feature Cards */
.feature-card {
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.02);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

.feature-title {
  margin-bottom: var(--spacing-xs);
  font-size: 1.5rem;
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-xl);
}

.split-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* CTA Section */
.cta-section {
  background: radial-gradient(circle at center, var(--bg-deep-charcoal) 0%, var(--bg-pure-black) 100%);
  text-align: center;
  padding: calc(var(--spacing-xl) * 1.5) var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 3D Product Viewer Section */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-xl);
  padding-top: 120px;
}

.product-viewer-container {
  background: radial-gradient(circle at center, #1a1a24 0%, var(--bg-pure-black) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  height: 70vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.viewer-instruction {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.product-info-panel h1 {
  margin-bottom: var(--spacing-xs);
}

.product-info-panel .price {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

.product-desc {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.size-selector {
  margin-bottom: var(--spacing-lg);
}

.size-selector h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-silver);
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-btn {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-white);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.size-btn:hover, .size-btn.active {
  background: var(--text-white);
  color: var(--bg-pure-black);
  border-color: var(--text-white);
}

.qty-cart-wrapper {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
  width: 30px;
}

.qty-input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1rem;
}

/* Cart & Checkout */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  padding-top: 120px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-deep-charcoal);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-remove {
  color: #ff4d4d;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.order-summary {
  background: var(--bg-glass);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  color: var(--text-silver);
}

.summary-total {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  font-size: 1.5rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-silver);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255,255,255,0.05);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--bg-deep-charcoal);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-md { margin-bottom: var(--spacing-md); }
.pt-120 { padding-top: 120px; }
.gsap-reveal { opacity: 0; transform: translateY(30px); }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; text-align: center; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-deep-charcoal);
    flex-direction: column;
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .qty-cart-wrapper { flex-direction: column; }
  .btn { width: 100%; }
}