/* Slimer — shared styles. Fresh lime goo: glossy, gooey, drippy, high-contrast. */

:root {
  --bg: #e7ffdc;          /* fresh pale lime (the one you liked) */
  --bg-2: #f6ffe9;
  --ink: #0e3a1e;         /* deep swamp green */
  --muted: #38704a;
  --faint: #74a585;
  --line: rgba(14,58,30,0.14);
  --line-strong: rgba(14,58,30,0.24);
  --sun-1: #ddff3a;       /* acid highlight */
  --sun-2: #5fe000;       /* slime green */
  --sun-3: #00d48f;       /* teal ooze */
  --moon-1: #38e7cf;      /* mint */
  --moon-2: #b15cff;      /* purple goo */
  --pink: #ff2e9a;        /* hot bubblegum accent */
  --lime-ink: #1f8a08;    /* readable green for small accent text */
  --card: #ffffff;
  --cream: #f1ffd8;
  --drip: #54d400;
  --slime: #54d000;
  --radius: 26px;
  --maxw: 1180px;
  --display: 'Fredoka', system-ui, sans-serif;
  --mega: 'Bagel Fat One', 'Fredoka', cursive;
  --body: 'Nunito', system-ui, sans-serif;
  --mono: 'Fredoka', system-ui, sans-serif;
}

/* ---- goo motion ---- */
@keyframes jiggle {
  0%,100% { transform: scale(1,1); }
  25% { transform: scale(1.07,0.93); }
  50% { transform: scale(0.95,1.05) rotate(-1deg); }
  75% { transform: scale(1.03,0.98); }
}
@keyframes blobMorph {
  0%,100% { border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%; }
  33% { border-radius: 60% 40% 45% 55% / 45% 58% 42% 55%; }
  66% { border-radius: 42% 58% 52% 48% / 60% 42% 58% 40%; }
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
/* slime oozes down and recoils (goo necks stretch between bar + drip) */
@keyframes ooze {
  0%, 100% { transform: translateY(0) scaleY(1); }
  45% { transform: translateY(8px) scaleY(1.32); }
  72% { transform: translateY(2px) scaleY(0.95); }
}
/* a droplet pinches off the bottom and falls away */
@keyframes drop {
  0%, 58% { transform: translateY(0) scale(0.55); opacity: 0; }
  64% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(62px) scale(0.5); opacity: 0; }
}
/* blobs bob on the pool surface and merge via the goo filter */
@keyframes poolBob {
  0%, 100% { transform: translateY(10px) scale(1); }
  50% { transform: translateY(-6px) scale(1.08); }
}

