/* Ash & Sip storefront: "neon sign on a bar wall at night".
   One loud element (the neon sign); everything else is a dark, quiet wall
   so the glow means something. Mobile-first, no framework. */

@font-face {
  font-family: "Tilt Neon";
  src: url("/assets/fonts/tilt-neon-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Wall and surfaces: violet-black, like a painted bar wall under neon. */
  --wall: #0d0618;
  --surface: #170c26;
  --surface-2: #22123a;
  --border: #3a2456;
  --text: #f6eefe;
  --muted: #bba9d4;

  /* Neon tubes. "core" is the near-white centre of a lit tube. */
  --pink: #ff2d95;
  --pink-core: #ffe1f0;
  --cyan: #2de2ff;
  --cyan-core: #dcfbff;
  --green: #39ff88;
  --green-text: #032611;

  --glow-pink: 0 0 2px #fff8, 0 0 8px var(--pink), 0 0 22px rgb(255 45 149 / 60%), 0 0 46px rgb(255 45 149 / 35%);
  --glow-cyan: 0 0 2px #fff8, 0 0 7px var(--cyan), 0 0 18px rgb(45 226 255 / 55%);
  --glow-pink-soft: 0 0 6px rgb(255 45 149 / 55%);
  --glow-cyan-soft: 0 0 6px rgb(45 226 255 / 50%);

  /* Names shared with admin.css */
  --bg: var(--wall);
  --accent: var(--pink);
  --accent-text: #14051f;
  --whatsapp: var(--green);
  --whatsapp-text: var(--green-text);
  --danger: #ff7a9c;
  --danger-bg: #3a1026;
  --success: #6bf0b4;
  --success-bg: #0f2c22;
  --radius: 16px;
  --shadow: 0 12px 40px rgb(0 0 0 / 55%);

  --font-sign: "Tilt Neon", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

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

/* Classes below set `display`, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wall);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
body.menu-open { overflow: hidden; }

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: var(--glow-cyan-soft);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--pink); color: var(--accent-text); font-weight: 600;
}
.skip-link:focus { top: 8px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Neon sign type ---------- */

.neon-pink, .neon-cyan { font-family: var(--font-sign); font-weight: 400; }
.neon-pink { color: var(--pink-core); text-shadow: var(--glow-pink); }
.neon-cyan { color: var(--cyan-core); text-shadow: var(--glow-cyan); }

/* ---------- Header + category menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(13 6 24 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-bar, .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  font-family: var(--font-sign);
  font-size: 1.45rem;
  color: var(--pink-core);
  text-shadow: var(--glow-pink-soft), 0 0 14px rgb(255 45 149 / 40%);
  text-decoration: none;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 1rem var(--font-body);
  cursor: pointer;
}
.menu-toggle-bars { position: relative; width: 18px; height: 12px; }
.menu-toggle-bars::before, .menu-toggle-bars::after, .menu-toggle-bars span {
  content: "";
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--cyan); box-shadow: var(--glow-cyan-soft);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-bars::before { top: 0; }
.menu-toggle-bars span { top: 5px; }
.menu-toggle-bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Small phones: keep the header to one row. */
.header-bar .header-actions { flex-wrap: nowrap; }
.header-bar .btn, .menu-toggle { white-space: nowrap; }
@media (max-width: 400px) {
  .header-bar { gap: 8px; }
  .brand { font-size: 1.25rem; }
  .header-bar .btn-small { padding: 6px 12px; }
  .menu-toggle { padding: 8px 12px; }
}

/* Mobile: the category menu is a full-screen "menu board" opened by the Menu button.
   It hangs from the bottom of the header, whatever height the header has. */
.category-nav { display: none; }
.site-header[data-menu-open] .category-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 24px 0 48px;
  background: rgb(13 6 24 / 98%);
  backdrop-filter: blur(12px);
}
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.category-list a {
  display: block;
  padding: 12px 6px;
  font-family: var(--font-sign);
  font-size: 1.7rem;
  color: #9fd9e6;
  text-shadow: 0 0 6px rgb(45 226 255 / 28%);
  text-decoration: none;
  transition: color .15s ease, text-shadow .15s ease;
}
.category-list a:hover,
.category-list a:focus-visible { color: var(--cyan-core); text-shadow: var(--glow-cyan); outline: none; box-shadow: none; }
.category-list a[aria-current="page"] { color: var(--pink-core); text-shadow: var(--glow-pink); }

/* Desktop: categories live permanently in the header as a neon menu bar. */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .category-nav,
  .site-header[data-menu-open] .category-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border-top: 1px solid var(--border);
  }
  .category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    padding: 4px 0;
  }
  /* Each category is a neon tube: dimly lit at rest, fully lit on hover,
     and the current category burns pink. */
  .category-list a {
    position: relative;
    padding: 10px 14px 12px;
    font-family: var(--font-sign);
    font-size: 1.15rem;
    color: #9fd9e6;
    text-shadow: 0 0 6px rgb(45 226 255 / 28%);
  }
  .category-list a:hover,
  .category-list a:focus-visible { color: var(--cyan-core); text-shadow: var(--glow-cyan); }
  .category-list a[aria-current="page"] { color: var(--pink-core); text-shadow: var(--glow-pink); }
  /* The "tube" under the active/hovered category. */
  .category-list a::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0;
    transition: opacity .15s ease;
  }
  .category-list a:hover::after,
  .category-list a:focus-visible::after { opacity: 1; box-shadow: var(--glow-cyan-soft); }
  .category-list a[aria-current="page"]::after { opacity: 1; box-shadow: var(--glow-pink-soft); }
  .category-list a:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: 8px; }
}

