/* Rumyantsev Cigar Co — Dark chocolate / bronze luxury theme (site-wide) */
:root {
  --bg: #120c09;
  --bg-deep: #0e0907;
  --bg-elevated: #1a100c;
  --bg-card: #1c120e;
  --bg-soft: #241810;
  --bg-hover: #2e1e16;
  --bg-glass: rgba(22, 14, 10, 0.55);
  --border: rgba(196, 160, 122, 0.18);
  --border-strong: rgba(196, 160, 122, 0.32);
  --bronze: #c4a07a;
  --bronze-soft: rgba(196, 160, 122, 0.22);
  --peach: #e8c9b9;
  --peach-soft: rgba(232, 201, 185, 0.28);
  --accent: #e8c9b9;
  --gold: #d4b896;
  --ink: #f0e6d8;
  --ink-btn: #2a1810;
  --text: #f3ebe3;
  --text-muted: rgba(243, 235, 227, 0.72);
  --text-soft: rgba(243, 235, 227, 0.5);
  --cream: #f0e6d8;
  --danger: #d47868;
  --warning-bg: #1a100c;
  --warning-text: rgba(243, 235, 227, 0.7);
  --radius: 10px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --font-serif: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --max: 1180px;
  --glow: radial-gradient(ellipse 55% 50% at 50% 40%, #8a6248 0%, #5c3d2e 32%, #2a1810 68%, #120c09 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(138, 98, 72, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(92, 61, 46, 0.25) 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Soft ambient smoke veil site-wide (fixed, behind content) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/smoke-overlay.svg") center 10% / min(1100px, 120vw) no-repeat;
  opacity: 0.14;
  mix-blend-mode: screen;
}

/* Keep stacking above ambient without breaking sticky/fixed */
main,
.site-footer,
.product-main {
  position: relative;
  z-index: 1;
}
.site-header { z-index: 100; }

body.age-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--peach); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Metallic bronze titles — Cohiba mockup lounge feel */
h1, .page-hero h1, .hero h1, .section-header h2, .pd-title, .footer-brand {
  background: linear-gradient(180deg, #f0e6d8 0%, #d4b896 42%, #c4a07a 72%, #a88462 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(196, 160, 122, 0.22));
}
.hero h1 em {
  background: linear-gradient(180deg, #f3ebe3 0%, #e8c9b9 55%, #d4b896 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 500;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* —— Age Gate —— */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(ellipse 55% 50% at 50% 40%, #5c3d2e 0%, #2a1810 45%, rgba(14, 9, 7, 0.94) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
}
.age-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/smoke-overlay.svg") center 30% / min(900px, 95vw) no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}
.age-gate[hidden] { display: none; }
.age-gate__card {
  position: relative;
  z-index: 1;
  background: rgba(28, 18, 14, 0.72);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--peach);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.age-gate__logo { margin-bottom: 0.25rem; }
.age-gate__logo img {
  height: 72px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: invert(1) brightness(1.08);
}
.age-gate__card h2 {
  font-size: 1.5rem;
  margin: 1.25rem 0 0.75rem;
  color: var(--ink);
  background: linear-gradient(180deg, #f0e6d8 0%, #d4b896 55%, #c4a07a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.age-gate__card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.75rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: 0.75rem; }
.age-gate__deny { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--peach);
  color: #16100c;
}
.btn-primary:hover { background: var(--gold); color: #16100c; }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--cream);
  background: transparent;
}
.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--peach);
  color: var(--peach);
}
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--peach); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 9, 7, 0.78);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(196, 160, 122, 0.14);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover { color: var(--ink); opacity: 0.9; }
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(1.08);
}
.logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: -2px;
  font-weight: 400;
}

.nav-desktop { display: none; gap: 1.85rem; }
.nav-desktop a {
  color: rgba(243, 235, 227, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: #f0e6d8;
  text-shadow: 0 0 18px rgba(232, 201, 185, 0.35);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(243, 235, 227, 0.9);
}
.icon-btn:hover { background: rgba(232, 201, 185, 0.1); color: #f0e6d8; }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--peach);
  color: #16100c;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

.nav-toggle { display: flex; }
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.85rem 1.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--peach);
  background: var(--bg-soft);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .logo-img { height: 52px; }
}

