:root {
  /* Colors */
  --bg-body: #050505;
  --bg-surface: #121212;
  --bg-surface-2: #1e1e1e;
  
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --text-accent: #d4af37; /* Gold */
  
  --border-light: #27272a;
  --border-focus: #52525b;
  
  --primary-gradient: linear-gradient(135deg, #d4af37 0%, #b49321 100%);
  --primary-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 64px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Font */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cart { grid-template-columns: 2fr 1fr; align-items: start; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--text-accent); }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }

.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  box-shadow: var(--primary-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

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

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--bg-surface-2);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--text-accent);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Header */
.header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo span { color: var(--text-accent); }

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 70%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--bg-surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.product-actions {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: 600;
  color: var(--text-accent);
  font-size: 1.1rem;
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--text-accent);
}

.newsletter {
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  border: 1px solid var(--border-light);
}

.newsletter-form {
  max-width: 400px;
  margin: var(--space-lg) auto 0;
  display: flex;
  gap: var(--space-sm);
}

/* Filters */
.filters-sidebar {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  padding-right: var(--space-lg);
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  overflow-y: auto;
}

.filter-group {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-lg);
}

.filter-group:last-child { border-bottom: none; }

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  color: var(--text-muted);
}

.checkbox-item:hover { color: var(--text-main); }

/* Product Page */
.product-gallery {
  display: grid;
  gap: var(--space-md);
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.thumbnail {
  aspect-ratio: 1;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
}

.thumbnail.active { border-color: var(--text-accent); }

/* Cart */
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.cart-summary {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  height: fit-content;
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2a2a2e;
  color: #52525b;
  font-size: 2rem;
  font-weight: bold;
}

.placeholder-icon {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-image { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .filters-sidebar { display: none; } /* Simplified for prototype */
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header { padding: 0 var(--space-md); }
  .cart-item { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; }
  .cart-item > *:last-child { grid-column: 2; justify-self: start; }
  .container { padding: 0 var(--space-md); }
}
