:root {
  --ember: #e85d04;
  --ember-deep: #c2410c;
  --ink: #130e0a;
  --char: #1b1510;
  --panel: #231b15;
  --cream: #fff7ef;
  --sand: #f4e6d6;
  --gold: #f4c45d;
  --white: #fffdf9;
  --muted: #8a7666;
  --line: rgba(255, 247, 239, 0.12);
  --shadow: 0 18px 50px rgba(19, 14, 10, 0.18);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: "Syne", sans-serif; line-height: 1.1; margin: 0 0 0.4em; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--ember); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ember { background: var(--ember); color: white; box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28); }
.btn-ember:hover { background: var(--ember-deep); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.28); }
.btn-dark { background: var(--ink); color: white; }
.btn-line { background: white; border: 1px solid #ead9c8; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 14px; }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(19, 14, 10, 0.92);
  backdrop-filter: blur(16px);
  color: white;
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Syne", sans-serif; font-weight: 800; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd166, var(--ember) 45%, #9a031e);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: rgba(255,247,239,.82); font-weight: 520; }
.nav-links a:hover { color: white; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
.nav-account { color: var(--gold); font-weight: 600; }
.cart-btn {
  background: var(--ember); color: white; border: 0; border-radius: 999px;
  padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.cart-count {
  background: white; color: var(--ink); border-radius: 999px;
  padding: 1px 7px; margin-left: 6px; font-size: 12px;
}
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: white; margin: 6px 0; }

.hero {
  position: relative; min-height: 86vh; color: white;
  display: grid; place-items: end start;
  background: #1a100b center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,14,10,.15), rgba(19,14,10,.78) 70%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 80px; max-width: 720px; }
.hero h1 { font-size: clamp(46px, 8vw, 86px); letter-spacing: -0.04em; }
.hero p { font-size: 20px; max-width: 520px; color: rgba(255,247,239,.86); }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.grid-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { height: 110px; width: 100%; object-fit: cover; }
.cat-card span { display: block; padding: 12px; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(19,14,10,.08); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; }
.card-media img { height: 190px; width: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-weight: 800; font-size: 18px; }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-right: 6px; }
.card .btn { margin-top: auto; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer {
  background: var(--ink); color: white; border-radius: 24px; padding: 28px;
  background-image: radial-gradient(circle at top right, rgba(232,93,4,.45), transparent 40%);
}
.offer code { font-size: 28px; font-family: "Syne", sans-serif; color: var(--gold); }

.info-band {
  background: var(--ink); color: white; border-radius: 32px; padding: 40px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px;
}
.cta-band {
  background: linear-gradient(135deg, #9a031e, var(--ember));
  color: white; border-radius: 32px; padding: 48px; display: flex;
  justify-content: space-between; align-items: center; gap: 20px;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  border: 1px solid #ead9c8; background: white; border-radius: 999px;
  padding: 8px 14px; font-weight: 600;
}
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.search {
  width: min(360px, 100%); border: 1px solid #ead9c8; border-radius: 999px;
  padding: 11px 16px; background: white;
}

.page-hero { padding: 56px 0 20px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story { background: white; border-radius: 24px; padding: 24px; box-shadow: 0 10px 30px rgba(19,14,10,.06); }
.photo-row { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin-top: 28px; }
.photo-row img { border-radius: 24px; height: 280px; width: 100%; object-fit: cover; }

.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid #ead9c8; border-radius: 16px; padding: 12px 14px; background: white;
}
.map { border: 0; width: 100%; height: 320px; border-radius: 24px; }

.blog-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 28px; }
.blog-card { background: white; border-radius: 24px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(19,14,10,.06); }
.blog-card img { height: 220px; width: 100%; object-fit: cover; }
.blog-card > div { padding: 18px; }
.side-card { background: white; border-radius: 20px; padding: 18px; margin-bottom: 16px; }

.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.panel { background: white; border-radius: 24px; padding: 24px; box-shadow: 0 10px 30px rgba(19,14,10,.06); }
.welcome-back {
  background: #fff1db; border-radius: 18px; padding: 16px; margin-bottom: 16px;
}
.line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0e2d4; }
.confirm { text-align: center; padding: 40px 0 20px; }
.confirm-id { font-size: 42px; }
.status-pill {
  display: inline-block; background: #fff1db; color: var(--ember-deep);
  border-radius: 999px; padding: 6px 12px; font-weight: 700;
}

.footer { background: var(--ink); color: rgba(255,247,239,.8); padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .7fr 1fr; gap: 28px; }
.footer a { display: block; margin: 6px 0; color: rgba(255,247,239,.78); }
.footer-bottom { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: #8d7a6c; }

.flash-wrap { padding-top: 16px; }
.flash { background: #e8f5e9; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.flash.error, .flash.warning { background: #fde8e4; }

.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer.open { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(19,14,10,.45); opacity: 0; transition: opacity .2s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 100%);
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s ease;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head, .drawer-foot { padding: 18px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; overflow: auto; padding: 0 18px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0e2d4; }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ead9c8; background: white; cursor: pointer; }
.totals { display: grid; gap: 8px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; }
.grand { font-size: 18px; }
.icon-btn { background: none; border: 0; cursor: pointer; font-weight: 700; }
.empty-cart { color: var(--muted); padding: 24px 0; }

.product-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.product-hero img { border-radius: 28px; height: 420px; width: 100%; object-fit: cover; }

@media (max-width: 980px) {
  .grid-cats, .product-grid, .offer-grid, .story-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .blog-grid, .checkout, .info-band, .product-hero, .photo-row, .cta-band { grid-template-columns: 1fr; }
  .cta-band { display: grid; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 74px;
    background: var(--ink); flex-direction: column; padding: 16px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-actions { margin-left: 0; }
}
@media (max-width: 640px) {
  .grid-cats, .product-grid, .offer-grid, .story-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .section { padding: 48px 0; }
}
