:root {
  --bg: #120f0f;
  --bg-soft: #211815;
  --panel: #fffaf1;
  --panel-dark: #1b1514;
  --ink: #211817;
  --ink-light: #fff7eb;
  --muted: #766b62;
  --muted-light: #d8c9ba;
  --brand: #b51f1f;
  --brand-bright: #ef3d1f;
  --brand-dark: #5a1010;
  --ember: #ff7a18;
  --gold: #f2b544;
  --smoke: #342623;
  --line: #eadfce;
  --line-dark: rgba(255, 232, 194, .18);
  --success: #e8f5eb;
  --error: #d93636;
  --shadow: 0 22px 55px rgba(35, 17, 10, 0.22);
  --glow: 0 0 0 1px rgba(255, 183, 68, .22), 0 18px 50px rgba(181, 31, 31, .24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 61, 31, .30), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 122, 24, .22), transparent 24%),
    linear-gradient(180deg, #160f0e 0%, #231511 42%, #f6eee2 42%, #f7f1e8 100%);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.site-header {
  background: rgba(18, 15, 15, 0.92);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-light); }
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
}

.brand:hover { text-decoration: none; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, #ffd36a, transparent 23%),
    linear-gradient(145deg, var(--brand-bright), var(--brand-dark));
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(239, 61, 31, .28);
  border: 1px solid rgba(255,255,255,.18);
}
.brand strong { display: block; font-size: 1rem; }
.brand span { display: block; color: var(--muted-light); font-size: .85rem; margin-top: -3px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-weight: 800; font-size: .95rem; }
.nav a { color: var(--ink-light); opacity: .92; }
.nav a:hover { color: var(--gold); text-decoration: none; }
.hero {
  padding: 96px 0 84px;
  color: var(--ink-light);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(18,15,15,.95) 0%, rgba(48,18,14,.88) 58%, rgba(113,20,10,.72) 100%),
    radial-gradient(circle at 85% 20%, rgba(255, 122, 24, .50), transparent 32%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 84%, rgba(255, 183, 68, .26), transparent 18%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-weight: 900; letter-spacing: .16em; font-size: .78rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); line-height: 1.03; margin: 0 0 18px; letter-spacing: -.04em; }