/* ---- base ---- */
.store-page * { box-sizing: border-box; }
.store-page {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.62; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
.store-page::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(48vw 48vw at 82% 8%, rgba(95,224,0,0.28), transparent 60%),
    radial-gradient(44vw 44vw at 10% 16%, rgba(56,231,207,0.26), transparent 62%),
    radial-gradient(42vw 42vw at 90% 80%, rgba(255,46,154,0.20), transparent 60%),
    radial-gradient(46vw 46vw at 26% 104%, rgba(177,92,255,0.14), transparent 62%),
    var(--bg);
}
.store-page::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 320px; height: 320px; right: -90px; top: 20%;
  background: radial-gradient(circle at 35% 30%, #c6ff5a, #5fe000 58%, #2f9e00);
  border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%;
  filter: blur(7px); opacity: 0.15;
  animation: blobMorph 16s ease-in-out infinite, bob 9s ease-in-out infinite;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.store-page a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: #fff; }

/* ---- nav ---- */
.store-page header.nav {
  position: sticky; top: 0; z-index: 50;
  background: #54cf00;
  border-bottom: 0; box-shadow: 0 8px 20px -10px rgba(40,140,30,0.7);
}
/* slime is rendered by the .nav-slime goo element injected in the nav (see below) */
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--mega); font-weight: 400; letter-spacing: 0.3px; font-size: 27px; line-height: 1; color: #ffffff; text-shadow: 0 2px 7px rgba(20,80,20,0.4); }
.brand .glyph {
  width: 30px; height: 30px; flex: none;
  background: radial-gradient(circle at 33% 28%, #ffffff, #e7ffba 55%, #a6e85a);
  border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%;
  box-shadow: inset 0 3px 3px rgba(255,255,255,0.9), inset 0 -5px 8px rgba(0,80,30,0.3), 0 3px 8px rgba(0,70,25,0.4);
  animation: blobMorph 7s ease-in-out infinite;
}
.brand b { color: #ffffff; -webkit-text-fill-color: #ffffff; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.96); }
.nav-links a:hover { color: #08350f; }

/* ---- gooey slime (needs the #goo SVG filter present on the page) ----
   The bar + drip blobs share one goo filter, so they merge into a single connected
   slime mass; falling droplets stretch a goo neck then pinch off — like real dripping. */
.nav-slime, .slime-pool { pointer-events: none; filter: url(#goo); }
/* liquid slime canvas: blur+contrast merges the drawn blobs into goo; multiply drops the white */
.slime-canvas { position: absolute; top: 0; left: 0; width: 100vw; height: 72vh; min-height: 460px;
  display: block; z-index: -1; pointer-events: none; filter: url(#goo); }
.nav-slime { position: absolute; left: 0; right: 0; bottom: -82px; height: 102px; z-index: 5; }
.nav-slime .bar { position: absolute; left: -2%; right: -2%; top: 10px; height: 20px;
  background: linear-gradient(180deg, #76e81f, var(--slime) 60%, #3aa600); }
.nav-slime i {
  position: absolute; left: var(--x); top: 16px; width: var(--w, 22px); height: var(--h, 30px);
  background: linear-gradient(180deg, #82ef2c, var(--slime) 60%, #3aa600); transform-origin: top center;
  border-radius: var(--r, 48% 52% 50% 50% / 28% 28% 72% 72%);
  animation: ooze var(--t, 4.4s) ease-in-out var(--d, 0s) infinite;
}
.nav-slime i::after { /* the droplet that drips off and falls */
  content: ""; position: absolute; left: 50%; bottom: 3px; width: calc(var(--w, 22px) * 0.72); height: calc(var(--w, 22px) * 0.72);
  margin-left: calc(var(--w, 22px) * -0.36); border-radius: 50%; opacity: 0;
  background: linear-gradient(180deg, #82ef2c, var(--slime) 60%, #3aa600);
  animation: drop var(--t, 4.4s) ease-in var(--d, 0s) infinite;
}
/* a pool of slime collecting at the bottom of the page */
.slime-pool { position: relative; height: 84px; margin-top: 30px; }
.slime-pool .pool { position: absolute; left: -3%; right: -3%; bottom: 0; height: 46px;
  background: linear-gradient(180deg, #6fe418, var(--slime) 55%, #34a000); }
.slime-pool b {
  position: absolute; bottom: 32px; left: var(--x); width: var(--w, 44px); height: var(--h, 38px);
  background: linear-gradient(180deg, #82ef2c, var(--slime) 60%, #3aa600);
  border-radius: 50% 50% 46% 54% / 62% 62% 38% 38%;
  animation: poolBob var(--t, 5.4s) ease-in-out var(--d, 0s) infinite;
}

/* ---- jelly buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .25s ease, filter .2s ease;
}
.btn::before { content: ""; position: absolute; top: 14%; left: 14%; right: 34%; height: 32%;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0)); border-radius: 50%; filter: blur(1px); pointer-events: none; }
.btn-primary {
  color: #08280f;
  background: linear-gradient(180deg, var(--sun-1), var(--sun-2) 55%, #4fc400);
  box-shadow: 0 12px 22px -8px rgba(60,200,0,0.65), inset 0 2px 1px rgba(255,255,255,0.85), inset 0 -7px 12px -4px rgba(0,90,40,0.45);
}
.btn-primary:hover { animation: jiggle .55s ease; filter: brightness(1.05) saturate(1.08); }
.btn-ghost {
  color: var(--ink); background: rgba(255,255,255,0.9);
  box-shadow: inset 0 0 0 2px var(--pink), 0 8px 16px -8px rgba(255,46,154,0.5), inset 0 2px 1px rgba(255,255,255,0.9);
}
.btn-ghost:hover { animation: jiggle .55s ease; background: #fff; color: var(--pink); }
.btn-sm { padding: 10px 17px; font-size: 14.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; animation: none; filter: grayscale(.3); }
.btn:disabled::before { opacity: .4; }

/* ---- cart button + badge ---- */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(255,255,255,0.9); box-shadow: inset 0 0 0 2px var(--ink), inset 0 2px 1px rgba(255,255,255,0.9);
  color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px; font-family: var(--display); font-weight: 700; font-size: 14.5px; }
.cart-btn:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--pink); color: var(--pink); }
.cart-btn .count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-family: var(--display); font-size: 11.5px;
  display: inline-grid; place-items: center; color: #fff; background: var(--pink); font-weight: 700;
  box-shadow: 0 2px 6px rgba(255,46,154,0.6), inset 0 1px 1px rgba(255,255,255,0.6);
}
.cart-btn .count[data-empty="true"] { display: none; }

/* ---- page header ---- */
.shop-head { padding: clamp(40px, 6vw, 72px) 0 18px; }
.sec-tag { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--pink); margin: 0 0 14px; }
.shop-head h1 { font-family: var(--mega); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1; margin: 0 0 16px; color: var(--ink); }
.shop-head .lead { color: var(--muted); font-size: 18px; max-width: 60ch; }

/* ---- product grid (poppy gooey cards) ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 30px 0 60px; }
.card {
  border: 0; border-radius: var(--radius); overflow: hidden; background: var(--card);
  box-shadow: 0 18px 34px -16px rgba(14,58,30,0.45), inset 0 0 0 2px rgba(14,58,30,0.08);
  transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s ease;
}
.card:hover { animation: jiggle .5s ease; box-shadow: 0 26px 44px -16px rgba(14,58,30,0.5), inset 0 0 0 3px var(--pink); }
.card .thumb {
  aspect-ratio: 16/11; display: grid; place-items: center; font-size: 62px; position: relative;
  background: radial-gradient(120% 120% at 50% 0%, rgba(221,255,58,0.6), rgba(95,224,0,0.16) 60%, transparent), var(--cream);
}
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,0.45), transparent 38%); pointer-events: none; }
.card .thumb .cat { position: absolute; top: 12px; left: 12px; z-index: 1; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--pink); color: #fff; box-shadow: 0 3px 8px -3px rgba(255,46,154,.55); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .price { font-family: var(--mega); font-weight: 400; font-size: 25px; color: var(--ink); }

/* ---- cart drawer ---- */
.cart-overlay { position: fixed; inset: 0; background: rgba(14,58,30,0.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 100;
  background: linear-gradient(180deg, #ffffff, #f0ffd6); border-left: 4px solid var(--sun-2);
  box-shadow: -30px 0 90px rgba(14,58,30,0.3); transform: translateX(100%); transition: transform .3s cubic-bezier(.3,1.2,.4,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer .head { display: flex; align-items: center; justify-content: space-between; padding: 24px 22px 16px; border-bottom: 2px dashed var(--pink); }
.cart-drawer .head h2 { font-family: var(--mega); font-weight: 400; font-size: 24px; margin: 0; color: var(--ink); }
.cart-drawer .x { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.cart-drawer .x:hover { color: var(--pink); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-empty { color: var(--faint); font-size: 15px; text-align: center; padding: 48px 0; }
.cart-line { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .ic { width: 46px; height: 46px; border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%; display: grid; place-items: center; font-size: 24px; background: radial-gradient(circle at 35% 30%, rgba(221,255,58,0.7), rgba(95,224,0,0.22)); box-shadow: inset 0 2px 2px rgba(255,255,255,0.7); }
.cart-line .meta b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.cart-line .meta .unit { color: var(--faint); font-size: 12.5px; font-family: var(--mono); }
.cart-line .qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-line .qty button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 2px var(--sun-2); color: var(--ink); font-size: 16px; line-height: 1; font-weight: 700; }
.cart-line .qty button:hover { background: var(--sun-1); }
.cart-line .qty span { font-family: var(--display); font-weight: 700; font-size: 14px; min-width: 18px; text-align: center; }
.cart-line .lineprice { font-family: var(--mega); font-weight: 400; font-size: 16px; text-align: right; color: var(--ink); }
.cart-line .rm { display: block; margin-top: 6px; background: none; border: 0; color: var(--faint); font-size: 11.5px; font-family: var(--mono); cursor: pointer; text-align: right; width: 100%; }
.cart-line .rm:hover { color: var(--pink); }
.cart-foot { padding: 18px 22px 24px; border-top: 2px dashed var(--pink); }
.cart-foot .subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cart-foot .subtotal b { font-family: var(--mega); font-weight: 400; font-size: 26px; color: var(--ink); }
.cart-foot .note { color: var(--faint); font-family: var(--mono); font-size: 12px; margin: 0 0 14px; }
.cart-foot .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 16.5px; }
.cart-msg { color: var(--pink); font-size: 13px; font-weight: 700; text-align: center; margin: 10px 0 0; min-height: 16px; }

/* ---- footer (slime pool) ---- */
.store-page footer { position: relative; background: linear-gradient(180deg, rgba(14,58,30,0.03), rgba(95,224,0,0.18)); padding: 56px 0; margin-top: 40px; border-top: 3px solid var(--sun-2); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; font-size: 15px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.foot-links a:hover { color: var(--pink); }
.made { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--lime-ink); }

/* ---- status pages ---- */
.status-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(70px, 12vw, 130px) 24px; }
.status-wrap .mark {
  width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 26px;
  background: radial-gradient(circle at 35% 28%, #c9ff6a, #5fe000 60%, #2f9e00);
  border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%;
  box-shadow: inset 0 4px 4px rgba(255,255,255,0.7), inset 0 -7px 12px rgba(0,80,30,0.4), 0 10px 24px -8px rgba(60,200,0,0.6);
  animation: blobMorph 8s ease-in-out infinite;
}
.status-wrap h1 { font-family: var(--mega); font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 12px; color: var(--ink); }
.status-wrap p { color: var(--muted); margin: 0 auto 26px; max-width: 44ch; }

/* ---- legal ---- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px 80px; }
.legal .updated { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--pink); margin: 0 0 22px; }
.legal h1 { font-family: var(--mega); font-weight: 400; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.02; margin: 0 0 16px; color: var(--ink); }
.legal .intro { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 23px; margin: 42px 0 12px; color: var(--ink); }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.72; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin: 0 0 9px; }
.legal a { color: var(--lime-ink); font-weight: 700; }
.legal a:hover { color: var(--pink); text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0 0 8px; padding: 18px 0; border-top: 2px dashed var(--pink); border-bottom: 2px dashed var(--pink); }
.legal .toc a { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted); }
.legal .toc a:hover { color: var(--pink); text-decoration: none; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
}
