/* ==========================================================
   Little Frog Studio – pond theme
   ========================================================== */
:root {
  /* matched to the Little Frog Studio logo */
  --pond-deep: #636e3f;
  --pond: #737c4a;
  --lily: #c2dc84;
  --lily-dark: #a9c76c;
  --lily-light: #eef5dc;
  --water: #cfe8e4;
  --water-light: #eef8f6;
  --lotus: #f2b8ad;
  --lotus-dark: #d9867c;
  --lotus-light: #fcece8;
  --cream: #fffdf7;
  --white: #ffffff;
  --ink: #3a3a2c;
  --muted: #7a7d6a;
  --line: #ebeee0;
  --danger: #c4525f;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(99, 110, 63, 0.08);
  --shadow-hover: 0 12px 32px rgba(99, 110, 63, 0.14);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--pond); }
a:hover { color: var(--lotus-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--pond-deep); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--lily-light); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 48px; padding-bottom: 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.warn { color: var(--lotus-dark); font-weight: 700; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--pond-deep); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lotus); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--pond-deep); color: #fff; }
.btn-primary:hover { background: var(--pond); color: #fff; box-shadow: var(--shadow); }
.btn-lotus { background: var(--lotus); color: var(--pond-deep); }
.btn-lotus:hover { background: var(--lotus-dark); color: #fff; }
.btn-light { background: #fff; color: var(--pond-deep); }
.btn-light:hover { color: var(--lotus-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--pond-deep); color: var(--pond-deep); }
.btn-ghost:hover:not(:disabled) { background: var(--pond-deep); color: #fff; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--pond-deep); cursor: pointer;
}
.icon-btn:hover { background: var(--lily-light); color: var(--pond-deep); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tags & notes ---------- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.tag-water { background: var(--water); color: var(--pond-deep); }
.tag-lily { background: var(--lily-light); color: var(--pond-deep); }
.tag-lotus { background: var(--lotus-light); color: #a8544a; }
.tag-muted { background: #eceeed; color: var(--muted); }
.note { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.note-water { background: var(--water-light); }
.note-lily { background: var(--lily-light); }
.note-muted { background: #eeefee; color: var(--muted); }
.alert { background: var(--lotus-light); border: 1px solid var(--lotus); color: #8c4238; padding: 12px 16px; border-radius: var(--radius-sm); }
.alert p:last-child { margin: 0; }

/* ---------- header ---------- */
.announce {
  background: var(--lotus); color: var(--pond-deep); text-align: center;
  font-size: .85rem; font-weight: 700; padding: 8px 16px; letter-spacing: .02em;
}
.announce a { color: var(--pond-deep); }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 12px; padding-bottom: 8px; gap: 12px; }
.header-left { display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand-logo { height: 60px; width: auto; }
.brand-name { display: flex; flex-direction: column; align-items: center; font-family: var(--font-head); font-weight: 500; font-size: 1.55rem; color: var(--pond); letter-spacing: .02em; line-height: 1; }
.brand-name span { color: var(--lotus-dark); font-size: .55em; font-weight: 600; text-transform: uppercase; letter-spacing: .32em; margin-top: 4px; padding-left: .32em; }
.header-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; max-width: 240px; }
.header-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.header-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .9rem; width: 100%; color: var(--ink); }
.nav-toggle { display: none; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--lotus-dark); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }
.admin-pill { font-size: .8rem; font-weight: 700; background: var(--lily-light); color: var(--pond-deep); padding: 4px 12px; border-radius: 999px; text-decoration: none; }

.main-nav .nav-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; padding-bottom: 12px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--pond-deep); border-bottom-color: var(--lotus); }
.main-nav .nav-club { color: var(--lotus-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--water-light) 0%, var(--water) 100%);
  padding: 72px 0 110px;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--lotus-dark); }
.hero-sub { font-size: 1.12rem; color: var(--pond-deep); max-width: 560px; margin: 0 auto 1.6em; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--pond); margin-bottom: .8em; }
.hero-pad { position: absolute; fill: var(--lily); opacity: .85; z-index: 1; }
.pad-1 { width: 180px; left: 4%; top: 18%; transform: rotate(-12deg); animation: bob 7s ease-in-out infinite; }
.pad-2 { width: 120px; right: 8%; top: 12%; transform: rotate(20deg); animation: bob 8s ease-in-out infinite reverse; }
.pad-3 { width: 150px; right: 14%; bottom: 22%; transform: rotate(-30deg); fill: var(--lily-dark); opacity: .6; animation: bob 9s ease-in-out infinite; }
.hero-lotus { position: absolute; width: 120px; height: auto; z-index: 1; animation: bob 6s ease-in-out infinite; }
.l-1 { left: 8%; top: 22%; }
.l-2 { right: 14%; bottom: 26%; width: 90px; animation-delay: 1.5s; }
.lotus-icon { display: inline-block; width: 1.5em; height: auto; vertical-align: -0.35em; }
.lotus-big { display: block; width: 110px; height: auto; margin: 0 auto 8px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .hero-pad, .hero-lotus { animation: none; } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--cream); z-index: 2; }

