:root {
  --bg: #0f100d;
  --panel: #17180f;
  --card: #1d1e14;
  --line: #33341f;
  --text: #ece7d8;
  --muted: #9a9583;
  --gold: #c8a24a;
  --gold-2: #e0bf6b;
  --green: #4f7a3f;
  --green-2: #6ea354;
  --radius: 14px;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must win over author `display` rules (e.g. .btn, .age-gate). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, #1c1d10 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 16, 13, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.5px; }
.brand-mark { color: var(--gold); }
.brand-sub {
  display: block; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: #1a1500;
  font-size: 0.75rem; font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; border: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  font-size: 0.95rem; transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #201800; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px;
  align-items: center; padding: 60px 0 40px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin-bottom: 26px; }
.hero-art { font-size: clamp(6rem, 16vw, 12rem); text-align: center; filter: saturate(1.1); }

.section-title {
  font-size: 1.6rem; margin: 30px 0 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding-bottom: 60px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-media {
  font-size: 4rem; text-align: center; padding: 34px 0;
  background: radial-gradient(circle at 50% 30%, #26271a, #16170e);
}
/* Photos come in mixed orientations (cartons are wide, pouch rolls are tall), so every
   media box gets the same fixed height — a definite height, not `aspect-ratio`, so
   `max-height: 100%` resolves and tall images can't stretch the box — and the image is
   centred and contained inside it rather than cropped to fill. */
.card-media.has-photo { position: relative; height: 200px; padding: 0; }
.card-media.has-photo img {
  position: absolute; inset: 14px; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 28px); max-height: calc(100% - 28px);
  display: block;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 4px 0 0; font-size: 1.15rem; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; }
.card-foot .pack { text-align: right; }
.pill {
  align-self: flex-start; font-size: 0.68rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold-2);
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px;
}
.price { color: var(--gold-2); font-weight: 800; font-size: 1.25rem; }
.price.big { font-size: 2rem; }
.pack { color: var(--muted); font-size: 0.85rem; }
.muted { color: var(--muted); }

/* Shipping band (homepage) */
.ship-lead { color: var(--muted); max-width: 78ch; margin: 0 0 20px; }
.ship-lead strong { color: var(--text); }
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ship-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.ship-card h3 { margin: 0; font-size: 1.15rem; }
.ship-size { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; min-height: 2.6em; }
.ship-weight { color: var(--muted); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 6px; }
.ship-rates { margin-top: 4px; }
.ship-rate {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.ship-rate-name { display: flex; flex-direction: column; }
.ship-rate-name .muted { font-size: 0.82rem; }
.ship-rate-cost { color: var(--gold-2); font-weight: 800; font-size: 1.15rem; }

/* Checkout shipping line */
.ship-methods { border: none; padding: 0; margin: 0 0 16px; }
.ship-method-h {
  padding: 0; margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600;
}
.ship-methods .note { margin: 4px 0 10px; }
.ship-flat {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: #14150d;
}
.ship-option-main { display: flex; flex-direction: column; flex: 1; }
.ship-option-main .muted { font-size: 0.85rem; }
.ship-option-cost { color: var(--gold-2); font-weight: 800; font-size: 1.1rem; }
.ship-notes { color: var(--muted); font-size: 0.9rem; margin: 18px 0 0; padding-left: 20px; }
.ship-notes li { margin-bottom: 5px; }

/* Category tiles (homepage) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-bottom: 20px; }
.tile {
  position: relative; display: block; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--gold); }
.tile-media { aspect-ratio: 16 / 10; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 18px 20px 22px; }
.tile-body h3 { margin: 0 0 4px; font-size: 1.5rem; }
.tile-cta { display: inline-block; margin-top: 12px; color: var(--gold-2); font-weight: 700; }

/* Category page hero */
.cat-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px;
  align-items: center; padding: 40px 0 10px;
}
.cat-hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 8px; }
.cat-hero-text p { color: var(--muted); max-width: 52ch; }
.cat-hero-art img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line); display: block;
}

