/* ============================================================
   YHALI — mobile-first redesign (from Yhali's PSD mockups)
   Hand-painted backgrounds · marker fonts · playful buttons.
   Desktop is provisional until the desktop mockups arrive.
   ============================================================ */

:root {
  /* color */
  --bg:        #0c0b10;
  --bg-soft:   #141019;
  --ink:       #f6f2ff;
  --muted:     #b3a9c6;
  --line:      rgba(255,255,255,0.12);
  --card:      rgba(0,0,0,0.34);
  --brand:     #ff5a1f;   /* orange marker */
  --teal:      #1d5f68;   /* homepage pill buttons */
  --bar:       #050505;   /* top bar black */

  /* legacy accents kept so existing components still resolve */
  --c1:#ff2e97; --c2:#7a04eb; --c3:#00f0ff; --c4:#faff00;
  --accent: var(--brand);
  --grad: linear-gradient(110deg, var(--c1), var(--c2) 40%, var(--c3) 75%, var(--c4));

  /* type */
  --font-display: "Permanent Marker", "Shantell Sans", cursive;  /* orange titles */
  --font-hand:    "Shantell Sans", "Permanent Marker", cursive;  /* labels, nav, bands */
  --font-body:    "Space Grotesk", system-ui, -apple-system, sans-serif;

  /* metrics */
  --radius: 20px; --radius-sm: 13px; --radius-pill: 999px;
  --bar-h: 88px;
  --appw: 560px;             /* mobile-app content column */
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;   /* sticky footer */
}
a { color: inherit; }
h1, h2, h3 { margin: 0; }

/* full-bleed painted backgrounds for home + shop */
body[data-page="home"]::before,
body[data-page="shop"]::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
}
/* home: the painting is sized/positioned by JS (via these vars) so the bubble
   cluster can be overlaid exactly where it lives in the art. The field-green
   fill blends the letterbox margins on narrow screens. */
body[data-page="home"]::before { background-image: var(--bg-img, url("/img/bg-home-desktop.jpg"));
  background-color: #6b8675;
  background-size: var(--bg-size, cover);
  background-position: var(--bg-pos, center top); }
/* shop: the forest painting is a centered composition (trees framing the diamond) */
body[data-page="shop"]::before  { background-image: url("/img/bg-shop.jpg"); background-position: center center; }
/* galleries: night-sky painting, slightly dimmed so the button pills pop */
body[data-page="galleries"]::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  /* anchored left so the left-hand trees stay put as the window narrows */
  background: linear-gradient(rgba(8,10,30,0.32), rgba(8,10,30,0.32)), url("/img/bg-galleries.jpg") left center / cover no-repeat;
}
/* contact: its own painting (tan field with the blue tree) — anchored left so the
   tree stays on screen as the window narrows */
body[data-page="contact"]::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("/img/bg-contact.jpg") left center / cover no-repeat; background-color: #c8a24e;
}
/* secret-track easter egg: the night sky, dimmed as a play stage */
body[data-page="secret"]::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(rgba(6,6,26,0.55), rgba(4,4,18,0.7)), url("/img/bg-galleries.jpg") center / cover no-repeat;
}
body[data-page="home"] .aura, body[data-page="home"] .grain,
body[data-page="shop"] .aura,  body[data-page="shop"] .grain,
body[data-page="galleries"] .aura, body[data-page="galleries"] .grain,
body[data-page="contact"] .aura, body[data-page="contact"] .grain,
body[data-page="secret"] .aura, body[data-page="secret"] .grain { display: none; }

/* subtle glow for pages without a painting */
.aura {
  position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 20% 8%, rgba(255,90,31,0.10), transparent 60%),
    radial-gradient(42vmax 42vmax at 85% 20%, rgba(0,240,255,0.08), transparent 60%),
    radial-gradient(46vmax 46vmax at 50% 100%, rgba(122,4,235,0.14), transparent 60%);
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* content column */
.wrap { width: 100%; max-width: var(--appw); margin: 0 auto; padding: 0 18px; }
main.wrap { padding-top: calc(var(--bar-h) + 30px); flex: 1 0 auto; display: flex; flex-direction: column; }

