/* ==========================================================================
   AlBabyBook – main stylesheet
   Mobile-first. Brand tokens live in :root – change colours here only.
   ========================================================================== */

/* Nunito (variable, self-hosted – no connection to Google servers, GDPR-friendly) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette (from the approved design) */
  --turq: #58c3cb;
  --turq-deep: #20aeba;
  --pink: #f779b6;
  --pink-deep: #f34f9f;
  --navy: #164d76;
  --pale: #effbfc;
  --yellow: #ffc94d;

  /* Accessible text variants of the brand colours (WCAG contrast on white) */
  --turq-text: #127f89;      /* 4.75:1 – links, small text */
  --turq-title: #178f99;     /* 3.87:1 – large headings */
  --pink-text: #d12d7e;      /* 4.79:1 – small pink text */
  --pink-title: #e03a8c;     /* 4.08:1 – large pink headings */
  --muted: #4e6e87;          /* 5.38:1 */

  --bg: #ffffff;
  --bg-soft: #f7fdfd;
  --pink-pale: #fff0f7;
  --yellow-pale: #fff6dc;
  --green-pale: #e8f8ee;
  --blue-pale: #e7f4fd;
  --border: #d8eef0;
  --danger: #c0262d;
  --success: #17803d;
  --warning-bg: #fff6dc;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(22, 77, 118, 0.06);
  --shadow: 0 10px 30px rgba(22, 77, 118, 0.09);
  --shadow-lg: 0 18px 50px rgba(22, 77, 118, 0.14);
  --container: 1200px;
  --gutter: 16px;
  --font: 'Nunito', 'Arial Rounded MT Bold', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--turq-deep);
}
@media (min-width: 700px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--turq-text); text-underline-offset: 3px; }
a:hover { color: var(--pink-text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 900; color: var(--navy); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.t-turq { color: var(--turq-title); }
.t-pink { color: var(--pink-title); }
.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.5em; border-radius: var(--radius-pill);
  border: 2px solid transparent; font-weight: 800; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-title));
  color: #fff; box-shadow: 0 8px 20px rgba(243, 79, 159, 0.32);
  font-size: 1.1875rem; /* ≥ 18.66px bold = WCAG "large text" */
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(243, 79, 159, 0.4); }
.btn-lg { min-height: 56px; padding: 0.8em 1.8em; }
.btn-sm { min-height: 40px; padding: 0.45em 1.1em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--pink-text); border-color: var(--pink); }
.btn-outline:hover { background: var(--pink-pale); color: var(--pink-text); }
.btn-light { background: #fff; color: var(--pink-text); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--pink-text); }
.text-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 800; text-decoration: none; margin-top: 1rem; }

.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(--navy); text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--pale); color: var(--turq-text); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.count-badge {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--pink-deep); color: #fff;
  font-size: 0.72rem; font-weight: 900; line-height: 19px; text-align: center;
}

.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.35em 1.1em;
  border-radius: var(--radius-pill); border: 2px solid var(--border); background: #fff;
  color: var(--navy); font-weight: 800; font-size: 0.95rem; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--turq); color: var(--turq-text); }
.pill.is-active, .pill[aria-pressed='true'] { background: var(--turq-text); border-color: var(--turq-text); color: #fff; }

/* ---------- Demo banner ---------- */
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px var(--gutter); background: var(--warning-bg); color: #6b4a00;
  font-size: 0.875rem; font-weight: 700; text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #edf6f7;
}
.header-bar { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; margin-right: auto; }
.brand .logo-mark { flex-shrink: 0; }
.brand .logo-mark { width: 44px; height: 44px; }
.brand-word { font-weight: 900; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1; }
.w-al, .w-book { color: var(--turq-deep); }
.w-baby { color: var(--pink); }
.search-form.header-search { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.nav-toggle { margin-left: -8px; }
.main-nav { display: none; }

.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 2px solid var(--border); background: #fff;
  font-weight: 800; font-size: 0.9rem; cursor: pointer; list-style: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--turq); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 160px;
  margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lang-menu a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px;
  color: var(--navy); font-weight: 700; text-decoration: none;
}
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--pale); color: var(--turq-text); }
.header-actions .lang-switch summary span { display: none; }

.only-mobile { display: inline-flex; }