/* Product page */
.back { display: inline-block; color: var(--muted); margin: 24px 0 10px; font-weight: 600; }
.product { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.product-media {
  font-size: 10rem; text-align: center; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 30%, #26271a, #14150d);
  border: 1px solid var(--line); display: grid; place-items: center; min-height: 320px;
}
.product-media.has-photo {
  position: relative; min-height: 0; height: 420px; padding: 0; overflow: hidden;
}
.product-media.has-photo img {
  position: absolute; inset: 18px; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 36px); max-height: calc(100% - 36px);
  display: block;
}
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  position: relative; width: 66px; height: 66px; padding: 0; cursor: pointer;
  overflow: hidden; background: none; border: 1px solid var(--line); border-radius: 10px;
}
.thumb img {
  position: absolute; inset: 4px; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 8px); max-height: calc(100% - 8px);
  display: block;
}
.thumb.is-active, .thumb:hover { border-color: var(--gold); }
.product-info h1 { font-size: 2.2rem; margin: 10px 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

input, select {
  background: #0c0d08; border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; border-radius: 10px; font-size: 1rem; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--gold); }
#qty { width: 90px; }

/* Cart table */
.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cart-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table.compact td, .cart-table.compact th { padding: 7px 6px; font-size: 0.9rem; }
.qty-input { width: 70px; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--gold-2); }
.cart-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 8px; font-size: 1.2rem; border-top: 2px solid var(--line);
}
.cart-summary strong { color: var(--gold-2); font-size: 1.5rem; }