/* ---------- top bar (shared partial) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--bar-h);
  /* solid black up top, then a short fade that reaches fully clear before the
     bar's edge — so there's no hard line where the gradient element ends */
  background: linear-gradient(to bottom, var(--bar) 0%, var(--bar) 52%, transparent 88%);
  display: flex; align-items: flex-start; gap: 12px; padding: 8px 14px 0;   /* content sits near the top */
}
.hamburger {
  flex: 0 0 auto; width: 46px; height: 40px; border: none; cursor: pointer;
  background: #c7c69f; border-radius: 8px; display: grid; place-content: center; gap: 5px; padding: 9px 8px;
}
.hamburger span { display: block; height: 4px; width: 30px; background: var(--brand); border-radius: 3px; }
.hamburger span:nth-child(2) { width: 26px; }
/* header brand: the orange "Yhali Ilan Art" wordmark artwork, right-justified */
.bar-title { margin-left: auto; display: flex; align-items: center; text-decoration: none; min-width: 0; }
/* phone size (larger); desktop overrides below */
.bar-logo { height: clamp(20px, 5.3vw, 48px); width: auto; display: block; }
.bar-cart {
  flex: 0 0 auto; position: relative; cursor: pointer; border: 2px solid var(--brand); background: transparent;
  color: var(--brand); border-radius: var(--radius-pill); padding: 7px 14px; font: inherit; font-size: 0.9rem;
}
.cart-count { position: absolute; top: -9px; right: -9px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #000; font-weight: 700; font-size: 0.72rem; display: grid; place-items: center; }
/* mobile: large mascot centered up top, straddling the bar (~30% over, ~70% below).
   It's also the hidden door to /secret-track — clickable, with a subtle hover pop. */
.mascot { position: fixed; top: calc(var(--bar-h) - 32px); left: 50%; transform: translateX(-50%) rotate(-4deg);
  width: 100px; height: auto; z-index: 60; display: block; cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }
.mascot img { width: 100%; height: auto; display: block; transition: transform .2s var(--ease); }
.mascot:hover img { transform: rotate(6deg) scale(1.07); }
/* hover pill that follows the cursor near the mascot (matches the home pill buttons) */
.mascot-tip { position: fixed; z-index: 200; pointer-events: none; display: none;
  background: var(--teal); color: #fff; font-family: var(--font-hand); font-weight: 700; font-size: 0.98rem;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap; transform: rotate(-2deg);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6); }
.mascot-tip.show { display: block; }

/* ---------- menu: grows out of the hamburger (widen → expand down) ----------
   Mobile: expands to fill the screen. Desktop: expands into a dropdown. */
.menu-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.42);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.menu-overlay.open { opacity: 1; visibility: visible; }

/* closed = sitting exactly on the hamburger button (mobile: top 8, left 14, 46×40) */
.menu-panel { position: fixed; top: 8px; left: 14px; width: 46px; height: 40px; overflow: hidden;
  background: #0a0a12; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  transition: width .24s var(--ease), height .34s var(--ease) .22s, top .3s var(--ease) .1s,
              left .24s var(--ease), border-radius .3s ease; }
/* open (mobile) = widen to full width, then grow down to full height */
.menu-overlay.open .menu-panel { top: 0; left: 0; width: 100vw; height: 100vh; border-radius: 0; gap: 26px; }

.menu-panel a { font-family: var(--font-display); color: var(--brand); font-size: 2.6rem; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; white-space: nowrap; }
.menu-overlay.open .menu-panel a { opacity: 1; pointer-events: auto; transition-delay: .52s; }  /* fade in after it opens */
.menu-panel a:hover { color: #fff; }
.menu-panel a:active { transform: scale(0.96); }
/* little hand-scrawled marker beside the page you're currently on */
.menu-panel a .you-here { font-family: var(--font-hand); font-size: 0.9rem; font-weight: 700;
  color: #00f0ff; margin-left: 0.5em; vertical-align: middle; white-space: nowrap;
  display: inline-block; transform: rotate(-4deg); opacity: 0.95; }
.menu-panel .close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--brand);
  font-size: 2rem; cursor: pointer; font-family: var(--font-display); opacity: 0; transition: opacity .2s ease; }
.menu-overlay.open .menu-panel .close { opacity: 1; transition-delay: .52s; }

