@import url("theme.css");

:root { --radius: 26px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  position: relative;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.no-scroll { overflow: hidden; }
.hidden { display: none !important; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.glass {
  border: 1px solid var(--border);
  background: var(--panel-gradient);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 var(--surface-soft), 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Atmospheric Layered Background System */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  contain: strict;
}

.bg-base-canvas {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 850px at 15% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 68%),
    radial-gradient(950px 750px at 86% 22%, rgba(134, 239, 208, 0.06) 0%, transparent 62%),
    radial-gradient(1300px 950px at 45% 72%, rgba(155, 92, 255, 0.11) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 72%),
    radial-gradient(1100px 900px at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 68%),
    radial-gradient(900px 800px at 12% 85%, rgba(155, 92, 255, 0.09) 0%, transparent 65%),
    linear-gradient(180deg, #05060a 0%, #070812 52%, #090b12 100%);
}

.bg-nebula {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.bg-nebula-hero {
  top: 5%;
  left: 5%;
  width: 760px;
  height: 540px;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(155, 92, 255, 0.22) 0%, rgba(124, 58, 237, 0.12) 44%, rgba(80, 30, 160, 0.03) 72%, transparent 85%);
  filter: blur(80px);
}

.bg-nebula-card {
  top: 6%;
  right: 3%;
  width: 780px;
  height: 620px;
  background:
    radial-gradient(circle at 35% 28%, rgba(134, 239, 208, 0.12) 0%, rgba(111, 231, 194, 0.04) 45%, transparent 72%),
    radial-gradient(circle at 68% 68%, rgba(155, 92, 255, 0.17) 0%, rgba(124, 58, 237, 0.07) 48%, transparent 72%);
  filter: blur(85px);
}

.bg-nebula-catalog {
  top: 52%;
  left: 15%;
  width: 960px;
  height: 720px;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(155, 92, 255, 0.16) 0%, rgba(124, 58, 237, 0.08) 46%, rgba(70, 25, 140, 0.02) 72%, transparent 85%);
  filter: blur(95px);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.bg-orb-tl {
  top: -140px;
  left: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 65% 65%, rgba(155, 92, 255, 0.24) 0%, rgba(124, 58, 237, 0.12) 38%, rgba(30, 15, 60, 0.04) 62%, transparent 74%);
  filter: blur(48px);
}

.bg-orb-rm {
  top: 36%;
  right: -200px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle at 35% 45%, rgba(134, 239, 208, 0.13) 0%, rgba(111, 231, 194, 0.04) 48%, transparent 74%);
  filter: blur(65px);
}

.bg-orb-bl {
  bottom: -160px;
  left: -160px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle at 60% 40%, rgba(155, 92, 255, 0.20) 0%, rgba(124, 58, 237, 0.10) 42%, transparent 74%);
  filter: blur(65px);
}

.bg-orb-br {
  bottom: -150px;
  right: -150px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 40% 40%, rgba(134, 239, 208, 0.12) 0%, rgba(111, 231, 194, 0.04) 46%, transparent 72%);
  filter: blur(60px);
}

.bg-arc {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 35%, transparent 75%);
}

.bg-arc-1 {
  width: 1280px;
  height: 940px;
  top: -220px;
  left: 8%;
  border: 1px solid rgba(155, 92, 255, 0.16);
  transform: rotate(-18deg);
}

.bg-arc-2 {
  width: 1420px;
  height: 980px;
  top: 22%;
  right: -300px;
  border: 1px solid rgba(134, 239, 208, 0.11);
  transform: rotate(26deg);
}