h2 { line-height: 1.2; margin-top: 0; }
h3 { margin-top: 0; }
.lead { font-size: 1.2rem; color: rgba(255,247,235,.82); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--glow); }
.button.primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark));
  color: #fff;
  border-color: rgba(255, 180, 64, .30);
}
.button.secondary { background: rgba(255,255,255,.10); color: var(--ink-light); border-color: rgba(255,255,255,.30); }
.hero .button.secondary { color: #fff; }
.notice-card, .card, .gate-card, .success-box, .product-card, .alert {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.notice-card {
  padding: 30px;
  color: var(--ink-light);
  background: linear-gradient(180deg, rgba(35, 22, 18, .96), rgba(20, 15, 14, .96));
  border-color: rgba(255, 213, 122, .22);
  box-shadow: var(--glow);
}
.notice-card ol { padding-left: 22px; margin-bottom: 0; color: rgba(255,247,235,.86); }
.section { padding: 62px 0; }
.section-heading { margin-bottom: 30px; }
.section-heading .eyebrow, .gate-card .eyebrow { color: var(--brand-bright); }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 26px; position: relative; overflow: hidden; }
.card::before {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-bright), var(--gold));
  margin-bottom: 18px;
}
.form { display: grid; gap: 16px; margin-top: 28px; }
.form.compact { max-width: 520px; }
label { display: grid; gap: 6px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(239, 61, 31, .18); border-color: var(--brand-bright); }
textarea { resize: vertical; }
.checkbox { grid-template-columns: auto 1fr; align-items: start; font-weight: 600; color: var(--muted); }
.checkbox input { width: auto; margin-top: 6px; }
.hidden { display: none !important; }
.small { font-size: .9rem; color: var(--muted); }
.error { color: var(--error); font-weight: 800; min-height: 24px; }
.gate-card, .success-box { padding: 34px; }
.gate-card { border-top: 7px solid var(--brand-bright); }
.success-box { background: var(--success); }
.alert { padding: 18px 20px; margin-bottom: 24px; border-left: 7px solid var(--ember); background: #fff8ed; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product-card { overflow: hidden; display: grid; grid-template-columns: 170px 1fr; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.product-image {
  min-height: 230px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 211, 106, .9), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(255, 122, 24, .65), transparent 25%),
    linear-gradient(145deg, #261615, #8c1818 55%, #f05a22);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  position: relative;
}
.product-image::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
}
.product-body { padding: 24px; }
.product-body h2 { margin-bottom: 8px; }
.product-body ul { color: var(--muted); padding-left: 20px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.product-footer strong { font-size: 1.2rem; color: var(--brand-dark); }

.payment-panel {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 22px;
  align-items: stretch;
  background:
    linear-gradient(135deg, #fffaf1, #fff2db);
  border: 1px solid var(--line);
  border-left: 7px solid var(--brand-bright);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 26px;
}
.payment-panel h2 { margin-bottom: 8px; }
.payment-panel p { margin-bottom: 0; color: var(--muted); }
.bank-details {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: #1b1514;
  color: var(--ink-light);
  border: 1px solid rgba(255, 213, 122, .22);
}
.bank-details strong { color: var(--gold); font-size: 1.05rem; }
.bank-details span { color: rgba(255,247,235,.82); }
.payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.button.bank {
  background: #fff8ed;
  color: var(--brand-dark);
  border-color: rgba(181, 31, 31, .28);
}
.button.bank:hover { background: #fff1db; }

.store-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; font-weight: 900; }
.store-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #fff1db; color: var(--brand-dark); }
.site-footer { border-top: 1px solid var(--line-dark); background: #151010; padding: 26px 0; color: var(--muted-light); }
.site-footer a { color: var(--gold); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
@media (max-width: 840px) {
  body { background: linear-gradient(180deg, #160f0e 0%, #231511 34%, #f7f1e8 34%, #f7f1e8 100%); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .hero { padding: 64px 0; }
  .hero-grid, .cards.three, .products, .payment-panel { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-image { min-height: 170px; }
}

/* Simplified members-only landing page */
body.landing-page {
  min-height: 100vh;
  color: var(--ink-light);
  background: #050404;
  display: grid;
  grid-template-rows: 1fr auto;
}
.member-entry {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 42px 18px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(3,3,3,.26), rgba(3,3,3,.76)),
    radial-gradient(circle at 50% 42%, rgba(255, 154, 48, .18), transparent 20%),
    url('../assets/hero-background.jpg');
  background-size: cover;
  background-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.22) 44%, rgba(0,0,0,.62)),
    radial-gradient(circle at 50% 50%, rgba(255, 208, 108, .20), transparent 22%);
  pointer-events: none;
}
.member-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, rgba(255, 122, 24, .07), transparent 38%);
  mix-blend-mode: screen;
  opacity: .52;
  pointer-events: none;
}
.entry-card {
  width: min(610px, 100%);
  position: relative;
  text-align: center;
  padding: 48px 50px 44px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(16, 13, 13, .90), rgba(10, 8, 8, .82));
  border: 1px solid rgba(255, 213, 122, .34);
  box-shadow:
    0 42px 120px rgba(0,0,0,.66),
    0 0 0 1px rgba(239, 61, 31, .26),
    0 0 95px rgba(239, 61, 31, .22);
  backdrop-filter: blur(18px);
}
.entry-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 27px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.entry-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 190px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--brand-bright), var(--gold), var(--brand-bright));
}
.entry-logo {
  width: 178px;
  height: 178px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.48));
}
.entry-card h1 {
  font-size: clamp(2.2rem, 8vw, 3.35rem);
  letter-spacing: -.035em;
  margin-bottom: 12px;
}
.entry-copy {
  color: rgba(255,247,235,.78);
  margin: 0 auto 25px;
}
.entry-form {
  margin: 0 auto;
  text-align: left;
}
.entry-form label {
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .78rem;
}
.entry-form input {
  text-align: center;
  font-size: 1.08rem;
  min-height: 54px;
  border-color: rgba(255, 213, 122, .34);
  background: rgba(255,255,255,.97);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.entry-form .button {
  width: 100%;
  min-height: 54px;
  font-size: 1rem;
}
.entry-footer {
  text-align: center;
  color: rgba(255,247,235,.68);
  padding: 20px;
  font-size: .92rem;
  background: #050404;
}
.entry-footer p { margin: 0; }
.store-header .brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.store-title-block {
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(18,15,15,.96), rgba(72,19,15,.92)),
    radial-gradient(circle at 88% 20%, rgba(255,122,24,.32), transparent 24%);
  color: var(--ink-light);
  border: 1px solid rgba(255,213,122,.22);
  box-shadow: var(--glow);
}
.store-title-block p:not(.eyebrow) { color: rgba(255,247,235,.82); }
.store-title-block h1 { margin-bottom: 8px; }
@media (max-width: 560px) {
  .payment-actions { justify-content: stretch; }
  .payment-actions .button { width: 100%; }
  .entry-card { padding: 34px 22px 30px; border-radius: 26px; }
  .entry-logo { width: 138px; height: 138px; }
  .nav { gap: 12px; font-size: .88rem; }
}

