/* ===== Spiritual Surplus — Luxury Apothecary ===== */
/* Warm parchment #F5F0E8, Metallic Gold accents      */
/* Playfair Display + Cormorant Garamond + Cinzel + Inter */
/* Restored original build — June 8, 2026             */

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

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* --- Backgrounds --- */
  --bg-primary: #F5F0E8;
  --bg-secondary: #EDE6D6;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(245, 240, 232, 0.88);
  --bg-glass-heavy: rgba(245, 240, 232, 0.96);
  --bg-signature: #2D1810;
  --bg-overlay: rgba(45, 24, 16, 0.6);

  /* --- Gold Palette — Metallic Gradients Only, No Flat Gold --- */
  --gold-deep: #8B7500;
  --gold-dark: #A88830;
  --gold-mid: #B8860B;
  --gold-base: #C9A84C;
  --gold-light: #DAB766;
  --gold-bright: #DFC46A;
  --gold-shine: #F4E4BC;
  --gold-white: #FDDDAA;

  --gold-gradient: linear-gradient(135deg, #A88830 0%, #C9A84C 25%, #DFC46A 45%, #C9A84C 55%, #A88830 100%);
  --gold-shimmer: linear-gradient(90deg, #C9A84C 0%, #DFC46A 25%, #F4E4BC 50%, #DFC46A 75%, #C9A84C 100%);
  --gold-text: linear-gradient(to bottom, #DFC46A 0%, #C9A84C 40%, #A88830 100%);
  --gold-button: linear-gradient(180deg, #A88830 0%, #C9A84C 30%, #DFC46A 50%, #C9A84C 70%, #A88830 100%);
  --gold-border: linear-gradient(135deg, #A88830, #DFC46A, #C9A84C, #A88830);

  /* --- Text --- */
  --text-primary: #3E2723;
  --text-secondary: #6B6258;
  --text-muted: #9A9280;
  --text-on-dark: #F5F0E8;
  --text-on-gold: #2D1810;

  /* --- Borders --- */
  --border: #E8E0D0;
  --border-gold: rgba(201, 168, 76, 0.3);
  --border-gold-strong: rgba(201, 168, 76, 0.5);

  /* --- Semantic --- */
  --danger: #B84C4C;
  --success: #4A8C5C;

  /* --- Shadows --- */
  --shadow: 0 4px 20px rgba(62, 39, 35, 0.06);
  --shadow-hover: 0 8px 32px rgba(62, 39, 35, 0.1);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);
  --shadow-gold-strong: 0 6px 28px rgba(201, 168, 76, 0.25);

  /* --- Radii --- */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* --- Transitions --- */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-shimmer: 0.6s ease;

  /* --- Typography --- */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;

  /* --- Sizes --- */
  --max-width: 1200px;
  --max-width-shop: 1400px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --- Paper grain texture overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

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

a { color: inherit; }

button { cursor: pointer; font-family: inherit; }


/* ============================================================
   MODAL OVERLAY — Fullscreen product detail modals
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(45, 24, 16, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s ease;
  border: 1px solid var(--border);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: var(--bg-secondary); }
.modal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-header {
  padding: 2rem 2rem 0;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 0 2rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}


/* ============================================================
   CART DRAWER — Slide-in cart panel
   ============================================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-card);
  z-index: 6000;
  box-shadow: -8px 0 32px rgba(45, 24, 16, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

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

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

.cart-drawer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-drawer-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-drawer-items::-webkit-scrollbar { width: 4px; }
.cart-drawer-items::-webkit-scrollbar-track { background: transparent; }
.cart-drawer-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-drawer-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-item:last-child {
  border-bottom: none;
}

.cart-drawer-item-img {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-drawer-item-info {
  flex: 1;
  min-width: 0;
}

.cart-drawer-item-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-drawer-item-price {
  font-size: 0.9rem;
  color: var(--gold-deep);
  font-weight: 600;
  font-family: var(--font-heading);
}

.cart-drawer-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-drawer-item-qty button {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.cart-drawer-item-qty button:hover {
  background: var(--gold-base);
  border-color: var(--gold-base);
  color: var(--text-on-gold);
}

.cart-drawer-item-qty span {
  font-size: 0.85rem;
  font-family: var(--font-ui);
  min-width: 1.2rem;
  text-align: center;
}

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

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cart-drawer-total span:last-child {
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.cart-drawer-checkout {
  width: 100%;
  background: var(--gold-button);
  border: none;
  color: var(--text-on-gold);
  padding: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-ui);
  border-radius: var(--radius-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cart-drawer-checkout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.cart-drawer-checkout:hover::before {
  transform: translateX(100%);
}

.cart-drawer-checkout:hover {
  box-shadow: var(--shadow-gold-strong);
  transform: translateY(-1px);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 5999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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


/* ============================================================
   CHAT WIDGET — Customer support floating widget
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 4000;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-button);
  border: none;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold-strong);
}

.chat-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-on-gold);
}

.chat-box {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(45, 24, 16, 0.12);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.chat-widget.active .chat-box {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: var(--bg-signature);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--gold-base);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.chat-header-status {
  font-size: 0.65rem;
  color: var(--success);
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: chat-pulse 2s ease-in-out infinite;
}

@keyframes chat-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg.bot {
  background: var(--bg-secondary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-xs);
}

.chat-msg.user {
  background: var(--gold-button);
  color: var(--text-on-gold);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-xs);
}

.chat-input-wrap {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 0.5rem;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  outline: none;
  transition: var(--transition);
  background: var(--bg-primary);
}

.chat-input:focus {
  border-color: var(--gold-base);
  box-shadow: 0 0 0 2px var(--border-gold);
}

.chat-send {
  background: var(--gold-button);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-on-gold);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.chat-send:hover {
  box-shadow: var(--shadow-gold);
}

/* --- Cart notification slide-in --- */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-hover);
  z-index: 7000;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-notification.show {
  transform: translateX(0);
}

.cart-notification-icon {
  width: 36px;
  height: 36px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.cart-notification-msg {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.cart-notification-msg strong {
  color: var(--gold-deep);
  font-family: var(--font-heading);
}


/* ============================================================
   PRICE TICKER — Top fixed scrolling price bar
   ============================================================ */
.price-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #1A1510;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  font-size: 0.75rem;
  color: #9A9280;
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
}

.ticker-name {
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.ticker-our-price {
  color: var(--gold-bright);
  font-weight: 700;
}

.ticker-save {
  color: var(--success);
  font-weight: 700;
}

.ticker-sep {
  color: var(--text-muted);
  opacity: 0.3;
  margin: 0 0.25rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-bar .logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gold-shimmer);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 2px;
  animation: logo-shimmer 6s ease-in-out infinite;
}

@keyframes logo-shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.nav-bar .logo span {
  font-family: var(--font-heading);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-base);
}

.cart-toggle {
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold-base);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-toggle:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold-base);
}

.cart-count {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  padding: 0.25rem;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  background:
    radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(223, 196, 106, 0.05) 0%, transparent 40%);
  animation: hero-glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  line-height: 1.15;
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-family: var(--font-body);
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  background: var(--gold-button);
  color: var(--text-on-gold);
  border: none;
  padding: 1rem 2.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-ui);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-primary:active {
  transform: translateY(0);
}


