/* Eevlatte storefront, 2026-11 redesign (customer mockups in docs/STOREFRONT-REDESIGN.md).
   Palette from the customer's swatches: mauve-brown text and pink. Fonts: Poppins for everything,
   Chalkboard SE (Apple devices) / Short Stack (everywhere else) for the handwritten headings.
   Light and dark: every colour is a variable below. Dark follows the device, or the header's
   switch (static/js/theme.js sets <html data-theme="auto|light|dark">). */

:root {
  color-scheme: light;
  --bg: #fff6f8;
  --surface: #ffffff;
  --blush: #ffe3f0;        /* photo tiles, hero card */
  --blush-soft: #fff0f5;
  --line: #f6d3e0;
  --ink: #925464;          /* customer's text colour; 5.4:1 on --bg */
  --ink-deep: #7c4757;     /* big titles */
  --muted: #8a6170;        /* secondary text; 4.9:1 on --bg */
  --pink: #ef93b4;         /* customer's pink: headings, borders, decoration */
  --pink-strong: #e0709c;  /* buttons with white text (3:1, used for large bold text only) */
  --pink-text: #b8466f;    /* pink for small text and links (4.8:1) */
  --pink-hover: #b8466f;   /* primary button hover, white text (4.8:1) */
  --danger: #ba2121;
  --warning: #9a5b00;
  --success: #3f7d55;
  --band: #7c4757;         /* dark strips with white text: staff banner, "sale" badge */
  --placeholder: #f7c3d6;  /* paw on products without a photo */
  --field-border: #e8dde2;
  --frame-bg: rgba(255, 255, 255, 0.45);
  --hero-card: rgba(255, 234, 242, 0.93);
  --hero-dim: transparent; /* laid over the pink hero in dark mode */
  --promo-fade: rgba(255, 240, 245, 0.97);
  --promo-fade-end: rgba(255, 240, 245, 0);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='%23925464' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --radius: 16px;
  --radius-big: 28px;
  --shadow: 0 2px 8px rgba(146, 84, 100, 0.06);
  --shadow-lift: 0 16px 32px rgba(146, 84, 100, 0.14);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Chalkboard SE", "Short Stack", "Comic Sans MS", cursive;
  --gap: 20px;
}

/* Dark: the same mauve and pink family on a deep plum-brown, close to the staff admin's dark
   theme. Written twice on purpose: once for "auto" on a dark device, once for the switch's "dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #181215; --surface: #241b1f; --blush: #33252b; --blush-soft: #2a1f24; --line: #45353c;
    --ink: #ecd7de; --ink-deep: #fff0f5; --muted: #c4aab3;
    --pink-text: #f3a3c2; --danger: #ff9b93; --warning: #f0b45a; --success: #7fd19b;
    --placeholder: #5a3d48; --field-border: #45353c; --frame-bg: rgba(255, 255, 255, 0.03);
    --hero-card: rgba(36, 27, 31, 0.92); --hero-dim: rgba(40, 14, 26, 0.6);
    --promo-fade: rgba(42, 31, 36, 0.97); --promo-fade-end: rgba(42, 31, 36, 0);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3); --shadow-lift: 0 16px 32px rgba(0, 0, 0, 0.45);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='%23ecd7de' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181215; --surface: #241b1f; --blush: #33252b; --blush-soft: #2a1f24; --line: #45353c;
  --ink: #ecd7de; --ink-deep: #fff0f5; --muted: #c4aab3;
  --pink-text: #f3a3c2; --danger: #ff9b93; --warning: #f0b45a; --success: #7fd19b;
  --placeholder: #5a3d48; --field-border: #45353c; --frame-bg: rgba(255, 255, 255, 0.03);
  --hero-card: rgba(36, 27, 31, 0.92); --hero-dim: rgba(40, 14, 26, 0.6);
  --promo-fade: rgba(42, 31, 36, 0.97); --promo-fade-end: rgba(42, 31, 36, 0);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3); --shadow-lift: 0 16px 32px rgba(0, 0, 0, 0.45);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='%23ecd7de' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink-text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; color: var(--ink-deep); }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none;
  cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.button:hover { border-color: var(--pink); }
.button-small { padding: 6px 14px; font-size: 0.85rem; }
.button-primary {
  background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; font-weight: 700;
}
.button-primary:hover { background: var(--pink-hover); border-color: var(--pink-hover); transform: translateY(-1px); }
.button-big { font-size: 1.2rem; padding: 10px 30px; }
.button-icon .icon { width: 1.4em; height: 1.4em; }
.button:disabled, .button.is-pending { opacity: 0.6; cursor: not-allowed; transform: none; }
.button-paypal { background: #1f3f8f; border-color: #1f3f8f; color: #fff; font-weight: 700; }
.button-paypal:hover { background: #152e6e; border-color: #152e6e; }

.icon-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: none; color: var(--ink);
  cursor: pointer; list-style: none; text-decoration: none;
}
.icon-button::-webkit-details-marker { display: none; }
.icon-button:hover { background: var(--blush-soft); }
.icon-button:disabled { opacity: 0.3; cursor: default; background: none; }

/* --- Header ------------------------------------------------------------------------------------ */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 8px; padding-block: 10px; }
.brand { display: flex; align-items: flex-end; gap: 4px; text-decoration: none; flex: none; }
.brand-mascot { width: 56px; height: auto; }
.brand-name {
  font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; color: var(--pink);
  padding-bottom: 4px;
}
.site-nav { display: none; gap: 32px; font-size: 0.95rem; align-self: flex-end; padding-bottom: 8px; }
.site-nav a, .nav-menu-panel a { color: var(--ink); text-decoration: none; }
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--pink); transform: scaleX(0); transition: transform 0.2s;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.header-socials { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }

/* Light/dark switch (includes/theme_toggle.html): an icon in the header on wide screens, a line
   with words in the phone menu. Shows the current setting, like the admin's ◐ button. */
[hidden] { display: none !important; }
.theme-toggle-wide { display: none; }
.theme-state { display: none; align-items: center; gap: 10px; }
:root:not([data-theme="light"]):not([data-theme="dark"]) .when-auto,
:root[data-theme="light"] .when-light,
:root[data-theme="dark"] .when-dark { display: inline-flex; }
.theme-toggle-text {
  display: flex; align-items: center; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--blush);
  background: none; color: var(--ink); font-size: 1.05rem; text-align: left; cursor: pointer;
}

.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--pink-strong); color: #fff; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.search-toggle, .nav-menu { position: static; }
.search-toggle > summary, .nav-menu > summary { list-style: none; }
.search-toggle > summary::-webkit-details-marker, .nav-menu > summary::-webkit-details-marker { display: none; }
.search-panel {
  position: absolute; right: 16px; top: calc(100% + 8px); width: min(460px, calc(100vw - 32px));
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.search-panel input {
  flex: 1; min-width: 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg);
}
.search-panel input:focus { outline: none; border-color: var(--pink); }
.search-suggestions { flex-basis: 100%; }
.suggestions ul { list-style: none; margin: 4px 0 0; padding: 0; }
.suggestion {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 6px;
  border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.9rem;
}
.suggestion:hover { background: var(--blush-soft); }
.suggestion img, .suggestion-placeholder {
  width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--blush);
  display: flex; align-items: center; justify-content: center; color: var(--pink);
}
.suggestion-price { color: var(--muted); font-size: 0.85rem; }
.suggestions-all { display: block; padding: 8px 6px 2px; font-size: 0.85rem; font-weight: 500; }
.suggestions-none { margin: 8px 6px 0; color: var(--muted); font-size: 0.9rem; }

.nav-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 4px; padding: 12px 16px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.nav-menu-panel > a { padding: 10px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--blush); }
.nav-menu-panel > a[aria-current="page"] { color: var(--pink-text); font-weight: 600; }
.nav-menu-panel .socials { margin-top: 8px; }