.bg-arc-3 {
  width: 1080px;
  height: 780px;
  bottom: 4%;
  left: -160px;
  border: 1px solid rgba(155, 92, 255, 0.13);
  transform: rotate(14deg);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 40%, transparent 42%, rgba(5, 6, 10, 0.35) 75%, rgba(3, 4, 7, 0.72) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* Legacy alias retained for safety */
.glow {
  display: none;
}

.header {
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  transition: transform .18s ease, filter .18s ease;
}
.brand:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.neon-mc {
  color: #dfc8ff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 0 6px rgba(168, 85, 247, 0.85),
    0 0 16px rgba(147, 51, 234, 0.55),
    0 0 30px rgba(124, 58, 237, 0.28);
  transition: text-shadow .2s ease;
}
.neon-liqs {
  color: #9effe2;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 0 6px rgba(52, 211, 153, 0.85),
    0 0 16px rgba(16, 185, 129, 0.55),
    0 0 30px rgba(5, 150, 105, 0.28);
  transition: text-shadow .2s ease;
}
.brand:hover .neon-mc {
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 9px rgba(168, 85, 247, 1),
    0 0 20px rgba(147, 51, 234, 0.75),
    0 0 36px rgba(124, 58, 237, 0.4);
}
.brand:hover .neon-liqs {
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 9px rgba(52, 211, 153, 1),
    0 0 20px rgba(16, 185, 129, 0.75),
    0 0 36px rgba(5, 150, 105, 0.4);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.desktop-nav { display: flex; gap: 26px; color: var(--muted); font-size: 13px; }
.nav-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.desktop-nav a:hover, .nav-button:hover { color: var(--text); }
.top-cart {
  justify-self: end;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 7px 7px 7px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.top-cart span { color: var(--muted); font-size: 12px; }
.top-cart strong {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--accent-gradient);
  font-size: 11px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
  padding: 55px 0 85px;
}
.hero h1 {
  margin: 15px 0 20px;
  max-width: 700px;
  font-size: clamp(55px, 7.7vw, 104px);
  line-height: .89;
  letter-spacing: -.075em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 15%, #c084fc 58%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  filter: drop-shadow(0 4px 28px rgba(155, 92, 255, 0.35));
}
.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 10px; margin-top: 30px; }
.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--on-accent);
  background: var(--accent-gradient);
  box-shadow: 0 4px 20px rgba(155, 92, 255, 0.32);
}
.button-secondary {
  border-color: var(--border);
  background: var(--surface-soft);
}