/* ============================================================
   SECTION — Generic content containers
   ============================================================ */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
}


/* ============================================================
   FEATURE GRID / CARDS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-family: var(--font-heading);
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}


/* ============================================================
   STATS — Metrics / counters section
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.stats::before,
.stats::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.stats::before { top: 2rem; }
.stats::after { bottom: 2rem; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  font-family: var(--font-ui);
}


/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-signature);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  line-height: 1.8;
}

.footer a {
  color: var(--gold-base);
  text-decoration: none;
  transition: var(--transition);
}

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


/* ============================================================
   PAGE HEADER — Inner page headers
   ============================================================ */
.page-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  font-family: var(--font-body);
}


/* ============================================================
   SHOP LAYOUT — Sidebar + product grid
   ============================================================ */
.shop-layout {
  display: flex;
  gap: 2rem;
  max-width: var(--max-width-shop);
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-section h3 {
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

/* Category filter buttons */
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.category-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  transition: var(--transition);
}

.category-btn:hover {
  color: var(--gold-base);
  background: rgba(201, 168, 76, 0.05);
}

.category-btn.active {
  color: var(--gold-base);
  background: rgba(201, 168, 76, 0.1);
  font-weight: 600;
}

/* Price filter buttons */
.price-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.price-filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  transition: var(--transition);
}