@media (min-width: 960px) {
  .header-inner { padding-block: 14px; gap: 12px 32px; }
  .brand-mascot { width: 76px; }
  .brand-name { font-size: 2.7rem; }
  .site-nav { display: flex; }
  .header-socials { display: block; }
  .theme-toggle-wide { display: contents; }
  .nav-menu { display: none; }
}

.staff-banner {
  background: var(--band); color: #fff; text-align: center; padding: 8px 16px; font-size: 0.85rem;
}
.staff-banner a { color: #ffd2e2; }

/* --- Social icons --------------------------------------------------------------------------------- */

.socials { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social { display: inline-flex; color: #d9608f; transition: transform 0.15s; }
.social .icon { width: 28px; height: 28px; }
a.social:hover { transform: translateY(-2px); }
.social.is-pending { cursor: help; }
.socials-big { justify-content: center; gap: 16px; }
.socials-big .social { color: var(--pink); }
.socials-big .social .icon { width: 72px; height: 72px; }

/* --- Main, toasts ------------------------------------------------------------------------------------ */

main { flex: 1; padding-block: 24px 48px; }
@media (min-width: 720px) { main { padding-block: 28px 64px; } }

.toasts {
  position: fixed; z-index: 50; top: 16px; right: 16px; left: 16px; display: grid; gap: 8px;
  justify-items: end; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 420px;
  padding: 12px 8px 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lift);
  border-left: 5px solid var(--pink); animation: toast-in 0.25s ease-out;
  transition: opacity 0.5s, transform 0.5s;
}
.toast a { font-weight: 600; white-space: nowrap; }
.toast-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.toast-warning { border-left-color: var(--warning); }
.toast-error { border-left-color: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateX(20px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* --- Shared page pieces --------------------------------------------------------------------------------- */

.page-title { font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.5rem); text-align: center; margin-bottom: 1rem; }
.page-lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); text-align: center; max-width: 46ch; margin: 0 auto 2rem; }
.handwritten { font-family: var(--font-hand); color: var(--pink); font-weight: 700; }
.eyebrow {
  margin: 0 0 2px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.empty { text-align: center; padding: 3rem 0; }

/* The pink rounded frame around the About and Support pages. */
.frame {
  max-width: 1040px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) clamp(16px, 6vw, 80px);
  border: 4px solid var(--pink); border-radius: 40px; background: var(--frame-bg);
  text-align: center;
}

/* --- Home page ---------------------------------------------------------------------------------------------- */

.hero {
  position: relative; display: grid; place-items: center; min-height: 340px; padding-block: 48px;
  border-radius: var(--radius-big); overflow: hidden;
  background:
    linear-gradient(var(--hero-dim), var(--hero-dim)),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.7) 0 60px, transparent 61px),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.55) 0 90px, transparent 91px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M30 44s-11-6.8-11-14.6A6.3 6.3 0 0 1 30 25.4a6.3 6.3 0 0 1 11 4c0 7.8-11 14.6-11 14.6Z' fill='%23ffffff' fill-opacity='.55'/%3E%3Ccircle cx='88' cy='88' r='5' fill='%23ffffff' fill-opacity='.6'/%3E%3Ccircle cx='97' cy='79' r='3' fill='%23ffffff' fill-opacity='.6'/%3E%3Ccircle cx='79' cy='79' r='3' fill='%23ffffff' fill-opacity='.6'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #f9c4d8 0%, #f7b3cb 45%, #f3c9d8 100%);
}
/* Margin so the hero sits inside the page gutter like the mockup (the container adds the padding). */
main > .hero { width: calc(100% - 32px); }
@media (min-width: 720px) { main > .hero { width: calc(100% - 56px); max-width: 1184px; min-height: 420px; } }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-fox {
  position: absolute; left: 2%; bottom: -24px; width: clamp(140px, 24vw, 300px); height: auto;
  transform: rotate(-6deg); opacity: 0.95; filter: drop-shadow(0 10px 18px rgba(146, 84, 100, 0.18));
}
.hero-card {
  position: relative; max-width: 640px; margin: 0 16px; padding: 32px clamp(20px, 4vw, 48px);
  border-radius: var(--radius); background: var(--hero-card); text-align: center;
  box-shadow: 0 18px 40px rgba(146, 84, 100, 0.12);
}
.hero-card h1 { font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 2.75rem); margin-bottom: 8px; }
.hero-card p { font-weight: 300; font-size: 0.95rem; margin-bottom: 14px; }
@media (max-width: 719px) { .hero-fox { left: auto; right: -10px; bottom: -30px; opacity: 0.5; } }