/* Small phones: language switch moves into the menu drawer, icons get a bit tighter. */
@media (max-width: 479px) {
  .header-bar { gap: 2px; }
  .header-actions .lang-switch { display: none; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .brand { gap: 6px; }
  .brand .logo-mark { width: 38px; height: 38px; }
  .brand-word { font-size: 1.25rem; }
}
@media (max-width: 350px) {
  .header-actions .only-mobile { display: none; } /* search stays available in the menu */
}

@media (min-width: 640px) {
  .header-actions .lang-switch summary span { display: inline; }
}

@media (min-width: 980px) {
  .nav-toggle, .only-mobile { display: none; }
  .header-bar { min-height: 78px; gap: 24px; }
  .brand { margin-right: 0; }
  .brand .logo-mark { width: 54px; height: 54px; }
  .brand-word { font-size: 1.75rem; }
  .search-form.header-search { display: flex; flex: 1; max-width: 520px; margin: 0 auto; }
  .header-actions { gap: 6px; }

  .main-nav { display: block; }
  .main-nav > ul { display: flex; justify-content: center; gap: 6px; margin: 0 auto; padding-bottom: 8px; list-style: none; }
  .main-nav a, .main-nav summary {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 16px; border-radius: var(--radius-pill); color: var(--navy);
    font-weight: 800; font-size: 0.98rem; text-decoration: none; cursor: pointer; list-style: none;
  }
  .main-nav summary::-webkit-details-marker { display: none; }
  .main-nav a:hover, .main-nav summary:hover { color: var(--pink-text); }
  .main-nav a[aria-current='page'], .main-nav summary.is-active { color: var(--pink-text); }
  .main-nav a[aria-current='page']::after, .main-nav summary.is-active::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--pink);
  }
  .nav-dropdown { position: relative; }
  .nav-dropdown details[open] summary .icon { transform: rotate(180deg); }
  .dropdown-menu {
    position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 520px; margin: 0; padding: 10px;
    list-style: none; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  }
  .dropdown-link { width: 100%; gap: 12px !important; padding: 10px 14px !important; border-radius: 14px !important; }
  .dropdown-link:hover { background: var(--pale); }
  .dropdown-link img { width: 34px; height: 34px; }
  .dropdown-all { color: var(--turq-text) !important; }
  .dropdown-all .icon { width: 34px; }
}

/* ---------- Search form ---------- */
.search-form {
  position: relative; display: flex; align-items: center;
  background: var(--bg-soft); border: 2px solid var(--border); border-radius: var(--radius-pill);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form:focus-within { border-color: var(--turq); box-shadow: 0 0 0 4px rgba(88, 195, 203, 0.2); }
.search-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 8px 0 20px; border: 0; background: transparent;
}
.search-form input:focus { outline: none; box-shadow: none; }
.search-form input::placeholder { color: #6f8ba0; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form button {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 3px;
  border: 0; border-radius: 50%; background: var(--pink-deep); color: #fff;
}
.search-form button:hover { background: var(--pink-text); }
.search-form-lg { max-width: 640px; margin: 0 auto 1.5rem; }
.search-form-lg input { height: 56px; font-size: 1.1rem; }
.search-form-lg button { width: 48px; height: 48px; margin-right: 4px; }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(22, 77, 118, 0.4); animation: fade 0.2s ease; }
.drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 380px); overflow-y: auto;
  padding: 16px 18px 32px; background: #fff; box-shadow: var(--shadow-lg); animation: slide-in 0.25s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-search { margin-bottom: 14px; }
.drawer-links { list-style: none; margin: 0 0 8px; padding: 0; }
.drawer-links a {
  display: block; padding: 12px 14px; border-radius: 14px; color: var(--navy);
  font-weight: 800; font-size: 1.08rem; text-decoration: none;
}
.drawer-links a:hover, .drawer-links a[aria-current='page'] { background: var(--pale); color: var(--pink-text); }
.drawer-label { margin: 10px 14px 6px; color: var(--muted); font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.drawer-categories { list-style: none; margin: 0 0 8px; padding: 0; }
.drawer-category { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; color: var(--navy); font-weight: 700; text-decoration: none; }
.drawer-category:hover { background: var(--pale); }
.drawer-lang { display: flex; gap: 8px; margin: 18px 14px 0; }
.drawer-social { margin: 18px 14px 0; }
body.drawer-open { overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 36px 0 30px; margin-bottom: 8px;
  background: linear-gradient(180deg, var(--pale) 0%, #fff 100%);
}
.page-hero-inner { display: flex; align-items: center; gap: 18px; }
.page-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--turq-title); }
.page-hero-intro { margin: 0.5em 0 0; max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.page-hero-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 86px; height: 86px; border-radius: 50%;
  background: var(--pink-pale); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7);
}
.page-hero-icon img { width: 58px; height: 58px; }
.kicker { margin: 0 0 0.4em; color: var(--pink-text); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; }