.price-filter-btn:hover {
  color: var(--gold-base);
  background: rgba(201, 168, 76, 0.05);
}

.price-filter-btn.active {
  color: var(--gold-base);
  background: rgba(201, 168, 76, 0.1);
  font-weight: 600;
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  flex: 1;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-img {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.4s ease;
}

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

.product-card-body {
  padding: 0.9rem;
}

.product-card-body .product-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.product-card-body .product-dept {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--gold-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.product-card-body .product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-deep);
  font-family: var(--font-heading);
}

/* Out of stock overlay */
.product-card.out-of-stock {
  opacity: 0.7;
  cursor: default;
}

.product-card.out-of-stock .oos-badge {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 2;
  transform: translateY(-50%);
}


/* ============================================================
   PRICE BADGES — Overlaid on product cards
   ============================================================ */
.price-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  font-family: var(--font-ui);
}

.price-badge.badge-beat {
  background: rgba(74, 140, 92, 0.9);
  color: #fff;
  border: 1px solid rgba(74, 140, 92, 0.3);
}

.price-badge.badge-amazon {
  background: rgba(201, 168, 76, 0.9);
  color: var(--text-on-gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.price-badge.badge-best {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border: none;
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold {
  background: var(--gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-secondary);
}

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

.btn-gold {
  background: var(--gold-button);
  color: var(--text-on-gold);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold-base);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ============================================================
   SEARCH — Product search
   ============================================================ */
.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--gold-base);
  box-shadow: 0 0 0 2px var(--border-gold);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-hover);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-secondary);
}

.search-result-img {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-result-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.search-result-price {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-weight: 600;
  font-family: var(--font-heading);
}


/* ============================================================
   ANIMATIONS — Shared keyframes
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 168, 76, 0);
  }
}


/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 900px) {
  .shop-layout {
    flex-direction: column;
    padding: 0.5rem 1rem 2rem;
  }

  .shop-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .sidebar-section {
    margin-bottom: 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}


/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .nav-bar {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-align: left;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(201, 168, 76, 0.08);
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero {
    padding: 6rem 1.25rem 3rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .feature-grid {
    gap: 1rem;
  }

  .stats {
    padding: 3rem 1rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .page-header {
    padding: 5rem 1rem 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .cart-drawer {
    width: 100vw;
  }

  .chat-box {
    width: calc(100vw - 2rem);
    right: -0.5rem;
    bottom: 60px;
  }

  .price-ticker {
    height: 28px;
  }

  .ticker-item {
    padding: 0 16px;
    font-size: 0.65rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-overlay {
    padding: 0.5rem;
  }

  .search-results {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product-card-img {
    height: 150px;
  }

  .product-card-body .product-name {
    font-size: 0.75rem;
  }

  .shop-sidebar {
    grid-template-columns: 1fr;
  }

  .cart-notification {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}


/* ============================================================
   ACCESSIBILITY — Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .price-ticker,
  .nav-bar,
  .chat-widget,
  .chat-box,
  .cart-drawer,
  .cart-overlay,
  .modal-overlay,
  .cart-notification {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
}