/* the hamburger fades as the panel takes its place */
body.menu-open .hamburger { opacity: 0; pointer-events: none; }
.hamburger { transition: opacity .16s ease; }

/* ---------- buttons ---------- */
.btn { display: inline-block; text-align: center; border: none; cursor: pointer; font-family: var(--font-hand);
  font-weight: 700; font-size: 1rem; border-radius: var(--radius-pill); padding: 13px 24px; color: #fff;
  background: var(--teal); transition: transform .1s, filter .2s; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.block { display: block; width: 100%; }
.btn.mini { padding: 7px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- click-the-background bursts (shop: stars, galleries: + worm-holes) ---------- */
.burst-layer { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.burst { position: absolute; transform: translate(-50%, -50%); will-change: transform, opacity; }
.burst svg { display: block; width: 100%; height: 100%; overflow: visible; }
.burst.star { filter: drop-shadow(0 0 7px rgba(255,210,30,0.9)); }
.burst.hole { filter: drop-shadow(0 0 9px rgba(122,4,235,0.7)); }

/* ---------- home: click-the-tree particle magic ---------- */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.fx { position: absolute; will-change: transform, opacity; }
.fx.note img { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.fx.flower { line-height: 1; text-shadow: 0 2px 5px rgba(0,0,0,0.25); }
.fx.smoke { border-radius: 50%; filter: blur(3px);
  background: radial-gradient(circle at 40% 40%, rgba(255,192,226,0.92), rgba(255,120,190,0.5) 55%, rgba(255,120,190,0) 72%); }
.fx svg { display: block; width: 100%; height: 100%; }
.fx.leaf { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25)); }
.fx.paper { filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2)); }

/* ---------- home: speech-bubble cluster, overlaid onto the painting ---------- */
/* .home-hero just holds the vertical space so the footer stays put; the cluster
   itself is positioned as a fixed overlay by home.js to sit right at the tree's
   mouth (its connector tail lines up with the skull's mouth on any screen). */
.home-hero { flex: 1 0 auto; }
.pill-cluster { position: fixed; width: min(440px, 82vw); right: 2vw; top: 26vh; z-index: 10;
  opacity: 0; transition: opacity .25s ease; }
.pill-cluster.placed { opacity: 1; }
.pill-cluster > img { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35)); }
.pill-cluster .hot { position: absolute; display: block; border-radius: 40px; }
.pill-cluster .hot:hover { background: rgba(255,255,255,0.06); }
.pill-cluster .hot:active { background: rgba(255,255,255,0.12); }

/* the little music notes floating around the bubbles — each wiggles/dances
   gently and out of sync so the cluster feels alive. Decorative only. */
.pill-cluster .note { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.pill-cluster .note img { display: block; width: 100%; height: auto; transform-origin: 50% 60%;
  will-change: transform; animation: noteBob 2.7s ease-in-out infinite; }
.pill-cluster .note-1 img { animation: noteWiggle 2.3s ease-in-out infinite; }
.pill-cluster .note-2 img { animation: noteSway   3.1s ease-in-out infinite; animation-delay: -.6s; }
.pill-cluster .note-3 img { animation: noteBob    2.5s ease-in-out infinite; animation-delay: -1.1s; }
.pill-cluster .note-4 img { animation: noteWiggle 3.3s ease-in-out infinite; animation-delay: -.8s; }
.pill-cluster .note-5 img { animation: noteSway   2.6s ease-in-out infinite; animation-delay: -1.5s; }
.pill-cluster .note-6 img { animation: noteBob    2.9s ease-in-out infinite; animation-delay: -.3s; }
@keyframes noteWiggle { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes noteBob    { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(5deg); } }
@keyframes noteSway   { 0%,100% { transform: translateX(-3px) rotate(-7deg); } 50% { transform: translateX(3px) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .pill-cluster .note img { animation: none; } }

/* ---------- section headings ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 20px 0 18px; }
.section-head h2 { font-family: var(--font-display); color: var(--brand); font-size: 2rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 0.95rem; }
h2.linkable .arrow { display: inline-block; transition: transform .2s; }
a:hover h2.linkable .arrow { transform: translateX(6px); }

/* ---------- galleries: hand-lettered menu buttons ---------- */
.bands { display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1 0 auto; max-width: 620px; margin: 10px auto 30px; padding: 10px 0; }

/* pre-rendered label buttons — the sliced PSD stack. They're complementary
   strips of equal width, so rendering them flush reconstructs the artwork. */
.gbtn { display: block; width: min(460px, 84vw); line-height: 0; text-decoration: none;
  transition: transform .14s var(--ease), filter .14s var(--ease); }
.gbtn + .gbtn { margin-top: -1px; } /* hairline overlap hides sub-pixel seams */
.gbtn img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.45)); }
.gbtn:hover { transform: scale(1.035); z-index: 999 !important; filter: brightness(1.06); }
@media (min-width: 860px) { .gbtn { width: min(470px, 40vw); } }
.gpill { position: relative; text-align: center; text-decoration: none; overflow: hidden;
  padding: 16px 30px; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.7);
  transition: transform .14s var(--ease);
  /* width, margin-top (overlap), rotation, z-index & border-radius are set per-item in JS */ }