.breadcrumbs { margin: 6px 0 22px; font-size: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink-text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 28px 0 70px;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(180deg, #e9f8fa 0%, var(--pale) 55%, #fdf3f8 100%);
}
.hero-inner { position: relative; display: grid; gap: 28px; align-items: center; }
.hero-text { position: relative; z-index: 2; }
.hero-title { margin: 0 0 0.35em; font-size: clamp(2.3rem, 7vw, 3.9rem); line-height: 1.05; letter-spacing: -0.015em; }
.hero-title span { display: block; }
.hero-lead { max-width: 480px; font-size: 1.08rem; color: var(--navy); }
.kicker-heart { color: var(--pink); }
.hero-visual { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-img {
  width: 100%; aspect-ratio: 401 / 338; object-fit: cover; border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 52% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 76% at 52% 50%, #000 62%, transparent 100%);
}
.hero-badge {
  position: absolute; right: -2%; top: -6%; z-index: 3; display: grid; place-items: center;
  width: clamp(120px, 30vw, 170px); aspect-ratio: 1.08; margin: 0; padding: 18px 16px 34px;
  color: #fff; font-weight: 900; font-size: clamp(0.92rem, 2.6vw, 1.12rem); line-height: 1.15; text-align: center;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.3S1.2 14.8.3 8.2C-.5 3.6 2.6.3 6.4.3c2.4 0 4.3 1.3 5.6 3.2C13.3 1.6 15.2.3 17.6.3c3.8 0 6.9 3.3 6.1 7.9-.9 6.6-11.7 13.1-11.7 13.1Z' fill='%23F34F9F'/%3E%3C/svg%3E");
  filter: drop-shadow(0 10px 18px rgba(243, 79, 159, 0.35));
  transform: rotate(6deg);
}
.hero-badge span { max-width: 75%; }
.deco { position: absolute; pointer-events: none; }
.deco-heart { color: var(--pink); }
.deco-star { color: var(--yellow); }
.deco-cloud { color: #fff; opacity: 0.95; }
.hero-cloud-1 { width: 150px; left: -40px; top: 46%; }
.hero-cloud-2 { width: 110px; right: 38%; top: 18px; opacity: 0.8; }
.hero-heart-1 { width: 26px; left: 2%; top: 22%; transform: rotate(-12deg); }
.hero-heart-2 { width: 18px; left: 8%; top: 38%; opacity: 0.85; }
.hero-heart-3 { width: 22px; right: 6%; bottom: 8%; transform: rotate(14deg); }
.hero-heart-outline { width: 30px; right: 12%; bottom: -10px; color: var(--pink); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; color: #fff; }

@media (min-width: 860px) {
  .hero { padding: 56px 0 96px; }
  .hero-inner { grid-template-columns: 1fr 1.1fr; gap: 40px; }
  .hero-badge { right: -1%; top: -4%; }
}

/* ---------- Trust strip ---------- */
.trust-strip { position: relative; z-index: 3; margin-top: -40px; }
.trust-strip ul {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 14px;
  list-style: none; background: var(--pale); border: 1px solid #dff3f5; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust-strip li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; }
.trust-strip strong { display: block; font-weight: 900; font-size: 0.95rem; line-height: 1.25; }
.trust-strip li > span:last-child > span { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.trust-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 16px; background: #fff; color: var(--turq-deep); }
.trust-strip li:nth-child(2) .trust-icon, .trust-strip li:nth-child(4) .trust-icon { color: var(--pink-deep); }
@media (max-width: 520px) {
  .trust-strip ul { grid-template-columns: 1fr; }
}
@media (min-width: 980px) {
  .trust-strip ul { grid-template-columns: repeat(4, 1fr); padding: 18px 24px; }
}

/* ---------- Sections ---------- */
.section { padding-top: 48px; padding-bottom: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--turq-title); }
.section-title.small { font-size: clamp(1.35rem, 3vw, 1.6rem); margin-bottom: 18px; }
.section-sub { margin: 4px 0 0; color: var(--muted); }
.title-star { color: var(--yellow); fill: var(--yellow); }
.title-grid { color: var(--turq-deep); }

/* ---------- Book card ---------- */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.book-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-card-cover {
  position: relative; display: block; aspect-ratio: 1 / 1; margin: 10px 10px 0; overflow: hidden;
  border-radius: calc(var(--radius) - 6px); background: linear-gradient(160deg, var(--bg-soft), var(--pale));
}
.cover-img {
  width: 100%; height: 100%; object-fit: contain; padding: 8%;
  filter: drop-shadow(0 8px 14px rgba(22, 77, 118, 0.22));
}
.book-card-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 18px 14px 12px; }
.age-badge {
  position: absolute; left: 14px; top: -14px; display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill); background: var(--pink-text); color: #fff;
  font-size: 0.78rem; font-weight: 900; line-height: 1.5; box-shadow: 0 4px 10px rgba(209, 45, 126, 0.25);
}
.age-badge-lg { position: static; margin-bottom: 10px; font-size: 0.9rem; padding: 4px 14px; }
.book-card-title { margin: 0 0 2px; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.book-card-title a { color: var(--navy); text-decoration: none; }
.book-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.book-card-title a:hover { color: var(--pink-text); }
.book-card:has(.book-card-title a:focus-visible) { box-shadow: var(--focus); }
.book-card-title a:focus-visible { box-shadow: none; }
.book-card-subtitle { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.book-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.price { margin: 0; font-weight: 900; font-size: 1.1rem; color: var(--navy); }
.book-card-actions { position: relative; z-index: 2; display: flex; gap: 0; margin-right: -6px; }
.book-card-actions .icon-btn { width: 40px; height: 40px; }
.wish-btn { color: var(--pink-deep); }
.wish-btn[aria-pressed='true'] svg { fill: var(--pink-deep); }
.wish-btn:hover { background: var(--pink-pale); color: var(--pink-text); }
.cart-btn { color: var(--turq-text); }
.sold-out-badge {
  position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(22, 77, 118, 0.88); color: #fff; font-size: 0.75rem; font-weight: 800;
}
.book-card.is-sold-out .cover-img, .book-card.is-sold-out .cover-placeholder { opacity: 0.6; }

/* Placeholder covers (shown until the real cover photo is uploaded) */
.cover-placeholder {
  position: absolute; inset: 10% 16%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 10% 8%; border-radius: 6px 14px 14px 6px; color: #fff; text-align: center;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.08), 0 10px 18px rgba(22, 77, 118, 0.2);
}
.cover-placeholder-icon { width: 38%; height: auto; padding: 6px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; }
.cover-placeholder-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px;
  font-weight: 900; font-size: clamp(0.72rem, 2.2vw, 1.05rem); line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); overflow-wrap: anywhere;
}
.cover-placeholder-note {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85); color: var(--navy); font-size: 0.62rem; font-weight: 800; white-space: nowrap;
}
.cover-theme-0 { background: linear-gradient(150deg, #58c3cb, #20aeba); }
.cover-theme-1 { background: linear-gradient(150deg, #f779b6, #e03a8c); }
.cover-theme-2 { background: linear-gradient(150deg, #ffcf5c, #f7a531); }
.cover-theme-3 { background: linear-gradient(150deg, #8fd6a8, #3fb37a); }
.cover-theme-4 { background: linear-gradient(150deg, #9db8f5, #6d8fe0); }
.cover-theme-5 { background: linear-gradient(150deg, #c9a2f2, #a274e0); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px) / 2); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px 4px 22px; margin: -8px -4px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: 40%; z-index: 5; display: none; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--pink-deep); color: #fff; box-shadow: 0 8px 18px rgba(243, 79, 159, 0.35);
}
.carousel-btn:hover { background: var(--pink-text); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
@media (min-width: 700px) {
  .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; }
  .carousel-btn { display: grid; }
}
@media (min-width: 1040px) {
  .carousel-track { grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; }
  .carousel-prev { left: -23px; }
  .carousel-next { right: -23px; }
}

/* ---------- Promo band ---------- */
.promo {
  position: relative; overflow: hidden; margin: 40px 0 8px; padding: 36px 0;
  background: linear-gradient(100deg, #fdeef6 0%, #f3fbfc 55%, #fde9f3 100%);
}
.promo-inner { position: relative; display: grid; gap: 24px; align-items: center; }
.promo-visual { position: relative; max-width: 380px; }
.promo-visual img {
  width: 100%; border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(ellipse 78% 80% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 80% at 50% 50%, #000 60%, transparent 100%);
}
.promo-title { margin: 0 0 0.4em; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.15; }
.promo-title span { display: block; }
.promo-text p { max-width: 460px; }
.promo-note {
  display: none; margin: 0; color: var(--pink-text); font-weight: 800; font-size: 1.35rem; line-height: 1.35;
  text-align: center; transform: rotate(-4deg);
}
.promo-note .deco { position: static; display: block; width: 22px; margin: 8px auto 0; }
.promo-cloud-1 { width: 160px; right: -30px; bottom: -20px; }
.promo-cloud-2 { width: 120px; left: 30%; top: -40px; opacity: 0.7; }
.promo-star-1 { width: 26px; right: 10%; top: 6%; }
.promo-heart-1 { width: 20px; left: 4%; top: 10%; }
@media (min-width: 760px) {
  .promo-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (min-width: 1040px) {
  .promo-inner { grid-template-columns: 0.85fr 1.2fr 0.6fr; }
  .promo-note { display: block; }
}

/* ---------- Category tiles ---------- */
.category-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.category-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 8px;
  border-radius: var(--radius); color: var(--navy); font-weight: 800; text-align: center; text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.category-tile:hover { transform: translateY(-4px); background: var(--bg-soft); color: var(--pink-text); }
.category-tile-icon {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--pink-pale); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7), var(--shadow-sm);
  transition: transform 0.2s ease;
}
.category-tile:hover .category-tile-icon { transform: scale(1.06) rotate(-4deg); }
.category-tile-icon img { width: 60px; height: 60px; }
.category-tile-label { font-size: 0.95rem; line-height: 1.25; }
.color-pink .category-tile-icon, .page-hero-icon.color-pink { background: var(--pink-pale); }
.color-yellow .category-tile-icon, .page-hero-icon.color-yellow { background: var(--yellow-pale); }
.color-green .category-tile-icon, .page-hero-icon.color-green { background: var(--green-pale); }
.color-blue .category-tile-icon, .page-hero-icon.color-blue { background: var(--blue-pale); }
.color-turquoise .category-tile-icon, .page-hero-icon.color-turquoise { background: #dff6f8; }
@media (min-width: 1040px) {
  .category-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .category-tile-icon { width: 108px; height: 108px; }
  .category-tile-icon img { width: 68px; height: 68px; }
}

/* ---------- Listing toolbar ---------- */
.listing-toolbar { display: grid; gap: 14px; margin-bottom: 22px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.listing-count { margin: 0 auto 0 0; color: var(--muted); font-weight: 700; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--turq-text); }
.select-wrap { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.select-wrap select, .field input:not([type='checkbox']), .field textarea {
  min-height: 46px; padding: 0 14px; border: 2px solid var(--border); border-radius: 14px; background: #fff;
}
.select-wrap select { padding-right: 34px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23164D76' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.select-wrap select:focus-visible, .field input:not([type='checkbox']):focus-visible, .field textarea:focus-visible { border-color: var(--turq); box-shadow: 0 0 0 4px rgba(88, 195, 203, 0.25); }
.listing-empty { padding: 30px 0; text-align: center; color: var(--muted); font-weight: 700; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 28px; margin-bottom: 36px; }
.product-cover {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-soft), var(--pale)); box-shadow: var(--shadow-sm);
}
.product-cover .cover-img { padding: 9%; }
.product-cover .cover-placeholder { inset: 12% 20%; }
.product-cover .cover-placeholder-title { font-size: clamp(1.1rem, 3.4vw, 1.6rem); }
.product-cover .cover-placeholder-note { font-size: 0.8rem; bottom: 14px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.gallery-thumb {
  width: 76px; height: 76px; padding: 6px; border: 2px solid var(--border); border-radius: 14px; background: #fff;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active { border-color: var(--turq); }
.product-title { margin: 0 0 4px; font-size: clamp(1.8rem, 4.2vw, 2.6rem); color: var(--navy); }
.product-subtitle { margin: 0 0 6px; color: var(--muted); font-size: 1.1rem; font-weight: 700; }
.product-author { margin: 0 0 10px; font-weight: 700; color: var(--turq-text); }
.product-price { margin: 14px 0 0; font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1.2; }
.price-note { margin: 0 0 12px; color: var(--muted); font-size: 0.875rem; }
.stock { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-weight: 800; }
.stock-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--success); }
.stock-low { color: #a35a00; }
.stock-out { color: var(--danger); }
.buy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.buy-btn { flex: 1 1 160px; }
.buy-soldout { flex-basis: 100%; margin: 0; color: var(--muted); font-weight: 700; }
.wish-btn-lg { width: 56px; height: 56px; border: 2px solid var(--pink); background: #fff; }
.product-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.product-cats .pill { min-height: 34px; font-size: 0.85rem; }
.product-perks { display: grid; gap: 8px; margin: 0; padding: 14px 16px; list-style: none; background: var(--pale); border-radius: var(--radius); }
.product-perks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.product-perks .icon { color: var(--turq-deep); }
.product-details { display: grid; gap: 20px; }
.details-list { margin: 0; }
.details-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); font-weight: 700; }
.details-list dd { margin: 0; font-weight: 800; text-align: right; }
@media (min-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .product-media { position: sticky; top: 140px; }
  .product-details { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* ---------- Quantity stepper ---------- */
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-pill); background: #fff; }
.qty-stepper input {
  width: 46px; height: 48px; border: 0; background: transparent; text-align: center; font-weight: 900; font-size: 1.05rem;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { display: grid; place-items: center; width: 44px; height: 48px; border: 0; background: transparent; color: var(--turq-text); border-radius: var(--radius-pill); }
.qty-btn:hover { color: var(--pink-text); }
.qty-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty-stepper-sm input { height: 38px; width: 38px; font-size: 0.95rem; }
.qty-stepper-sm .qty-btn { width: 36px; height: 38px; }

/* ---------- Cards / prose ---------- */
.card { padding: 22px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 700px) { .card { padding: 30px 34px; } }
.card h2 { font-size: 1.35rem; color: var(--turq-title); }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.4rem; color: var(--turq-title); margin-top: 1.4em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--pink-deep); }

.notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--pale); color: var(--navy); font-weight: 600;
}
.notice .icon { margin-top: 2px; color: var(--turq-text); }
.notice-warning { background: var(--warning-bg); color: #5c4000; }
.notice-warning .icon { color: #a35a00; }
.notice-error { background: #fdecee; color: #8a1c22; }
.notice-error .icon { color: var(--danger); }
.notice-success { background: var(--green-pale); color: #0f5a2b; }
.notice-success .icon { color: var(--success); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; margin-bottom: 28px; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid #e6f4f5; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px;
  font-weight: 800; font-size: 1.08rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--pink-deep); transition: transform 0.2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: var(--pale); box-shadow: none; }
.faq-contact > div { flex: 1 1 260px; }
.faq-contact h2 { margin: 0 0 4px; }
.faq-contact p { margin: 0; }
.faq-contact-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--pink-deep); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 22px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.contact-form { display: grid; gap: 16px; margin-top: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.field input:not([type='checkbox']), .field textarea { width: 100%; }
.field textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.field .check { font-weight: 600; }
.field-error { margin: 0; color: var(--danger); font-weight: 700; font-size: 0.9rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.hp-field { position: absolute; left: -9999px; }
.form-status:empty { display: none; }
.contact-aside { display: grid; gap: 18px; }
.contact-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }

/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.7fr 1fr; }
  .checkout-layout { grid-template-columns: 1.2fr 1fr; }
  .cart-summary { position: sticky; top: 140px; }
}
.cart-items, .checkout-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 14px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid #e6f4f5;
}
.cart-thumb {
  position: relative; width: 84px; height: 84px; overflow: hidden; border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-soft), var(--pale));
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-thumb .cover-placeholder { inset: 8% 18%; padding: 4px; }
.cart-thumb .cover-placeholder-title, .cart-thumb .cover-placeholder-note { display: none; }
.cart-thumb .cover-placeholder-icon { width: 70%; }
.cart-item-main { display: grid; gap: 8px; min-width: 0; }
.cart-item-title { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.cart-item-title a { color: var(--navy); text-decoration: none; }
.cart-item-title a:hover { color: var(--pink-text); }
.cart-item-meta { margin: 0; color: var(--muted); font-size: 0.85rem; }
.cart-item-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item-price { font-weight: 900; font-size: 1.05rem; }
.cart-remove { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 0.85rem; border-radius: 10px; }
.cart-remove:hover { color: var(--danger); background: #fdecee; }
.totals { margin: 16px 0 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.totals dt { color: var(--muted); font-weight: 700; }
.totals dd { margin: 0; font-weight: 800; }
.totals .totals-total { margin-top: 6px; padding-top: 12px; border-top: 2px dashed var(--border); }
.totals .totals-total dt, .totals .totals-total dd { color: var(--navy); font-size: 1.25rem; font-weight: 900; }
.free-shipping { margin: 4px 0 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--pale); font-weight: 700; font-size: 0.92rem; }
.free-shipping-bar { height: 8px; margin-top: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.free-shipping-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--turq), var(--pink)); transition: width 0.3s; }
.free-shipping.is-reached { background: var(--green-pale); color: #0f5a2b; }
.checkout-item { display: flex; align-items: center; gap: 12px; }
.checkout-item .cart-thumb { width: 56px; height: 56px; flex-shrink: 0; }
.checkout-item-title { flex: 1; min-width: 0; margin: 0; font-weight: 700; line-height: 1.3; }
.checkout-item-qty { color: var(--muted); font-weight: 700; }
.checkout-pay [data-payment-area] { margin: 8px 0 16px; }
.payment-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-weight: 700; }
.payment-or::before, .payment-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.legal-hint { color: var(--muted); }
.notice-stack:empty { display: none; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); font-weight: 700; }
.loading-error { padding: 20px; text-align: center; color: var(--danger); font-weight: 700; }
.wishlist-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* ---------- Empty states / thanks ---------- */
.empty-state { max-width: 520px; margin: 20px auto 40px; padding: 30px 20px; text-align: center; }
.empty-state-icon, .thanks-icon {
  display: inline-grid; place-items: center; width: 92px; height: 92px; margin-bottom: 16px;
  border-radius: 50%; background: var(--pink-pale); color: var(--pink-deep);
}
.empty-state h2 { font-size: 1.5rem; color: var(--navy); }
.empty-state p { color: var(--muted); }
.thanks { margin: 40px auto; }
.thanks h1 { color: var(--turq-title); font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; }
.footer-band { position: relative; padding: 18px 0 30px; background: linear-gradient(100deg, var(--turq-deep), var(--turq)); color: #fff; }
.footer-wave { position: absolute; left: 0; right: 0; top: -40px; width: 100%; height: 42px; color: var(--turq-deep); }
.footer-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.footer-band-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; color: var(--turq-deep); box-shadow: var(--shadow); }
.footer-band-text { flex: 1 1 260px; }
.footer-band h2 { margin: 0 0 2px; color: #fff; font-size: 1.45rem; }
.footer-band p { margin: 0; color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(10, 70, 80, 0.35); }
.footer-main { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 320px; margin: 12px 0 0; color: var(--muted); }
.footer-social-title { font-weight: 900; color: var(--navy) !important; }
.footer-col h2 { font-size: 1rem; margin-bottom: 10px; color: var(--navy); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.footer-col a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--pink-text); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.footer-love { display: inline-flex; align-items: center; gap: 6px; }
.footer-love .icon { color: var(--pink-deep); fill: var(--pink-deep); }
.footer-bottom .lang-menu { top: auto; bottom: calc(100% + 6px); }
.social-links { display: flex; gap: 8px; margin-top: 8px; }
.social-links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pale); color: var(--turq-text); }
.social-links a:hover { background: var(--pink-pale); color: var(--pink-text); }
@media (min-width: 860px) {
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Toasts ---------- */
.toast-region {
  position: fixed; left: 50%; bottom: 20px; z-index: 300; display: grid; gap: 10px; width: min(92vw, 420px);
  transform: translateX(-50%); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg);
  pointer-events: auto; animation: toast-in 0.25s ease;
}
.toast .icon { color: var(--turq); }
.toast a { margin-left: auto; color: #fff; font-weight: 900; white-space: nowrap; }
.toast a:hover { color: var(--pink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .demo-banner, .toast-region, .buy-box, .carousel-btn { display: none !important; }
  .card { box-shadow: none; padding: 0; }
}

/* ---------- Marketing flags & product extras ---------- */
.card-flags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.flag { display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 900; line-height: 1.6; }
.flag-new { background: var(--yellow); color: #5c3b00; }
.flag-bilingual { background: var(--turq-text); color: #fff; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.product-badges .age-badge-lg { margin-bottom: 0; }
.product-badges .flag { font-size: 0.85rem; padding: 4px 12px; }
.product-highlights { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--pink-pale); }
.product-highlights h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--pink-text); }
.product-highlights ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.product-highlights li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; }
.product-highlights .icon { color: var(--pink-deep); margin-top: 2px; }
.gift-hint { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border: 2px dashed var(--pink); border-radius: var(--radius); font-weight: 600; font-size: 0.92rem; }
.gift-hint .icon { color: var(--pink-deep); fill: var(--pink-deep); flex-shrink: 0; margin-top: 2px; }
.gift-hint a { font-weight: 900; color: var(--pink-text); }
.gallery-label { margin: 14px 0 0; font-weight: 900; color: var(--turq-text); }

/* ---------- Gift voucher page ---------- */
.voucher-layout { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .voucher-layout { grid-template-columns: 1fr 1fr; } .voucher-preview-wrap { position: sticky; top: 140px; } }
.voucher-preview {
  overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); --accent: #127f7d;
}
/* Accent per motif – darker than the motif background so the text stays readable (as in the PDF) */
.voucher-preview.motif-2, .voucher-preview.motif-7 { --accent: #c8327a; }
.voucher-preview.motif-3 { --accent: #a86b00; }
.voucher-preview.motif-4 { --accent: #2b64b5; }
.voucher-preview.motif-5 { --accent: #7444b8; }
.voucher-preview.motif-6 { --accent: #0f7f6b; }
.voucher-preview.motif-8 { --accent: #5e50c4; }
/* Same picture as in the PDF (netlify/functions/assets/voucher-N.jpg) */
.voucher-preview-art img { display: block; width: 100%; height: auto; aspect-ratio: 452 / 295; object-fit: cover; }
.voucher-preview-body { padding: 18px 22px 22px; min-width: 0; }
.voucher-preview-title { margin: 0; color: var(--accent); font-weight: 900; letter-spacing: 0.14em; font-size: 0.8rem; }
.voucher-preview-amount { margin: 2px 0 8px; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; line-height: 1.1; }
.voucher-preview-for { margin: 0; font-weight: 900; }
.voucher-preview-from { margin: 0 0 6px; color: var(--muted); }
.voucher-preview-msg { margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--pink-pale); font-style: italic; overflow-wrap: anywhere; }
.voucher-preview-code { margin: 10px 0 0; padding: 8px; border: 2px dashed var(--accent); border-radius: 12px; background: var(--pale); color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: center; }
.voucher-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.voucher-perks li { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 0.92rem; }
.voucher-perks .icon { color: var(--turq-text); }
.voucher-form { display: grid; gap: 16px; }
.voucher-form fieldset { border: 0; padding: 0; margin: 0; }
.voucher-form legend { font-weight: 800; margin-bottom: 8px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.amount-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-pill { position: relative; cursor: pointer; }
.amount-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amount-pill span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--border);
  border-radius: var(--radius-pill); background: #fff; font-weight: 900; font-size: 1.05rem;
}
.amount-pill input:checked + span { border-color: var(--pink-deep); background: var(--pink-pale); color: var(--pink-text); }
.amount-pill input:focus-visible + span { box-shadow: var(--focus); }
.custom-amount { margin-top: 10px; max-width: 260px; }
.motif-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.motif-pick { position: relative; display: block; cursor: pointer; border-radius: 12px; }
.motif-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.motif-pick img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 3px solid transparent; transition: transform 0.15s; }
.motif-pick:hover img { transform: translateY(-2px); }
.motif-pick input:checked + img { border-color: var(--pink-deep); box-shadow: 0 0 0 3px var(--pink-pale); }
.motif-pick input:focus-visible + img { box-shadow: var(--focus); }

/* ---------- Cart: voucher code, voucher lines ---------- */
.voucher-code { margin: 14px 0 4px; }
.voucher-code summary { cursor: pointer; font-weight: 800; color: var(--turq-text); list-style: none; }
.voucher-code summary::-webkit-details-marker { display: none; }
.voucher-code-row { display: flex; gap: 8px; margin-top: 10px; }
.voucher-code-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 2px solid var(--border); border-radius: 12px; text-transform: uppercase; font-family: 'Courier New', monospace; font-weight: 700; }
.voucher-applied { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--green-pale); font-weight: 700; font-size: 0.9rem; }
.voucher-applied button { border: 0; background: none; color: var(--danger); font-weight: 800; cursor: pointer; }
.voucher-msg { margin: 8px 0 0; font-weight: 700; font-size: 0.9rem; }
.voucher-msg.is-error { color: var(--danger); }
.cart-thumb.is-voucher { display: grid; place-items: center; background: var(--pink-pale); font-size: 2.2rem; }
.totals .totals-discount dd { color: var(--success); }
.free-order { display: grid; gap: 12px; }
.free-order .field-row { gap: 12px; }
.voucher-applied-checkout { margin: 4px 0 12px; }
.voucher-thanks { display: block; margin: 14px auto 18px; max-width: 520px; text-align: left; }

.bank-box { margin: 18px auto; max-width: 520px; padding: 16px 18px; border: 2px dashed var(--turq); border-radius: var(--radius); background: var(--pale); text-align: left; }
.bank-box h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--turq-title); }
.pay-option { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff; }
.pay-option h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--turq-text); }
.pay-option p { margin: 0 0 6px; }
.pay-option dd { overflow-wrap: anywhere; }
.country-select { display: flex; justify-content: space-between; margin: 4px 0 10px; }