.hero-card {
  min-height: 400px;
  border-radius: 36px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: var(--panel-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(155, 92, 255, 0.08);
}
.hero-card::before {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 239, 208, 0.18) 0%, rgba(134, 239, 208, 0.04) 55%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.22) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tiny-badge {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-card .tiny-badge {
  border-color: var(--mint-border);
  background: var(--mint-soft);
  color: var(--mint);
  box-shadow: 0 0 12px rgba(134, 239, 208, 0.25);
}
.muted { color: var(--muted); }
.hero-object {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.hero-object-inner {
  width: 170px;
  height: 205px;
  border-radius: 30px 30px 38px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--object-gradient);
  box-shadow: 0 40px 70px var(--shadow-color);
  transform: rotate(5deg);
}
.hero-object-inner small { color: var(--accent); font-size: 9px; letter-spacing: .2em; }
.hero-object-inner strong { margin-top: 10px; font-size: 68px; line-height: .9; letter-spacing: -.08em; }
.hero-object-inner span { margin-top: 7px; color: var(--text-secondary); font-size: 11px; letter-spacing: .2em; }
.hero-card-bottom { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.hero-card-bottom span { color: var(--muted); font-size: 12px; }

.catalog { padding: 65px 0 150px; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -.055em;
}
.section-title > span { color: var(--muted); font-size: 12px; }

.view-switch {
  margin-bottom: 12px;
  padding: 7px;
  border-radius: 18px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.view-switch::-webkit-scrollbar { display: none; }
.view-button {
  flex: 0 0 auto;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.view-button.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-strong);
}

.toolbar {
  min-height: 68px;
  padding: 9px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.search-box {
  flex: 1;
  min-width: 290px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}
.search-box span { color: var(--muted); font-size: 20px; }
.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: var(--muted); }

.category-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }
.category-button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.category-button.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-strong);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 17px;
}
.product-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}
.product-head {
  height: 52px;
  padding: 15px 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.stock-label { color: var(--muted); font-size: 9px; white-space: nowrap; }
.stock-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: none;
}
.product-art {
  height: 210px;
  display: grid;
  place-items: center;
  position: relative;
}
.product-art::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-ambient);
  filter: blur(45px);
}
.mock-product {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 158px;
  border-radius: 21px 21px 27px 27px;
  background: var(--object-gradient);
  box-shadow: 0 28px 48px var(--shadow-color);
  transform: rotate(5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pod-art .mock-product {
  width: 120px;
  height: 92px;
  border-radius: 20px;
  transform: rotate(-4deg);
}
.pouch-art::before {
  background: var(--violet-ambient);
}
.pouch-mock {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  transform: rotate(-3deg) !important;
  background: var(--panel-gradient) !important;
  box-shadow: 0 20px 40px var(--shadow-color), inset 0 0 0 2px var(--surface-strong) !important;
}
.pouch-mock strong {
  font-size: 24px !important;
}
.product-card-img {
  width: 100%;
  height: 100%;
  max-height: 190px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  position: relative;
  z-index: 1;
  transition: transform .22s ease;
}
.product-card:hover .product-card-img {
  transform: scale(1.05);
}
.mock-product small { color: var(--accent); font-size: 8px; letter-spacing: .18em; }
.mock-product strong { margin-top: 7px; font-size: 28px; letter-spacing: -.04em; }
.mock-product span { margin-top: 5px; color: var(--text-secondary); font-size: 8px; letter-spacing: .13em; }
.product-body { padding: 2px 17px 17px; }
.brand-name { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.product-body h3 { margin: 7px 0 5px; font-size: 21px; letter-spacing: -.04em; }
.product-body > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.price-row {
  margin: 17px 0 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.price-row strong { font-size: 22px; }
.price-row span { color: var(--muted); font-size: 9px; }

.variant-list { display: grid; gap: 7px; }
.variant-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 8px 0 11px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.variant-button:hover {
  transform: translateX(2px);
  background: var(--surface-strong);
  border-color: var(--accent-border);
}
.variant-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.variant-button b {
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: var(--accent);
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.variant-button:hover b {
  background: var(--mint);
  color: #06070b;
}
.variant-button.disabled { opacity: .38; cursor: not-allowed; }
.variant-button.disabled b {
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 8px;
}

.brand-grid, .flavour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.brand-card, .flavour-card {
  min-height: 118px;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.brand-card {
  grid-template-columns: 44px 1fr auto;
}
.flavour-card {
  grid-template-columns: 14px 1fr auto;
}
.brand-card:hover, .flavour-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
}
.brand-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--on-accent);
  background: var(--accent-gradient);
  font-weight: 900;
}
.brand-card > div, .flavour-card > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.brand-card strong, .flavour-card strong { font-size: 14px; }
.brand-card span:not(.brand-symbol), .flavour-card span { color: var(--muted); font-size: 10px; }
.brand-card small, .flavour-card small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.flavour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.flavour-card:hover .flavour-dot {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(124,231,192,.35);
}
.flavour-card.disabled { opacity: .38; cursor: not-allowed; }

.empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}
.empty strong { color: var(--text); font-size: 20px; }

.floating-cart {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 28px));
  min-height: 65px;
  border-radius: 20px;
  padding: 9px 10px 9px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(15, 18, 32, 0.94);
  border: 1px solid rgba(155, 92, 255, 0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(155, 92, 255, 0.16);
  transition: border-color .18s ease;
}
.floating-cart:hover {
  border-color: var(--accent);
}
.floating-cart > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: start;
}
.floating-cart span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.floating-cart strong { font-size: 11px; }
.floating-total {
  min-width: 105px;
  min-height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: var(--accent-gradient);
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(155, 92, 255, 0.38);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.overlay.active { opacity: 1; visibility: visible; }
.drawer {
  width: min(480px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  box-shadow: -28px 0 90px var(--shadow-color);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.overlay.active .drawer { transform: translateX(0); }
.drawer-head {
  min-height: 94px;
  padding: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-strong);
}
.drawer-head h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.04em; }
.close-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 22px;
}
.cart-items { flex: 1; overflow: auto; padding: 9px 23px; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-strong);
}
.cart-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-copy span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.cart-item-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-copy small { color: var(--muted); font-size: 9px; }
.quantity {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
}
.quantity button {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.quantity button:hover {
  color: var(--mint);
  background: var(--surface-strong);
}
.quantity strong { min-width: 16px; text-align: center; font-size: 10px; }
.cart-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}
.cart-empty div { font-size: 34px; filter: grayscale(1); }
.cart-empty strong { color: var(--text); }
.cart-empty span { font-size: 11px; }
.drawer-footer {
  padding: 19px 23px 23px;
  border-top: 1px solid var(--surface-strong);
}
.price-line {
  margin: 7px 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.price-line.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-strong);
  font-size: 16px;
}
.price-line.total strong {
  color: var(--mint);
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(134, 239, 208, 0.28);
}
.telegram-button {
  width: 100%;
  margin-top: 17px;
  color: var(--on-accent);
  background: var(--accent-gradient);
  box-shadow: 0 4px 22px rgba(155, 92, 255, 0.35);
  font-weight: 800;
}
.info-drawer { width: min(560px, 100%); }
.info-content { padding: 8px 23px 30px; overflow: auto; }
.info-content article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-strong);
}
.info-content article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
}
.info-content strong { font-size: 13px; }
.info-content p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.toast {
  position: fixed;
  z-index: 200;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -90px);
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--mint-border);
  box-shadow: 0 18px 60px var(--shadow-color), 0 0 0 1px rgba(124,231,192,.18);
  font-size: 10px;
  font-weight: 800;
  transition: transform .22s ease;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 65px;
  }
  .hero-card { min-height: 340px; }
  .product-grid, .brand-grid, .flavour-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .bg-nebula-hero {
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 580px;
    height: 440px;
    top: 3%;
    filter: blur(70px);
  }
  .bg-nebula-card {
    top: 36%;
    right: -80px;
    width: 420px;
    height: 420px;
    filter: blur(65px);
  }
  .bg-orb-tl {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -120px;
  }
  .bg-orb-rm {
    width: 360px;
    height: 360px;
    top: 46%;
    right: -140px;
  }
  .bg-arc-1 {
    width: 800px;
    height: 600px;
    left: -100px;
    top: -120px;
    opacity: 0.7;
  }
  .bg-arc-2 {
    width: 850px;
    height: 650px;
    right: -200px;
    top: 25%;
    opacity: 0.6;
  }
  .bg-arc-3 {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell { width: min(1180px, calc(100% - 26px)); }
  .header { height: 68px; }
  .brand { font-size: 20px; gap: 6px; }
  .top-cart span { display: none; }
  .hero { padding: 48px 0 70px; }
  .hero h1 { font-size: clamp(48px, 16vw, 78px); overflow-wrap: break-word; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-card { min-height: 300px; border-radius: 27px; }
  .hero-object-inner { width: 135px; height: 165px; }
  .hero-object-inner strong { font-size: 53px; }

  .catalog { padding-top: 35px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .product-grid, .brand-grid, .flavour-grid {
    grid-template-columns: 1fr;
  }
  .product-art { height: 185px; }
  .brand-card, .flavour-card { min-height: 95px; }
  .floating-cart { bottom: 9px; }
  .drawer { border-left: 0; }

  .bg-nebula-hero {
    top: 2%;
    width: 100vw;
    height: 380px;
    filter: blur(60px);
  }
  .bg-nebula-card {
    top: 40%;
    right: -90px;
    width: 320px;
    height: 320px;
    filter: blur(55px);
  }
  .bg-orb-tl {
    width: 280px;
    height: 280px;
    top: -90px;
    left: -90px;
  }
  .bg-orb-rm {
    display: none;
  }
  .bg-arc-2 {
    display: none;
  }
}

@media (max-width: 400px) {
  .shell { width: calc(100% - 20px); }
  .hero h1 { font-size: clamp(38px, 13vw, 48px); line-height: .96; }
  .section-title h2 { font-size: 32px; }
  .hero-card { min-height: 260px; padding: 16px; }
  .hero-object-inner { width: 118px; height: 145px; }
  .hero-object-inner strong { font-size: 44px; }
  .drawer-head { padding: 16px; }
  .cart-items { padding: 8px 16px; }
  .drawer-footer { padding: 16px; }

  .bg-nebula-hero {
    width: 100vw;
    height: 320px;
    filter: blur(48px);
  }
  .bg-orb-bl {
    width: 260px;
    height: 260px;
    bottom: -80px;
    left: -80px;
  }
  .bg-orb-br {
    width: 240px;
    height: 240px;
    bottom: -70px;
    right: -70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.variant-button em { color: var(--muted); font-style: normal; font-size: 9px; }

/* Long catalog text must wrap inside its card, including at 320px. */
.hero > *, .toolbar > *, .search-box input, .drawer > * { min-width: 0; }
.glow { max-width: 100vw; }
.brand-card { grid-template-columns: 44px minmax(0, 1fr) auto; }
.flavour-card { grid-template-columns: 14px minmax(0, 1fr) auto; }
.brand-card, .flavour-card, .product-body, .cart-item-copy, .toast { overflow-wrap: anywhere; }
.mock-product small { max-width: 90%; text-align: center; overflow-wrap: anywhere; }
.product-head { height: auto; min-height: 52px; flex-wrap: wrap; }
.variant-button span { min-width: 0; white-space: normal; text-align: left; padding-block: 8px; overflow-wrap: anywhere; }
.variant-button b { flex-shrink: 0; }
.cart-items { min-height: 0; }
.drawer-head, .drawer-footer { flex-shrink: 0; }
.drawer-head > div { min-width: 0; }
.close-button { flex-shrink: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
#catalogStatus { color: var(--muted); font-size: 12px; line-height: 1.5; }
#retryCatalog { margin-bottom: 16px; font-size: 12px; }
@media (max-width: 400px) {
  .brand-card, .flavour-card { column-gap: 9px; }
  .brand-card small, .flavour-card small { grid-column: 2 / -1; }
  .telegram-button { padding: 10px; font-size: 13px; }
}

/* Calm accent states; neutral surfaces remain the foundation. */
.button-primary:hover, .telegram-button:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #be85ff 45%, var(--mint) 100%);
  box-shadow: 0 6px 26px rgba(155, 92, 255, 0.42);
}
.button-secondary { color: var(--text-secondary); }
.button-secondary:hover, .top-cart:hover, .close-button:hover { border-color: var(--accent-border); background: var(--surface-strong); }
.view-button.active, .category-button.active {
  color: #ffffff;
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.28), inset 0 1px rgba(255, 255, 255, 0.1);
}
.view-button:hover:not(.active), .category-button:hover:not(.active) {
  color: var(--text-secondary);
  background: var(--surface-soft);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.28);
}
.search-box:focus-within span {
  color: var(--mint);
  text-shadow: 0 0 10px rgba(134, 239, 208, 0.35);
}
.search-box input:focus-visible { outline: none; }
.floating-cart { background: rgba(15, 18, 32, 0.94); border-color: rgba(155, 92, 255, 0.22); }
.floating-cart:hover { border-color: var(--accent); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; }
.city-button { min-height: 36px; padding: 0 10px; font-size: 11px; max-width: 130px; overflow-wrap: anywhere; }
.city-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border-radius: 24px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); }
.city-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(8px); }
.city-dialog h2 { font-size: 26px; margin-top: 0; }
.city-choices { display: grid; gap: 10px; margin-bottom: 16px; }
@media (max-width: 400px) { .city-button { max-width: 106px; font-size: 10px; } .header-actions { gap: 5px; } .brand { font-size: 18px; gap: 5px; } }