.page-banner { background: linear-gradient(180deg, var(--water-light), var(--cream)); padding: 40px 0 8px; text-align: center; }
.page-banner p { color: var(--muted); }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head.center { justify-content: center; }
.link-arrow { font-weight: 700; text-decoration: none; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  color: var(--pond-deep); font-weight: 700; text-align: center;
}
/* Each category icon sits on a painted lily pad. */
.cat-bubble {
  position: relative; width: 124px; height: 103px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; padding-bottom: 6px;
  transition: transform .2s;
}
/* The pad is its own layer so only it gets the sticker-style white outline, not the emoji on top. */
.cat-bubble::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('/images/lilypad.png') center / contain no-repeat;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
          drop-shadow(0 6px 8px rgba(99, 110, 63, .2));
}
.cat-bubble { isolation: isolate; }
.cat-bubble img { width: 62%; height: auto; }
/* Thin white sticker outline around the emoji/icon on each pad. */
.cat-icon {
  display: inline-block; line-height: 1;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff);
}
.cat-tile:nth-child(even) .cat-bubble { transform: rotate(4deg); }
.cat-tile:nth-child(odd) .cat-bubble { transform: rotate(-3deg); }
.cat-tile:hover .cat-bubble { transform: translateY(-4px) rotate(-6deg); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-link { text-decoration: none; color: inherit; flex: 1; }
.card-img { position: relative; aspect-ratio: 1; background: var(--lily-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 14px 16px 6px; }
.card-body h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.price { font-family: var(--font-head); color: var(--lotus-dark); font-weight: 600; font-size: 1.05rem; margin: 0; }
.card > .btn { margin: 10px 16px 16px; width: auto; }

/* ---------- club banner ---------- */
.club-banner { margin-top: 56px; background: var(--lotus-light); padding: 56px 0; }
.club-banner-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.club-box-art { display: flex; justify-content: center; }
.box { position: relative; width: 220px; height: 190px; animation: bob 5s ease-in-out infinite; }
.box-lid { position: absolute; top: 0; left: -10px; right: -10px; height: 46px; background: var(--lily-dark); border-radius: 14px; }
.box-lid::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 28px; margin-left: -14px; background: var(--lotus); }
.box-body { position: absolute; top: 40px; left: 0; right: 0; bottom: 0; background: var(--lily); border-radius: 0 0 16px 16px; display: flex; align-items: center; justify-content: center; }
.box-body::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 28px; margin-left: -14px; background: var(--lotus); }
.box-body span { position: relative; font-size: 3.4rem; }
.club-box-art.big .box { width: 280px; height: 240px; }