.gpill:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 999 !important; }
.gpill .band-name { font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.4rem, 5vw, 2rem);
  position: relative; z-index: 2; text-shadow: 0 1px 0 rgba(0,0,0,0.12); white-space: nowrap; }
.gpill .band-count { font-size: 0.78rem; opacity: 0.8; font-family: var(--font-body); }
.gpill .scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.28); z-index: 1; }

/* ---------- shop: SHOP title + blob category buttons ---------- */
/* shop views fill the space between bar and footer so the footer stays sticky */
#categoryView { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
#productView { flex: 1 0 auto; }
/* hand-lettered SHOP title (with its sparkles), centered above the buttons */
.shop-title-img { display: block; width: min(260px, 52vw); height: auto; margin: 0 auto 6px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
@media (min-width: 860px) { .shop-title-img { width: min(300px, 26vw); margin-bottom: 2px; } }
/* the four white blob buttons — sliced from the artwork at equal canvas height,
   so a shared render height keeps their proportions + baked-in vertical offsets.
   flex-wrap → one row on desktop, 2×2 on phones. */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(2px, 1vw, 14px); padding: 6px 0 40px; width: 100%; }
.cat-blob { flex: 0 0 auto; line-height: 0; text-decoration: none; }
.cat-blob img { display: block; height: clamp(112px, 24vw, 200px); width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)); transition: transform .2s var(--ease); }
/* each blob gets its own personality on hover.
   1 Books    – the mascot's wobble (unchanged)
   2 Prints   – swings the opposite way
   3 Wearables– jiggles/shakes
   4 Digital  – bobs up and down */
.cat-blob:hover img { animation: blobSway .8s ease-in-out infinite; }
.cat-blob:nth-child(2):hover img { animation: blobSwayRev .8s ease-in-out infinite; }
.cat-blob:nth-child(3):hover img { animation: blobShake .68s var(--ease) infinite; }
.cat-blob:nth-child(4):hover img { animation: blobBob .7s ease-in-out infinite; }
.cat-blob:active img { transform: scale(0.96); animation: none; }
@keyframes blobSway {
  0%, 100% { transform: rotate(3deg) scale(1.07); }
  50% { transform: rotate(9deg) scale(1.07); }
}
@keyframes blobSwayRev {
  0%, 100% { transform: rotate(-3deg) scale(1.07); }
  50% { transform: rotate(-9deg) scale(1.07); }
}
@keyframes blobShake {
  0%, 100% { transform: rotate(0deg) scale(1.05); }
  25% { transform: rotate(-6deg) scale(1.05); }
  50% { transform: rotate(5deg) scale(1.05); }
  75% { transform: rotate(-3deg) scale(1.05); }
}
@keyframes blobBob {
  0%, 100% { transform: translateY(0) scale(1.06); }
  50% { transform: translateY(-9px) scale(1.06); }
}
@media (min-width: 860px) { .cat-blob img { height: clamp(150px, 19vw, 210px); } }
.cat-circle { flex: 0 0 auto; width: clamp(130px, 40vw, 210px); aspect-ratio: 1 / 1; position: relative;
  text-decoration: none; display: grid; place-items: center; text-align: center; transition: transform .12s var(--ease); }
