@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-tertiary: #1b1b22;
  --accent-gold: #c5a880;
  --accent-gold-glow: rgba(197, 168, 128, 0.4);
  --accent-gold-hover: #dec49e;
  --accent-red: #a61c1c;
  --accent-red-glow: rgba(166, 28, 28, 0.4);
  --accent-red-hover: #c42626;
  
  --text-primary: #e6e6e9;
  --text-secondary: #a2a2ac;
  --text-muted: #6e6e78;
  
  --border-color: rgba(197, 168, 128, 0.15);
  --border-color-glow: rgba(197, 168, 128, 0.3);
  
  /* Glassmorphism */
  --glass-bg: rgba(18, 18, 22, 0.8);
  --glass-blur: blur(12px);
  
  /* Shadows & Radius */
  --box-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --box-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --box-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Typography */
  --font-title: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-speed: 0.3s;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Global Typography & Headings */
h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: all var(--transition-speed) ease;
}

/* Utilities */
.glow-text-gold {
  text-shadow: 0 0 10px var(--accent-gold-glow);
}
.glow-text-red {
  text-shadow: 0 0 10px var(--accent-red-glow);
}
.gold-btn {
  background: var(--bg-tertiary);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gold-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}
.red-btn {
  background: var(--accent-red);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(166, 28, 28, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.red-btn:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #120e0a, #2f251b, #120e0a);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  font-family: var(--font-body);
  position: relative;
  z-index: 101;
}

.announcement-bar strong {
  font-weight: 700;
  text-shadow: 0 0 8px var(--accent-gold-glow);
}



/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  object-fit: cover;
  transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.logo-container:hover .logo-image {
  transform: scale(1.05);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.logo-text h1 {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}
.logo-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-top: -3px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul a {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition-speed) ease;
}

nav ul a:hover::after {
  width: 100%;
}

.header-widgets {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}



.cart-icon-btn {
  position: relative;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-icon-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-primary);
}

/* Hero Section */
.hero {
  height: 80vh;
  position: relative;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(10,10,12,1) 90%), url('assets/hero_impala_night.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(10,10,12,0.4) 50%, rgba(10,10,12,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tagline {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.hero-quote {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  min-height: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Typewriter cursor effect */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-gold);
  margin-left: 3px;
  animation: blink 0.75s step-end infinite;
  vertical-align: middle;
}

/* Shop Section & Catalog */
.shop-section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 1.5rem auto 0;
}

/* Filters & Search */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 450px;
}

.search-box input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-muted);
  pointer-events: none;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(197, 168, 128, 0.05);
}

/* Product Catalog Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Product Card */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow-sm);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  pointer-events: none;
  transition: border-color var(--transition-speed) ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-glow);
  box-shadow: var(--box-shadow-md), 0 0 20px rgba(197, 168, 128, 0.05);
}

.product-card:hover::before {
  border-color: var(--accent-gold);
}

.product-image-container {
  height: 240px;
  background: radial-gradient(circle, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.product-svg-icon {
  width: 90px;
  height: 90px;
  stroke: var(--accent-gold);
  fill: none;
  stroke-width: 1;
  transition: transform 0.5s ease;
}

.product-card:hover .product-svg-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 10px var(--accent-gold-glow));
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  z-index: 2;
}

.product-badge.cursed {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(166, 28, 28, 0.1);
  animation: border-red-glow 1.5s infinite alternate;
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  min-height: 3.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.product-card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.product-card-footer button {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-view-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.card-view-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Quiz Section */
.quiz-section {
  background: radial-gradient(ellipse at bottom, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6rem 5%;
  text-align: center;
}

.quiz-container {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--box-shadow-md);
  position: relative;
  overflow: hidden;
}

.quiz-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-gold));
}

.quiz-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: block;
}

.quiz-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.quiz-progress {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent-gold);
  width: 0%;
  transition: width 0.4s ease;
}