/* —— Hero —— photo background (cigar + whiskey), dark overlay stronger on the left */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 72vh, 680px);
  padding: 5.5rem 0 4.5rem;
  background-color: #0e0907;
  background-image:
    linear-gradient(180deg, rgba(14, 9, 7, 0.6) 0%, rgba(14, 9, 7, 0.5) 45%, rgba(14, 9, 7, 0.88) 100%),
    url("/assets/hero-cigar-whiskey.jpg");
  background-size: cover, cover;
  background-position: center, 68% center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Readability veil + subtle bronze vignette (replaces old blurry glow / smoke blob) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, rgba(8, 5, 4, 0.55) 100%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(10, 6, 5, 0.94) 0%, rgba(10, 6, 5, 0.82) 30%, rgba(10, 6, 5, 0.45) 55%, rgba(10, 6, 5, 0.08) 80%, rgba(10, 6, 5, 0) 100%),
      linear-gradient(180deg, rgba(14, 9, 7, 0.25) 0%, transparent 30%, transparent 70%, rgba(14, 9, 7, 0.7) 100%),
      url("/assets/hero-cigar-whiskey.jpg");
    background-size: cover, cover, cover;
    background-position: center, center, right center;
  }
  .hero::before {
    background: radial-gradient(ellipse 90% 100% at 100% 60%, transparent 55%, rgba(8, 5, 4, 0.35) 100%);
  }
  .hero .hero-inner { text-align: left; max-width: var(--max); }
  .hero .hero-inner > * { max-width: 580px; }
  .hero .hero-inner > .hero-eyebrow { max-width: none; }
  .hero .hero-cta { justify-content: flex-start; }
}
.hero-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; z-index: 1; }
.hero-tagline, .hero-eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero-eyebrow {
  display: inline-block;
  color: var(--peach);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--border-strong);
  background: rgba(232, 201, 185, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  margin-bottom: 0.75rem;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: rgba(243, 235, 227, 0.78);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* —— Sections —— */
.section { padding: 3.5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--peach);
  margin: 0.85rem auto 0;
}

/* —— Cards / Product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: rgba(28, 18, 14, 0.85);
  border: 1px solid rgba(196, 160, 122, 0.2);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.product-card:hover {
  border-color: rgba(196, 160, 122, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: #f3ebe3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-card__media .cigar-icon {
  width: 64px;
  height: 64px;
  opacity: 0.55;
  color: #2a1810;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: #f3ebe3;
}
.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #2a1810;
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}
.product-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  background: var(--bg-elevated);
}
.product-card__brand {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 201, 185, 0.7);
}
.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  background: none;
  -webkit-text-fill-color: var(--ink);
  filter: none;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--peach); }
.product-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.product-card__price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--peach);
  font-weight: 600;
}

/* —— Testimonials —— */
.testimonials {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(92, 61, 46, 0.28) 0%, transparent 60%),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
  color: var(--text);
}
.testimonials .section-header h2 { color: var(--ink); }
.testimonials .section-divider { background: var(--peach); }
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
.testimonial {
  background: rgba(22, 14, 10, 0.5);
  border: 1px solid rgba(196, 160, 122, 0.22);
  border-left: 3px solid var(--peach);
  border-radius: 14px;
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Why us / featured band —— */
.why-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: rgba(28, 18, 14, 0.72);
  border: 1px solid rgba(196, 160, 122, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.why-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--peach);
}
.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: var(--ink);
  filter: none;
}
.why-card p { color: var(--text-muted); font-size: 0.9rem; }