.home-section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title { font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0; }
.heart-mark { color: var(--pink); font-weight: 300; font-size: 0.7em; vertical-align: super; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

.category-tile { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.category-tile-image {
  display: block; position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--blush); transition: box-shadow 0.2s, transform 0.2s;
}
.category-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.category-tile:hover .category-tile-image { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.category-tile-name { display: block; margin-top: 10px; font-size: clamp(1.05rem, 2.2vw, 1.4rem); }

.promo-grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .promo-grid { grid-template-columns: 1fr 1fr; margin-top: 64px; } }
.promo {
  position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: var(--radius-big);
  overflow: hidden; background: var(--blush); color: var(--ink); text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.promo:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Text and picture side by side, so the title can never run under the picture. */
.promo-support {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(110px, 32%, 200px); align-items: center;
  gap: 12px; padding-right: 20px;
}
.promo-support img { position: static; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.promo-text {
  position: relative; display: grid; justify-items: start; gap: 8px; width: 100%; padding: 24px;
  background: linear-gradient(to top, var(--promo-fade) 55%, var(--promo-fade-end));
}
.promo-support .promo-text { background: none; grid-column: 1; grid-row: 1; }
.promo-support img { grid-column: 2; grid-row: 1; }
.promo-title { font-size: 1.35rem; font-weight: 600; color: var(--ink-deep); line-height: 1.25; }

/* --- Carousels (rows that scroll sideways) ------------------------------------------------------------------- */

.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap)) / 2.15);
  gap: var(--gap); list-style: none; margin: 0; padding: 4px 2px 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
  contain: paint; /* without it Chrome lets the off-screen cards widen the page */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; }
@media (min-width: 720px) { .carousel-track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (min-width: 1000px) { .carousel-track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); } }
.carousel-controls { display: flex; justify-content: center; gap: 40px; margin-top: 4px; }
.carousel.is-static .carousel-controls { display: none; }

/* --- Product cards ----------------------------------------------------------------------------------------------- */

.card { display: block; color: inherit; text-decoration: none; }
.card-image {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blush);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card-image { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card:hover .card-image img { transform: scale(1.04); }
.card.is-sold-out .card-image img { opacity: 0.5; filter: grayscale(0.3); }
.card-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--placeholder);
}
.card-placeholder .icon { width: 30%; height: 30%; }
.card-body { padding: 10px 2px 0; }
.card-title { font-size: 1rem; font-weight: 400; margin: 0 0 2px; color: var(--ink); }
.card:hover .card-title { color: var(--ink-deep); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }

.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--surface); color: var(--ink);
}
.badge-new { background: var(--pink-strong); color: #fff; }
.badge-sale { background: var(--band); color: #fff; }
.badge-sold-out { background: var(--surface); color: var(--danger); }

.price { margin: 0; font-weight: 400; color: var(--ink); }
.price del { color: var(--muted); margin-left: 6px; font-size: 0.9em; }

/* --- Shop page ------------------------------------------------------------------------------------------------------ */

.shop { display: grid; gap: 16px 48px; align-items: start; }
@media (min-width: 900px) { .shop { grid-template-columns: 250px minmax(0, 1fr); padding-top: 40px; } }

.filters-toggle {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; list-style: none;
}
.filters-toggle::-webkit-details-marker { display: none; }
.filters[open] .filters-toggle .icon { transform: rotate(180deg); }
.filters-body { padding: 16px 4px 0; }
@media (min-width: 900px) {
  .filters { position: sticky; top: 16px; }
  .filters-toggle { display: none; }
  .filters-body { padding: 0; }
}
.filter-group { border: 0; margin: 0 0 22px; padding: 0; }
.filter-title { padding: 0; margin-bottom: 4px; font-size: 1.2rem; font-weight: 400; color: var(--ink); }
.filter-title-bold { font-size: 1rem; font-weight: 700; }
.filter-option { display: block; cursor: pointer; font-size: 1.05rem; line-height: 1.6; }
.filter-option input { position: absolute; opacity: 0; pointer-events: none; }
.filter-option span { border-radius: 6px; padding: 0 2px; }
.filter-option:hover span { color: var(--ink-deep); text-decoration: underline; text-decoration-color: var(--pink); }
.filter-option input:checked + span { font-weight: 700; color: var(--ink-deep); }
.filter-option input:focus-visible + span { outline: 3px solid var(--pink-text); outline-offset: 2px; }
.price-range { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.price-range label { display: grid; gap: 4px; flex: 1; font-size: 0.95rem; }
.price-range input {
  width: 100%; padding: 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--surface);
}
.price-range span { padding-bottom: 12px; font-weight: 700; }
.filter-fold { border-top: 1.5px solid var(--ink); padding: 16px 0; }
.filter-fold:last-of-type { border-bottom: 1.5px solid var(--ink); }
.filter-fold summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none;
}
.filter-fold summary::-webkit-details-marker { display: none; }
.filter-fold summary .icon { transition: transform 0.2s; }
.filter-fold[open] summary .icon { transform: rotate(180deg); }
.filter-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; cursor: pointer; }
.filter-check input { width: 20px; height: 20px; accent-color: var(--pink-strong); }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.result-count { margin: 0; font-size: 1.05rem; }
.clear-filters { margin-left: 10px; font-size: 0.9rem; }
.shop-selects { display: flex; gap: 12px; flex-wrap: wrap; }
.select {
  appearance: none; padding: 10px 44px 10px 16px; border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer;
  background: var(--surface) var(--select-arrow) no-repeat right 14px center;
  font-size: 1.05rem;
}

.shop-results { transition: opacity 0.2s; }
.shop-results.htmx-request { opacity: 0.45; }
.product-grid {
  display: grid; gap: 28px var(--gap); list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }

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