/* ---------- Pond Friends (from the character reference sheet) ---------- */
.sticker {
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff)
          drop-shadow(0 6px 8px rgba(60, 40, 20, .18));
}
.lineup-panel { background: #efe9df; border-radius: 28px; padding: 32px 24px; }
.lineup { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.lineup-item { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.lineup-art { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.lineup-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.lineup-item:hover .lineup-art img { transform: translateY(-6px) rotate(-3deg); }
.lineup-item strong { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.lineup-item span { font-size: .88rem; color: var(--muted); }
.mascot-placeholder { font-size: 3.4rem; }

.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.friend-card { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); scroll-margin-top: 180px; }
.friend-art { background: var(--tint); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 24px; }
.friend-art img { height: 100%; max-width: 100%; object-fit: contain; }
.friend-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.friend-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.friend-title h2 { margin: 0; font-size: 1.9rem; color: var(--ink); }
.species { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.personality { margin: 0; font-weight: 700; font-size: 1.05rem; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); }
.friend-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; line-height: 1.45; color: #4a433c; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; padding-bottom: 56px; }
.perk span { font-size: 2rem; }
.perk p { color: var(--muted); }

/* ---------- shop ---------- */
.shop-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.shop-tools .pill-row { margin: 0; }
.pill {
  padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
}
.pill:hover { border-color: var(--lily); color: var(--pond-deep); }
.pill.active { background: var(--pond-deep); border-color: var(--pond-deep); color: #fff; }
.search-inline { display: flex; gap: 8px; }
.search-inline input, .form input, .form select, .form textarea, .qty input {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.search-inline input:focus, .form input:focus, .form select:focus, .form textarea:focus, .qty input:focus { border-color: var(--lily); outline: none; }

.empty { text-align: center; padding: 48px 16px; }
.coming-soon { text-align: center; background: var(--lily-light); border-radius: var(--radius); padding: 36px 20px; }
.coming-soon p:last-child { margin: 0; color: var(--muted); }
.empty-emoji { font-size: 3.5rem; margin: 0; }

/* ---------- product page ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 4px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-photo { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-price { font-family: var(--font-head); font-size: 1.6rem; color: var(--lotus-dark); font-weight: 600; }
.buy-row { display: flex; gap: 12px; margin: 20px 0 24px; }
.qty input { width: 80px; height: 100%; text-align: center; }
.product-desc { white-space: pre-line; margin-bottom: 20px; }
.accordion { border-top: 1px solid var(--line); padding: 14px 0; }
.accordion:last-of-type { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--pond-deep); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.3rem; line-height: 1; }
.accordion[open] summary::after { content: '−'; }
.accordion p { margin: 10px 0 0; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 20px; }
.cart-row { display: grid; grid-template-columns: 76px 1fr auto 90px 44px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--lily-light); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-info p { margin: 0; }
.cart-line { font-weight: 700; text-align: right; }
.remove { font-size: 1.5rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--pond-deep); }
.stepper button:hover { background: var(--lily-light); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.cart-summary, .summary-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cart-summary { position: sticky; top: 160px; }
.cart-summary h2 { font-size: 1.3rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.summary-row.total { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 1.1rem; }
.free-note { background: var(--lily-light); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 700; text-align: center; }
.cart-summary .alert { margin: 12px 0; }
.cart-summary .btn { margin-top: 12px; }

/* ---------- thank-you & downloads ---------- */
.thanks { text-align: center; }
.thanks .summary-box { text-align: left; margin: 24px 0; }
.downloads-box { background: var(--water-light); border-radius: var(--radius); padding: 24px; text-align: left; margin: 24px 0; }
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(99, 110, 63, .12); font-weight: 700; }

/* ---------- club page ---------- */
.club-hero { background: linear-gradient(160deg, var(--lotus-light), var(--water-light)); padding: 56px 0; }
.club-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.price-tag { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 20px; }
.price-tag .amount { font-family: var(--font-head); font-size: 2.8rem; font-weight: 600; color: var(--lotus-dark); }
.price-tag .per { font-weight: 700; color: var(--pond-deep); }
.club-hero form + .small { margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--lily); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 12px;
}
.step p { color: var(--muted); margin: 0; }
.inside-card { background: var(--lily-light); border-radius: var(--radius); padding: 36px; text-align: center; }
.inside-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.inside-list li { background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; }

/* ---------- customer accounts ---------- */
.account-link.logged-in { color: var(--lotus-dark); }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; text-align: center; }
.auth-card .form { text-align: left; margin-top: 20px; }
.auth-card .form input { width: 100%; }
.account-prompt { background: var(--lily-light); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; text-align: center; }
.account-prompt p { margin: 4px 0 10px; }
.account-banner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; text-align: left; }
.account-banner p { margin: 0; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-tabs a { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; }
.account-tabs a:hover { border-color: var(--lily); }
.cart-count-inline { background: var(--lotus-dark); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.cart-count-inline[hidden] { display: none; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 18px; text-decoration: none; color: var(--ink); }
.order-card:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
.order-card > div:first-child { display: flex; flex-direction: column; }
.order-card-right { display: flex; align-items: center; gap: 12px; }
.panel-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px; }
.panel-list li:first-child { border-top: 0; }
.membership-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.membership-head p { margin: 8px 0 0; }
.box-history { list-style: none; padding: 0; margin: 0; }
.box-history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account-grid .panel { margin: 0; }
.account-grid .form input { width: 100%; }
.secure-note { margin: 12px 0 0; }
.progress { list-style: none; display: flex; padding: 0; margin: 20px 0; counter-reset: none; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); position: relative; font-size: .9rem; }
.progress li span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eceeed; color: var(--muted); position: relative; z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: #eceeed; }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--pond-deep); }
.progress li.done span { background: var(--lily-dark); color: #fff; }
.progress li.done::before { background: var(--lily-dark); }
.progress li.current span { box-shadow: 0 0 0 4px var(--lily-light); }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; } }

/* ---------- past club boxes ---------- */
.past-box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.past-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.past-box-photo { position: relative; aspect-ratio: 4 / 3; background: var(--lotus-light); display: flex; align-items: center; justify-content: center; }
.past-box-photo img { width: 100%; height: 100%; object-fit: cover; }
.past-box-photo img.past-box-placeholder { width: 45%; height: auto; object-fit: contain; }
.past-box-month {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--pond-deep); border-radius: 999px;
  padding: 4px 12px; font-weight: 800; font-size: .8rem; box-shadow: var(--shadow);
}
.past-box-body { padding: 18px 20px 22px; }
.past-box-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.past-box-desc { color: var(--muted); font-size: .95rem; }
.past-box-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lotus-dark); margin: 0 0 6px; }
.past-box-items { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: .93rem; }