.cat-circle:nth-child(even) { margin-top: clamp(0px, 3vw, 32px); }
.cat-circle:active { transform: scale(0.95); }
/* image buttons: the painted circle (label baked in) is the whole button */
.cat-circle.img-btn { background-position: center; background-size: contain; background-repeat: no-repeat; }
.cat-circle.img-btn:hover { transform: rotate(-1.5deg) scale(1.03); }
/* fallback (no artwork): plain white circle + text */
.cat-circle:not(.img-btn) { border-radius: 50%; overflow: hidden; background: #fff; color: #111;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.6); }
.cat-circle .cat-label { font-family: var(--font-hand); font-weight: 700; font-size: 1.4rem; padding: 0 10px; }
@media (min-width: 760px) { .cat-circle:nth-child(even) { margin-top: 0; } }  /* single row → no stagger */
.shop-back { display: inline-block; margin-bottom: 10px; color: var(--brand); font-family: var(--font-hand); text-decoration: none; }
/* shop/gallery header: full-width teal box (centered on page → heading centered
   under the mascot), with the white Back circle floated at the left edge. */
.shop-head-row { position: relative; margin: 28px 0 18px; }
.shop-head-row .head-card { margin: 0; }
.shop-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.shop-head h2 { font-family: var(--font-display); color: var(--brand); font-size: 2rem; text-align: center; margin: 0; }
.shop-head .filter-wrap { justify-content: center; }
/* gallery header: shorter box with the name vertically centered */
.gallery-head { padding-top: 10px; padding-bottom: 10px; min-height: 72px; justify-content: center; }
.back-circle { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
  font-family: var(--font-display); line-height: 1; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5); transition: transform .1s var(--ease); }
.back-circle:active { transform: translateY(-50%) scale(0.94); }
.back-circle .arr { font-size: 1.6rem; margin-bottom: 3px; color: #000; }
.back-circle span:last-child { font-size: 1rem; color: #000; }

/* ---------- product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; padding-bottom: 70px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; display: flex; flex-direction: column; }
.card:active { transform: scale(0.98); }
.card:hover { box-shadow: 0 12px 30px -14px rgba(0,0,0,0.7); }
.card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .meta { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.card .meta .t { font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.card .meta .sub { color: var(--muted); font-size: 0.8rem; }
.card .meta .price { margin-top: 6px; font-family: var(--font-hand); font-weight: 700; color: var(--brand); }
.card .meta .price span { color: var(--brand); }
.type-badge { align-self: flex-start; margin-bottom: 4px; font-size: 0.66rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 700; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* filter */
.filter-wrap { display: flex; align-items: center; gap: 9px; }
.filter-wrap label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-wrap select { background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.88rem; cursor: pointer; }

/* ---------- gallery (single) cards + lightbox ---------- */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--card);
  border: 1px solid var(--line); transition: transform .2s var(--ease); }
.gallery-card:active { transform: scale(0.98); }
.gallery-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 12px; font-family: var(--font-hand);
  font-weight: 700; background: linear-gradient(to top, rgba(4,3,8,0.85), transparent); }
.empty-thumb { width: 100%; height: 100%; background:
  radial-gradient(60% 60% at 30% 30%, rgba(255,90,31,0.5), transparent),
  radial-gradient(60% 60% at 80% 70%, rgba(0,240,255,0.4), transparent), var(--bg-soft); }