.announcement {
  margin: 0;
  padding: 8px 18px;
  text-align: center;
  font-weight: 600;
  color: var(--cyan-core);
  background: linear-gradient(90deg, transparent, rgb(45 226 255 / 12%), transparent);
  border-bottom: 1px solid var(--border);
}

/* ---------- Hero: the neon sign ---------- */

.hero {
  position: relative;
  padding: 56px 0 28px;
  text-align: center;
  isolation: isolate;
}
/* Light spilling onto the wall behind the sign. */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 10% 0;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgb(255 45 149 / 22%), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgb(45 226 255 / 10%), transparent 70%);
  filter: blur(10px);
}

.neon-sign {
  display: inline-block;
  margin: 0 0 14px;
  padding: .1em .35em .18em;
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(2.4rem, 13vw, 7.5rem);
  max-width: 100%;
  line-height: 1;
  color: var(--pink-core);
  text-shadow: var(--glow-pink);
  border: 3px solid var(--pink-core);
  border-radius: 28px;
  box-shadow: var(--glow-pink), inset var(--glow-pink-soft);
  animation: neon-on 1.6s ease-out 0.2s both;
}

.hero-tagline {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
}

/* A tube that stutters to life once, the way a real sign does when switched on. */
@keyframes neon-on {
  0%   { opacity: .08; text-shadow: none; box-shadow: none; }
  12%  { opacity: 1; }
  16%  { opacity: .2; text-shadow: none; box-shadow: none; }
  24%  { opacity: 1; }
  28%  { opacity: .35; }
  40%  { opacity: 1; text-shadow: var(--glow-pink); box-shadow: var(--glow-pink), inset var(--glow-pink-soft); }
  100% { opacity: 1; }
}

/* ---------- Search ---------- */

.toolbar {
  display: flex;
  justify-content: center;
  padding: 8px 0 20px;
}
.search-wrap { position: relative; width: min(100%, 520px); }
.search-wrap::before {
  content: "";
  position: absolute; left: 16px; top: 50%; width: 14px; height: 14px;
  translate: 0 -60%;
  border: 2px solid var(--muted); border-radius: 50%;
  pointer-events: none;
}
.search-wrap::after {
  content: "";
  position: absolute; left: 28px; top: 50%; width: 7px; height: 2px;
  translate: 0 5px; rotate: 45deg;
  background: var(--muted); border-radius: 2px;
  pointer-events: none;
}
.search-wrap .input { padding-left: 44px; border-radius: 999px; }

/* ---------- Buttons / inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: var(--accent-text); }
.btn-primary:hover { box-shadow: var(--glow-pink-soft), 0 0 18px rgb(255 45 149 / 45%); }
.btn-whatsapp { background: var(--green); border-color: var(--green); color: var(--green-text); }
.btn-whatsapp:hover { box-shadow: 0 0 8px rgb(57 255 136 / 60%), 0 0 22px rgb(57 255 136 / 35%); }
.btn-danger { background: var(--danger-bg); border-color: #6b2442; color: var(--danger); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .95rem; }
.btn-large { min-height: 56px; padding: 14px 28px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.input::placeholder { color: #8f7ca9; }
.input:focus-visible { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 1px var(--cyan), var(--glow-cyan-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 96px; }

/* ---------- Status messages ---------- */

