:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: #101014;
  --panel-2: #16151a;
  --text: #fff8ea;
  --muted: #cfc6b1;
  --subtle: #958b78;
  --gold: #f2c75c;
  --gold-2: #b8862c;
  --teal: #71d7cf;
  --rose: #d58aa8;
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #050507 0%, #0b0a0d 45%, #050507 100%);
  color: var(--text);
  line-height: 1.6;
}
body.nav-open, body.cart-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; transform: translateY(-150%); background: var(--gold); color: #141006; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 7, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 58px; height: 44px; object-fit: contain; border-radius: 8px; background: #050505; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-size: 0.9rem; color: var(--muted); }
.main-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); border-color: var(--gold); }
.icon-button, .cart-button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
}
.nav-toggle { display: none; margin-left: auto; font-size: 1.35rem; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cart-button span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--gold); color: #111; font-weight: 800; }

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 72px 0 58px;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,7,0.92), rgba(5,5,7,0.62)), url("images/hero_background.png") center/cover; }
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr); gap: 38px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1, .display { font-family: Cinzel, Georgia, serif; font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-family: Cinzel, Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
.hero-text { max-width: 720px; font-size: 1.08rem; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #fff0ac);
  color: #161006;
  font-weight: 800;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--gold); }
.btn.ghost { border-color: var(--border); background: rgba(255,255,255,0.04); color: var(--text); }
.btn.full { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.hero-panel { border: 1px solid var(--border); background: rgba(16,16,20,0.78); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-panel img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.stat strong { display: block; color: var(--text); font-size: 1.3rem; }

.section { padding: 76px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-heading p { max-width: 680px; }
.grid { display: grid; gap: 18px; }
.categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .product-card, .category-card, .info-band {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border-radius: var(--radius);
  overflow: hidden;
}
.card, .category-card, .info-band { padding: 20px; }
.category-card { min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.category-card .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: rgba(242,199,92,0.14); color: var(--gold); font-weight: 800; }
.product-card { display: flex; flex-direction: column; min-height: 100%; }
.product-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; background: #0c0b0e; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(242,199,92,0.12); color: var(--gold); font-size: 0.75rem; font-weight: 800; }
.price { color: var(--text); font-weight: 900; font-size: 1.2rem; }
.price s { color: var(--subtle); font-weight: 500; margin-left: 6px; font-size: 0.95rem; }
.product-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-actions .wide { grid-column: 1 / -1; }
.toolbar { display: grid; grid-template-columns: 1fr 190px 190px; gap: 12px; margin-bottom: 22px; }
.field, input, select, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 13px;
}
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.gallery img { width: 100%; aspect-ratio: 1.12; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.quantity { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0; }
.quantity input { width: 84px; }
.line-items { display: grid; gap: 12px; }
.line-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.04); }
.line-item img { width: 74px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-summary { margin-top: 20px; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }

.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(430px, 92vw); z-index: 220; transform: translateX(105%); transition: transform .25s ease; background: #0b0a0d; border-left: 1px solid var(--border); padding: 18px; box-shadow: var(--shadow); overflow: auto; }
.cart-open .cart-drawer { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.scrim { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.58); display: none; }
.cart-open .scrim { display: block; }
.empty { padding: 28px; text-align: center; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }

.site-footer { padding: 46px 0; border-top: 1px solid var(--border); background: #050507; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 30px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; color: var(--muted); }
.fine { font-size: 0.86rem; color: var(--subtle); }
.input-row { display: flex; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 300; transform: translateX(-50%); background: var(--gold); color: #111; padding: 12px 16px; border-radius: 8px; font-weight: 800; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { position: fixed; inset: 78px 0 auto 0; display: none; flex-direction: column; align-items: stretch; padding: 18px 20px 26px; background: rgba(5,5,7,0.98); border-bottom: 1px solid var(--border); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 10px 0; }
  .hero-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .categories, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand span { font-size: 0.9rem; }
  .cart-button { padding: 0 9px; }
  .hero { min-height: auto; padding: 52px 0; }
  .section { padding: 52px 0; }
  .section-heading { display: block; }
  .categories, .products, .two, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .product-actions { grid-template-columns: 1fr; }
  .line-item { grid-template-columns: 58px 1fr; }
  .line-item .actions { grid-column: 1 / -1; }
  .input-row { flex-direction: column; }
}