/* ---------- modal / overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(4,3,8,0.72); backdrop-filter: blur(6px); padding: 18px; }
.overlay.open { display: flex; }
.modal { width: min(920px, 100%); max-height: 92vh; overflow: auto; border-radius: 22px; background: var(--bg-soft);
  border: 1px solid var(--line); position: relative; box-shadow: 0 30px 100px -30px #000; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; cursor: pointer; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,0.4); color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; }
.detail { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .detail { grid-template-columns: 1.05fr 1fr; } }
.detail .art { background: #000; }
.detail .art img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.detail .info { padding: 28px 26px; }
.info h2 { font-family: var(--font-display); color: var(--brand); font-size: 1.9rem; }
.detail .info .sub { color: var(--muted); margin: 6px 0 16px; }
.detail .info .desc { color: #d7cff0; margin-bottom: 20px; }
.bigprice { font-family: var(--font-display); color: var(--brand); font-size: 1.9rem; margin-bottom: 18px; }

/* forms */
.form { display: grid; gap: 12px; }
.form label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 5px; }
.form input, textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--ink); font: inherit; }
.form input:focus, textarea:focus { outline: none; border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-note { font-size: 0.78rem; color: var(--muted); background: rgba(255,90,31,0.08);
  border: 1px solid rgba(255,90,31,0.25); border-radius: 12px; padding: 10px 12px; }
.err { color: #ff9db8; font-size: 0.85rem; min-height: 1em; }
.success { text-align: center; padding: 40px 30px; }
.success h2 { font-family: var(--font-display); color: var(--brand); }

/* cart drawer */
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 95; background: var(--bg-soft);
  border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer header { padding: 20px 20px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer header h3 { font-family: var(--font-display); color: var(--brand); }
.drawer .items { flex: 1; overflow: auto; padding: 14px 20px; display: grid; gap: 12px; align-content: start; }
.drawer .foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center; }
.line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.line .x { color: var(--muted); cursor: pointer; border: none; background: none; font-size: 1rem; }
.empty-cart { color: var(--muted); text-align: center; margin-top: 36px; }
.total-row { display: flex; justify-content: space-between; font-family: var(--font-display); color: var(--brand); font-size: 1.3rem; margin-bottom: 14px; }

/* lightbox */
#lightbox .lightbox-inner { max-width: min(1100px, 96vw); max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
#lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 100px -30px #000; }
.lightbox-cap { margin-top: 12px; font-family: var(--font-hand); font-weight: 700; text-align: center; }
#lightbox .close { top: -4px; right: -4px; }

/* contact + footer */
#contact { margin: 20px 0 10px; }
/* ---------- contact page (Yhali's hand-drawn title + form artwork) ---------- */
.contact-wrap { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 12px 0 40px; }
/* match the header breakpoint (860px): the mascot only moves off-center at ≥860,
   so keep the clearing layout until then to avoid an overlap band. */
@media (min-width: 860px) { .contact-wrap { justify-content: flex-end; padding-right: 6vw; } }
@media (max-width: 859px) { .contact-wrap { align-items: flex-start; padding-top: 54px; } }
.contact-col { width: min(430px, 90vw); display: flex; flex-direction: column; align-items: center; }
.contact-title-img { width: min(320px, 82%); height: auto; display: block; margin: 0 0 6px 0;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3)); }
/* the form is the actual hand-drawn box image; inputs are laid transparently over the lines */
.contact-form { position: relative; width: 100%; aspect-ratio: 403 / 268;
  background: url("/img/contact-form.png") center / contain no-repeat; }
.contact-form input, .contact-form textarea { position: absolute; border: none; background: transparent; outline: none;
  color: #111; font-family: var(--font-hand); font-weight: 600; font-size: clamp(0.95rem, 4vw, 1.2rem); padding: 0; margin: 0;
  caret-color: transparent; }   /* native caret hidden; we draw our own hand-drawn one */
.contact-form .f-name  { left: calc(19% + 51px);  top: calc(4% - 13px);    width: 68%; height: 13%; }
.contact-form .f-email { left: calc(24% + 5px);   top: calc(26.5% - 25px); width: 68%; height: 13%; }
.contact-form .f-msg   { left: 6%; top: calc(52% + 16px); width: 88%; height: 32%; resize: none; line-height: 1.25; overflow: auto; }
/* hand-drawn blinking caret (a slightly tilted marker stroke) */
.hand-caret { position: absolute; width: 3px; background: #141414; border-radius: 2px; transform: rotate(2.5deg);
  transform-origin: center; pointer-events: none; display: none; z-index: 4; }
