/* ==========================================================================
   First Step Learning Hub – Global Stylesheet
   ========================================================================== */
:root {
  --green: #1f8f4c;
  --green-dark: #16703b;
  --green-light: #e6f6ec;
  --green-soft: #d9f0e0;
  --pink: #ee3d8b;
  --pink-light: #fde3ee;
  --purple: #7a3fc0;
  --purple-light: #ecdff9;
  --yellow: #ffc933;
  --yellow-light: #fff4cc;
  --blue: #1d6fd6;
  --blue-light: #dcecfb;
  --red: #d8232f;
  --cream: #fff8e7;
  --ink: #1f2d3d;
  --muted: #5d6b7a;
  --line: #e6e9ee;
  --white: #ffffff;
  --bg: #f9fbf9;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(20, 60, 40, 0.08);
  --shadow-lg: 0 14px 34px rgba(20, 60, 40, 0.14);
  --font-head: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; font-weight: 600; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: #d92a79; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green-dark); border: 2px solid var(--green); box-shadow: none; }
.btn-outline:hover { background: var(--green-light); box-shadow: none; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: var(--green); color: #fff; font-size: .85rem; font-weight: 600; }
.topbar .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 36px; padding-inline: clamp(44px, 9vw, 120px); }
.topbar-msg { grid-column: 2; justify-content: center; }
.topbar-msg { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-msg .heart { color: #ff9ecb; }
.topbar-msg .dots { opacity: .9; }
.topbar-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-right a, .currency { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.topbar svg { width: 16px; height: 16px; }
.currency { position: relative; }
.currency select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: #fff;
  font: inherit; font-weight: 700; padding-right: 16px; cursor: pointer;
}
.currency select option { color: var(--ink); }
.currency .chev { position: absolute; right: 0; pointer-events: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
/* Corner leaves: start at the very top of the page (over the green top bar), under the nav content */
.site-header::before, .site-header::after {
  content: ""; position: absolute; top: calc(-1 * var(--topbar-h, 36px)); bottom: 0; width: 26%; z-index: 1; pointer-events: none;
  background-image: url("../images/header-leafs.png"); background-repeat: no-repeat; background-size: 175% auto;
}
.site-header::before { left: 0; background-position: left top; }
.site-header::after { right: 0; background-position: right top; }
.site-header > .container { position: relative; z-index: 2; }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 82px; }
.brand { display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 5; width: 132px; }
.brand img {
  width: 132px; height: 132px; border-radius: 50%; margin: -30px 0 -32px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
  transition: width .25s ease, height .25s ease, margin .25s ease;
}
.site-header.scrolled .brand img { width: 70px; height: 70px; margin: 0; }
.nav { margin-left: clamp(16px, 4.2vw, 60px); }
.nav > ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a, .nav .has-sub > button {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(.86rem, 1.15vw, 1rem); color: var(--ink);
  padding: 8px 0; position: relative; display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px;
  background: var(--green); border-radius: 3px; transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .has-sub { position: relative; }
.nav .has-sub svg { width: 14px; height: 14px; transition: transform .2s; }
.nav .has-sub.open svg, .nav .has-sub:hover svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: -10px; background: #fff; border-radius: 12px; width: max-content; min-width: 220px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; z-index: 60;
}
.has-sub:hover .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--green-light); color: var(--green-dark); }
.submenu img { width: 30px; height: 30px; object-fit: contain; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: inline-flex; align-items: center; justify-content: center; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--green-light); color: var(--green-dark); }
.drawer .icon-btn { box-shadow: none; background: transparent; }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }
.hamburger { display: none; }

/* Inline search: slides out to the left of the search icon without moving anything */
.search-wrap { position: relative; display: flex; align-items: center; z-index: 6; }
.search-inline {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%); width: 0; opacity: 0; overflow: hidden;
  transition: width .32s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.search-wrap.open .search-inline { width: clamp(140px, 14vw, 180px); opacity: 1; }
.search-inline input {
  width: 100%; box-sizing: border-box; border: 2px solid var(--green); border-radius: 999px; padding: 9px 18px; font: inherit;
  font-size: .95rem; outline: none; background: #fff; box-shadow: var(--shadow);
}
.search-inline input::placeholder { color: #8a97a3; }
.search-wrap.open #searchBtn { background: var(--green); color: #fff; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); background: #fff;
  transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 54px; height: 54px; margin: 0; filter: none; }
