/* Tokens now live in theme.css (single source of truth). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep-navy);
  color: var(--ink-light);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing: 0.04em; }

/* Accessibility: visible focus + reduced motion */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,20,32,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; }
.brand .ged { color: var(--gold); }
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #A8B0C0; }
.navlinks a:hover { color: var(--gold); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -12px;
  background: var(--gold); color: var(--deep-navy);
  font-size: 11px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.navtoggle { display: none; background: none; border: none; color: var(--ink-light); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .navlinks {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--deep-navy); flex-direction: column; gap: 0;
    padding: 24px 28px; transform: translateY(-110%); transition: 0.3s;
    border-top: 1px solid var(--line);
  }
  .navlinks.open { transform: translateY(0); }
  .navlinks a { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .navtoggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid transparent; cursor: pointer; transition: 0.25s;
}
.btn-primary { background: var(--gold); color: var(--deep-navy); border: none; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink-light); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--orange); color: white; border: none; }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* Hero & sections (kept short for space) */
.hero { min-height: 90vh; display: flex; align-items: center; padding: 100px 0 60px;
  background: radial-gradient(ellipse 800px 500px at 50% 0%, rgba(201,162,39,0.12), transparent 60%), var(--deep-navy); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero .lede { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #B8C0D0; max-width: 460px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.pillars { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.pillar { padding: 22px 12px; text-align: center; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: none; }
.pillar .num { font-family: 'Cinzel', serif; color: var(--gold); font-size: 12px; letter-spacing: 0.2em; display: block; margin-bottom: 4px; }
.pillar .label { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

section { padding: 90px 0; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15px; }

.eyebrow {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

/* Product cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: 0.25s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-img {
  height: 200px; background: #151b28; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: #9AA3B4; font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: 'Cinzel', serif; font-weight: 600; }

/* Tabs */
.tabs { display: flex; gap: 0; margin-bottom: 40px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab {
  background: none; border: none; color: #8A92A4; font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 4px; margin-right: 32px; cursor: pointer; position: relative;
}
.tab.active { color: var(--ink-light); }
.tab.active::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--gold); }
.product-panel { display: none; }
.product-panel.active { display: block; }

/* Product detail page */
.product-detail { padding: 120px 0 80px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery {
  background: var(--panel-2); border: 1px solid var(--line);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 32px; margin-bottom: 8px; }
.product-info .price-lg { font-family: 'Cinzel', serif; font-size: 28px; color: var(--gold); margin: 16px 0; }
.product-info p { color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-row input {
  width: 70px; padding: 10px; background: var(--panel); border: 1px solid var(--line);
  color: var(--ink-light); text-align: center; font-size: 16px;
}

/* Cart page */
.cart-page { padding: 120px 0 80px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.cart-table th {
  text-align: left; padding: 14px 12px; font-family: 'Cinzel', serif;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 20px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; background: var(--panel); }
.cart-item-name { font-family: 'Cinzel', serif; font-size: 16px; }
.cart-summary {
  background: var(--panel-2); border: 1px solid var(--line); padding: 28px;
  max-width: 380px; margin-left: auto;
}
.cart-summary h3 { margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); }
.summary-row.total { font-size: 20px; color: var(--ink-light); font-family: 'Cinzel', serif; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.empty-cart { text-align: center; padding: 80px 20px; color: var(--muted); }

/* Toast (used instead of blocking alert()) */
.ncr-toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 300;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--gold); color: var(--ink-light);
  padding: 14px 26px; font-size: 13.5px; letter-spacing: 0.03em;
  max-width: 90vw; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ncr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
footer { background: var(--deep-navy); border-top: 1px solid var(--line); padding: 50px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.foot-brand p { color: #8A92A4; font-size: 13.5px; margin-top: 12px; max-width: 260px; }
.foot-col h4 { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A92A4; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13.5px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--line-strong); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-bottom a { text-decoration: underline; }
.foot-bottom a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero-inner, .product-layout, .card-grid { grid-template-columns: 1fr; }
  .pillars .wrap { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cart-table { font-size: 14px; }
  .cart-item-img { width: 60px; height: 60px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}