/* === DESIGN TOKENS — LIGHT MODE (DEFAULT) === */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --surface: #ffffff;
  --border: #e0e0e0;
  --text-primary: #1a1a2e;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #1a3a6b;
  --cta-gold: #b8860b;
  --transition: 300ms ease;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --hero-overlay-top: rgba(255,255,255,0.1);
  --hero-overlay-bottom: rgba(26,26,46,0.7);
}

/* === DARK MODE === */
[data-theme="dark"] {
  --bg-primary: #0d1b2a;
  --bg-secondary: #0b1623;
  --surface: #1b2838;
  --border: #243447;
  --text-primary: #ffffff;
  --text-secondary: #a0b4c8;
  --text-muted: #6b8299;
  --accent: #2563eb;
  --cta-gold: #c9a84c;
  --nav-bg: rgba(11, 22, 35, 0.95);
  --hero-overlay-top: rgba(13,27,42,0.3);
  --hero-overlay-bottom: rgba(11,22,35,0.85);
}

/* === BASE === */
body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === TYPOGRAPHY === */
.font-serif { font-family: 'Cormorant Garamond', 'Playfair Display', serif; }
.letter-wide { letter-spacing: 0.35em; }
.letter-mid { letter-spacing: 0.18em; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
}

/* === VIDEO HERO === */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-bottom) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Hero text always white (over video) */
.hero-overlay * { color: #ffffff; }

/* === NAVIGATION === */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 56px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

/* === THEME TOGGLE === */
.theme-toggle {
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.theme-toggle:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease, background-color 0.3s ease;
}
.mobile-menu.active { transform: translateX(0); }

/* === EDITORIAL PRODUCT ROW === */
.product-row {
  display: flex;
  gap: 0;
  min-height: 550px;
  border-bottom: 1px solid var(--border);
}
.product-row.reverse { flex-direction: row-reverse; }
.product-row .product-image {
  flex: 1.2;
  overflow: hidden;
}
.product-row .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-row:hover .product-image img {
  transform: scale(1.02);
}
.product-row .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
  background: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .product-row, .product-row.reverse {
    flex-direction: column;
  }
  .product-row .product-info {
    padding: 2rem;
  }
}

/* === FILTER TABS === */
.filter-tab {
  padding: 0.6rem 1.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.filter-tab.active, .filter-tab:hover {
  color: var(--text-primary);
  background: transparent;
  border-color: var(--text-primary);
}

/* === GALLERY TABS === */
.gallery-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.gallery-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === CTA BUTTONS === */
.btn-primary {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* === PRODUCT DETAIL === */
.product-detail-hero {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}
.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
}
.thumbnail-gallery img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.thumbnail-gallery img:hover,
.thumbnail-gallery img.active {
  border-color: var(--cta-gold);
}

/* === RELATED PRODUCTS CAROUSEL === */
.related-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}
.related-card {
  min-width: 280px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), background-color 0.3s ease;
}
.related-card:hover {
  border-color: var(--text-muted);
}

/* === GALLERY HERO OVERLAY === */
.gallery-hero {
  position: relative;
  overflow: hidden;
}
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-hero-overlay * { color: #ffffff; }

/* === FORM INPUTS === */
input, textarea, select {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* === PRODUCT GRID SKELETON (loading placeholder) === */
.product-grid-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  min-height: 400px;
}
.product-grid-skeleton::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #f0f0f0 0%, #fafafa 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