/* ---------- prose pages ---------- */
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .lead { font-family: var(--font-head); font-size: 1.35rem; color: var(--pond-deep); }
.prose .signoff { margin-top: 1.4em; }
.legal h2 { font-size: 1.3rem; }
.legal-callout { background: var(--lotus-light); border-left: 4px solid var(--lotus-dark); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 1em; }
.legal-callout p { margin: 0; }
.mystery-note { max-width: 560px; margin: 0 auto 20px; }
.renew-note { max-width: 420px; }
.price-shipping { margin: -14px 0 18px; font-weight: 700; color: var(--pond); }
.prose-logo { height: 110px; width: auto; margin: 0 auto 24px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; }
.footer-wave { display: block; width: 100%; height: 50px; fill: var(--pond-deep); }
.footer-body { background: var(--pond-deep); color: #eef2e2; padding: 32px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:not(.btn) { color: #eef2e2; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--lotus); }
.footer-logo { height: 56px; width: auto; background: var(--cream); border-radius: 16px; padding: 6px; }
.footer-name { font-family: var(--font-head); font-size: 1.2rem; color: #fff; margin: 10px 0 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #cdd5b8; }
.footer-bottom p { margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--pond-deep); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow-hover); transition: opacity .2s, transform .2s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Admin
   ========================================================== */
.admin { background: #f6f8f5; }
.admin-bar { background: var(--pond-deep); color: #fff; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.15rem; }
.admin-brand img { height: 36px; width: auto; background: var(--cream); border-radius: 10px; padding: 3px; }
.admin-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.admin-nav a, .admin-nav .linklike { color: #eef2e2; text-decoration: none; font-weight: 700; font-size: .92rem; }
.admin-nav a.active, .admin-nav a:hover { color: var(--lotus); }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h1, .panel-head h2 { margin: 0; }
.login-panel { max-width: 420px; margin: 40px auto; }
.danger-zone { border: 1.5px dashed #e8c4c8; box-shadow: none; }
.danger-zone h2 { font-size: 1.1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; color: var(--pond-deep); }
a.stat:hover { box-shadow: var(--shadow-hover); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin-bottom: 16px; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; }
.form label.check input { width: 18px; height: 18px; }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.panel.admin-cols { display: grid; }
.preview { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; }
.file-current { font-weight: 400; font-size: .9rem; }
.address { font-style: normal; line-height: 1.5; }
.plain { padding-left: 1.2em; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .header-search { display: none; }
  .brand-logo { height: 46px; }
  .brand-name { font-size: 1.1rem; }
  .main-nav { display: none; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav .nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-layout, .club-banner-inner, .club-hero-inner, .cart-layout, .admin-cols, .panel.admin-cols { grid-template-columns: 1fr; }
  .club-box-art { order: -1; }
  .club-box-art .box, .club-box-art.big .box { width: 180px; height: 155px; }
  .steps, .perks { grid-template-columns: 1fr; }
  .lineup-panel { padding: 20px 12px; border-radius: 22px; }
  .lineup { gap: 6px; }
  .lineup-item strong { font-size: .95rem; }
  .lineup-item span { display: none; }
  .cart-summary { position: static; }
  .cart-row { grid-template-columns: 64px 1fr 36px; grid-template-areas: 'thumb info remove' 'thumb qty line'; row-gap: 8px; }
  .cart-thumb { grid-area: thumb; width: 64px; height: 64px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line { grid-area: line; }
  .remove { grid-area: remove; }
  .hero { padding: 48px 0 120px; }
  .pad-1 { width: 110px; left: -20px; }
  /* On phones the lotus floats in the open space below the buttons instead of over the heading. */
  .l-1 { top: auto; left: 14px; bottom: 50px; width: 72px; }
  .pad-2 { width: 80px; }
  .pad-3, .l-2 { display: none; }
}

@media (max-width: 480px) {
  .product-grid { gap: 12px; }
  .card-body { padding: 10px 12px 4px; }
  .card > .btn { margin: 8px 12px 12px; padding: 7px 10px; font-size: .88rem; }
  .cat-bubble { width: 92px; height: 77px; font-size: 1.9rem; padding-bottom: 4px; }
  .cat-tile { font-size: .85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; }
  .qty input { width: 100%; }
  .announce { font-size: .78rem; }
}