/* Final Cloudflare package: real logo and hero image */
.entry-logo { border-radius: 50%; background: transparent; padding: 0; }
.store-header .brand-logo { border-radius: 50%; background: transparent; }

/* Cart experience */
.cart-nav-button {
  border: 1px solid rgba(255, 213, 122, .34);
  border-radius: 999px;
  color: var(--ink-light);
  background: rgba(255,255,255,.08);
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
}
.cart-nav-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark));
}
.product-controls {
  display: grid;
  grid-template-columns: 1fr 105px;
  gap: 12px;
  margin-top: 16px;
}
.product-controls label { font-size: .9rem; }
.product-controls select, .product-controls input { min-height: 45px; }
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,.45);
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  background: #fffaf1;
  box-shadow: -30px 0 90px rgba(0,0,0,.35);
  transform: translateX(105%);
  transition: transform .2s ease;
  overflow: auto;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.cart-drawer-header h2 { margin: 0; }
.cart-icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.cart-items { display: grid; align-content: start; gap: 12px; }
.empty-cart { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 18px; padding: 18px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.cart-line span { display: block; color: var(--muted); font-size: .9rem; }
.cart-line-controls { display: grid; justify-items: end; gap: 7px; }
.cart-line-qty { width: 76px; padding: 8px; border-radius: 12px; }
.cart-remove { border: 0; background: transparent; color: var(--brand); font-weight: 900; cursor: pointer; }
.cart-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #1b1514;
  color: var(--ink-light);
  border-radius: 20px;
  border: 1px solid rgba(255, 213, 122, .22);
}
.cart-summary div { display: flex; justify-content: space-between; gap: 18px; }
.cart-summary span { color: rgba(255,247,235,.76); }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
}
.checkout-modal.open { display: grid; }
.checkout-card {
  position: relative;
  width: min(650px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-top: 7px solid var(--brand-bright);
  border-radius: 28px;
  box-shadow: 0 35px 100px rgba(0,0,0,.45);
  padding: 28px;
}
.checkout-close { position: absolute; top: 18px; right: 18px; }
.checkout-form { margin-top: 16px; }
.checkout-total-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.checkout-total-box span { color: var(--muted); }
.checkout-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) {
  .product-controls, .cart-actions, .checkout-buttons { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line-controls { justify-items: stretch; }
  .cart-line-qty { width: 100%; }
}

.product-section { margin: 28px 0 34px; }
.product-section-title { margin: 0 0 16px; }
.product-section-title h2 { margin: 2px 0 0; }

/* Visibility fix: ensure subheadings remain readable on dark/fire backgrounds */
.site-header .brand span,
.store-header .brand span {
  color: rgba(255,247,235,.86) !important;
}
.store-title-block h1,
.store-title-block .eyebrow,
.store-title-block p,
body.store-page .section-heading h1,
body.store-page .section-heading p:not(.eyebrow) {
  color: rgba(255,247,235,.92) !important;
}
.store-title-block .eyebrow,
body.store-page .section-heading .eyebrow {
  color: #f2b544 !important;
}
.page-hero,
.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
  color: rgba(255,247,235,.94) !important;
}

/* Category heading readability fix */
.product-section-title {
  padding: 22px 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(18,15,15,.96), rgba(72,19,15,.92)),
    radial-gradient(circle at 88% 20%, rgba(255,122,24,.30), transparent 24%);
  border: 1px solid rgba(255,213,122,.22);
  box-shadow: var(--glow);
}
.product-section-title h2 {
  color: var(--ink-light) !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.product-section-title .eyebrow {
  color: var(--gold) !important;
}
.checkout-message {
  margin: 12px 0;
  background: #eef8f1;
  border-color: #b7e0c0;
  color: #12391f;
}
.checkout-message.error {
  background: #fff1ef;
  border-color: #efb7ad;
  color: #5c1b13;
}
.checkout-form button:disabled {
  cursor: wait;
  opacity: .7;
}


/* Product list managed by js/products.js */
.product-image span {
  position: relative;
  z-index: 1;
}

.product-image.has-image {
  background: #f7f1e8;
  overflow: hidden;
}

.product-image.has-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.product-image.has-image span {
  display: none;
}

.product-controls.no-size {
  grid-template-columns: 105px;
}
