/* ==========================================================================
   THE HERITAGE GAME COMPANY - MASTER STYLESHEET
   Aesthetic: Timeless Heritage Luxury, Artisanal Leathercraft & Museum Integrity
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-main: #141210;
  --bg-surface: #1b1714;
  --bg-surface-elevated: #241f1a;
  --bg-surface-subtle: #2b2520;
  --bg-parchment: #f8f4ec;
  --bg-parchment-subtle: #efe8db;
  
  --gold-primary: #c59b48;
  --gold-light: #dfb76c;
  --gold-dark: #987229;
  --gold-glow: rgba(197, 155, 72, 0.25);
  
  --text-main: #f5f0e6;
  --text-muted: #b5aba0;
  --text-dim: #7f766c;
  --text-dark: #1f1b16;
  --text-dark-muted: #665e55;
  
  --leather-brown: #8d5b36;
  --leather-grey: #736d67;
  --leather-cream: #ebe4d5;
  
  --border-subtle: rgba(197, 155, 72, 0.18);
  --border-active: rgba(197, 155, 72, 0.5);
  --border-light: #dfd5c4;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(197, 155, 72, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, .font-serif {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Badges & Tags */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 155, 72, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-era {
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.stars {
  color: var(--gold-light);
  letter-spacing: 2px;
}

/* ==========================================================================
   TOP BAR & HEADER NAVIGATION
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #181410 0%, #2b2216 50%, #181410 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.announcement-bar strong {
  color: var(--gold-light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(20, 18, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-main);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-smooth);
  list-style: none;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-item a:hover {
  background: var(--bg-surface-subtle);
}

.dropdown-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
}

.dropdown-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.currency-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(197, 155, 72, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.cart-trigger-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cart-trigger-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(197, 155, 72, 0.08);
}

.cart-count-badge {
  background: var(--gold-primary);
  color: var(--bg-main);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #0f0d0b;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: #050505;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(197, 155, 72, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 60% 40%, rgba(27, 23, 20, 0.4) 0%, rgba(20, 18, 16, 0.95) 80%), url('../images/hero/workshop_hero.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 16, 0.96) 0%, rgba(20, 18, 16, 0.82) 50%, rgba(20, 18, 16, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero-tag {
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  border-left: 3px solid var(--gold-primary);
  padding-left: 12px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-title span {
  color: var(--gold-light);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(197, 155, 72, 0.2);
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
}

.hero-feature-number {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: 700;
}

.hero-feature-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   FEATURED COLLECTION SECTION
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-darker {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-badge {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Game Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.game-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0d0c0a;
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.game-card-era {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.game-card-subtitle {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.game-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.game-specs-mini {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.game-specs-mini span strong {
  color: var(--text-main);
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card-price {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   MATERIALS & CRAFTSMANSHIP SHOWCASE
   ========================================================================== */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.craft-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

.craft-img-wrap {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.craft-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-title {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.craft-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HISTORICAL ACCURACY SECTION
   ========================================================================== */
.accuracy-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.accuracy-tier-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.tier-header {
  margin-bottom: 16px;
}

.tier-stars {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.tier-title {
  font-size: 1.2rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.tier-examples {
  background: var(--bg-surface-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.tier-examples strong {
  color: var(--gold-light);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE LAYOUT
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 40px 0 80px 0;
}

.product-gallery {
  position: sticky;
  top: 110px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0d0c0a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: all var(--transition-fast);
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--gold-primary);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-info-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.product-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--text-main);
  margin: 12px 0 8px 0;
}

.product-subtitle {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.product-price-bar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 16px 0;
}

.product-price-main {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.product-vat-tag {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Material Selection */
.option-group {
  margin: 24px 0;
}

.option-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.option-label span {
  color: var(--gold-light);
}

.option-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatch-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.swatch-btn.active, .swatch-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(197, 155, 72, 0.12);
  color: var(--gold-light);
}

.swatch-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}

.qty-add-bar {
  display: flex;
  gap: 16px;
  margin: 32px 0 20px 0;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 44px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--gold-light);
}

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

.product-perks-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.perk-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tabs */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px;
  margin: 40px 0 28px 0;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
}

.tab-content {
  display: none;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.tab-content h3 {
  color: var(--text-main);
  font-size: 1.4rem;
  margin: 24px 0 12px 0;
}

.tab-content ul, .tab-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.tab-content li {
  margin-bottom: 8px;
}

/* Rule Phases Grid */
.rule-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.phase-card {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px;
}

.phase-tag {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phase-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.specs-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 35%;
}

.specs-table td {
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* ==========================================================================
   SLIDE-OUT CART DRAWER
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-subtle);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-drawer-title {
  font-size: 1.2rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--gold-light);
}

/* Free Shipping Meter */
.free-shipping-meter {
  padding: 14px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meter-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.meter-text strong {
  color: var(--gold-light);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cart-item-variants {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: #ff6b6b;
}

.cart-drawer-footer {
  padding: 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.cart-subtotal-row strong {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--text-main);
}

/* ==========================================================================
   CHECKOUT PAGE & FORMS
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 50px 0 100px 0;
}

.form-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 28px;
}

.form-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option-card:hover, .payment-option-card.selected {
  border-color: var(--gold-primary);
  background: rgba(197, 155, 72, 0.08);
}

.checkout-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: 110px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f0d0b;
  border-top: 2px solid var(--border-subtle);
  padding: 80px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 16px 0 20px 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-primary);
  color: var(--text-main);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .product-detail-layout, .checkout-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-gallery, .checkout-summary-box {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .craft-grid, .accuracy-tiers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   THE HERITAGE GAME COMPANY - ADMIN DASHBOARD STYLESHEET
   Aesthetic: Timeless Heritage Luxury, Artisanal Leathercraft
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #141210;
  color: #f5f0e6;
}

.admin-sidebar {
  width: 270px;
  background-color: #1b1714;
  border-right: 1px solid rgba(197, 155, 72, 0.2);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  flex-shrink: 0;
}

.admin-sidebar-logo {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(197, 155, 72, 0.15);
}

.admin-sidebar-logo img {
  max-height: 52px;
  margin: 0 auto 10px;
}

.admin-sidebar-logo h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #c59b48;
  letter-spacing: 1.5px;
  margin: 0;
}

.admin-sidebar-logo p {
  font-size: 0.72rem;
  color: #7f766c;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 4px 0 0;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b5aba0;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.admin-nav-item:hover {
  color: #f5f0e6;
  background: rgba(197, 155, 72, 0.1);
  border-color: rgba(197, 155, 72, 0.25);
  padding-left: 20px;
}

.admin-nav-item.active {
  color: #141210;
  background: linear-gradient(135deg, #c59b48 0%, #dfb76c 100%);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(197, 155, 72, 0.35);
}

.admin-main {
  flex: 1;
  padding: 36px 40px;
  overflow-y: auto;
  background: #141210;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(197, 155, 72, 0.15);
  flex-wrap: wrap;
  gap: 16px;
}

.admin-topbar h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #f5f0e6;
  margin: 0;
}

.admin-topbar p {
  color: #b5aba0;
  font-size: 0.9rem;
  margin: 4px 0 0;
}

/* Stat Cards */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: #1b1714;
  border: 1px solid rgba(197, 155, 72, 0.2);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #c59b48, transparent);
}

.stat-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #7f766c;
  margin-bottom: 10px;
}

.stat-card-val {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #dfb76c;
}

/* Table Card */
.admin-table-card {
  background: #1b1714;
  border: 1px solid rgba(197, 155, 72, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #241f1a;
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c59b48;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(197, 155, 72, 0.2);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #f5f0e6;
}

.admin-table tr:hover td {
  background: rgba(197, 155, 72, 0.04);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-paid {
  background: rgba(72, 197, 115, 0.15);
  color: #48c573;
  border: 1px solid rgba(72, 197, 115, 0.35);
}

.badge-pending {
  background: rgba(223, 183, 108, 0.15);
  color: #dfb76c;
  border: 1px solid rgba(223, 183, 108, 0.35);
}

.badge-shipped {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 9999px;
  background: #1b1714;
  border: 1px solid rgba(197, 155, 72, 0.2);
  color: #b5aba0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: #f5f0e6;
  border-color: #c59b48;
}

.filter-chip.active {
  background: #c59b48;
  color: #141210;
  border-color: #c59b48;
  font-weight: 700;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #c59b48 0%, #dfb76c 100%);
  color: #141210;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(197, 155, 72, 0.4);
  color: #141210;
}

.btn-outline-gold {
  background: transparent;
  color: #c59b48;
  border: 1px solid #c59b48;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(197, 155, 72, 0.15);
  color: #f5f0e6;
}

/* Forms */
.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-label {
  display: block;
  font-size: 0.85rem;
  color: #b5aba0;
  margin-bottom: 8px;
  font-weight: 600;
}

.admin-form-input, .admin-form-select {
  width: 100%;
  padding: 12px 16px;
  background: #241f1a;
  border: 1px solid rgba(197, 155, 72, 0.25);
  border-radius: 6px;
  color: #f5f0e6;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.admin-form-input:focus, .admin-form-select:focus {
  outline: none;
  border-color: #c59b48;
  box-shadow: 0 0 10px rgba(197, 155, 72, 0.25);
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(197, 155, 72, 0.2);
  }
  .admin-main {
    padding: 24px 20px;
  }
}