.featured-band {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(138, 98, 72, 0.35), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .featured-band {
    grid-template-columns: 1fr 1.2fr;
    padding: 2.5rem;
  }
}
.featured-band__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 1.25rem;
  background: radial-gradient(circle at 50% 45%, #fbf7f1 0%, #f3ebe3 60%, #e6d6c4 100%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), inset 0 0 0 6px rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.featured-band__visual:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5); }
.featured-band__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* blends the photo's white backdrop into the cream panel */
}
.featured-band h2 { font-size: 1.85rem; margin-bottom: 0.5rem; color: var(--ink); }
.featured-band p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* —— Shop filters —— */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  align-items: center;
  justify-content: space-between;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.chip:hover, .chip.active {
  border-color: var(--peach);
  color: #16100c;
  background: var(--peach);
  box-shadow: 0 0 20px rgba(232, 201, 185, 0.25);
}
.shop-search {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.shop-search input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}
.shop-search input::placeholder { color: var(--text-soft); }
.shop-search input:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px var(--peach-soft);
}
.shop-count { color: var(--text-muted); font-size: 0.85rem; width: 100%; }
@media (min-width: 700px) {
  .shop-count { width: auto; }
}

/* —— Product detail (luxury two-column grid, normal flow) —— */
body.product-page {
  background: #0e0907;
  color: var(--text);
}
body.product-page::before { opacity: 0.08; }
body.product-page .product-main {
  min-height: calc(100vh - var(--header-h));
  background: transparent;
  position: relative;
}
.product-crumb-wrap {
  position: relative;
  z-index: 1;
  padding-top: 0.15rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0 0.35rem;
  color: rgba(243, 235, 227, 0.4);
}
.breadcrumb a { color: rgba(243, 235, 227, 0.55); }
.breadcrumb a:hover { color: #e8c9b9; }
.breadcrumb span { color: rgba(243, 235, 227, 0.28); }
.breadcrumb--on-dark {
  color: rgba(243, 235, 227, 0.4);
}
.breadcrumb--on-dark a { color: rgba(243, 235, 227, 0.55); }
.breadcrumb--on-dark a:hover { color: #e8c9b9; }
.breadcrumb--on-dark span { color: rgba(243, 235, 227, 0.28); }

.pd-loading, .pd-empty {
  color: rgba(243, 235, 227, 0.75);
  padding: 3rem 1rem;
  text-align: center;
}
.pd-empty a { color: #e8c9b9; text-decoration: underline; }

/* Section wrapper: subtle smoke/radial backdrop sits behind all content */
.pd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: 0.5rem 0 4rem;
}
.pd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #0e0907;
  background-image:
    radial-gradient(ellipse 60% 55% at 70% 35%, rgba(122, 82, 58, 0.38) 0%, rgba(62, 38, 26, 0.28) 40%, rgba(14, 9, 7, 0) 75%),
    radial-gradient(ellipse 50% 45% at 15% 20%, rgba(90, 58, 40, 0.22) 0%, rgba(14, 9, 7, 0) 70%),
    url("/assets/product-hero-bg.svg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  opacity: 0.85;
}

.pd-layout {
  position: relative;
  width: min(100% - 2rem, 1160px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "crumb"
    "gallery"
    "copy";
  gap: 1.25rem;
  align-items: start;
}
.pd-crumb { grid-area: crumb; padding-bottom: 0; min-width: 0; }
.pd-gallery { grid-area: gallery; min-width: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.pd-copy { grid-area: copy; min-width: 0; }

/* Main image: clean cream rounded card, no tilt */
.pd-media {
  margin: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 520px;
  background: linear-gradient(180deg, #f7f0e6 0%, #efe4d4 100%);
  border: 1px solid rgba(196, 160, 122, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4%, 2rem);
  overflow: hidden;
}
.pd-cigar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  mix-blend-mode: multiply; /* white photo backgrounds melt into the cream card */
}
.pd-cigar--placeholder {
  display: grid;
  place-items: center;
  color: rgba(60, 40, 28, 0.45);
}

/* Alternate listing (box ↔ single) thumbnail, in flow beneath the main image */
.pd-alt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: rgba(16, 10, 8, 0.55);
  border: 1px solid rgba(196, 160, 122, 0.28);
  border-radius: 14px;
  color: #f3ebe3;
  transition: border-color 0.2s, background 0.2s;
}
.pd-alt:hover { border-color: rgba(212, 184, 150, 0.7); background: rgba(30, 19, 14, 0.7); color: #f3ebe3; }
.pd-alt__img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #f4ece1;
  padding: 0.3rem;
  display: block;
}
.pd-alt__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-alt__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.pd-alt__kicker { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(232, 201, 185, 0.62); }
.pd-alt__label { font-size: 0.9rem; font-weight: 600; }
.pd-alt__price { font-size: 0.82rem; color: rgba(243, 235, 227, 0.7); }

.pd-brand {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 201, 185, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.pd-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-wrap: balance;
  text-transform: uppercase;
  overflow-wrap: break-word;
  max-width: 34ch;
}
.pd-desc {
  color: rgba(243, 235, 227, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 38rem;
}
.pd-specs {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: rgba(16, 10, 8, 0.5);
  border: 1px solid rgba(196, 160, 122, 0.24);
  border-radius: 14px;
  padding: 0.25rem 1.1rem;
}
.pd-spec {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(196, 160, 122, 0.18);
}
.pd-spec:first-child { border-top: none; }
.pd-spec dt {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 201, 185, 0.62);
  align-self: center;
}
.pd-spec dd {
  font-size: 0.88rem;
  color: #f3ebe3;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Purchase row — in flow under the stock info */
.pd-buy {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}
.pd-buy__price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #f3ebe3;
  margin-right: 0.25rem;
}
.pd-buy__qty {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid rgba(196, 160, 122, 0.4);
  border-radius: 999px;
  background: rgba(16, 10, 8, 0.55);
  padding: 0 0.3rem;
}
.pd-buy__qty button {
  width: 38px;
  height: 38px;
  color: #f3ebe3;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 50%;
}
.pd-buy__qty button:hover { background: rgba(196, 160, 122, 0.16); }
.pd-buy__qty input {
  width: 40px;
  height: 38px;
  text-align: center;
  border: none;
  background: transparent;
  color: #f3ebe3;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}
.pd-buy__qty input::-webkit-outer-spin-button,
.pd-buy__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pd-buy__atc {
  flex: 1 1 12rem;
  height: 48px;
  background: linear-gradient(180deg, #e3c9a6 0%, #c4a07a 100%);
  color: #1a100c;
  border-radius: 999px;
  padding: 0 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.pd-buy__atc:hover { filter: brightness(1.06); color: #1a100c; }
.pd-buy__atc:active { transform: scale(0.98); }

.pd-back { display: none; }

/* Tablet: single column, constrained image */
@media (min-width: 640px) and (max-width: 1023px) {
  .pd-media { max-width: 520px; margin-inline: auto; }
  .pd-alt { align-self: center; }
  .pd-buy__atc { flex: 0 1 16rem; margin-left: auto; }
}

/* Mobile: purchase row stacks full width */
@media (max-width: 639px) {
  .pd-hero { padding-bottom: 3rem; }
  .pd-media { max-height: none; border-radius: 16px; }
  .pd-spec { grid-template-columns: 6rem minmax(0, 1fr); }
  .pd-buy__price { flex: 1 1 auto; }
  .pd-buy__atc { flex: 1 1 100%; }
}

/* Desktop: two columns — details left, image right */
@media (min-width: 1024px) {
  .pd-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "crumb gallery"
      "copy  gallery";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: 0.75rem;
    padding-top: 0.5rem;
  }
  .pd-gallery { position: sticky; top: calc(var(--header-h, 72px) + 1.5rem); padding-top: 2.5rem; }
  .pd-buy__atc { flex: 0 1 14rem; }
}

.product-detail { display: contents; }

/* —— About / Contact —— */
.page-hero {
  padding: 3.25rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background:
    radial-gradient(ellipse 58% 70% at 50% 0%, #8a6248 0%, #5c3d2e 32%, #2a1810 68%, #0e0907 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/smoke-overlay.svg") center -5% / min(950px, 95vw) no-repeat;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.5rem; color: var(--ink); }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 0;
}
.prose p { color: var(--text-muted); margin-bottom: 1.15rem; }
.prose h2 { font-size: 1.65rem; margin: 2rem 0 0.75rem; color: var(--ink); }
.prose a { color: var(--peach); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold); }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: #16100c; }
.prose a.btn-outline { color: var(--cream); }

.contact-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 3.5rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: rgba(28, 18, 14, 0.72);
  border: 1px solid rgba(196, 160, 122, 0.22);
  border-radius: 14px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.contact-card h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: var(--ink);
  filter: none;
}
.contact-card p, .contact-card li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.contact-card a { color: var(--peach); text-decoration: underline; text-underline-offset: 2px; }
.contact-card a:hover { color: var(--gold); }
.contact-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.contact-form .field { margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px var(--peach-soft);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form select option { background: var(--bg-elevated); color: var(--ink); }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* —— Cart drawer —— */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 4, 0.72);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  background:
    linear-gradient(180deg, rgba(36, 24, 16, 0.98) 0%, rgba(18, 12, 9, 0.98) 100%);
  border-left: 1px solid rgba(196, 160, 122, 0.22);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h2 {
  font-size: 1.35rem;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: var(--ink);
  filter: none;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  grid-column: 1 / -1;
}
.cart-item__meta { font-size: 0.8rem; color: var(--text-muted); }
.cart-item__price { font-size: 0.95rem; color: var(--peach); text-align: right; }
.cart-item__remove {
  font-size: 0.75rem;
  color: var(--danger);
  text-align: right;
  grid-column: 2;
}
.cart-item__remove:hover { text-decoration: underline; }
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-muted);
}
.cart-item__qty button:hover { border-color: var(--peach); color: var(--peach); }
.cart-drawer__footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.cart-total strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--peach);
}
.cart-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(232, 201, 185, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--peach);
  border: 1px solid var(--peach);
  color: #16100c;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  z-index: 300;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  max-width: calc(100% - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* —— Footer —— */
.site-footer,
.site-footer--on-dark {
  border-top: 1px solid rgba(196, 160, 122, 0.16);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(92, 61, 46, 0.35) 0%, transparent 55%),
    var(--bg-deep);
  padding: 2.75rem 0 0;
  margin-top: auto;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2.25rem;
  align-items: start;
  text-align: center;
}
.footer-brand-block {
  max-width: 280px;
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.35rem;
}
.footer-city {
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--ink);
  background: none;
  filter: none;
}
.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}
.footer-col a:hover { color: var(--peach); }
.footer-col p:last-child,
.footer-col a:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem 2.25rem;
    text-align: left;
  }
  .footer-brand-block {
    margin: 0;
    max-width: 300px;
  }
  .footer-col {
    min-width: 0;
  }
}
.fda-warning {
  background: var(--warning-bg);
  border-top: 2px solid var(--danger);
  padding: 1.15rem 0;
  text-align: center;
}
.fda-warning p {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--warning-text);
  text-transform: uppercase;
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 0.75rem;
}
.footer-bottom {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.loading { color: var(--text-muted); text-align: center; padding: 3rem; }
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

main { min-height: calc(100vh - var(--header-h) - 280px); }

/* ==========================================================================
   Inventory v1 — stock labels, cart reservations, admin panel
   ========================================================================== */

/* Stock labels (cards + product page) */
.product-card__stock { min-height: 1.1rem; font-size: 0.78rem; }
.stock-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #b9d3a6;
  letter-spacing: 0.02em;
}
.stock-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.stock-label.is-low { color: #e2b97a; }
.stock-label.is-out { color: var(--danger); }
.product-card__footer .btn:disabled { background: transparent; border: 1px solid var(--border-strong); color: var(--text-soft); }

.pd-stock {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pd-stock__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #b9d3a6;
  letter-spacing: 0.02em;
}
.pd-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pd-stock__status.is-low { color: #e2b97a; }
.pd-stock__status.is-out { color: var(--danger); }
.pd-stock__note { margin-top: 0.3rem; font-size: 0.8rem; color: var(--text-soft); }
.pd-stock__alt { margin-top: 0.35rem; font-size: 0.82rem; }
.pd-stock__alt a { text-decoration: underline; text-underline-offset: 3px; }
.pd-stock__alt-count { color: var(--text-soft); }
.pd-buy__qty button:disabled { opacity: 0.3; cursor: not-allowed; background: transparent; }
.pd-buy__atc:disabled { background: #6e625b; color: #f3ebe3; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }

/* Cart reservations */
.cart-item__stock { grid-column: 1 / -1; line-height: 1.4; }
.cart-item__left { color: var(--text-soft); }
.cart-item--over { background: rgba(212, 120, 104, 0.06); }
.stock-warn { color: var(--danger); font-weight: 500; }
.cart-item__qty button:disabled { opacity: 0.3; cursor: not-allowed; border-color: var(--border); color: var(--text-soft); }
.cart-units { font-size: 0.8rem; color: var(--text-soft); margin: -0.5rem 0 0.75rem; text-align: right; }
.cart-units:empty { display: none; }
.cart-warning {
  font-size: 0.8rem;
  color: var(--danger);
  border: 1px solid rgba(212, 120, 104, 0.4);
  background: rgba(212, 120, 104, 0.08);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.85rem;
}
.cart-record { margin-top: 0.75rem; }
.cart-record__note { font-size: 0.72rem; color: var(--text-soft); text-align: center; margin-top: 0.4rem; }

.toast--error { background: #3a1a14; border-color: var(--danger); color: #f6d9d2; }

/* —— Admin —— */
.admin-page { background: var(--bg); }
.admin-header .header-inner { gap: 1rem; }
.admin-header__title {
  font-family: var(--font-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--bronze);
  margin-right: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.admin-main { position: relative; z-index: 1; padding: 2rem 0 4rem; min-height: calc(100vh - var(--header-h)); }
.admin-lock { display: grid; place-items: center; min-height: 60vh; padding: 1rem; }
.admin-lock[hidden], .admin-app[hidden] { display: none; }
.admin-lock__card {
  width: min(100%, 380px);
  text-align: center;
  background: linear-gradient(180deg, rgba(36, 24, 16, 0.96), rgba(18, 12, 9, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.admin-lock__card h1 { font-size: 1.6rem; color: var(--ink); }
.admin-lock__card p { color: var(--text-muted); font-size: 0.9rem; }
.admin-lock__card .age-gate__logo img { max-width: 120px; margin: 0 auto; }
.admin-lock__back { font-size: 0.8rem; color: var(--text-soft); }

.adm-input {
  background: rgba(14, 9, 7, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  width: 100%;
  min-width: 0;
}
.adm-input:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 3px rgba(232, 201, 185, 0.15); }
.adm-input--pin { text-align: center; font-size: 1.4rem; letter-spacing: 0.5em; padding: 0.7rem; }
.adm-input--sm { width: 5rem; }
.adm-input--price { width: 6.5rem; }
.adm-input--onhand { width: 5.5rem; text-align: center; font-weight: 600; font-size: 1.05rem; }
.adm-input--search { max-width: 280px; }
select.adm-input { appearance: auto; }
.adm-err { color: var(--danger); font-size: 0.85rem; }
.adm-muted { color: var(--text-soft); font-size: 0.85rem; }
.adm-empty { color: var(--text-muted); text-align: center; padding: 2rem 1rem; list-style: none; }

.admin-banner {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(232, 201, 185, 0.06);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--bronze);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.admin-banner code { background: rgba(0, 0, 0, 0.35); padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.8rem; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.adm-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.adm-stat__value { font-family: var(--font-serif); font-size: 1.7rem; color: var(--peach); line-height: 1.1; }
.adm-stat__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.3rem; }

.admin-section-head { margin-bottom: 0.9rem; }
.admin-section-head h2, .admin-card h2 { font-size: 1.3rem; color: var(--ink); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.admin-toolbar__actions { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(28, 18, 14, 0.7); margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
.admin-table thead th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(14, 9, 7, 0.5);
}
.admin-table td, .admin-table tbody th { padding: 0.6rem 1rem; vertical-align: middle; text-align: left; font-weight: 400; }
.adm-group { border-top: 1px solid var(--border-strong); }
.adm-group:first-of-type { border-top: none; }
.adm-group__head { background: rgba(46, 30, 22, 0.55); }
.adm-group__head > * { padding-top: 0.9rem !important; padding-bottom: 0.9rem !important; }
.adm-group__brand { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 201, 185, 0.7); }
.adm-group__name { font-family: var(--font-serif); font-size: 1.02rem; color: var(--ink); font-weight: 600; line-height: 1.3; }
.adm-sku__id { font-size: 0.7rem; color: var(--text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 0.15rem; }
.adm-sku td { border-top: 1px solid var(--border); }
.adm-sku__name { color: var(--text); max-width: 380px; }
.adm-sku.is-hidden .adm-sku__name { opacity: 0.5; text-decoration: line-through; text-decoration-color: rgba(243, 235, 227, 0.35); }
.adm-unit {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  margin-right: 0.35rem;
  vertical-align: 1px;
}
.adm-unit--box { color: var(--peach); border-color: rgba(232, 201, 185, 0.45); }
.adm-onhand { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.adm-onhand label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.adm-onhand small { text-transform: none; letter-spacing: 0; color: var(--text-soft); }
.adm-stepper { display: inline-flex; align-items: center; gap: 0.3rem; }
.adm-stepper button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 1.05rem;
}
.adm-stepper button:hover { border-color: var(--peach); color: var(--peach); }
.adm-money { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-soft); }
.adm-calc { font-size: 0.82rem; color: var(--text-muted); }
.adm-calc__box { display: inline-block; margin: 0.15rem 0.4rem 0.15rem 0; white-space: nowrap; }
.adm-pill { display: inline-block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; margin-right: 0.35rem; }
.adm-pill.is-ok { color: #b9d3a6; background: rgba(185, 211, 166, 0.1); }
.adm-pill.is-low { color: #e2b97a; background: rgba(226, 185, 122, 0.12); }
.adm-pill.is-out { color: var(--danger); background: rgba(212, 120, 104, 0.12); }
.adm-shopper { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.adm-switch { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; font-size: 0.8rem; color: var(--text-muted); }
.adm-switch input { accent-color: var(--bronze); width: 16px; height: 16px; }

.admin-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: minmax(300px, 0.8fr) 1.2fr; align-items: start; } }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.35rem; }
.admin-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.admin-card__actions { display: flex; gap: 0.25rem; }
.admin-sale { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.admin-sale label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.admin-sale__row { display: flex; gap: 0.75rem; }
.admin-sale__note { flex: 1; }
.admin-sale__preview { font-size: 0.85rem; color: var(--text-muted); min-height: 1.2em; }
.filter-chips--sm { margin: 0.75rem 0; }
.filter-chips--sm .chip { padding: 0.3rem 0.75rem; font-size: 0.75rem; }
.adm-log { list-style: none; max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.adm-log__item { border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.85rem; background: rgba(14, 9, 7, 0.35); font-size: 0.85rem; }
.adm-log__item--sale { border-left: 3px solid var(--peach); }
.adm-log__item--adjust { border-left: 3px solid var(--bronze); }
.adm-log__meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.72rem; color: var(--text-soft); margin-bottom: 0.3rem; }
.adm-log__type { letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.adm-log__lines { list-style: none; color: var(--text); }
.adm-log__total { margin-top: 0.35rem; color: var(--peach); font-size: 0.8rem; }

@media (max-width: 640px) {
  .admin-header__title { display: none; }
  .admin-toolbar__actions { margin-left: 0; width: 100%; }
  .adm-input--search { max-width: none; }
}

/* Boxed stock: open-box editor in admin group header */
.adm-onhand--open { margin-top: 0.5rem; }
.adm-onhand--open .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ==========================================================================
   Pre-orders (out of stock → waiting list) + scene photos (delivery)
   ========================================================================== */
.stock-label.is-preorder { color: var(--peach); }
.stock-label.is-preorder::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.pd-stock__status.is-preorder { color: var(--peach); }
.pd-stock__status.is-preorder .pd-stock__dot { color: var(--danger); }
.pd-stock__note--po { color: var(--text-muted); }

/* Pre-order buttons: outlined peach so they read differently from Add to cart */
.product-card__footer .btn.is-preorder {
  background: transparent;
  border: 1px solid var(--peach);
  color: var(--peach);
}
.product-card__footer .btn.is-preorder:hover { background: var(--peach); color: #16100c; }
.pd-buy__atc.is-preorder {
  background: transparent;
  color: var(--peach);
  border: 1px solid var(--peach);
  box-shadow: none;
}
.pd-buy__atc.is-preorder:hover { background: var(--peach); color: #1a100c; filter: none; }

/* Dialog */
body.po-open { overflow: hidden; }
.po-dialog {
  margin: auto;
  width: min(520px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #22160f 0%, #160e0a 100%);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.po-dialog::backdrop { background: rgba(6, 3, 2, 0.72); backdrop-filter: blur(3px); }
.po-dialog__inner, .po-done { position: relative; padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.po-dialog__close {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; color: var(--text-muted);
}
.po-dialog__close:hover { color: var(--peach); background: rgba(196, 160, 122, 0.12); }
.po-dialog__kicker { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); }
.po-dialog__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--cream); line-height: 1.25; padding-right: 2rem; }
.po-dialog__meta { font-size: 0.85rem; color: var(--text-muted); margin-top: -0.4rem; }
.po-dialog__fields { display: flex; flex-direction: column; gap: 0.8rem; }
.po-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.po-field-row { display: flex; gap: 0.75rem; }
.po-field--grow { flex: 1; }
.po-field--qty { width: 7.5rem; flex: none; }
.po-field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.po-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.po-field input[type="text"], .po-field input[type="email"], .po-field input[type="tel"], .po-field input[type="number"] {
  height: 44px; padding: 0 0.8rem; border-radius: 8px; width: 100%;
  border: 1px solid var(--border-strong); background: rgba(10, 6, 4, 0.6); color: var(--text);
  font: inherit; font-size: 1rem;
}
.po-field input:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 3px var(--peach-soft); }
.po-field input[aria-invalid="true"] { border-color: var(--danger); }
.po-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }
.po-check input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--peach); flex: none; }
.po-check strong { color: var(--cream); }
.po-hint { font-size: 0.72rem; color: var(--text-soft); }
.po-err { font-size: 0.8rem; color: var(--danger); }
.po-form-error { font-size: 0.85rem; color: var(--cream); background: rgba(212, 120, 104, 0.14); border: 1px solid rgba(212, 120, 104, 0.45); border-radius: 8px; padding: 0.6rem 0.8rem; }
.po-dialog__note { font-size: 0.82rem; color: var(--text-muted); border-left: 3px solid var(--bronze); padding: 0.55rem 0.8rem; background: rgba(196, 160, 122, 0.07); border-radius: 0 8px 8px 0; }
.po-dialog__note strong { color: var(--cream); }
.po-dialog__actions { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; }
.po-done { align-items: flex-start; outline: none; }
.po-dialog [hidden], .po-dialog__inner[hidden], .po-done[hidden] { display: none !important; }
.po-done__mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: #16100c; font-size: 1.3rem; font-weight: 700; }
.po-done__text { color: var(--text-muted); }
@media (max-width: 480px) {
  .po-dialog__inner, .po-done { padding: 1.3rem 1.1rem 1.1rem; }
  .po-field-row { flex-direction: column; }
  .po-field--qty { width: 100%; }
  .po-dialog__actions .btn { flex: 1; }
}

/* Scene photos (16:9 delivery images): fill the frame, centered crop, no stretching */
.product-card__img--cover { object-fit: cover; object-position: center; padding: 0; background: #1c120e; }
.pd-media--cover { padding: 0; aspect-ratio: 4 / 3; background: #1c120e; }
.pd-cigar--cover { object-fit: cover; object-position: center; mix-blend-mode: normal; }

/* Cart drawer thumbnails */
.cart-item__name { display: flex; align-items: center; gap: 0.65rem; }
.cart-item__thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: #f3ebe3; border: 1px solid var(--border); }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cart-item__thumb--cover img { object-fit: cover; object-position: center; padding: 0; }
.po-done__ref { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-soft); }

/* —— Policy pages (terms, privacy, refunds, delivery) + footer Policies column (2026-10-25) —— */
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem 1.75rem; }
}
.prose ul { list-style: disc; margin: 0 0 1.15rem 1.25rem; padding: 0; color: var(--text-muted); }
.prose li { display: list-item; margin-bottom: 0.5rem; line-height: 1.6; }
.prose li strong, .prose p strong { color: var(--ink); }
.policy-updated { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-soft) !important; }
.policy-contact {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.policy-contact h2 { margin-top: 0; font-size: 1.35rem; }
