:root {
  --bg: #0b1220;
  --panel: #0f1a33;
  --text: #e6eefc;
  --muted: #a9b8d6;
  --brand: #6ee7ff;
  --brand2: #a78bfa;
  --danger: #fb7185;
  --ok: #34d399;
  --border: rgba(255, 255, 255, 0.10);
  --focus-border: rgba(110, 231, 255, 0.45);
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  background: var(--bg);
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(110, 231, 255, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(167, 139, 250, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.80) 0%, var(--bg) 90%, var(--bg) 100%);
  /* Ensure long pages keep a solid dark bottom (no white cutoff). */
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-color: var(--bg);
  color: var(--text);
}

a { color: inherit; }
.container { max-width: 1060px; margin: 0 auto; padding: 20px; }

.auth-panel { max-width: 520px; }

.flyout-shell {
  position: fixed;
  inset: 0;
  display: grid;
  /* Panel width: min 20vw, max 450px */
  grid-template-columns: 1fr clamp(20vw, 30vw, 450px);
  grid-template-rows: 1fr;
  z-index: 50;
}

@keyframes flyoutInPanel {
  from { transform: translateX(22px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes flyoutInPanelLeft {
  from { transform: translateX(-22px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes flyoutInScrim {
  from { opacity: 0; }
  to { opacity: 1; }
}

.flyout-scrim {
  display: block;
  width: 100%;
  height: 100%;
  grid-row: 1 / -1;
  /* Dim underlying page with left->right gradient (20% -> 80%) */
  background: linear-gradient(90deg, rgba(0,0,0,0.20), rgba(0,0,0,0.80));
  backdrop-filter: blur(2px);
  animation: flyoutInScrim 700ms ease-out both;
}
.flyout-panel {
  /* Full-height (no outer margin) */
  margin: 0;
  height: 100%;
  max-height: 100vh;
  grid-row: 1 / -1;
  border: 1px solid var(--border);
  border-color: var(--focus-border);
  border-radius: 16px;
  background: var(--flyout-panel-bg, rgba(22, 22, 22, 0.6));
  backdrop-filter: blur(10px);
  padding: 14px;
  overflow: auto;
  animation: flyoutInPanel 1000ms cubic-bezier(.2,.8,.2,1) both;
  will-change: transform, opacity;
}

/* Auth flyout: footer pinned to bottom */
.flyout-shell.flyout-auth .flyout-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.flyout-shell.flyout-auth [data-flyout-body] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.flyout-shell.flyout-auth [data-flyout-footer] {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
}

/* Left-side flyout variant (hamburger menu) */
.flyout-shell.flyout-left {
  grid-template-columns: clamp(20vw, 30vw, 450px) 1fr;
}
.flyout-shell.flyout-left .flyout-panel {
  animation: flyoutInPanelLeft 1000ms cubic-bezier(.2,.8,.2,1) both;
}
.flyout-shell.flyout-left .flyout-scrim {
  grid-column: 2;
  /* Hamburger (left) flyout: darker near the panel (left), lighter to the right */
  background: linear-gradient(90deg, rgba(0,0,0,0.80), rgba(0,0,0,0.20));
}
.flyout-shell.flyout-left .flyout-panel {
  grid-column: 1;
}
.flyout-shell.flyout-left.flyout-exit .flyout-panel {
  animation: none;
  transition: transform 1000ms cubic-bezier(.4,0,1,1), opacity 1000ms ease-in;
  transform: translateX(-26px);
  opacity: 0;
}

/* Key/value table used in hamburger "Site User Data" */
.kv-table {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.kv-key { color: var(--muted); font-weight: 650; }
.kv-val { overflow-wrap: anywhere; }

.kv-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 40vh;
  gap: 10px;
}
.kv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.kv-fill { flex: 1; min-height: 0; height: 100%; }
.kv-scroll {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--flyout-kv-scroll-bg, rgba(22, 22, 22, 0.35));
  align-self: stretch;
  height: 100%;
}
.kv-seg-line { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.kv-seg-line:last-child { border-bottom: none; }

@media (max-width: 520px) {
  .kv-table { grid-template-columns: 130px 1fr; }
  .kv-row { grid-template-columns: 130px 1fr; }
}
.flyout-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.flyout-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flyout-panel .auth-panel { max-width: none; }

.flyout-shell.flyout-exit .flyout-scrim {
  animation: none;
  transition: opacity 700ms ease-in;
  opacity: 0;
}
.flyout-shell.flyout-exit .flyout-panel {
  animation: none;
  transition: transform 1000ms cubic-bezier(.4,0,1,1), opacity 1000ms ease-in;
  transform: translateX(26px);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .flyout-scrim, .flyout-panel {
    animation: none !important;
    transition: none !important;
  }
}

.nav {
  position: sticky; top: 0;
  backdrop-filter: blur(10px);
  background: rgba(20, 20, 20, 0.55);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; max-width: 1060px; margin: 0 auto; }
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(22, 22, 22, 0.55);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
}
.hamburger:hover { border-color: rgba(255,255,255,0.18); }
.hamburger-lines { display: grid; gap: 5px; }
.hamburger-lines > span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(230, 238, 252, 0.92);
  border-radius: 999px;
}
.brand { font-weight: 800; letter-spacing: 0.4px; text-decoration: none; display: inline-flex; align-items: center; }
.brand span { background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { height: 66px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.nav-links-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; flex-wrap: nowrap; }
.nav-links-right .pill { min-width: 104px; justify-content: center; }
.pill-form { margin: 0; }
.pill-form .pill {
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(22, 22, 22, 0.55);
  text-decoration: none;
}
.pill:hover { border-color: rgba(255,255,255,0.18); }
.pill small { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }

#zrecs_user_interest,
#zrecs_alternative {
  width: 100%;
  margin-top: 14px;
  box-sizing: border-box;
}

.card {
  grid-column: span 4;
  border: 1px solid var(--border);
  background: rgba(22, 22, 22, 0.65);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-inner { padding: 14px; }
.card h3 { margin: 6px 0 4px; font-size: 16px; }
.home-tile-title {
  /* Reserve space for 2 lines, hide overflow */
  line-height: 1.25;
  height: 2.5em; /* 2 lines */
  overflow: hidden;
}
.muted { color: var(--muted); }
.price { font-weight: 800; }
.panel pre {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  overflow-x: auto;
}
.panel code {
  overflow-wrap: anywhere;
}
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 12px;
}
.hero {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(110,231,255,0.12), rgba(167,139,250,0.10));
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 6px; font-size: 28px; }
.hero p { margin: 0; color: var(--muted); }

.home-hero {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 54px);
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: end;
  background:
    linear-gradient(115deg, rgba(0,0,0,0.74), rgba(0,0,0,0.20) 58%, rgba(110,231,255,0.18)),
    radial-gradient(500px 260px at 78% 20%, rgba(167,139,250,0.35), transparent 60%),
    linear-gradient(135deg, rgba(110,231,255,0.16), rgba(167,139,250,0.12));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 8% -12% auto auto;
  width: min(42vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  transform: skewX(-10deg);
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -80px;
  width: 340px;
  height: 180px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 999px;
  opacity: 0.24;
  transform: rotate(-18deg);
}
.home-hero-copy,
.home-hero-panel {
  position: relative;
  z-index: 1;
}
.home-hero-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding-top: clamp(10px, 2vw, 24px);
  padding-bottom: clamp(4px, 1vw, 12px);
}
.home-hero-copy-top {
  display: grid;
  gap: 18px;
}
.home-hero-copy-bottom {
  display: grid;
  gap: 24px;
}
.home-kicker { margin-bottom: 0; }
.home-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.home-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.45;
}
.home-hero-actions { margin-top: 0; }
.home-hero-panel {
  display: grid;
  gap: 12px;
  align-self: stretch;
  align-content: end;
}
.home-hero-images {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: clamp(260px, 34vw, 380px);
  min-height: 0;
}
.home-hero-image {
  display: block;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
  opacity: 1;
  min-height: 0;
  transition: opacity 420ms ease, transform 420ms ease;
}
.home-hero-image.is-fading { opacity: 0; }
.home-hero-image.is-primary {
  grid-row: span 2;
  transform: rotate(-2deg);
}
.home-hero-image:nth-child(3) {
  transform: rotate(3deg);
}
.home-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}
.home-stat {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
}
.home-stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}
.home-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.home-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.home-benefit span {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.home-benefit h3 { margin: 8px 0 6px; }
.home-benefit p { margin: 0; }
.home-category-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}
.home-category-card {
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(110,231,255,0.12), rgba(167,139,250,0.10));
  box-shadow: var(--shadow);
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.home-category-card > .tag,
.home-category-copy {
  position: relative;
  z-index: 1;
}
.home-category-card > .tag {
  align-self: start;
  justify-self: stretch;
}
.home-category-copy {
  align-self: center;
  display: grid;
}
.home-category-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.52), rgba(0,0,0,0.12)),
    linear-gradient(135deg, rgba(110,231,255,0.20), rgba(167,139,250,0.12));
  opacity: 0.72;
}
.home-category-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.home-category-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.72));
}
.home-category-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 240px;
  height: 150px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.20;
  transform: rotate(-16deg);
  z-index: 1;
}
.home-category-card-primary::after { background: var(--brand2); }
.home-category-copy h2 {
  max-width: 520px;
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.home-category-copy p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}
.home-section { margin-top: 26px; }
.home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}
.home-section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}
.home-featured-grid { margin-top: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { border-color: rgba(255,255,255,0.18); }
.btn-primary {
  background: linear-gradient(90deg, rgba(110,231,255,0.20), rgba(167,139,250,0.18));
  border-color: rgba(255,255,255,0.18);
}
.btn-danger { background: rgba(251,113,133,0.12); border-color: rgba(251,113,133,0.30); }
.btn-muted {
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  border-color: rgba(255,255,255,0.14);
}
.btn-muted:hover { border-color: rgba(255,255,255,0.20); }

.zetapay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.zetapay-title {
  font-weight: 750;
  line-height: 1.2;
}
.zetapay-btn {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.2;
  gap: 8px;
}
.zetapay-mark {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.zetapay-mark svg {
  width: 16px;
  height: 16px;
  display: block;
}

form { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(22, 22, 22, 0.45);
  color: var(--text);
}
.input:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.14);
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.panel {
  border: 1px solid var(--border);
  background: rgba(22, 22, 22, 0.65);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.flyout-panel .panel {
  background: var(--flyout-panel-inner-bg, rgba(22, 22, 22, 0.5));
}
.alert {
  border: 1px solid rgba(251,113,133,0.35);
  background: rgba(251,113,133,0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
}
.ok {
  border: 1px solid rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.12);
  border-radius: 14px;
  padding: 10px 12px;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: 13px; }

/* Cart: keep Price/Total columns fixed so values don't shift layout */
.cart-table .cart-money {
  width: 110px;            /* enough for $xxxx.xx */
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Cart: vertically center contents in each row */
.cart-table th,
.cart-table td {
  vertical-align: middle;
}

/* Cart: align right-side controls to Checkout width */
.cart-action-w {
  width: 132px;
  max-width: 100%;
  box-sizing: border-box;
}
.cart-subtotal {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cart-remove {
  width: 132px;
  text-align: right;
}
.cart-remove form {
  display: flex;
  justify-content: flex-end;
}

/* Cart: align summary/actions with table cell padding */
.cart-row-pad {
  padding-left: 8px;
  padding-right: 8px;
}

/* Cart: compact action buttons (Remove/Checkout) */
.cart-action-btn {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.15;
}

/* Cart: thumbnail next to title */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-thumb {
  width: 44px;
  height: 44px; /* placeholder height; img overrides to keep original ratio */
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  display: block;
}
img.cart-thumb {
  height: auto; /* keep original image ratio */
}
.cart-item-text { min-width: 0; }

.tile-split {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}
.tile-split > div { height: 100%; }
.products-media {
  /* Reserve image space on /products to prevent layout shift */
  height: 120px;
}
.tile-thumb {
  width: 100%;
  height: 100%;
  min-height: 104px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}
.tile-actions {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: stretch;
}
.tile-actions form { width: 100%; }
.tile-actions .btn { width: 100%; }

/* /products tiles: info stack to right of image */
.products-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.products-title { margin: 0; }

/* Shop tiles: image left of text */
.shop-tile {
  display: grid;
  grid-template-columns: 101px 1fr;
  gap: 12px;
  align-items: stretch;
}
.shop-tile-img {
  width: 101px;
  height: 96px; /* placeholder height; img overrides to keep original ratio */
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  display: block;
}
img.shop-tile-img { height: auto; }
.shop-tile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shop-tile .tag { align-self: flex-start; }
.shop-tile-mid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.shop-tile-title {
  margin: 0;
  line-height: 1.2;
}
.shop-tile-blurb {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.25;
}
.shop-tile-count {
  margin-top: auto;
  text-align: right;
  font-size: 12px;
}

.detail-split {
  display: grid;
  grid-template-columns: minmax(240px, 30%) 1fr; /* ~30% / 70% */
  gap: 14px;
  margin-top: 12px;
  align-items: stretch;
}
.detail-media {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-media-main {
  width: 100%;
  /* Taller media area on details page */
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-media .tile-thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  /* Preserve the image's natural ratio (no cropping) */
  object-fit: contain;
  object-position: center;
}
.detail-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.detail-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.detail-thumb.is-active {
  border-color: rgba(255,255,255,0.30);
}
.detail-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.detail-desc {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  white-space: pre-wrap;
}
.detail-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.detail-actions .btn { width: 100%; }
.detail-actions form { width: 100%; }

.zeta-article-page {
  display: grid;
  gap: 24px;
}
.zeta-article-header {
  display: grid;
  gap: 12px;
}
.zeta-article-header h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.zeta-article-image {
  display: block;
  width: 100%;
  max-height: 620px;
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}
.zeta-article-body {
  line-height: 1.7;
  font-size: clamp(17px, 1.5vw, 20px);
}
.zeta-article-body > *:first-child {
  margin-top: 0;
}
.zeta-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Zeta product row: equal-width columns when multiple fields visible; full width when one */
.detail-option-row {
  width: 100%;
  align-items: flex-end;
  gap: 12px;
}
.detail-option-row > label {
  flex: 1 1 0;
  min-width: 0;
}
.detail-option-row .qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.detail-option-row .qty-stepper .input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  text-align: center;
}

@media (max-width: 920px) {
  .card { grid-column: span 6; }
  .home-hero,
  .home-category-grid {
    grid-template-columns: 1fr;
  }
  .home-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .card { grid-column: span 12; }
  .hero h1 { font-size: 24px; }
  /* Avoid fixed nav controls overlapping brand on small screens. */
  .nav-inner { padding-left: 72px; }
  .home-hero { min-height: 0; }
  .home-hero-images { height: 300px; }
  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .flyout-shell { grid-template-columns: 1fr; }
  .flyout-scrim { display: none; }
  .flyout-panel { width: 100%; }
}