/* Forms / checkout */
.checkout-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.field.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.field.checkbox input { width: auto; margin-top: 3px; }
.field.checkbox label { margin: 0; }
.order-summary h3 { margin-top: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.error-banner { background: #3a1414; border: 1px solid #7a2f2f; color: #f3c9c9; padding: 12px 16px; border-radius: 10px; }

/* Payment / confirmation */
.confirm { text-align: center; padding: 40px 0 10px; }
.confirm-badge {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2rem;
}
.etransfer h2 { margin-top: 0; }
.steps { color: var(--muted); padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.pay-details { margin: 20px 0 0; }
.pay-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-details dt { color: var(--muted); font-weight: 600; }
.pay-details dd { margin: 0; text-align: right; font-weight: 700; }
.copy { font-family: "Consolas", monospace; color: var(--gold-2); user-select: all; }
.ship-h { margin: 22px 0 6px; }
address { font-style: normal; color: var(--muted); }
.center { text-align: center; padding-bottom: 50px; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 50; background: rgba(6, 7, 4, 0.92); display: grid; place-items: center; }
.age-gate[hidden] { display: none; }
.age-box { background: var(--card); border: 1px solid var(--gold); border-radius: var(--radius); padding: 34px; max-width: 420px; text-align: center; }
.age-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* Empty state */
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.empty h1 { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding-bottom: 60px; }
.faq h1 { margin-bottom: 10px; }
.faq .lead a { color: var(--gold-2); text-decoration: underline; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.faq-nav a {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--muted);
  background: var(--panel);
}
.faq-nav a:hover { border-color: var(--gold); color: var(--text); }
.faq-group { scroll-margin-top: 90px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 18px; margin-bottom: 10px;
}
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 15px 0;
  font-weight: 700; display: flex; gap: 12px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Chevron drawn in CSS so the marker can be styled and rotated when open. */
.faq-item summary::after {
  content: "\2304"; margin-left: auto; color: var(--gold-2);
  font-size: 1.1rem; line-height: 1; transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--gold-2); }
.faq-answer { padding: 0 0 6px; color: var(--muted); border-top: 1px solid var(--line); }
.faq-answer p { margin: 12px 0; }
.faq-answer ul { margin: 12px 0; padding-left: 20px; }
.faq-answer li { margin-bottom: 5px; }
.faq-answer strong { color: var(--text); }
.faq-answer a { color: var(--gold-2); text-decoration: underline; }
.home-faq { padding-top: 20px; padding-bottom: 0; }
.home-faq .center { margin-top: 24px; }

/* Loyalty */
.loyalty { max-width: 900px; margin: 0 auto; }
.loyalty h1 { margin-bottom: 10px; }
.loyalty-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin: 26px 0 10px;
}
.loyalty-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.loyalty-card h3 { margin: 8px 0 6px; color: var(--gold-2); font-size: 1.35rem; }
.loyalty-card p { margin: 0; font-size: 0.92rem; }
.loyalty-qty {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.loyalty-terms ul { color: var(--muted); padding-left: 20px; }
.loyalty-terms li { margin-bottom: 8px; }
.loyalty-terms strong { color: var(--text); }
/* :not(.btn) so the gold button at the bottom of the page keeps its dark label. */
.loyalty a:not(.btn), .loyalty-nudge a { color: var(--gold-2); text-decoration: underline; }

/* Cart-page loyalty nudge + the loyalty line in an order summary */
.loyalty-nudge {
  background: var(--panel); border: 1px solid var(--gold);
  border-radius: 10px; padding: 12px 16px; margin: 16px 0 0; font-size: 0.92rem;
}
.loyalty-nudge strong { color: var(--gold-2); }
.reward-row span:last-child { color: var(--green-2); font-weight: 700; }
.free-row td { color: var(--green-2); }
.pill-free {
  background: rgba(79, 122, 63, 0.25); border-color: var(--green);
  color: var(--green-2); margin-left: 8px;
}

/* Star ratings + reviews */
.stars { position: relative; display: inline-block; white-space: nowrap; line-height: 1; }
.stars-empty { color: #3b3c28; }
.stars-fill {
  position: absolute; left: 0; top: 0; overflow: hidden;
  color: var(--gold-2); white-space: nowrap;
}
.stars-sm { font-size: 0.85rem; }

.rating-row { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.rating-value { font-weight: 800; }
.rating-count { color: var(--muted); font-size: 0.9rem; text-decoration: underline; }
.rating-count:hover { color: var(--text); }

.sold-week {
  margin: -6px 0 18px; font-size: 0.9rem; color: var(--muted);
}
.sold-week strong { color: var(--green-2); font-size: 1.05rem; }

.reviews { padding-bottom: 60px; }
.reviews-cols { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.rating-summary {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; align-self: start; text-align: center;
}
.rating-average { font-size: 2.6rem; font-weight: 800; margin: 0; line-height: 1; }
.rating-average .muted { font-size: 1rem; font-weight: 600; }
.rating-summary .stars { font-size: 1.2rem; margin: 10px 0 4px; }
.rating-bars { margin-top: 14px; text-align: left; }
.rating-bar {
  display: grid; grid-template-columns: 48px 1fr 16px;
  align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted);
}
.rating-bar-track {
  height: 6px; border-radius: 999px; background: #2a2b1c; overflow: hidden;
}
.rating-bar-fill { display: block; height: 100%; background: var(--gold); }
.rating-bar-count { text-align: right; }

.review {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}
.review-head { display: flex; align-items: center; gap: 10px; }
.review-head h3 { margin: 0; font-size: 1.05rem; }
.review-meta { color: var(--muted); font-size: 0.82rem; margin: 6px 0 10px; }
.review-verified { color: var(--green-2); font-weight: 600; }
.review p:last-child { margin: 0; color: var(--muted); }

/* "Show N more reviews" fold, for products with a long review list */
.review-more { margin: 0; }
.review-more summary {
  cursor: pointer; list-style: none; display: inline-block;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 14px;
  font-size: 0.85rem; font-weight: 700; color: var(--gold-2); background: var(--panel);
}
.review-more summary::-webkit-details-marker { display: none; }
.review-more summary:hover { border-color: var(--gold); }
.review-more[open] summary { margin-bottom: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 20px; color: var(--muted); font-size: 0.85rem; }
.site-footer p { margin: 6px 0; }

@media (max-width: 760px) {
  .hero, .product, .checkout-cols, .cat-hero, .reviews-cols { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
  .product-media.has-photo { height: 320px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero-art { display: none; }
}