.hand-caret.on { display: block; animation: handBlink 1.05s steps(1) infinite; }
@keyframes handBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.contact-form .err { position: absolute; left: 6%; bottom: -40px; color: #7a1f1f; font-family: var(--font-hand); font-weight: 700; }
/* white Send pill, black text, top overlapping the box's bottom-right edge */
.send-btn { position: absolute; right: 4%; bottom: -16px; background: #fff; color: #111; border: 2px solid #111;
  border-radius: 999px; font-family: var(--font-hand); font-weight: 700; font-size: 1rem; padding: 8px 20px;
  cursor: pointer; box-shadow: 0 8px 18px -6px rgba(0,0,0,0.45); transition: transform .1s var(--ease), background .15s; z-index: 3; }
.send-btn:hover { background: #f1f1f1; }
.send-btn:active { transform: scale(0.96); }
.send-btn[disabled] { opacity: 0.6; cursor: default; }
.socials { display: flex; gap: 12px; margin-top: 34px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5); transition: transform .1s var(--ease); }
.socials a:hover { transform: translateY(-2px) scale(1.05); }
.socials .fb { background: #1877f2; }
.socials .ig { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 70%, #285AEB 100%); }
.contact-done { margin-top: 20px; }

/* teal card for floating headings/text over painted backgrounds (matches Contact) */
.head-card { background: var(--teal); color: #fff; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; box-shadow: 0 12px 34px -14px rgba(0,0,0,0.55); }
.head-card .section-head { margin: 6px 0 0; }
.head-card h2 { color: var(--brand); }
.head-card p { color: #eef; }
.head-card .shop-back, .head-card a { color: #d7f4f8; }
.notice { display: inline-block; background: var(--teal); color: #fff; border-radius: 14px;
  padding: 12px 16px; font-family: var(--font-hand); font-weight: 600;
  box-shadow: 0 10px 28px -14px rgba(0,0,0,0.5); }
#contact > div { background: var(--teal); color: #fff; border-radius: var(--radius);
  padding: 24px 22px; box-shadow: 0 12px 34px -14px rgba(0,0,0,0.6); max-width: 100%; }
#contact h2 { font-family: var(--font-display); color: var(--brand); font-size: 1.8rem; margin-bottom: 10px; }
#contact p { color: #f3eefb; }
#contact .clink { color: #d7f4f8; text-decoration: underline; font-weight: 600; }
#contact .clink:hover { color: #fff; }
.site-foot { width: 100%; margin-top: 44px; padding: 30px 18px 34px; text-align: center; flex-shrink: 0;
  /* solid black at the bottom, then a short fade that reaches fully clear before
     the footer's top edge — no hard line where the gradient element ends */
  background: linear-gradient(to top, #000 0%, #000 52%, transparent 88%); }
.site-foot .foot-mascot { display: block; width: 62px; height: auto; margin: 0 auto 12px; opacity: 0.3; }
.site-foot .foot-copy { color: #fff; opacity: 0.7; font-family: var(--font-hand); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.grad-text { color: var(--brand); }

/* Wider screens: taller bar, big right-justified wordmark, larger mascot straddling the bar */
@media (min-width: 860px) {
  :root { --bar-h: 146px; }
  .topbar { align-items: flex-start; padding: 12px 14px 0; }   /* hamburger + wordmark ~12px from top */
  .wrap { max-width: 1180px; }
  .bar-title { padding-right: 16px; }
  .bar-logo { height: min(80px, 6.2vw); }
  .hamburger { width: 56px; height: 48px; }
  /* just below the top; right of the hamburger */
  .mascot { left: 150px; width: 108px; top: 26px; transform: rotate(-5deg); }

  /* menu grows out of the hamburger into a dropdown; page dimmed behind */
  .menu-panel { top: 12px; left: 14px; width: 56px; height: 48px;    /* closed = desktop hamburger size */
    align-items: flex-start; justify-content: flex-start;
    box-shadow: 0 26px 64px -22px rgba(0,0,0,0.85); }
  .menu-overlay.open .menu-panel { top: 12px; left: 14px; width: 300px; height: 236px; border-radius: 18px;
    padding: 14px 22px; gap: 2px; }
  /* navigating: collapse height quickly (retract up into the hamburger), then load next page */
  .menu-overlay.closing .menu-panel { height: 0; padding-top: 0; padding-bottom: 0;
    transition: height .18s var(--ease), padding .18s var(--ease); }
  .menu-overlay.closing .menu-panel a { opacity: 0; transition-delay: 0s; }
  .menu-panel a { font-size: 1.7rem; padding: 6px 2px; }
  .menu-overlay.open .menu-panel a { transition-delay: .46s; }
  .menu-panel .close { display: none; }
}