.breadcrumbs { font-size: 0.85rem; margin-bottom: 20px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.product-detail { display: grid; gap: 32px; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.gallery-main {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-big); overflow: hidden; background: var(--blush);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; list-style: none; padding: 0; }
.gallery-thumbs a { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 3px solid transparent; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--pink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 6px; }
.product-info > .price { font-size: 1.5rem; margin-bottom: 10px; }
.availability { font-size: 0.95rem; margin-bottom: 20px; color: var(--success); font-weight: 500; }
.availability.is-low { color: var(--warning); }
.availability.is-sold-out { color: var(--danger); font-weight: 700; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.product-info > .button { margin-bottom: 28px; }
.description { margin-bottom: 24px; font-weight: 300; font-size: 1.02rem; }
.perks {
  list-style: none; padding: 16px 18px; margin: 0; background: var(--blush-soft); border-radius: var(--radius);
  font-size: 0.9rem; display: grid; gap: 8px;
}
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .icon { color: var(--pink-strong); }

.stepper {
  display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface); overflow: hidden;
}
.stepper input, .stepper-value {
  width: 3em; border: 0; text-align: center; padding: 8px 0; background: none; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-button {
  width: 40px; height: 42px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--ink);
}
.stepper-button:hover:not(:disabled) { background: var(--blush-soft); }
.stepper-button:disabled { opacity: 0.3; cursor: default; }

/* --- Cart and order confirmation ----------------------------------------------------------------------------------------- */

.cart-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line {
  display: grid; align-items: center; gap: 10px 16px; padding: 12px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow);
  grid-template-columns: 76px 1fr auto;
  grid-template-areas: "image info remove" "image qty total";
}
.cart-line-image { grid-area: image; position: relative; display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--blush); }
.cart-line-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { grid-area: info; display: grid; font-size: 0.9rem; }
.cart-line-name { color: var(--ink-deep); font-weight: 600; text-decoration: none; font-size: 1rem; }
.cart-line-qty { grid-area: qty; justify-self: start; }
.cart-line-total { grid-area: total; font-weight: 600; text-align: right; }
.cart-line-remove { grid-area: remove; justify-self: end; }
@media (min-width: 720px) {
  .cart-line { grid-template-columns: 76px 1fr auto 6em auto; grid-template-areas: "image info qty total remove"; }
}
#cart-panel.htmx-request { opacity: 0.6; transition: opacity 0.2s; }
.cart-summary {
  padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.9rem;
}
.cart-summary p { margin: 0 0 8px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-summary .button-primary, .cart-summary .button-paypal-checkout { width: 100%; margin-top: 10px; }
/* PayPal's own button colours (gold, dark blue text), so customers recognise it. */
.button-paypal-checkout { background: #ffc439; border-color: #ffc439; color: #003087; font-weight: 500; }
.button-paypal-checkout:hover { background: #f2b52e; border-color: #f2b52e; transform: translateY(-1px); }
.button-paypal-checkout strong { font-weight: 800; font-style: italic; }
.checkout-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 !important; color: var(--muted); font-size: 0.85rem; }
.checkout-or::before, .checkout-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.order-confirmation { max-width: 680px; }
.order-confirmation > p { text-align: center; }
.order-confirmation .cart-lines { margin: 24px 0 12px; }
.order-line {
  display: flex; justify-content: space-between; padding: 12px 16px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.order-confirmation .cart-summary { margin: 0 0 24px auto; max-width: 340px; }

/* --- About, Contact, Support -------------------------------------------------------------------------------------------- */

.about-avatar { width: min(240px, 60%); height: auto; margin: 0 auto 28px; }
.about-text { font-size: clamp(1.05rem, 2.5vw, 1.45rem); max-width: 40em; margin: 0 auto; }
.about-text p { margin-bottom: 1.4em; }
.about-mascot { width: 180px; height: auto; margin: 32px auto 40px; }

.contact { max-width: 780px; }
.contact-card { max-width: 720px; margin: 0 auto; }
.field { display: grid; gap: 6px; margin-bottom: 22px; }
.field label { font-size: 1.25rem; color: var(--muted); padding-left: 14px; }
.field input, .field textarea {
  width: 100%; padding: 16px; border: 2px solid var(--field-border); border-radius: 10px; background: var(--surface);
  box-shadow: inset 0 1px 3px rgba(146, 84, 100, 0.08); font-size: 1.05rem; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 0; padding-left: 14px; color: var(--danger); font-size: 0.9rem; }
.contact-form > .button { display: flex; margin: 32px auto 0; font-size: 1.6rem; padding: 10px 44px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { text-align: center; padding: 40px 24px; background: var(--surface); border-radius: var(--radius-big); box-shadow: var(--shadow); }
.contact-sent-icon .icon, .support-heart .icon { width: 56px; height: 56px; color: var(--pink); }

.support .page-title { color: var(--pink); }
.support-heart { display: inline-flex; margin-bottom: 16px; }
.support-card {
  max-width: 820px; margin: 0 auto 28px; padding: 28px 20px 32px; border: 2px solid var(--pink);
  border-radius: 22px; background: var(--surface);
}
.support-card h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.support-card p { font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.support-card-hearts { font-family: var(--font); font-weight: 300; font-size: 0.55em; vertical-align: super; }
.support-thanks { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-top: 20px; }

/* --- Shipping strip and footer ----------------------------------------------------------------------------------------------- */

.shipping-strip {
  display: flex; align-items: center; gap: 16px; margin-bottom: 0; padding-block: 18px;
  border: 1px dashed var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--blush-soft); font-size: 0.9rem;
}
.shipping-strip p { margin: 0; color: var(--muted); }
.shipping-strip-icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--surface); color: var(--pink-strong);
}
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 24px; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--pink-text); }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; flex-basis: 100%; text-align: center; }

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