.quiz-question-container {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-question {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 500;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quiz-option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option:hover {
  border-color: var(--accent-gold);
  background: rgba(197, 168, 128, 0.05);
}

.quiz-option.correct {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.quiz-option.incorrect {
  border-color: var(--accent-red);
  background: rgba(166, 28, 28, 0.1);
  color: #28a745; /* Shows correct answers in success state later, but let's color selected option */
}

.quiz-option.incorrect-selected {
  border-color: var(--accent-red);
  background: rgba(166, 28, 28, 0.1);
  color: var(--accent-red);
}

.quiz-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.quiz-results-title {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.quiz-results-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 450px;
}

.promo-unlock {
  border: 2px dashed var(--accent-gold);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  background: rgba(197, 168, 128, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.promo-code {
  font-family: monospace;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* Footer styling */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 5% 2rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col h3 {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent-gold);
  margin-top: 0.5rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col ul a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* Modern Native Popovers (Dropdown Cart Menu) */
#cart-drawer {
  position: fixed;
  top: 75px; /* Positioned just below the header */
  right: 5%; /* Aligned with the cart button in the header */
  width: 420px;
  max-width: 90vw;
  max-height: 75vh;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  box-shadow: var(--box-shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  
  /* Modern Web Transition: Fade & Slide Down */
  transform: translateY(-20px);
  opacity: 0;
  transition: 
    transform var(--transition-speed) ease, 
    opacity var(--transition-speed) ease,
    overlay var(--transition-speed) allow-discrete, 
    display var(--transition-speed) allow-discrete;
}

#cart-drawer:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  opacity: 1;
}

@starting-style {
  #cart-drawer:is(:popover-open, .\:popover-open) {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Backdrop for popover: transparent so click-outside works but page isn't darkened */
#cart-drawer::backdrop {
  background-color: transparent;
  opacity: 0;
  transition: 
    opacity var(--transition-speed) ease, 
    overlay var(--transition-speed) allow-discrete, 
    display var(--transition-speed) allow-discrete;
}

#cart-drawer:is(:popover-open, .\:popover-open)::backdrop {
  opacity: 1;
}

@starting-style {
  #cart-drawer:is(:popover-open, .\:popover-open)::backdrop {
    opacity: 0;
  }
}

/* Cart Drawer Contents */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.cart-header h3 {
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.close-cart-btn {
  color: var(--text-secondary);
  font-size: 1.5rem;
  padding: 0.25rem;
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-right: 0.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

.cart-item-icon {
  width: 48px;
  height: 48px;
  stroke: var(--accent-gold);
  stroke-width: 1.5;
  fill: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

img.cart-item-icon {
  object-fit: cover;
  padding: 2px;
}

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

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.qty-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.qty-val {
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-remove:hover {
  color: var(--accent-red);
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 4rem;
  font-style: italic;
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.promo-section {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.promo-section input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.promo-section input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.promo-apply-btn {
  background: var(--bg-tertiary);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.promo-apply-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.promo-feedback {
  font-size: 0.75rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.promo-feedback.success {
  color: #28a745;
  display: block;
}

.promo-feedback.error {
  color: var(--accent-red);
  display: block;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-totals-row.discount {
  color: #28a745;
}

.cart-totals-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
}

/* Modern Native Dialogs (<dialog>) */
dialog {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  max-width: 600px;
  width: 90%;
  padding: 2.5rem;
  box-shadow: var(--box-shadow-lg);
  
  /* Centering positioning */
  position: fixed;
  inset: 0;
  margin: auto;
  
  /* CSS transitions */
  opacity: 0;
  transform: scale(0.95);
  transition: 
    opacity var(--transition-speed) ease, 
    transform var(--transition-speed) ease, 
    overlay var(--transition-speed) allow-discrete, 
    display var(--transition-speed) allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Dialog Backdrop styling */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: var(--glass-blur);
  opacity: 0;
  transition: 
    opacity var(--transition-speed) ease, 
    overlay var(--transition-speed) allow-discrete, 
    display var(--transition-speed) allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* Journal styled Product Detail Modal */
.detail-modal {
  max-width: 700px;
  border-color: rgba(197, 168, 128, 0.4);
  background: radial-gradient(circle at center, #1b1712 0%, var(--bg-secondary) 100%);
  position: relative;
}

/* Aged Journal Overlay Effect */
.detail-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, transparent 70%, rgba(0,0,0,0.5) 100%);
  border-radius: var(--radius-lg);
}

.detail-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.25rem;
  z-index: 10;
}

.detail-close-btn:hover {
  color: var(--accent-gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 240px;
}

.detail-left svg {
  width: 120px;
  height: 120px;
  stroke: var(--accent-gold);
  stroke-width: 1;
  fill: none;
  filter: drop-shadow(0 0 10px var(--accent-gold-glow));
}

.detail-right {
  display: flex;
  flex-direction: column;
}

.detail-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.detail-badge.danger {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(166, 28, 28, 0.05);
}

.detail-title {
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.detail-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Winchester Journal Stats section */
.journal-stats {
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(27, 23, 18, 0.5);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.journal-stats-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(197, 168, 128, 0.2);
  padding-bottom: 0.25rem;
}

.journal-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.journal-stats-row:last-child {
  margin-bottom: 0;
}

.journal-label {
  color: var(--text-secondary);
}

.journal-value {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Checkout Success Modal / Animation */
.checkout-modal {
  text-align: center;
  max-width: 450px;
}

.checkout-success-icon {
  margin: 0 auto 1.5rem;
  width: 120px;
  height: 120px;
  position: relative;
}

/* Salt circle SVG path animation */
.salt-circle-svg {
  width: 100%;
  height: 100%;
}

.salt-circle-path {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 3;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 2s ease-in-out;
}

.checkout-modal[open] .salt-circle-path {
  stroke-dashoffset: 0;
}

.pentagram-path {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.5s ease-in-out 1s;
}

.checkout-modal[open] .pentagram-path {
  stroke-dashoffset: 0;
}

.checkout-title {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.checkout-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.receipt-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  font-family: monospace;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.receipt-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* CSS Keyframes */
@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes flash-red {
  from { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
  to { box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); }
}

@keyframes border-red-glow {
  from { border-color: rgba(166, 28, 28, 0.4); box-shadow: 0 0 5px rgba(166, 28, 28, 0.2); }
  to { border-color: rgba(255, 0, 0, 0.8); box-shadow: 0 0 12px rgba(255, 0, 0, 0.4); }
}

/* Responsive Grid Tweaks */
@media (max-width: 768px) {
  header {
    padding: 1rem 3%;
  }
  
  nav {
    display: none; /* Hide standard nav on mobile for simplicity, keep header items */
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .catalog-controls {
    padding: 1rem;
  }
  
  .quiz-container {
    padding: 2rem 1.5rem;
  }
}