.drawer-nav a, .drawer-nav button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; border: 0; background: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-align: left; border-bottom: 1px solid var(--line);
}
.drawer-nav a.active { color: var(--green); }
.drawer-nav .sub { display: none; background: var(--green-light); }
.drawer-nav .sub.open { display: block; }
.drawer-nav .sub a { padding-left: 34px; font-size: .95rem; font-weight: 500; }
.drawer-foot { margin-top: auto; padding: 18px; display: grid; gap: 10px; }
.drawer-foot .btn { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: #bfe8d3; }
.hero-banner { position: relative; }
.hero-banner img { width: 100%; height: auto; }
.hero-cta {
  position: absolute; left: 17%; top: 86%; width: 20.5%;
}
.hero-cta .btn { width: 100%; font-size: clamp(.8rem, 1.5vw, 1.35rem); padding: clamp(5px, .9vw, 12px) clamp(8px, 1.8vw, 30px); letter-spacing: .5px; }
.hero-mobile { display: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 46px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem); color: var(--green-dark); display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.section-title .leaf { font-size: .8em; }
.section-sub { color: var(--muted); margin: 6px 0 0; font-size: .98rem; }
.section-head.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.section-head.split .titles { grid-column: 2; text-align: center; }
.section-head.split .link-arrow { grid-column: 3; justify-self: end; margin-bottom: 4px; }
.link-arrow { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Shop by age */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.age-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; min-height: 96px;
  transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.age-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.age-card img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.age-card .txt { flex: 1; }
.age-card h3 { font-size: 1.15rem; white-space: nowrap; }
.age-card p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); font-weight: 600; }
.age-card svg { width: 22px; height: 22px; color: var(--ink); opacity: .75; }
.age-green { background: var(--green-soft); }
.age-pink { background: var(--pink-light); }
.age-yellow { background: var(--yellow-light); }
.age-blue { background: var(--blue-light); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body h3 { font-size: 1.08rem; }
.product-body .sub { color: var(--muted); font-size: .92rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.price .now { color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.price .was { color: var(--muted); text-decoration: line-through; font-weight: 700; }
.product-body .btn { margin-top: auto; padding: 11px 16px; font-size: .95rem; }
.ribbon {
  position: absolute; top: 18px; left: -34px; z-index: 3; background: var(--pink); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .78rem; letter-spacing: .5px; padding: 6px 44px; transform: rotate(-32deg); box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

/* Free sample cards */
.sample-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sample-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.sample-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sample-cover {
  position: relative; aspect-ratio: 1 / 1; background: var(--sc-bg, var(--cream)); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.sample-cover svg { width: 100%; height: 100%; }
.sample-badge {
  position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .68rem; letter-spacing: .4px; padding: 3px 10px; border-radius: 20px; box-shadow: 0 3px 8px rgba(0,0,0,.15);
}
.sample-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; text-align: center; }
.sample-body h3 { font-size: 1.02rem; }
.sample-body .sub { color: var(--muted); font-size: .82rem; margin: 0 0 10px; }
.sample-body .btn { margin-top: auto; width: 100%; justify-content: center; padding: 10px 14px; font-size: .9rem; }

/* CSS book covers (placeholders until real cover art is supplied) */
.cover {
  position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.25) 0 16px, transparent 17px),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.22) 0 22px, transparent 23px),
    radial-gradient(circle at 92% 86%, rgba(0,0,0,.12) 0 60px, transparent 61px),
    radial-gradient(circle at 6% 92%, rgba(0,0,0,.12) 0 50px, transparent 51px),
    linear-gradient(160deg, var(--c1), var(--c2));
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60px 28px at 15% 100%, #1f8f4c 40%, transparent 41%),
    radial-gradient(ellipse 80px 34px at 45% 102%, #2aa65a 40%, transparent 41%),
    radial-gradient(ellipse 70px 30px at 78% 100%, #1f8f4c 40%, transparent 41%),
    radial-gradient(ellipse 50px 24px at 98% 98%, #2aa65a 40%, transparent 41%);
  pointer-events: none;
}
.cover-title {
  position: relative; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 12px; padding: 12px 12px 10px;
  text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.cover-title h4 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.05; color: var(--ct); }
.cover-title span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--cs); margin-top: 3px; }
.cover-list {
  position: relative; margin-top: auto; align-self: flex-end; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 10px;
  padding: 8px 10px; font-size: .74rem; font-weight: 700; display: grid; gap: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.15); max-width: 62%;
}
.cover-list li { display: flex; align-items: center; gap: 6px; }
.cover-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cs); flex-shrink: 0; }
.product-cover img.cover-mascot {
  position: absolute; left: 8px; bottom: 8px; height: 44%; width: auto; max-width: 40%; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.2));
}
.cover-bundle { align-items: center; justify-content: center; text-align: center; }
.cover-bundle .cover-title { width: 100%; }
.cover-bundle .mini-row { position: relative; display: flex; gap: 6px; margin-top: 12px; width: 100%; }
.cover-bundle .mini { flex: 1; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(160deg, var(--m1), var(--m2)); box-shadow: 0 3px 6px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; }
.cover-bundle .mini span { background: rgba(255,255,255,.92); color: var(--ink); border-radius: 6px; font-size: .62rem; font-weight: 800; padding: 3px 6px; text-align: center; line-height: 1.1; }
.cover-bundle .badge3 {
  position: relative; margin-top: 12px; background: #fff; color: var(--pink); border: 3px solid var(--pink); border-radius: 999px;
  padding: 6px 16px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; line-height: 1.15; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.cover-bundle .badge3 b { display: block; color: var(--ink); font-weight: 600; font-size: .78rem; }

/* Why parents choose us */
.why { background: linear-gradient(180deg, var(--cream) 0%, #fffdf6 100%); }
.why-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: center; }
.features {
  background: #fff; border-radius: 999px; padding: 22px 28px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.feature { text-align: center; padding: 0 8px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature .ico {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff;
}
.feature .ico svg { width: 28px; height: 28px; }
.feature p { margin: 0; font-weight: 700; font-size: .88rem; line-height: 1.25; }
.ico-blue { background: var(--blue); }
.ico-purple { background: var(--purple); }
.ico-green { background: #2f9e44; }
.ico-sky { background: #1f7fd6; }
.ico-pink { background: var(--pink); }
.ico-yellow { background: #e0a300; }
.try-box {
  position: relative; background: #fff1b8; border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; padding: 30px 30px 32px; text-align: center;
  box-shadow: 0 10px 24px rgba(200,150,0,.18);
}
.try-box h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--green-dark); }
.try-box p { margin: 8px 0 16px; font-weight: 600; color: var(--ink); }
.try-box .btn {
  max-width: 100%; font-size: clamp(.82rem, 2.3vw, 1rem);
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 3vw, 26px); white-space: nowrap;
}
.try-box .btn svg { width: clamp(14px, 2.2vw, 18px); height: clamp(14px, 2.2vw, 18px); }
.try-box .spark { position: absolute; right: 18px; bottom: 26px; color: var(--pink); font-size: 1.5rem; }

/* Testimonials */
.testimonials { position: relative; background: linear-gradient(180deg, #fff 0%, #eef8ef 100%); overflow: hidden; padding-bottom: 26px; }
.testi-wrap { position: relative; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; box-shadow: var(--shadow); }
.stars { color: #ffb400; letter-spacing: 2px; font-size: 1rem; margin-bottom: 8px; }
.testi-card blockquote { margin: 0 0 12px; font-style: italic; color: #34424f; font-size: .95rem; }
.testi-card .who { font-weight: 800; }
.testi-card .where { color: var(--muted); font-size: .85rem; }
.testi-stage { position: relative; max-width: 900px; margin: 0 auto; }
.kid { position: absolute; bottom: -12px; width: 190px; pointer-events: none; z-index: 1; }
.kid-boy { left: -200px; }
.kid-girl { right: -200px; }
.testi-grid { position: relative; z-index: 2; }
.section-title .heart { color: var(--pink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: #eef8ef; overflow: hidden; }
/* Layer 1: soft CSS wave rising behind the link columns */
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 40px; height: 68%; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23d9efdf' d='M0,120 C220,40 420,200 720,130 C1020,60 1220,190 1440,110 L1440,320 L0,320 Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
/* Layer 2: jungle artwork (sign + grass), anchored just above the copyright bar */
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: calc(40px - 5vw); z-index: 1; pointer-events: none;
  background: url("../images/footer.png") center bottom / 100% auto no-repeat;
}
/* Layer 3: content */
.site-footer > .container, .footer-bottom { position: relative; z-index: 2; }
.site-footer > .container { min-height: 21vw; }
.footer-inner { display: grid; grid-template-columns: max-content max-content 1.1fr 1.5fr; gap: 20px 36px; padding: 80px 0 12px; margin-left: calc(600px - 22vw); }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.footer-col li { margin-bottom: 0; font-size: .93rem; line-height: 2.45; white-space: nowrap; }
.footer-col a:hover { color: var(--green-dark); text-decoration: underline; }
.social { display: flex; gap: 12px; margin-bottom: 12px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.social a:hover { transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.s-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.s-fb { background: #1877f2; }
.s-pi { background: #e60023; }
.s-yt { background: #ff0000; }
.footer-col small { color: var(--muted); display: block; font-size: .85rem; max-width: 240px; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; border: 1px solid #cfd8d2; border-radius: 10px; padding: 11px 14px; font: inherit; background: #fff; outline: none; }
.newsletter input:focus { border-color: var(--green); }
.newsletter .btn { border-radius: 10px; padding: 10px 18px; font-size: .95rem; }
.form-msg { font-size: .85rem; color: var(--green-dark); font-weight: 700; margin-top: 8px; min-height: 1.2em; }
.footer-bottom { background: var(--green-dark); color: #fff; font-size: .85rem; font-weight: 600; position: relative; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; transition: all .25s ease; z-index: 200; pointer-events: none; font-size: .95rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Placeholder pages */
.page-hero { background: linear-gradient(135deg, var(--green-light), var(--yellow-light)); padding: 44px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--green-dark); }
.page-hero p { color: var(--muted); margin: 8px 0 0; }
.placeholder { text-align: center; padding: 70px 20px; color: var(--muted); }
.placeholder .emoji { font-size: 3rem; margin-bottom: 10px; }
.placeholder h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-lead { max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.05rem; color: var(--ink); }
.about-banner { max-width: 1000px; margin: 34px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-banner img { width: 100%; display: block; }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.about-quote {
  max-width: 760px; margin: 0 auto; text-align: center; background: var(--blue-light); border-radius: 22px;
  padding: 26px 30px; box-shadow: var(--shadow);
}
.about-quote p {
  margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--green-dark); line-height: 1.4;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: stretch; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; display: grid; gap: 16px;
}
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #cfd8d2; border-radius: 10px; padding: 13px 16px; font: inherit; font-size: .96rem;
  background: var(--bg); outline: none; transition: border-color .15s ease, background .15s ease; resize: vertical;
}
.contact-form textarea { min-height: 150px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8a97a3; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); background: #fff; }
.contact-form .btn { margin-top: 4px; padding: 14px; font-size: 1.05rem; }

.contact-info { display: flex; flex-direction: column; gap: 26px; background: var(--green-light); border-radius: var(--radius); padding: 30px; height: 100%; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-ico {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.info-ico svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--ink); }
.info-item p { margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; line-height: 1.5; }
.info-item p a { color: var(--muted); font-weight: 600; }
.info-item p a:hover { color: var(--green-dark); text-decoration: underline; }
.contact-info .social { margin-top: 8px; }

.contact-banner { flex: 1; min-height: 140px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.contact-banner img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { height: auto; }
  .contact-banner { min-height: 220px; }
}
@media (max-width: 600px) {
  .contact-form, .contact-info { padding: 22px; }
  .contact-banner { min-height: 180px; }
}

/* ==========================================================================
   Shop page
   ========================================================================== */
.shop-hero h1 { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.shop-hero h1 .leaf { font-size: .8em; }
.shop { padding-top: 34px; }

/* Filter tabs */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-tabs {
  display: inline-flex; gap: 6px; padding: 6px; background: var(--green-light); border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(20,60,40,.08); max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; color: var(--green-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .7px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.shop-tab:hover { background: rgba(255,255,255,.75); transform: translateY(-1px); }
.shop-tab .n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(31,143,76,.14); color: var(--green-dark);
  font-family: var(--font-body); font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.shop-tab[aria-selected="true"] { background: var(--tab, var(--green)); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.shop-tab[aria-selected="true"] .n { background: rgba(255,255,255,.28); color: #fff; }
.shop-tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.shop-count { margin: 0; color: var(--muted); font-weight: 700; font-size: .92rem; }
.shop-count b { color: var(--green-dark); }
.shop-toolbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.shop-search-note { margin: -12px 0 20px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.shop-search-note b { color: var(--ink); }
.shop-search-note a { color: var(--blue); font-weight: 700; text-decoration: underline; }

/* Sort by */
.shop-sortbar { display: flex; justify-content: flex-end; margin: -8px 0 24px; }
.shop-sort-panel { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.shop-sort { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.shop-sort-select { position: relative; display: inline-flex; align-items: center; }
.shop-sort-select select {
  appearance: none; -webkit-appearance: none; border: 2px solid var(--line); border-radius: 999px;
  padding: 9px 36px 9px 16px; font: inherit; font-weight: 700; color: var(--green-dark); background: #fff; cursor: pointer;
}
.shop-sort-select select:focus { outline: none; border-color: var(--green); }
.shop-sort-select .chev { position: absolute; right: 14px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }

/* Grid + cards */
.shop-grid .product-card.is-hidden { display: none; }
.shop-grid .product-card.reveal { animation: cardIn .32s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.product-cat {
  align-self: flex-start; border-radius: 999px; padding: 3px 10px; margin-bottom: 4px;
  font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .6px; text-transform: uppercase;
}
.cat-english { background: var(--pink-light); color: #b3286a; }
.cat-maths { background: var(--yellow-light); color: #a85a00; }
.cat-drawing { background: var(--blue-light); color: var(--blue); }
.cat-bundles { background: var(--purple-light); color: var(--purple); }
.ribbon-purple { background: var(--purple); }
.product-card.is-target { box-shadow: 0 0 0 4px var(--yellow), var(--shadow-lg); }

/* Empty state */
.shop-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.shop-empty .emoji { font-size: 3rem; margin-bottom: 10px; }
.shop-empty h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; }
.shop-empty a { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

/* Try-before-you-buy strip */
.shop-try { padding-top: 0; }
.shop-try .try-box { max-width: 560px; margin: 0 auto; }

@media (max-width: 860px) {
  .shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .shop-tabs { width: 100%; justify-content: flex-start; }
  .shop-count { text-align: center; }
  .shop-toolbar-right { justify-content: space-between; width: 100%; }
}
@media (max-width: 600px) {
  .shop { padding-top: 24px; }
  .shop-hero h1 { display: block; }
  .shop-hero h1 .leaf { display: inline; }
  .shop-tabs { width: 100%; max-width: none; flex-wrap: wrap; overflow: visible; justify-content: center; }
  .shop-tab { padding: 8px 14px; font-size: .82rem; }
  .shop-sortbar { justify-content: stretch; }
  .shop-toolbar-right { flex-direction: column; align-items: stretch; gap: 12px; }
  .shop-count { text-align: left; }
  .shop-sort-panel { width: 100%; align-items: stretch; }
  .shop-sort { justify-content: space-between; }
  .shop-sort-select { flex: 1; }
  .shop-sort-select select { width: 100%; }
  .product-cat { font-size: .62rem; padding: 2px 8px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1400px) {
  .kid { width: 172px; }
  .kid-boy { left: -182px; }
  .kid-girl { right: -182px; }
}
@media (max-width: 1250px) {
  .testi-stage { max-width: 720px; }
  .kid { width: 160px; }
  .kid-boy { left: -170px; }
  .kid-girl { right: -170px; }
}
@media (max-width: 1200px) {
  .topbar { font-size: .78rem; }
  .topbar .container { padding-inline: clamp(40px, 10vw, 125px); }
}
@media (max-width: 1100px) {
  /* Stacked top bar: full tagline centred, controls on their own row */
  .topbar .container { grid-template-columns: 1fr; padding-inline: 34px; padding-block: 5px 6px; row-gap: 3px; min-height: 0; }
  .topbar-msg { grid-column: 1; flex-wrap: wrap; white-space: normal; text-align: center; font-size: .74rem; line-height: 1.35; }
  .topbar-msg .sep { display: none; }
  .topbar-msg .dots { flex-basis: 100%; }
  .topbar-right { grid-column: 1; justify-self: center; gap: 22px; font-size: .78rem; }
  .age-card img { width: 60px; height: 60px; }
  .age-card h3 { font-size: 1.05rem; }
  .site-footer > .container { min-height: 0; }
  .site-footer::after { bottom: 40px; }
  .footer-inner { margin-left: 30%; grid-template-columns: max-content minmax(0, 1fr); gap: 22px 40px; padding-bottom: 14vw; }
}
@media (max-width: 1000px) {
  .nav { margin-left: 14px; }
  .nav > ul { gap: 12px; }
  .nav a, .nav .has-sub > button { font-size: .82rem; }
  .search-wrap.open .search-inline { width: 118px; }
}
@media (max-width: 960px) {
  .age-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-grid { grid-template-columns: repeat(3, 1fr); }
  .why-wrap { grid-template-columns: 1fr; }
  .features { border-radius: 26px; }
  .try-box { max-width: 520px; margin: 0 auto; }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; }
  .kid { display: none; }
  .footer-inner { margin-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 24vw; }
  .site-footer::before { height: 40%; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  /* Phones: hide the tagline, keep heart + controls on one row */
  .topbar .container { grid-template-columns: 1fr auto 1fr; padding: 0 clamp(34px, 8.5vw, 74px); min-height: 36px; row-gap: 0; }
  .topbar-msg { display: none; }
  .topbar-right { grid-column: 3; justify-self: end; gap: 14px; font-size: .85rem; }
  /* Space left of the icons after the menu button and logo: never overlap the logo */
  .search-wrap.open .search-inline { width: clamp(104px, calc(100vw - 296px), 300px); }
  .search-inline input { padding: 8px 12px; font-size: .9rem; }
  .site-header .container { height: 68px; gap: 10px; }
  .brand { width: 92px; }
  .brand img { width: 92px; height: 92px; margin: -22px 0 -18px; }
  .site-header.scrolled .brand img { width: 56px; height: 56px; margin: 0; }
  .header-actions { gap: 2px; }
  /* Hero: full banner scaled to the screen width, button centred underneath */
  .hero { background: #fff; }
  .hero-banner img { width: 100%; height: auto; }
  .hero-cta { position: static; width: auto; transform: none; display: flex; justify-content: center; padding: clamp(10px, 2.2vw, 18px) 20px 2px; }
  .hero-cta .btn {
    width: clamp(150px, 46vw, 300px); font-size: clamp(.82rem, 2.4vw, 1.15rem);
    padding: clamp(8px, 1.6vw, 13px) clamp(12px, 3vw, 24px);
  }
  .hero-cta .btn svg { width: clamp(14px, 2.4vw, 20px); height: clamp(14px, 2.4vw, 20px); }
  .hero-mobile { display: none; background: linear-gradient(180deg, #e8f7ee, #fff); padding: 24px 0 28px; text-align: center; }
  .hero-mobile h1 { font-size: 2rem; line-height: 1.1; }
  .hero-mobile h1 .g { color: var(--green-dark); }
  .hero-mobile h1 .p { color: var(--purple); display: block; font-size: 2.35rem; }
  .hero-mobile .lead { font-weight: 700; color: #123c6b; margin: 8px 0 16px; }
  .hero-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
  .hero-feats li { font-size: .72rem; font-weight: 800; line-height: 1.15; color: #123c6b; }
  .hero-feats .dot { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; color: #fff; }
  .hero-feats .dot svg { width: 22px; height: 22px; }
  .d-pink { background: #f06292; } .d-yellow { background: #ffd54f; color: var(--green-dark) !important; } .d-purple { background: #b388ff; color: var(--purple) !important; } .d-green { background: #7bd389; }
  .hero-mobile .btn { font-size: 1.15rem; padding: 13px 40px; }
}
@media (max-width: 600px) {
  .section { padding: 34px 0; }
  .age-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .age-card { flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 0; padding: 10px 26px 10px 8px; border-radius: 14px; position: relative; }
  .age-card img { width: 44px; height: 44px; }
  .age-card .txt { flex: 0 0 auto; }
  .age-card h3 { font-size: .95rem; }
  .age-card p { margin: 0; font-size: .78rem; }
  .age-card svg { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sample-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sample-body { padding: 10px 12px 12px; }
  .sample-body h3 { font-size: .95rem; }
  .sample-body .btn { padding: 9px 10px; font-size: .85rem; }
  .product-body { padding: 10px 12px 12px; }
  .product-body h3 { font-size: .98rem; }
  .price .now { font-size: 1.2rem; }
  .product-body .btn { padding: 9px 10px; font-size: .85rem; }
  .cover { padding: 10px; }
  .cover-list { font-size: .66rem; max-width: 60%; padding: 6px 8px; }
  .cover-list li:nth-child(n+3) { display: none; }
  .cover-title { padding: 8px 8px 6px; }
  .cover-title h4 { font-size: 1.05rem; }
  .cover-title span { font-size: .75rem; }
  .cover-bundle .badge3 { font-size: .75rem; padding: 4px 12px; }
  .product-cover img.cover-mascot { height: 40%; max-width: 38%; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; padding: 22px 16px; border-radius: 22px; }
  .feature { border-left: 0; }
  .features:not(.features-4) .feature:last-child { grid-column: 1 / -1; }
  .section-title { display: block; }
  .section-title .leaf, .section-title .heart { display: inline; }
  .section-head.split { display: flex; flex-direction: column; align-items: center; }
  .section-head.split .titles { text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 190px; }
  .site-footer::after { background-size: 200% auto; background-position: left bottom; }
  .site-footer::before { height: 30%; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-feats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Product detail page
   ========================================================================== */
.breadcrumb { padding: 16px 0; font-size: .88rem; color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: .55; }
.breadcrumb .current { color: var(--ink); }

.pd { padding-top: 10px; }
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Gallery */
.pd-gallery { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pd-gallery-main { border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery-thumbs { display: flex; gap: 12px; }
.gallery-thumb {
  width: 84px; height: 84px; flex-shrink: 0; padding: 0; border-radius: 14px; border: 2px solid transparent;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--green); }
.thumb-fill {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .68rem; padding: 6px; line-height: 1.2;
}

/* Info column */
.pd-info { padding-top: 4px; }
.pd-sub { color: var(--muted); font-weight: 700; font-size: .9rem; margin: 0 0 4px; }
.pd-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--ink); margin-bottom: 12px; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .9rem; }
.pd-rating .stars { margin: 0; }
.pd-rating a { color: var(--muted); font-weight: 700; }
.pd-rating a:hover { color: var(--green-dark); text-decoration: underline; }

.pd-meta { display: grid; gap: 11px; margin-bottom: 22px; }
.pd-meta li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.pd-meta li svg { width: 21px; height: 21px; color: var(--green); flex-shrink: 0; }

.pd-price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.price-currency { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.price-currency button {
  border: 0; border-right: 1px solid var(--line); background: #fff; padding: 9px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--muted); transition: background .15s ease, color .15s ease;
}
.price-currency button:last-child { border-right: 0; }
.price-currency button.active, .price-currency button:hover { background: var(--green-light); color: var(--green-dark); }
.pd-price { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--red); }
.pd-price-was { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--muted); text-decoration: line-through; }

.pd-addcart { padding: 16px; font-size: 1.05rem; margin-bottom: 24px; }

.trust-row { display: flex; justify-content: space-between; gap: 8px; padding: 18px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; text-align: center; }
.trust-item .ico { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.trust-item .ico svg { width: 20px; height: 20px; }
.trust-item span:last-child { font-size: .8rem; font-weight: 700; color: var(--ink); }

/* Tabs */
.pd-tabs { margin-top: 44px; }
.pd-tabs-nav { display: flex; gap: 30px; border-bottom: 2px solid var(--line); margin-bottom: 26px; overflow-x: auto; overflow-y: hidden; }
.pd-tabs-nav button {
  background: none; border: 0; padding: 10px 2px 14px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--muted); position: relative; white-space: nowrap;
}
.pd-tabs-nav button.active { color: var(--green-dark); }
.pd-tabs-nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--green); }
.pd-tabs-panel { max-width: 760px; color: var(--muted); }
.pd-tabs-panel p { margin: 0 0 6px; }
.pd-tabs-lead { color: var(--ink); font-weight: 700; margin-bottom: 16px; }

.check-list { display: grid; gap: 12px; margin-top: 16px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 700; color: var(--ink); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.pd-desc { position: relative; padding-right: 120px; }
.pd-desc-mascot { position: absolute; right: 0; bottom: 0; font-size: 5.5rem; line-height: 1; }

.pd-reviews-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pd-reviews-score { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--ink); }
.pd-reviews-summary p { color: var(--muted); font-weight: 700; margin: 2px 0 0; }
.pd-reviews-grid { max-width: none; }

@media (max-width: 900px) {
  .pd-wrap { grid-template-columns: 1fr; gap: 28px; }
  .pd-desc { padding-right: 0; }
  .pd-desc-mascot { position: static; display: block; margin-top: 12px; }
  .pd-reviews-grid.testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust-row { flex-wrap: wrap; }
  .pd-tabs-nav { gap: 20px; }
}

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart-section { padding-top: 10px; }
.cart-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.cart-wrap[hidden] { display: none; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow);
}
.cart-item-cover { width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0; display: block; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cart-item-info h3 { font-size: 1.05rem; margin: 0 0 2px; }
.cart-item-format { color: var(--muted); font-size: .86rem; font-weight: 600; margin: 0 0 6px; }
.cart-item-price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--red); }

.cart-item-qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--green-light); color: var(--green-dark);
  font-weight: 800; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--green); color: #fff; }
.qty-val { min-width: 18px; text-align: center; font-weight: 800; color: var(--ink); }

.cart-item-remove {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--pink-light); color: var(--pink);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-remove:hover { background: var(--pink); color: #fff; }
.cart-item-remove svg { width: 18px; height: 18px; }

.cart-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.cart-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-weight: 700; color: var(--ink); }
.cart-summary-row + .cart-summary-row { border-top: 1px solid var(--line); }
.cart-summary-row.total { font-family: var(--font-head); font-size: 1.15rem; }
.cart-summary-price { color: var(--red); font-family: var(--font-head); font-weight: 800; }
.cart-checkout { margin: 14px 0 20px; padding: 15px; font-size: 1rem; }
.cart-summary .trust-row { border-top: 0; padding: 0; }

@media (max-width: 860px) {
  .cart-wrap { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 64px 1fr; grid-template-areas: "cover info" "qty remove"; padding: 12px; }
  .cart-item-cover { width: 64px; height: 64px; grid-area: cover; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; justify-self: start; }
  .cart-item-remove { grid-area: remove; justify-self: end; }
}

/* ==========================================================================
   Checkout page
   ========================================================================== */
.checkout-section { padding-top: 10px; }
.checkout-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.checkout-wrap[hidden] { display: none; }

.checkout-main { display: flex; flex-direction: column; gap: 22px; }
.checkout-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.checkout-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.checkout-card-head h2 { font-size: 1.3rem; color: var(--ink); }
.checkout-item-count { color: var(--muted); font-weight: 700; font-size: .9rem; }
.checkout-card .cart-items { margin-bottom: 20px; }
.checkout-card .cart-items:last-child { margin-bottom: 0; }

.checkout-note {
  background: var(--cream); border: 2px dashed var(--yellow); border-radius: 14px; padding: 16px 18px;
}
.checkout-note-label {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .4px;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px;
}
.checkout-note input[type="email"] {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd8d2; border-radius: 10px; padding: 11px 14px;
  font: inherit; background: #fff; outline: none;
}
.checkout-note input[type="email"]:focus { border-color: var(--green); }
.checkout-note p { margin: 10px 0 0; color: var(--muted); font-size: .85rem; }
.checkout-support { margin-top: 18px; text-align: center; }
.checkout-support .checkout-note-label { margin-bottom: 12px; }

.checkout-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.checkout-summary h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.checkout-summary .cart-checkout { margin: 6px 0 4px; }
.checkout-email-msg { min-height: 1.2em; margin: 0 0 14px; color: var(--red); font-weight: 700; font-size: .85rem; }

.checkout-trust-list { display: grid; gap: 10px; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-trust-list li { position: relative; padding-left: 24px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.checkout-trust-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ==========================================================================
   Login / Sign up page
   ========================================================================== */
.auth-card {
  max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--green-light); }
.auth-tab {
  border: 0; background: transparent; cursor: pointer; padding: 16px 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  color: var(--muted); border-bottom: 3px solid transparent; transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.auth-tab:hover { color: var(--green-dark); }
.auth-tab.active { background: #fff; color: var(--green-dark); border-bottom-color: var(--green); }
.auth-tab:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.auth-panel { padding: 28px 30px 32px; }
.auth-panel[hidden] { display: none; }
.auth-form { display: grid; gap: 16px; }
.auth-field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.auth-field input {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd8d2; border-radius: 10px; padding: 13px 16px; font: inherit; font-size: .96rem;
  background: var(--bg); outline: none; transition: border-color .15s ease, background .15s ease;
}
.auth-field input::placeholder { color: #8a97a3; }
.auth-field input:focus { border-color: var(--green); background: #fff; }
.auth-field input.invalid { border-color: var(--red); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 68px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--green-dark);
}
.pw-toggle:hover { background: var(--green-light); }
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-q {
  display: flex; align-items: center; justify-content: center; min-width: 116px; padding: 0 14px; border-radius: 10px; user-select: none;
  background: var(--yellow-light); border: 1px dashed #e0b62c; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 1px; color: var(--ink); white-space: nowrap;
}
.captcha-refresh {
  flex-shrink: 0; width: 44px; border: 1px solid #cfd8d2; border-radius: 10px; background: #fff; color: var(--green-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.captcha-refresh:hover { background: var(--green-light); }
.captcha-refresh svg { width: 20px; height: 20px; }
.captcha-row input { flex: 1; min-width: 0; }
.auth-msg { min-height: 1.2em; font-size: .88rem; font-weight: 700; color: var(--red); }
.auth-msg.ok { color: var(--green-dark); }
.auth-submit { width: 100%; padding: 14px; font-size: 1.05rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-google { width: 100%; padding: 12px; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth-google svg { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .auth-panel { padding: 22px 18px 26px; }
  .captcha-q { min-width: 96px; padding: 0 8px; font-size: 1.05rem; }
}

/* ---------- Legal pages (privacy policy, terms, refund policy) ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1040px; margin: 0 auto; }
.legal-toc {
  position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto;
}
.legal-toc h2 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin: 0; padding: 3px 0; font-size: .9rem; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--green-dark); text-decoration: underline; }
.legal-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px 38px; box-shadow: var(--shadow); line-height: 1.7; }
.legal-content p, .legal-content li { color: var(--ink); }
.legal-content a { color: var(--green-dark); font-weight: 700; }
.legal-content h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; color: var(--green-dark); margin: 34px 0 10px; scroll-margin-top: 96px; }
.legal-content h3 { font-size: 1.05rem; color: var(--ink); margin: 20px 0 6px; }
.legal-content ul { padding-left: 22px; margin: 8px 0 12px; }
.legal-content li { margin: 6px 0; }
.legal-content code { background: var(--green-light); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.legal-content .num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-light); color: var(--green-dark); font-size: .95rem;
}
.legal-updated { color: var(--muted); font-size: .9rem; font-weight: 700; margin: 0 0 18px; }
.legal-summary { background: var(--yellow-light); border: 1px dashed #e0b62c; border-radius: var(--radius); padding: 18px 22px 8px; margin-bottom: 22px; }
.legal-summary h2 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
.legal-table-wrap { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.legal-table th { background: var(--green-light); color: var(--green-dark); text-align: left; font-family: var(--font-head); }
.legal-table th, .legal-table td { padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { font-weight: 700; white-space: nowrap; }
.legal-contact { background: var(--green-light); border-radius: var(--radius); padding: 14px 20px; margin: 10px 0 14px; }
.legal-contact p { margin: 4px 0; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc ol { columns: 2; column-gap: 24px; }
  .legal-content { padding: 24px 20px 28px; }
  .legal-table td:first-child { white-space: normal; }
}
@media (max-width: 480px) {
  .legal-toc ol { columns: 1; }
  .legal-content h2 { font-size: 1.2rem; }
}

/* ==========================================================================
   FAQs page
   ========================================================================== */
.faq-wrap { max-width: 860px; }
.faq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.faq-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--white);
  border: 2px solid var(--green-soft); color: var(--green-dark); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.faq-chip:hover { background: var(--green-light); border-color: var(--green); transform: translateY(-1px); }
.faq-group { margin-bottom: 34px; scroll-margin-top: 90px; }
.faq-group > h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--green-dark); margin-bottom: 14px; }
.faq-emoji { font-size: 1.1em; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq-item[open] { border-color: var(--green); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-light); color: var(--green-dark); font-size: 1.3rem; line-height: 1; transition: transform .2s ease, background .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; background: var(--green); color: #fff; }
.faq-item summary:hover { color: var(--green-dark); }
.faq-item summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.faq-answer { padding: 0 20px 18px; color: var(--ink); line-height: 1.7; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--green-dark); font-weight: 700; text-decoration: underline; }
.faq-help {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; margin-top: 44px; padding: 24px 28px;
  background: linear-gradient(135deg, var(--green-light), var(--yellow-light)); border-radius: var(--radius);
}
.faq-help-emoji { font-size: 2.4rem; }
.faq-help-text { flex: 1 1 240px; }
.faq-help-text h2 { font-size: 1.35rem; color: var(--green-dark); margin-bottom: 4px; }
.faq-help-text p { margin: 0; color: var(--muted); font-weight: 600; }
.faq-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
  .faq-item summary { padding: 14px 16px; font-size: 1rem; }
  .faq-answer { padding: 0 16px 16px; }
  .faq-help { padding: 20px; text-align: center; justify-content: center; }
}