.status {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.status[data-kind="error"] { background: var(--danger-bg); border-color: #6b2442; color: #ffd3e1; }
.status[data-kind="success"] { background: var(--success-bg); border-color: #1f5a43; color: #c8f7e2; }
.status .btn { margin-left: 8px; }

.notice { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); }

/* ---------- Menu sections + product cards ---------- */

.menu-section { margin: 8px 0 44px; scroll-margin-top: 150px; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
}
.section-title a { color: var(--cyan-core); text-shadow: var(--glow-cyan); text-decoration: none; }
.section-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.section-title .count { font: 400 1rem var(--font-body); color: var(--muted); text-shadow: none; }

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
/* The card's outline lights up like a tube when you point at it. */
.card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 0 18px rgb(255 45 149 / 40%);
}
.card:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan), 0 0 20px rgb(45 226 255 / 45%);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  border-radius: 11px;
  overflow: hidden;
  background: #f7f3fb;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }

.img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .95rem;
}
.img-placeholder-large { aspect-ratio: 1 / 1; border-radius: var(--radius); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.badge-out {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 11px;
  border: 1.5px solid var(--pink);
  background: rgb(13 6 24 / 85%);
  color: var(--pink-core);
  box-shadow: var(--glow-pink-soft);
}

.card-body { padding: 12px 14px 16px; display: grid; gap: 4px; }
.card-category { margin: 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.card-title { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.card-price { margin: 6px 0 0; font-size: 1.15rem; font-weight: 600; color: var(--cyan-core); text-shadow: var(--glow-cyan-soft); }

/* ---------- Product page ---------- */

.back-link { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--cyan-core); }

.product-detail { display: grid; gap: 28px; margin-top: 8px; }
.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7f3fb;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border), 0 0 40px rgb(255 45 149 / 12%);
}
.product-info h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-top: 8px; }
.product-info .card-category { color: var(--cyan); }
.product-price {
  margin: 0 0 8px;
  font-family: var(--font-sign);
  font-size: 2.4rem;
  color: var(--cyan-core);
  text-shadow: var(--glow-cyan);
}
.stock {
  display: block;
  width: fit-content;
  margin: 0 0 22px;
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid currentColor;
}
.stock-in { color: var(--green); box-shadow: 0 0 8px rgb(57 255 136 / 35%); }
.stock-out { color: var(--pink-core); border-color: var(--pink); box-shadow: var(--glow-pink-soft); }
.product-features, .product-description { margin-top: 32px; max-width: 70ch; }
.product-features h2, .product-description h2 { font-size: 1.2rem; color: var(--cyan-core); }
.product-features ul { margin: 0; padding-left: 1.2em; }
.product-features li { margin: 6px 0; }
.product-features li::marker { color: var(--pink); }
.product-description p { white-space: pre-line; color: #e2d6f2; }

.not-found { padding: 80px 18px; text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 56px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--wall));
  color: var(--muted);
}
.site-footer p { margin: 0 0 8px; }
.health-warning {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--pink);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}
.store-info { margin: 18px 0; }
.store-info strong { color: var(--text); }
.copyright { font-size: .9rem; }

/* ---------- Age gate ---------- */

dialog { color: var(--text); }
dialog::backdrop { background: rgb(6 2 12 / 90%); backdrop-filter: blur(4px); }

.age-gate {
  max-width: 420px;
  width: calc(100% - 32px);
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 60px rgb(255 45 149 / 18%);
  text-align: center;
}
.age-gate .age-sign {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 18px 6px;
  font-family: var(--font-sign);
  font-size: 3.4rem;
  line-height: 1.1;
  color: var(--pink-core);
  text-shadow: var(--glow-pink);
  border: 2px solid var(--pink-core);
  border-radius: 18px;
  box-shadow: var(--glow-pink-soft), 0 0 22px rgb(255 45 149 / 40%);
}
.age-gate h2 { font-size: 1.5rem; }
.age-gate p { color: var(--muted); }
.age-gate-actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .product-media { position: sticky; top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
