@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --bg: #400040;
  --panel: #22102f;
  --text: #fff7ff;
  --muted: #d8c4df;
  --brand: #f3c4ff;
  --brand2: #a78bfa;
  --accent: #ff7adf;
  --cream: #fff5ea;
  --danger: #fb7185;
  --ok: #34d399;
  --border: rgba(255, 236, 255, 0.16);
  --focus-border: rgba(243, 196, 255, 0.54);
  --shadow: 0 24px 70px rgba(25, 0, 32, 0.44);
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(255, 122, 223, 0.32), transparent 60%),
    radial-gradient(760px 520px at 92% 6%, rgba(167, 139, 250, 0.40), transparent 58%),
    radial-gradient(700px 420px at 42% 20%, rgba(255, 245, 234, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(17, 0, 24, 0.84) 0%, var(--bg) 56%, #26002d 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);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), transparent 80%);
}

a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 28px 22px 56px; }

.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-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(18px);
  background: rgba(42, 0, 52, 0.66);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; max-width: 1180px; 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(255, 245, 255, 0.08);
  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.28); background: rgba(255,255,255,0.12); }
.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-size: 2em; font-weight: 800; letter-spacing: 0.18em; text-decoration: none; display: inline-flex; align-items: center; text-transform: uppercase; }
.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: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 245, 255, 0.08);
  text-decoration: none;
  color: rgba(255, 247, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.pill:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.30); background: rgba(255,255,255,0.13); }
.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:
    linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045)),
    rgba(39, 0, 50, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 245, 255, 0.30);
  box-shadow: 0 30px 80px rgba(25, 0, 32, 0.56);
}
.card-inner { padding: 16px; }
.card h3 { margin: 6px 0 4px; font-size: 18px; letter-spacing: -0.02em; }
.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; color: var(--cream); letter-spacing: 0.02em; }
.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 245, 234, 0.16), rgba(255, 122, 223, 0.11) 42%, rgba(167,139,250,0.14)),
    rgba(39, 0, 50, 0.68);
  border-radius: 34px;
  padding: clamp(30px, 7vw, 76px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 38%;
  min-width: 220px;
  aspect-ratio: 1;
  right: -8%;
  top: -20%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 223, 0.30), rgba(167,139,250,0.10) 48%, transparent 70%);
}
.hero h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; }

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}
.home-hero-grid .hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.home-hero-product {
  position: relative;
  display: flex;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 122, 223, 0.22), rgba(167,139,250,0.16)),
    rgba(39, 0, 50, 0.70);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.home-hero-product-slide {
  position: absolute;
  inset: 0;
  display: flex;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}
.home-hero-product-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.home-hero-product-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(18, 0, 26, 0.84) 100%);
}
.home-hero-product-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1200ms ease;
}
.home-hero-product-slide.is-active:hover img { transform: scale(1.05); }
.home-hero-product-copy {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 100%;
  padding: 24px;
}
.home-hero-product h3,
.home-collection-card h3 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.home-hero-product-empty {
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.home-collection-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
  margin-top: 18px;
}
.home-collection-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(360px 220px at 85% 5%, rgba(255, 122, 223, 0.24), transparent 70%),
    linear-gradient(155deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    rgba(39, 0, 50, 0.72);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}
.home-collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,245,255,0.30);
}
.home-collection-card p {
  max-width: 420px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}
.home-collection-card-large {
  min-height: 320px;
  background:
    radial-gradient(440px 300px at 85% 10%, rgba(255, 245, 234, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(255, 122, 223, 0.24), rgba(167,139,250,0.13)),
    rgba(39, 0, 50, 0.78);
}
.home-integration-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.home-integration-actions .btn {
  text-align: center;
}
.gtm-summary-grid .card {
  grid-column: span 6 !important;
}
.gtm-summary-grid .gtm-summary-third {
  grid-column: span 4 !important;
}
.home-merch-strip {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, auto);
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.075);
  box-shadow: 0 18px 50px rgba(25, 0, 32, 0.28);
}
.home-merch-strip strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.home-merch-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-recs-shell {
  min-height: 18px;
}
.home-featured-grid { margin-top: 14px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 14px;
}
.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-heading p { margin: 8px 0 0; max-width: 520px; color: var(--muted); line-height: 1.6; }
.fashion-header {
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 34px);
}
.fashion-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.fashion-header p { margin: 10px 0 0; color: var(--muted); max-width: 620px; line-height: 1.6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.12); }
.btn-primary {
  background: linear-gradient(90deg, rgba(255,122,223,0.58), rgba(167,139,250,0.42));
  border-color: rgba(255,245,255,0.32);
  color: #fff;
}
.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: 16px;
  border: 1px solid var(--border);
  background: rgba(31, 0, 42, 0.56);
  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:
    linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04)),
    rgba(39, 0, 50, 0.70);
  border-radius: 26px;
  padding: 18px;
  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: minmax(140px, 42%) 1fr;
  gap: 16px;
  margin-top: 12px;
  align-items: stretch;
}
.tile-split > div { height: 100%; }
.products-media {
  /* Reserve image space on /products to prevent layout shift */
  height: 162px;
}
.tile-thumb {
  width: 100%;
  height: 100%;
  min-height: 104px;
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
}
.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: 42% 1fr;
  gap: 16px;
  align-items: stretch;
  min-height: 230px;
}
.shop-tile-img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 122, 223, 0.22), rgba(167,139,250,0.18)),
    rgba(255,255,255,0.05);
  display: block;
  object-fit: cover;
}
img.shop-tile-img { height: 100%; }
.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;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.shop-tile-blurb {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.shop-tile-count {
  margin-top: auto;
  text-align: right;
  font-size: 12px;
}

.detail-split {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: stretch;
}
.detail-media {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-media-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-media .tile-thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  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;
  line-height: 1.7;
}
.detail-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.detail-actions .btn { width: 100%; }
.detail-actions form { width: 100%; }

/* 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; }
}
@media (max-width: 620px) {
  .card { grid-column: span 12; }
  .hero h1 { font-size: 42px; }
  /* Avoid hamburger overlapping brand on small screens */
  .nav-inner { padding-left: 72px; }
  .section-heading { display: block; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-grid .hero,
  .home-hero-product { min-height: 420px; }
  .home-collection-grid { grid-template-columns: 1fr; }
  .home-collection-card,
  .home-collection-card-large { min-height: 230px; }
  .home-merch-strip {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }
  .home-integration-actions { grid-template-columns: 1fr; }
  .gtm-summary-grid .card,
  .gtm-summary-grid .gtm-summary-third {
    grid-column: span 12 !important;
  }
  .home-merch-strip span { white-space: normal; }
  .shop-tile { grid-template-columns: 1fr; }
  .shop-tile-img { min-height: 180px; }
  .tile-split { grid-template-columns: 1fr; }
  .products-media { height: 220px; }
}

@media (max-width: 760px) {
  .detail-split { grid-template-columns: 1fr; }
}

@media (min-width: 621px) and (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-grid .hero,
  .home-hero-product { min-height: 480px; }
  .home-collection-grid { grid-template-columns: 1fr 1fr; }
  .home-collection-card-large { grid-column: span 2; }
  .home-merch-strip { grid-template-columns: 1fr 1fr; border-radius: 30px; }
}

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