:root {
  --bg: #fcfdff;
  --ink: #11153f;
  --muted: #626a84;
  --soft: #f7f9ff;
  --soft-2: #f0fbf5;
  --line: #e9edf7;
  --primary: #7c3aed;
  --primary-2: #9857ff;
  --blue: #2f80ed;
  --pink: #ff5b9a;
  --mint: #43c968;
  --yellow: #ffba18;
  --shadow: 0 14px 34px rgba(28, 36, 88, 0.1);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(47, 128, 237, .08), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(255, 186, 24, .1), transparent 24%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 32px)); }
.section { padding: 64px 0; }
.section + .section { padding-top: 24px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(21, 27, 62, .05);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, 300px) auto;
  gap: 20px;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
}
.logo img { filter: drop-shadow(0 8px 16px rgba(124, 58, 237, .16)); }
.main-nav { display: flex; justify-content: center; gap: 22px; color: var(--ink); font-weight: 800; font-size: 15px; }
.main-nav a:hover { color: var(--primary); }
.header-search input,
.search-hero input,
.filters input,
.filters select,
.admin-filter input,
.admin-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(28, 36, 88, .04);
}
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(124, 58, 237, .24);
}
.btn.secondary { color: var(--primary); background: #fff; border-color: #dac8ff; box-shadow: 0 10px 22px rgba(28, 36, 88, .06); }
.btn.full { width: 100%; }
.btn.danger { color: #b91c1c; background: #fff5f5; border-color: #fecaca; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 48px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 48%, rgba(232,245,255,.82) 100%),
    var(--hero-bg-image, none),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 8% -12% -18% 50%;
  background: #dff1ff;
  border-radius: 46% 54% 43% 57%;
  opacity: .9;
}
.hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: 8%;
  top: 34px;
  background:
    radial-gradient(circle at 22% 28%, var(--yellow) 0 7px, transparent 8px),
    radial-gradient(circle at 75% 70%, var(--pink) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 15%, var(--blue) 0 4px, transparent 5px);
  opacity: .75;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-weight: 850;
  background: #eef7ff;
  border: 1px solid #d8ebff;
  border-radius: 999px;
  padding: 8px 12px;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 70px); letter-spacing: 0; max-width: 760px; }
h1::after {
  content: "";
  display: block;
  width: min(300px, 72%);
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #b89bff);
}
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; }
.hero p, .lead { color: var(--muted); font-size: 18px; max-width: 710px; }
.hero-actions, .action-row, .card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.benefit-row span, .badges span, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(28, 36, 88, .07);
}
.benefit-row span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.72);
}
.benefit-row span:nth-child(2)::before { background: var(--blue); }
.benefit-row span:nth-child(3)::before { background: var(--pink); }
.hero-art {
  position: relative;
  min-height: 520px;
}
.hero-stack {
  position: relative;
  min-height: 520px;
}
.hero-stack::before {
  content: "";
  position: absolute;
  inset: 20px 0 16px 24px;
  background: rgba(201, 231, 255, .88);
  border-radius: 46% 54% 43% 57%;
}
.preview-sheet {
  position: absolute;
  width: 58%;
  aspect-ratio: 210 / 297;
  background: #fff;
  border: 1px solid #dfe5f2;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.preview-sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-sheet.one { left: 16%; top: 0; transform: rotate(-4deg); z-index: 4; }
.preview-sheet.two { right: 0; top: 70px; transform: rotate(5deg); z-index: 3; }
.preview-sheet.three { left: 0; bottom: 36px; transform: rotate(4deg); z-index: 2; }
.preview-sheet.four { right: 12%; bottom: 0; transform: rotate(-2deg); z-index: 1; }
.hero-art-uploaded {
  display: grid;
  place-items: center;
  padding: 24px;
}
.hero-art-uploaded::before {
  content: "";
  position: absolute;
  inset: 18px;
  background: rgba(201, 231, 255, .9);
  border-radius: 46% 54% 43% 57%;
}
.hero-art-uploaded img {
  position: relative;
  width: min(100%, 560px);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(28, 36, 88, .16));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2::after,
.container > h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--primary);
}
.section-head p { margin: 8px 0 0; color: var(--muted); }
.category-grid, .coloring-grid, .collection-grid, .feature-grid {
  display: grid;
  gap: 20px;
}
.category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.coloring-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-popular .coloring-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card,
.coloring-card,
.collection-card,
.feature-card,
.info-card,
.trust-card,
.filter-panel,
.faq-list details,
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.category-card,
.coloring-card,
.collection-card,
.feature-card,
.info-card,
.trust-card,
.filter-panel,
.faq-list details {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover,
.coloring-card:hover,
.collection-card:hover {
  transform: translateY(-3px);
  border-color: #d8def0;
  box-shadow: 0 18px 42px rgba(28, 36, 88, .13);
}
.category-card a {
  min-height: 178px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}
.category-card img { width: 86px; height: 86px; object-fit: contain; }
.category-card p, .collection-card p { color: var(--muted); margin: 0; }
.coloring-card, .collection-card { overflow: hidden; }
.card-preview {
  display: block;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(47,128,237,.08), rgba(255,255,255,.9)),
    var(--soft);
  padding: 14px;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
}
.card-body { padding: 14px; display: grid; gap: 12px; }
.card-body h3 { font-size: 16px; }
.card-body h3 a:hover { color: var(--primary); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1 1 100px; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.collection-meta strong { color: #14943d; font-size: 20px; }

.ad-slot {
  width: min(970px, 100%);
  margin: 34px auto;
  min-height: 90px;
  border: 1px dashed #cfdaef;
  border-radius: var(--radius);
  background: #f8fbff;
  display: grid;
  align-content: center;
  overflow: hidden;
}
.ad-slot.ad-large { min-height: 250px; }
.ad-slot.ad-sidebar { width: 100%; min-height: 250px; margin: 0; }
.ad-label {
  color: #877c95;
  font-size: 12px;
  text-align: center;
  padding-top: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ad-content { padding: 8px; text-align: center; }
.ad-content img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.promo-ad {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 24px;
  color: var(--muted);
  background: linear-gradient(135deg, #fff, #eff8ff 55%, #fff7df);
  border-radius: var(--radius);
}
.promo-ad strong { color: var(--primary); font-size: 20px; }
.promo-ad.tall { min-height: 250px; }

.info-strip {
  background: linear-gradient(90deg, #f7fbff, #f3fff7);
  border-block: 1px solid #e1ebf6;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.strip-grid div { padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid #e1ebf6; box-shadow: 0 12px 26px rgba(28, 36, 88, .06); }

.breadcrumbs { margin: 24px auto 0; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--primary); font-weight: 800; }
.category-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.sidebar-stack {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}
.filter-panel { padding: 20px; }
.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group strong { display: block; margin-bottom: 10px; }
.filter-group label { display: flex; gap: 8px; align-items: center; margin: 9px 0; color: var(--muted); }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar select { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fff; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 34px; }
.pagination a, .pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}
.pagination a.active { color: #fff; background: var(--primary); }

.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.print-preview {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}
.a4-page {
  aspect-ratio: 210 / 297;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.a4-page img { width: 100%; height: 100%; object-fit: contain; }
.helper-text { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.info-card { padding: 22px; display: grid; gap: 16px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-list div { background: var(--soft); padding: 12px; border-radius: var(--radius); }
.info-list span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.stats-bar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.stats-bar span { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; font-weight: 850; color: var(--primary); }
.tabs { margin-top: 30px; }
.tab-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab-buttons button { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px 14px; font-weight: 850; cursor: pointer; }
.tab-buttons button.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tab-panel.active { display: block; }
.print-info { margin-top: 22px; }
.trust-card, .feature-card { padding: 22px; }

.faq-list { display: grid; gap: 12px; margin-top: 24px; }
.faq-list details { padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { color: var(--muted); margin-bottom: 0; }
.empty-state { text-align: center; padding: 90px 0; }

.site-footer {
  margin-top: 24px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, .96), rgba(255,255,255,.98)),
    radial-gradient(circle at 88% 0%, rgba(255, 91, 154, .12), transparent 30%);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.35fr;
  gap: 28px;
  padding: 36px 0 24px;
}
.site-footer p {
  color: var(--muted);
  margin: 10px 0 0;
}
.site-footer h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.site-footer h2::after { display: none; }
.site-footer a:not(.logo) {
  display: block;
  color: var(--muted);
  font-weight: 750;
  margin: 8px 0;
}
.site-footer a:hover { color: var(--primary); }
.footer-logo { margin-bottom: 8px; }
.newsletter {
  display: grid;
  gap: 10px;
  align-content: start;
}
.newsletter input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(28, 36, 88, .04);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

.pdf-viewer-body { background: #2f3037; color: #fff; }
.pdf-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #23242a;
}
.pdf-toolbar-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.pdf-toolbar .pdf-actions {
  min-width: 316px;
}
.pdf-toolbar .pdf-close {
  width: 54px;
  min-height: 44px;
  padding: 10px;
}
.pdf-frame-wrap { width: min(980px, 100%); margin: 28px auto; padding: 0 16px; }
.pdf-frame {
  width: 100%;
  height: calc(100vh - 120px);
  background: #fff;
  border: 0;
  border-radius: var(--radius);
}

.mobile-filter-button { display: none; }
.mobile-only { display: none; }

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; justify-self: end; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 12px; font-weight: 800; }
  .main-nav, .header-search, .header-cta { display: none; }
  .main-nav.open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    background: #fff;
    padding: 12px 0 18px;
  }
  .hero-grid, .item-layout, .category-layout { grid-template-columns: 1fr; }
  .hero::before { inset: 48% -28% -12% 18%; }
  .hero-art { min-height: 430px; }
  .hero-stack { min-height: 430px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .coloring-grid { grid-template-columns: repeat(2, 1fr); }
  .home-popular .coloring-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .mobile-filter-button { display: inline-flex; margin-bottom: 18px; }
  .sidebar-stack {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(38, 31, 51, .35);
    padding: 72px 18px 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .sidebar-stack.open { opacity: 1; pointer-events: auto; }
  .filter-panel { max-height: calc(100vh - 96px); overflow: auto; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  .section { padding: 44px 0; }
  .hero { padding: 34px 0 38px; }
  .hero::after { display: none; }
  h1 { font-size: 42px; }
  h1::after { height: 5px; }
  .hero p, .lead { font-size: 16px; }
  .hero-art { min-height: 340px; }
  .hero-stack { min-height: 340px; }
  .preview-sheet { padding: 10px; width: 62%; }
  .category-grid, .collection-grid, .strip-grid, .stats-bar { grid-template-columns: 1fr; }
  .coloring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-popular .coloring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 12px; }
  .card-actions .btn { min-height: 40px; padding-inline: 10px; }
  .info-list { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar-controls, .toolbar-controls select { width: 100%; }
  .hero-actions .btn, .action-row .btn { width: 100%; }
  .pdf-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .pdf-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }
  .pdf-toolbar .pdf-actions {
    min-width: 0;
  }
  .pdf-toolbar .pdf-close {
    width: 52px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

@media (max-width: 420px) {
  .coloring-grid { grid-template-columns: 1fr; }
}

/* Keep the PDF close control visible above the browser's native PDF toolbar. */
@media (max-width: 900px) {
  .pdf-viewer-body {
    overflow: hidden;
  }

  .pdf-viewer-body .pdf-toolbar {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 100;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
  }

  .pdf-viewer-body .pdf-toolbar > strong,
  .pdf-viewer-body .pdf-toolbar > span,
  .pdf-viewer-body .pdf-actions {
    display: none;
  }

  .pdf-viewer-body .pdf-toolbar-actions {
    display: block;
    width: auto;
  }

  .pdf-viewer-body .pdf-toolbar .pdf-close {
    display: inline-flex;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 12px;
    border: 1px solid #dac8ff;
    background: #fff;
    color: #7c3aed;
    box-shadow: 0 10px 22px rgba(28, 36, 88, .24);
  }

  .pdf-viewer-body .pdf-frame-wrap {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
  }

  .pdf-viewer-body .pdf-frame {
    display: block;
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}

/* Coloring Kids visual refresh */
:root {
  --bg: #fbfdff;
  --ink: #080d3d;
  --muted: #65708c;
  --soft: #f7f9ff;
  --soft-2: #eef8ff;
  --line: #e6ebf5;
  --primary: #7f39f2;
  --primary-2: #9a4cf6;
  --blue: #1d7df2;
  --pink: #ff5794;
  --mint: #48bd50;
  --yellow: #ffb20f;
  --shadow: 0 10px 28px rgba(18, 27, 74, .09);
  --shadow-soft: 0 18px 48px rgba(33, 41, 89, .08);
  --radius: 8px;
}

body {
  background: linear-gradient(180deg, #fff 0%, #f9fbff 46%, #fff 100%);
  color: var(--ink);
  font-weight: 520;
}

.container { width: min(1300px, calc(100% - 64px)); }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #edf1f8;
  box-shadow: 0 8px 26px rgba(17, 24, 64, .045);
}

.header-inner {
  min-height: 88px;
  grid-template-columns: auto minmax(360px, 1fr) minmax(300px, 410px) auto;
  gap: 22px;
}

.logo {
  gap: 9px;
  color: var(--ink);
  font-size: 33px;
  line-height: 1;
  letter-spacing: 0;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  filter: drop-shadow(0 8px 18px rgba(127, 57, 242, .16));
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-word span:nth-child(5n + 1) { color: #1d7df2; }
.brand-word span:nth-child(5n + 2) { color: #25b95f; }
.brand-word span:nth-child(5n + 3) { color: #ffb20f; }
.brand-word span:nth-child(5n + 4) { color: #ff5794; }
.brand-word span:nth-child(5n) { color: #8d45ee; }

.main-nav {
  gap: 28px;
  font-size: 15px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 33px 0 30px;
}

.main-nav a:first-child::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.header-search { position: relative; }
.header-search::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.header-search::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 55%;
  width: 8px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.header-search input,
.search-hero input,
.filters input,
.filters select,
.admin-filter input,
.admin-filter select,
.newsletter input {
  border-color: #dfe6f2;
  border-radius: 999px;
  min-height: 46px;
  box-shadow: 0 8px 20px rgba(21, 30, 72, .045);
}

.header-search input { padding-right: 48px; }
.header-search input::placeholder { color: transparent; }
.header-search label.sr-only {
  position: absolute;
  clip: auto;
  width: auto;
  height: auto;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f7588;
  font-size: 0;
  overflow: visible;
  pointer-events: none;
  white-space: nowrap;
}
.header-search label.sr-only::before {
  content: "Search coloring pages...";
  font-size: 16px;
}
.header-search:focus-within label.sr-only {
  opacity: 0;
}

.btn {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 950;
  gap: 8px;
  box-shadow: none;
}

.icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.btn .icon {
  margin-left: -2px;
}

.btn.primary {
  background: linear-gradient(135deg, #7338e9 0%, #984df7 100%);
  box-shadow: 0 12px 24px rgba(127, 57, 242, .24);
}

.btn.primary::before {
  content: none;
  display: none;
}

.btn.secondary {
  color: var(--primary);
  background: #fff;
  border-color: #cdb7ff;
  box-shadow: 0 10px 22px rgba(127, 57, 242, .08);
}

.hero {
  padding: 50px 0 34px;
  border-bottom: 1px solid #eef2f8;
  background:
    linear-gradient(90deg, #fff 0%, #fff 46%, #f0f8ff 100%);
}

.hero::before {
  inset: 8px -8% 0 49%;
  background: #dff0ff;
  border-radius: 47% 53% 49% 51% / 52% 47% 53% 48%;
  opacity: 1;
}

.hero::after {
  width: 100%;
  height: 100%;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 0 48%, #ffb20f 49% 53%, transparent 54%) 76% 16% / 18px 18px no-repeat,
    linear-gradient(45deg, transparent 0 48%, #7f39f2 49% 53%, transparent 54%) 53% 38% / 14px 14px no-repeat,
    linear-gradient(45deg, transparent 0 48%, #ff5794 49% 53%, transparent 54%) 84% 76% / 16px 16px no-repeat,
    linear-gradient(#61c65f, #61c65f) 67% 83% / 92px 8px no-repeat,
    linear-gradient(#61c65f, #61c65f) 68% 87% / 72px 8px no-repeat;
  transform: rotate(-8deg);
  opacity: .78;
}

.hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr);
  gap: 44px;
}

.eyebrow { display: none; }

h1 {
  font-size: clamp(48px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

h1::after {
  width: min(310px, 60%);
  height: 5px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--primary), #b78bff);
}

.hero p,
.lead {
  color: #4f5b76;
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions { margin-top: 24px; }
.hero-actions .btn { min-width: 220px; }

.benefit-row { margin-top: 34px; gap: 18px; }
.benefit-row span,
.badges span,
.chip {
  min-height: 38px;
  padding: 8px 15px;
  border-color: #e7edf7;
  box-shadow: 0 10px 26px rgba(24, 32, 79, .08);
}

.hero-art,
.hero-stack { min-height: 438px; }

.hero-stack::before {
  inset: 0 0 0 20px;
  background: #dff0ff;
  border-radius: 49% 51% 45% 55% / 50% 48% 52% 50%;
}

.preview-sheet {
  border-color: #dfe5ef;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 15px 26px rgba(17, 24, 64, .16);
}

.preview-sheet.one { width: 33%; left: 17%; top: 8px; }
.preview-sheet.two { width: 32%; right: 15%; top: 58px; }
.preview-sheet.three { width: 31%; right: 2%; left: auto; bottom: 78px; }
.preview-sheet.four { width: 34%; left: 38%; right: auto; bottom: 18px; }

.section { padding: 34px 0; }
.section + .section { padding-top: 22px; }

.section-head {
  margin-bottom: 22px;
  align-items: center;
}

h2 {
  font-size: clamp(25px, 2.2vw, 31px);
  font-weight: 950;
}

.section-head h2::after,
.container > h2::after {
  width: 46px;
  height: 4px;
  background: var(--primary);
}

.category-grid { gap: 24px; }
.coloring-grid { gap: 18px; }
.home-popular .coloring-grid { gap: 18px; }

.category-card,
.coloring-card,
.collection-card,
.feature-card,
.info-card,
.trust-card,
.filter-panel,
.faq-list details,
.strip-grid div {
  border-color: #e5ebf5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 27, 74, .08);
}

.category-card a {
  min-height: 190px;
  padding: 18px 16px 14px;
}

.category-card img {
  width: 94px;
  height: 94px;
  border-radius: 8px;
  background: #fff7e8;
  padding: 4px;
}

.category-card h3,
.card-body h3 {
  font-size: 17px;
  font-weight: 950;
}

.category-card p {
  font-weight: 750;
  font-size: 13px;
}

.card-preview {
  aspect-ratio: 1 / 1.18;
  padding: 13px;
  background: #fff;
  border-bottom: 1px solid #edf1f7;
}

.card-preview img {
  border-radius: 8px;
  background: #fff;
}

.card-body {
  padding: 12px 12px 10px;
  gap: 9px;
}

.badges span {
  min-height: 28px;
  padding: 5px 11px;
  font-size: 12px;
}

.badges span:nth-child(1) {
  color: #268b35;
  background: #eaf9e8;
  border-color: #d7f1d1;
}

.badges span:nth-child(2) {
  color: #1972e8;
  background: #e9f3ff;
  border-color: #d8eaff;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-actions .btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.collection-grid { gap: 20px; }

.collection-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: linear-gradient(135deg, #fff9df 0%, #fff 52%, #eefbea 100%);
}

.collection-card .card-preview {
  aspect-ratio: auto;
  min-height: 178px;
  border-right: 1px solid #e8edf7;
  border-bottom: 0;
  background: transparent;
}

.collection-card .card-body { padding: 22px; }
.collection-meta strong { color: #26a33d; }

.info-strip {
  background: transparent;
  border: 0;
  padding-top: 10px;
}

.strip-grid {
  border: 1px solid #e5ebf5;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbfdff, #fff);
  box-shadow: var(--shadow-soft);
}

.strip-grid div {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 30px;
}

.strip-grid div + div { border-left: 1px solid #e5ebf5; }

.breadcrumbs {
  margin-top: 34px;
  font-weight: 750;
}

.category-layout {
  grid-template-columns: 240px 1fr;
  gap: 42px;
}

.filter-panel {
  padding: 18px;
  box-shadow: 0 8px 22px rgba(18, 27, 74, .07);
}

.filter-title {
  margin-bottom: 14px;
}

.filter-title h2 { font-size: 19px; }

.filter-title a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.filter-group {
  display: grid;
  gap: 8px;
  padding: 16px 0;
}

.filter-group strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.filter-group label {
  color: #303955;
  font-weight: 750;
}

.filters .filter-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  margin: 0;
  color: #303955;
  cursor: pointer;
}

.filters .filter-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.filter-check {
  width: 20px;
  height: 20px;
  border: 2px solid #d8dee9;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.filter-option input:checked + .filter-check {
  border-color: var(--primary);
  background: var(--primary);
}

.filter-option input:checked + .filter-check::after {
  content: "";
  display: block;
  width: 9px;
  height: 5px;
  margin: 4px 0 0 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.filter-label {
  min-width: 0;
  line-height: 1.25;
}

.filter-count {
  color: #818aa3;
  font-size: 12px;
  font-weight: 850;
}

.toolbar select {
  border-radius: 8px;
  font-weight: 800;
  min-height: 40px;
}

.theme-chips { gap: 12px; }
.chip {
  color: #26304e;
  box-shadow: none;
}
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}

.item-layout {
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 52px;
}

.print-preview {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 44px 48px 34px;
}

.print-preview::before {
  content: "";
  position: absolute;
  inset: 16px 7% 72px 0;
  background: #f1ecff;
  border-radius: 46% 54% 44% 56% / 50% 44% 56% 50%;
  z-index: 0;
}

.print-preview .a4-page,
.print-preview .helper-text {
  position: relative;
  z-index: 1;
}

.a4-page {
  max-width: 430px;
  margin: 0 auto;
  border-color: #dfe5ee;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 34px rgba(18, 27, 74, .14);
}

.helper-text {
  display: inline-flex;
  margin: 18px auto 0;
  min-height: 36px;
  padding: 8px 18px;
  border: 1px solid #e5ebf5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 27, 74, .07);
}

.item-layout > .sidebar-stack {
  position: sticky;
  top: 112px;
}

.item-layout .info-card {
  padding: 36px;
  border-color: #e5ebf5;
  box-shadow: var(--shadow-soft);
}

.item-layout .info-card h1 {
  font-size: clamp(44px, 4.6vw, 62px);
}

.item-layout .info-list {
  gap: 14px;
  margin-top: 18px;
}

.info-list div {
  min-height: 72px;
  background: #f6f8fc;
  border-radius: 8px;
  font-weight: 900;
}

.info-list span {
  color: #606b88;
  font-size: 12px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.action-row .full { grid-column: auto; }
.action-row .btn:first-child { grid-column: 1 / -1; }

.stats-bar {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.stats-bar span {
  border: 0;
  box-shadow: none;
  color: #192143;
  background: transparent;
}

.tab-buttons {
  gap: 22px;
  border-bottom: 1px solid #e5ebf5;
}

.tab-buttons button {
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  color: #313b5a;
  background: transparent;
}

.tab-buttons button.active {
  color: var(--primary);
  background: transparent;
  box-shadow: inset 0 -4px var(--primary);
}

.tab-panel {
  border: 0;
  padding: 18px 0 0;
  background: transparent;
}

.print-info {
  background: #f2f8ff;
  border-color: #dbeaff;
}

.feature-card {
  padding: 22px;
  background: #fff;
}

.faq-list details {
  padding: 15px 18px;
  box-shadow: none;
}

.site-footer {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  margin-top: 18px;
}

.footer-grid {
  grid-template-columns: 1.25fr 1fr 1fr 1.55fr;
  padding-top: 30px;
}

.newsletter {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.newsletter h2,
.newsletter p {
  grid-column: 1 / -1;
}

.newsletter .btn {
  min-width: 150px;
}

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: auto auto; }
  .main-nav a { padding: 10px 0; }
  .main-nav a:first-child::after,
  .main-nav a:hover::after { bottom: 0; }
  .item-layout { grid-template-columns: 1fr; }
  .item-layout > .sidebar-stack { position: static; }
}

@media (max-width: 1000px) {
  .container { width: min(100% - 32px, 1300px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { inset: 46% -20% 0 18%; }
  .hero-stack::before { inset: 0; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .collection-card { grid-template-columns: 1fr; }
  .collection-card .card-preview { border-right: 0; border-bottom: 1px solid #e8edf7; }
  .strip-grid div + div { border-left: 0; border-top: 1px solid #e5ebf5; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1300px); }
  .logo { font-size: 27px; }
  .logo img { width: 34px; height: 34px; }
  h1 { font-size: 40px; }
  .hero { padding-top: 32px; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .benefit-row { gap: 10px; }
  .benefit-row span { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card a { min-height: 160px; }
  .category-card img { width: 78px; height: 78px; }
  .print-preview { padding: 26px 0 22px; }
  .print-preview::before { inset: 0 0 48px 0; }
  .item-layout .info-card { padding: 24px; }
  .action-row { grid-template-columns: 1fr; }
  .footer-grid,
  .newsletter { grid-template-columns: 1fr; }
}

/* Visual text layer for cached public templates */
.site-header .logo img,
.site-footer .logo img {
  display: none;
}

.site-footer .logo.has-custom-logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 170px;
  object-fit: contain;
}

.site-header .logo.has-custom-logo img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 290px;
  object-fit: contain;
}

.site-header .logo > span:not(.sr-only),
.site-footer .logo > span:not(.sr-only) {
  font-size: 0;
  display: inline-flex;
}

.site-header .logo.has-custom-logo > span:not(.sr-only),
.site-footer .logo.has-custom-logo > span:not(.sr-only) {
  display: none;
}

.site-header .logo > span:not(.sr-only)::before,
.site-footer .logo > span:not(.sr-only)::before {
  content: "Coloring Kids";
  font-size: 33px;
  line-height: 1;
  font-weight: 950;
  background: linear-gradient(90deg, #1d7df2 0 16%, #25b95f 16% 31%, #ffb20f 31% 47%, #ff5794 47% 66%, #8d45ee 66% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav, buttons, hero text — PHP already outputs correct English, no CSS injection needed */

@media (max-width: 680px) {
  .site-footer .logo.has-custom-logo img {
    height: 40px;
    max-width: 138px;
  }

  .site-header .logo.has-custom-logo img {
    height: 52px;
    max-width: 230px;
  }

  .site-header .logo > span:not(.sr-only)::before,
  .site-footer .logo > span:not(.sr-only)::before {
    font-size: 27px;
  }
}

/* Final override: compact custom logo header */
.site-header .header-inner {
  min-height: 78px;
}

.site-header .logo.has-custom-logo img {
  height: 56px;
  max-width: 290px;
  filter: drop-shadow(0 6px 14px rgba(31, 41, 74, .08));
}

@media (max-width: 680px) {
  .site-header .header-inner {
    min-height: 66px;
  }

  .site-header .logo.has-custom-logo img {
    height: 44px;
    max-width: 210px;
  }
}

/* Final header logo sizing */
.site-header .header-inner {
  min-height: 78px;
}

.site-header .logo.has-custom-logo img {
  height: 56px;
  max-width: 290px;
}

@media (max-width: 680px) {
  .site-header .header-inner {
    min-height: 66px;
  }

  .site-header .logo.has-custom-logo img {
    height: 44px;
    max-width: 210px;
  }
}

/* ===== Design Polish v2 — closer to mockup ===== */

/* Bigger radius everywhere */
:root {
  --radius: 16px;
}

/* More breathing room between sections */
.section { padding: 60px 0; }
.section + .section { padding-top: 16px; }

/* ── Header ── */
.site-header {
  box-shadow: 0 2px 20px rgba(17, 24, 64, .06);
}

.header-inner {
  min-height: 78px;
}

.btn.header-cta {
  padding: 11px 20px;
  border-radius: 12px;
  white-space: nowrap;
}

/* search icon styled */
.header-search::after {
  right: 16px;
  width: 15px;
  height: 15px;
  border-width: 2px;
  border-color: #8896b0;
}
.header-search::before {
  right: 13px;
  width: 9px;
  background: #8896b0;
}

/* ── Hero ── */
.hero {
  padding: 56px 0 44px;
  background: #fff;
  border-bottom: 1px solid #eaf0f8;
  overflow: hidden;
}

/* Hero blob now comes from inline SVG — hide old CSS oval */
.hero::before { display: none; }
.hero::after  { display: none; }

/* SVG blob */
.hero-blob {
  position: absolute;
  inset: -8% -5% -4% -8%;
  width: calc(100% + 14%);
  height: calc(100% + 12%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 950;
  line-height: 1.04;
}

h1::after {
  height: 6px;
  width: min(280px, 55%);
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #c39aff 100%);
}

.hero h1 {
  position: relative;
  width: fit-content;
  max-width: 760px;
}

.hero h1::before {
  content: "";
  position: absolute;
  top: -0.1em;
  right: 4px;
  width: 48px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 48' fill='none'%3E%3Cpath d='M15 8 L18 25' stroke='%23ffc400' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M31 12 L26 29' stroke='%23ffc400' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M43 25 L29 35' stroke='%23ffc400' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1::after {
  height: 16px;
  width: min(520px, 68%);
  margin-top: 4px;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 18' fill='none'%3E%3Cpath d='M4 12 C86 7 168 6 248 6 C340 6 430 7 516 10' stroke='%237c3aed' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M5 14 C96 10 190 9 278 9 C370 9 445 10 515 12' stroke='%23c39aff' stroke-width='3' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: #4f5b7a;
  margin-top: 16px;
}

.hero-actions {
  margin-top: 28px;
  gap: 14px;
}

.hero-actions .btn {
  border-radius: 12px;
  font-size: 15px;
  min-height: 50px;
  padding: 12px 28px;
}

.hero-actions .btn.primary {
  box-shadow: 0 14px 32px rgba(127, 57, 242, .32);
}

.hero-actions .btn.secondary {
  border-color: #cdb7ff;
}

/* Benefit row with real icons */
.benefit-row {
  margin-top: 28px;
  gap: 10px;
}

.benefit-row span {
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-size: 13px;
  font-weight: 800;
  border-color: #e4eaf5;
  box-shadow: 0 6px 16px rgba(18, 27, 74, .07);
  gap: 8px;
  background: #fff;
}

/* Replace colored dot with icon */
.benefit-row span::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
}

.benefit-row span:nth-child(1)::before {
  background-color: #e3f9e8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2322a63d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E");
}

.benefit-row span:nth-child(2)::before {
  background-color: #e3f0ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d7df2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='8' height='4' rx='0.5'/%3E%3Crect x='3' y='1' width='6' height='5' rx='0.5'/%3E%3Ccircle cx='9' cy='9' r='0.8' fill='%231d7df2'/%3E%3C/svg%3E");
}

.benefit-row span:nth-child(3)::before {
  background-color: #ffe8f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff5794'%3E%3Cpath d='M6 10.5C6 10.5 1 7 1 4a2.5 2.5 0 015 0 2.5 2.5 0 015 0c0 3-5 6.5-5 6.5z'/%3E%3C/svg%3E");
}

/* ── Hero art — big blob + stacked sheets ── */
.hero-art,
.hero-stack {
  position: relative;
  overflow: visible;
}

.hero-art {
  min-height: 460px;
}

.hero-stack {
  width: min(720px, 100%);
  height: clamp(430px, 36vw, 500px);
  min-height: 0;
  justify-self: end;
}

/* No secondary blob — the hero::before is the blob */
.hero-stack::before { display: none; }

/* Preview sheets — fan layout matching mockup */
.preview-sheet {
  position: absolute;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.preview-sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* ── 4-card fan layout — explicit reset of ALL positional props ── */

/* Card 1 — dog, top-left, tilted left */
.preview-sheet.one {
  width: min(180px, 26%); aspect-ratio: 210 / 297;
  left: 12%; right: auto;
  top: 4%; bottom: auto;
  transform: rotate(-7deg);
  z-index: 2;
}

/* Card 2 — car, top-center, tilted right */
.preview-sheet.two {
  width: min(172px, 25%); aspect-ratio: 210 / 297;
  left: 38%; right: auto;
  top: 8%;  bottom: auto;
  transform: rotate(5deg);
  z-index: 3;
}

/* Card 3 — dinosaur, bottom-center, in front */
.preview-sheet.three {
  width: min(205px, 29%); aspect-ratio: 210 / 297;
  left: 36%; right: auto;
  top: auto;  bottom: 7%;
  transform: rotate(-1deg);
  z-index: 6;
}

/* Card 4 — princess, top-right, tilted right */
.preview-sheet.four {
  width: min(180px, 26%); aspect-ratio: 210 / 297;
  left: auto; right: 7%;
  top: 14%;  bottom: auto;
  transform: rotate(7deg);
  z-index: 4;
}

/* ── Decorative deco elements ── */
.h-deco {
  position: absolute;
  display: block;
  pointer-events: none;
  line-height: 1;
}

/* ─ Stars — mix of outlined ☆ and filled ★ as in reference ─ */

/* top-center area: 2 yellow outlined stars */
.s-y1 { top: 5%; left: 49%; z-index: 1; }
.s-y1::before { content: "☆"; font-size: 26px; color: #FFD000; font-weight: 900; }

.s-y2 { top: 11%; right: 18%; z-index: 1; }
.s-y2::before { content: "☆"; font-size: 20px; color: #FFD000; font-weight: 900; }

/* orange star — right of center */
.s-o1 { top: 7%; right: 9%; z-index: 1; }
.s-o1::before { content: "★"; font-size: 18px; color: #FF9500; }

/* small blue sparkle diamonds */
.s-p1 { top: 26%; left: 9%; z-index: 1; }
.s-p1::before { content: "✦"; font-size: 14px; color: #5B9BFF; }

.s-b1 { bottom: 34%; left: 20%; z-index: 1; }
.s-b1::before { content: "✦"; font-size: 11px; color: #5B9BFF; opacity: .8; }

/* red star — left side */
.s-r1 { top: 56%; left: 12%; z-index: 1; }
.s-r1::before { content: "★"; font-size: 18px; color: #FF4545; }

/* small yellow star — bottom right */
.s-y3 { bottom: 20%; right: 9%; z-index: 1; }
.s-y3::before { content: "★"; font-size: 14px; color: #FFD000; }

/* ─ Heart — outline style ─ */
.hrt { bottom: 27%; left: 14%; z-index: 1; }
.hrt::before {
  content: "♡";
  font-size: 28px;
  color: #FF5B9A;
  filter: drop-shadow(0 1px 4px rgba(255,91,154,.3));
}

/* ─ Green scribble — SVG inline via span ─ */
.scribble {
  bottom: 23%;
  left: 25%;
  z-index: 1;
  width: 125px;
  height: 34px;
  display: block;
}

/* ─ Clouds ─ */
.cloud1 {
  top: 15%;
  left: 6%;
  z-index: 1;
  opacity: .85;
}
.cloud1::before {
  content: "";
  display: block;
  width: 112px;
  height: 52px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 52'%3E%3Cpath d='M12 36C6 36 2 32 3 26C4 20 9 17 15 18C17 10 25 6 33 8C39 1 51 2 58 10C66 4 80 6 86 16C96 16 108 23 108 33C108 39 103 43 96 42C91 49 80 49 75 42C70 49 58 49 53 42C47 50 34 49 29 41C24 45 16 44 12 36Z' fill='%23fff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 6px rgba(180,210,255,.5));
}

.cloud2 {
  top: 6%;
  right: 30%;
  z-index: 1;
  opacity: .75;
}
.cloud2 svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(180,210,255,.4));
}

/* ─ Crayons ─ */
.crayon-y {
  top: 5%;
  right: 2%;
  z-index: 8;
  transform: rotate(58deg);
  transform-origin: center bottom;
  filter: drop-shadow(-3px 6px 10px rgba(0,0,0,.18));
}

.crayon-b {
  bottom: 18%;
  right: 2%;
  z-index: 8;
  transform: rotate(-12deg);
  transform-origin: center bottom;
  filter: drop-shadow(-3px 6px 10px rgba(0,0,0,.15));
}

.crayon-p {
  top: auto;
  right: 23%;
  bottom: 14%;
  z-index: 7;
  transform: rotate(76deg);
  transform-origin: center bottom;
  filter: drop-shadow(-2px 5px 8px rgba(0,0,0,.15));
}

/* Category hero art */
.category-hero-art {
  min-height: 430px;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(620px, 100%);
}

.category-page-hero h1::before {
  display: none;
}

.category-hero-blob {
  position: absolute;
  inset: 2% 0 0 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.category-theme-card {
  position: relative;
  z-index: 2;
  width: min(255px, 48%);
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5ebf6;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(18, 27, 74, .13);
  transform: rotate(-2deg);
}

.category-theme-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Section headings ── */
.section-head {
  margin-bottom: 32px;
  align-items: flex-end;
}

.section-head h2::after,
.container > h2::after {
  width: 50px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #b899ff);
  margin-top: 10px;
}

.section-head p {
  margin: 10px 0 0;
  font-size: 15px;
  color: #647090;
}

/* ── Category cards ── */
.category-grid {
  gap: 16px;
}

.category-card {
  border-radius: 18px;
  border-color: #e8eef8;
  box-shadow: 0 6px 20px rgba(18, 27, 74, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #c4a8ff;
  box-shadow: 0 20px 44px rgba(127, 57, 242, .15);
}

.category-card a {
  min-height: 200px;
  padding: 20px 16px 16px;
  gap: 10px;
}

.category-card img {
  width: 150px;
  height: 126px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 950;
  color: var(--ink);
  margin-top: 2px;
}

.category-card p {
  font-size: 12px;
  font-weight: 750;
  color: #7a86a4;
  margin-top: 1px;
}

/* ── Coloring cards ── */
.coloring-grid {
  gap: 16px;
}

.home-popular .coloring-grid {
  gap: 16px;
}

.coloring-card {
  border-radius: 16px;
  border-color: #e8eef7;
  box-shadow: 0 6px 18px rgba(18, 27, 74, .08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.coloring-card:hover {
  transform: translateY(-4px);
  border-color: #c4a8ff;
  box-shadow: 0 20px 44px rgba(127, 57, 242, .15);
}

.card-preview {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #f8f6ff, #f0f8ff);
  padding: 14px;
  border-bottom: 1px solid #edf1f7;
}

.card-preview img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(18, 27, 74, .06);
}

.card-body {
  padding: 12px 14px 14px;
  gap: 10px;
}

.card-body h3 {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
}

.card-body h3 a:hover { color: var(--primary); }

.badges {
  gap: 6px;
}

.badges span {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  min-height: 24px;
}

.badges span:nth-child(1) {
  color: #1d7a30;
  background: #e6f9ec;
  border-color: #c8edcf;
}

.badges span:nth-child(2) {
  color: #1460c8;
  background: #e6f0ff;
  border-color: #c8dcff;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 2px;
}

.card-actions .btn {
  border-radius: 10px;
  min-height: 36px;
  font-size: 13px;
  padding: 7px 14px;
  font-weight: 900;
}

.card-actions .btn.secondary {
  border-color: #dde3f0;
  color: #3a4567;
}

.card-actions .btn.primary {
  gap: 4px;
}

/* ── Info strip ── */
.info-strip {
  background: transparent;
  border: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid #e5eaf6;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 27, 74, .08);
}

.strip-grid .strip-item {
  position: relative;
  padding: 28px 28px 28px 86px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.strip-grid .strip-item + .strip-item {
  border-left: 1.5px solid #e8edf7;
}

.strip-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}

.strip-age::before {
  background-color: #eef4ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d7df2' stroke-width='2'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3Ccircle cx='19' cy='11' r='2'/%3E%3Cpath d='M23 21v-1a2 2 0 00-2-2h-2'/%3E%3C/svg%3E");
}

.strip-difficulty::before {
  background-color: #f0f9ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d7df2' stroke-width='2'%3E%3Cpath d='M18 20V10M12 20V4M6 20v-6'/%3E%3C/svg%3E");
}

.strip-print::before {
  background-color: #eef4ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d7df2' stroke-width='2'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Crect x='6' y='14' width='12' height='8' rx='1'/%3E%3Crect x='6' y='9' width='12' height='8' rx='1'/%3E%3Cpath d='M6 18H4a2 2 0 01-2-2v-5a2 2 0 012-2h16a2 2 0 012 2v5a2 2 0 01-2 2h-2'/%3E%3C/svg%3E");
}

.strip-item h3 {
  font-size: 17px;
  font-weight: 950;
  color: var(--ink);
  margin-bottom: 6px;
}

.strip-item p {
  font-size: 14px;
  color: #647090;
  line-height: 1.55;
  margin: 0;
}


/* old strip-grid > div overrides no longer apply */
.strip-grid div + div { border-left: 0; }

/* ── Collection / PDF Bundle cards ── */
.collection-grid {
  gap: 20px;
}

.collection-card {
  border-radius: 18px;
  border-color: #e5eaf5;
  box-shadow: 0 10px 32px rgba(18, 27, 74, .09);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  background: linear-gradient(120deg, #fffdf0 0%, #fff 50%, #f0fff5 100%);
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: #c4a8ff;
  box-shadow: 0 24px 50px rgba(127, 57, 242, .14);
}

.collection-card .card-preview {
  border-radius: 0;
  border-right: 1.5px solid #eaeef7;
  background: linear-gradient(135deg, #f8f5ff, #f5fbff);
  padding: 20px;
}

.collection-card .card-body {
  padding: 24px 26px;
  gap: 14px;
}

.collection-card h3 {
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
}

.collection-card .card-body > p {
  font-size: 14px;
  color: #647090;
  line-height: 1.55;
  margin: 0;
}

.collection-meta {
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.collection-meta strong {
  font-size: 26px;
  font-weight: 950;
  color: #1a9437;
}

.collection-card .btn.primary {
  border-radius: 12px;
  min-height: 46px;
  font-size: 15px;
}

/* PDF bundle label badge */
.collection-grid .collection-card:first-child::before {
  content: "POPULAR";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(135deg, #ffb20f, #ff9a00);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 178, 15, .4);
}

.collection-card {
  position: relative;
}

/* ── FAQ ── */
.faq-section .section-head {
  margin-bottom: 24px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.faq-list .faq-item {
  background: #fff;
  border: 1.5px solid #e5ebf6;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(18, 27, 74, .06);
  overflow: hidden;
  padding: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item[open] {
  border-color: #cbb8ff;
  box-shadow: 0 8px 28px rgba(127, 57, 242, .1);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
  font-size: 15px;
  color: var(--ink);
  user-select: none;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-summary > span:first-child {
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}

.faq-chevron::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform .2s ease;
}

.faq-item[open] .faq-chevron {
  background: var(--primary);
  transform: none;
}

.faq-item[open] .faq-chevron::after {
  border-color: #fff;
  transform: rotate(-135deg) translate(-1px, -2px);
}

.faq-answer {
  padding: 0 20px 14px;
}

.faq-answer p {
  margin: 0;
  color: #647090;
  font-size: 15px;
  line-height: 1.65;
}


/* ── Footer improvements ── */
.site-footer {
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-top: 1.5px solid #e8edf7;
  margin-top: 32px;
}

.footer-grid {
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-grid > div:first-child p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 260px;
}

.site-footer h2 {
  font-size: 15px;
  font-weight: 950;
  color: var(--ink);
  margin-bottom: 16px;
}

.site-footer a:not(.logo) {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin: 11px 0;
  color: #647090;
  transition: color .15s;
}

.site-footer a:not(.logo):hover { color: var(--primary); }

.newsletter {
  gap: 12px;
}

.newsletter input {
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 18px;
  border-color: #dde4f0;
}

.newsletter .btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
}

.footer-bottom {
  font-size: 13px;
  padding: 18px 0 24px;
  color: #8896b4;
  border-top-color: #eaeff8;
}

/* ── Responsive adjustments for new styles ── */
@media (max-width: 1000px) {
  .strip-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .strip-grid .strip-item {
    border-left: 0 !important;
    border-top: 1.5px solid #e8edf7;
  }
  .strip-grid .strip-item:first-child {
    border-top: 0;
  }
  .collection-card { grid-template-columns: 1fr; }
  .collection-card .card-preview { border-right: 0; border-bottom: 1.5px solid #eaeef7; min-height: 200px; }
  /* Hero on tablet — stack layout, keep art visible */
  .hero::before { inset: 50% -6% -4% 14%; border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%; }
  .hero-stack { width: min(680px, 100%); height: 430px; min-height: 0; justify-self: center; }
  .category-hero-art { width: min(620px, 100%); min-height: 390px; justify-self: center; }
  .category-theme-card { width: min(235px, 44%); }
  .preview-sheet.one  { width:min(160px, 26%); left:12%; right:auto; top:4%; bottom:auto; transform:rotate(-7deg); }
  .preview-sheet.two  { width:min(152px, 25%); left:38%; right:auto; top:8%; bottom:auto; transform:rotate(5deg); }
  .preview-sheet.three{ width:min(180px, 29%); left:36%; right:auto; top:auto; bottom:7%; transform:rotate(-1deg); }
  .preview-sheet.four { width:min(160px, 26%); left:auto; right:7%; top:14%; bottom:auto; transform:rotate(7deg); }
  .h-deco { display: none; }
}

@media (max-width: 680px) {
  /* Hero mobile */
  .hero { padding: 36px 0 32px; }
  .hero::before { inset: 48% -8% -4% 10%; }
  .hero h1::before {
    top: -18px;
    right: 12px;
    width: 38px;
    height: 32px;
  }
  .hero h1::after {
    width: min(260px, 72%);
    height: 13px;
    margin-top: 3px;
  }
  .hero-stack { width: min(460px, 100%); height: 300px; min-height: 0; }
  .category-hero-art { min-height: 300px; width: min(460px, 100%); }
  .category-theme-card { width: min(180px, 48%); padding: 14px; border-radius: 16px; }
  .preview-sheet { border-radius: 12px; padding: 8px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
  .preview-sheet.one  { width:25%; left:12%; right:auto; top:7%; bottom:auto; transform:rotate(-7deg); }
  .preview-sheet.two  { width:24%; left:38%; right:auto; top:10%; bottom:auto; transform:rotate(5deg); }
  .preview-sheet.three{ width:28%; left:36%; right:auto; top:auto; bottom:7%; transform:rotate(-1deg); }
  .preview-sheet.four { width:25%; left:auto; right:7%; top:16%; bottom:auto; transform:rotate(7deg); }
  .hero-actions .btn { min-height: 46px; padding: 11px 20px; }
  .benefit-row span { font-size: 12px; padding: 7px 11px 7px 9px; }
  .strip-item { padding: 20px 20px 20px 76px; }
  .strip-item::before { left: 18px; width: 40px; height: 40px; }
  .strip-item h3 { font-size: 15px; }
  .strip-item p { font-size: 13px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-card a { min-height: 176px; padding: 14px 10px 12px; }
  .category-card img { width: 104px; height: 92px; }
  .category-card h3 { font-size: 13px; }
  .coloring-grid { gap: 12px; }
  .home-popular .coloring-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .faq-summary { font-size: 14px; padding: 11px 16px; }
  .faq-answer { padding: 0 16px 12px; }
}

@media (max-width: 420px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .home-popular .coloring-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Logo text size mobile fix */
@media (max-width: 680px) {
  .site-header .logo > span:not(.sr-only),
  .site-footer .logo > span:not(.sr-only) {
    font-size: 24px;
  }
  .hero h1 { font-size: 40px; }
  .hero .benefit-row span { font-size: 12px; }
}

/* Preview page */
.preview-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, .06), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(47, 128, 237, .05), transparent 22%),
    #fff;
}

.preview-hero-section {
  padding-top: 28px;
}

.preview-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  gap: 56px;
  align-items: center;
}

.preview-art-panel {
  min-height: 500px;
  display: grid;
  align-items: center;
}

.preview-page .print-preview {
  position: relative;
  overflow: visible;
  min-height: 478px;
  padding: 32px 34px 24px;
  border: 0;
  background: transparent;
}

.preview-page .print-preview::before {
  inset: 0 7% 40px 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 430'%3E%3Cpath d='M70 100C108 42 170 33 230 55C280 18 356 28 390 82C460 80 508 132 496 200C526 255 488 332 416 338C385 390 312 397 264 366C214 398 140 382 118 328C51 312 20 248 47 191C22 155 34 118 70 100Z' fill='%23f0ebff'/%3E%3C/svg%3E");
  border-radius: 0;
}

.preview-page .a4-page {
  position: relative;
  z-index: 2;
  display: block;
  width: min(330px, 70%);
  max-width: none;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #d8deea;
  border-radius: 12px;
  box-shadow: 0 20px 42px rgba(18, 27, 74, .16);
}

.preview-page .a4-page::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 58px;
  height: 58px;
  border-radius: 16px 0 12px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 49%, #d8dde8 50%, #fff 70%);
  box-shadow: -5px -5px 12px rgba(18, 27, 74, .12);
}

.preview-page .helper-text {
  position: relative;
  z-index: 2;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  min-height: 38px;
  padding: 8px 20px;
  border: 1px solid #e1e7f2;
  border-radius: 999px;
  background: #fff;
  color: #68738d;
  box-shadow: 0 10px 24px rgba(18, 27, 74, .08);
}

.preview-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  font-weight: 900;
}

.preview-deco.star.purple { left: 8%; top: 25%; color: var(--primary); font-size: 24px; }
.preview-deco.star.yellow { left: 9%; top: 39%; color: #ffba18; font-size: 23px; }
.preview-deco.star.blue { right: 11%; top: 24%; color: #5b9bff; font-size: 25px; }
.preview-deco.star.pink { right: 9%; bottom: 30%; color: #ff5b9a; font-size: 24px; }
.preview-deco.heart { left: 7%; bottom: 29%; color: #ff7eb2; font-size: 52px; transform: rotate(-12deg); }
.preview-deco.squiggle {
  left: 8%;
  bottom: 13%;
  width: 90px;
  height: 42px;
  background: repeating-linear-gradient(155deg, transparent 0 8px, #71c85c 9px 14px, transparent 15px 23px);
  border-radius: 999px;
  transform: rotate(-22deg);
  opacity: .9;
}

.preview-info-card {
  padding: 28px;
  border-color: #e4eaf4;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(18, 27, 74, .1);
}

.preview-info-card h1 {
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 1.02;
}

.preview-info-card h1::after {
  display: none;
}

.preview-info-card h1 span {
  color: #ff5b9a;
  font-size: .72em;
  vertical-align: top;
}

.preview-info-card > p {
  color: #303955;
  font-weight: 650;
  margin: 0;
}

.preview-info-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-info-list div {
  min-height: 64px;
  padding: 12px 14px 12px 52px;
  position: relative;
  background: #f7f8fc;
  border-radius: 12px;
}

.preview-info-list div::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.28);
}

.preview-info-list div:nth-child(1)::before { background: #43c968; }
.preview-info-list div:nth-child(2)::before { background: #2f80ed; }
.preview-info-list div:nth-child(3)::before { background: #7c3aed; }
.preview-info-list div:nth-child(4)::before { background: #ffba18; }
.preview-info-list div:nth-child(5)::before { background: #ff5b9a; }

.preview-info-list small {
  color: #303955;
  font-size: 12px;
  font-weight: 750;
}

.preview-quality-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-quality-badges span {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}

.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.preview-actions .btn:first-child {
  grid-column: auto;
}

.preview-actions .btn {
  min-height: 58px;
  border-radius: 10px;
}

.preview-actions .like-form {
  display: grid;
  min-height: 58px;
}

.preview-actions .like-form .btn {
  height: 100%;
  width: 100%;
}

.like-button .icon {
  color: #e91e63;
  fill: currentColor;
}

.like-button.liked {
  border-color: #ffc1d6;
  background: #fff4f8;
  color: #be1452;
}

.like-message {
  display: none;
  font-size: 11px;
  font-weight: 800;
  color: #7a86a4;
  text-align: center;
}

.like-message:not(:empty) {
  display: block;
  grid-column: 1 / -1;
}

.preview-actions .btn:nth-child(1),
.preview-actions .btn:nth-child(2) {
  font-size: 16px;
}

.preview-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: 14px;
}

.preview-stats span {
  display: grid;
  gap: 4px;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid #e4eaf4;
}

.preview-stats span:last-child {
  border-right: 0;
}

.preview-stats strong {
  color: var(--ink);
}

.preview-stats span:first-child strong {
  color: #ffba18;
  letter-spacing: 2px;
}

.preview-detail-section {
  padding-top: 24px;
}

.preview-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: 72px;
  align-items: start;
}

.preview-page .tabs {
  margin-top: 0;
}

.preview-page .tab-buttons {
  margin-bottom: 18px;
}

.preview-page .tab-buttons button {
  font-size: 17px;
  padding: 14px 20px;
}

.preview-page .tab-panel {
  font-size: 16px;
  line-height: 1.7;
}

.preview-page .tab-panel ul,
.preview-page .print-info ul {
  padding-left: 0;
  list-style: none;
}

.preview-page .tab-panel li,
.preview-page .print-info li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}

.preview-page .tab-panel li::before,
.preview-page .print-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.65);
}

.preview-page .print-info {
  position: relative;
  min-height: 240px;
  padding: 30px 220px 30px 30px;
  border-radius: 14px;
  overflow: hidden;
}

.preview-page .print-info::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 145px;
  height: 100px;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(#fff 0 0) 42px 0 / 66px 42px no-repeat,
    linear-gradient(#2f80ed, #7c8cff);
  box-shadow: 0 14px 28px rgba(47, 128, 237, .22);
}

.related-preview-section {
  padding-top: 18px;
}

.related-preview-section .coloring-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.related-preview-section .card-preview {
  aspect-ratio: 1 / 1.08;
}

.related-preview-section .card-body {
  padding: 12px;
}

.related-preview-section .card-body h3 {
  font-size: 13px;
}

.related-preview-section .badges span {
  font-size: 11px;
  padding: 4px 8px;
}

.related-preview-section .card-actions .btn {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.preview-page .faq-section {
  padding-top: 24px;
}

.preview-trust-section {
  padding-top: 0;
}

@media (max-width: 1120px) {
  .preview-hero-grid,
  .preview-detail-grid {
    grid-template-columns: 1fr;
  }

  .preview-art-panel {
    min-height: auto;
  }

  .preview-page .print-preview {
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  .preview-hero-section {
    padding-top: 18px;
  }

  .preview-hero-grid {
    gap: 24px;
  }

  .preview-page .print-preview {
    min-height: 390px;
    padding: 34px 10px 22px;
  }

  .preview-page .a4-page {
    width: min(280px, 78%);
    padding: 10px;
  }

  .preview-info-card {
    padding: 24px;
  }

  .preview-info-card h1 {
    font-size: 38px;
  }

  .preview-info-list,
  .preview-quality-badges,
  .preview-actions,
  .preview-stats,
  .preview-detail-grid {
    grid-template-columns: 1fr;
  }

  .preview-stats span {
    border-right: 0;
    border-bottom: 1px solid #e4eaf4;
    padding: 12px 0;
  }

  .preview-stats span:last-child {
    border-bottom: 0;
  }

  .preview-page .print-info {
    padding: 24px;
  }

  .preview-page .print-info::after {
    display: none;
  }

  .related-preview-section .coloring-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Smart search */
.smart-search {
  position: relative;
  min-width: 0;
}

.header-search.smart-search::before,
.header-search.smart-search::after,
.header-search.smart-search label.sr-only::before {
  display: none;
}

.header-search.smart-search label.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  font-size: 1px;
  opacity: 1;
}

.smart-search__box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 50px;
  border: 1.5px solid #dfe6f2;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 27, 74, .08);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.smart-search:focus-within .smart-search__box {
  border-color: #7f39f2;
  box-shadow: 0 0 0 4px rgba(127, 57, 242, .13), 0 14px 30px rgba(18, 27, 74, .1);
}

.smart-search__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  color: #66728e;
}

.smart-search__icon .icon {
  width: 19px;
  height: 19px;
}

.smart-search input[type="search"] {
  min-width: 0;
  min-height: 48px;
  padding: 0 6px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  outline: none;
}

.smart-search input[type="search"]::placeholder {
  color: #8a94ac;
}

.smart-search input[type="search"]::-webkit-search-cancel-button,
.smart-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.smart-search__clear {
  display: inline-grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}

.smart-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  line-height: 1;
}

.smart-search__clear {
  width: 38px;
  height: 38px;
  margin-right: 2px;
  border-radius: 999px;
  color: #74809a;
}

.smart-search__clear:hover,
.smart-search__clear:focus-visible {
  background: #f1f4fa;
  color: var(--primary);
}

.smart-search__clear .icon {
  width: 17px;
  height: 17px;
}

.smart-search__submit {
  min-width: 48px;
  height: 40px;
  margin-right: 5px;
  padding: 0 16px;
  gap: 7px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #7338e9 0%, #984df7 100%);
  box-shadow: 0 9px 18px rgba(127, 57, 242, .24);
}

.smart-search__submit .icon {
  width: 17px;
  height: 17px;
  margin: 0;
}

.smart-search--header .smart-search__submit {
  width: 48px;
  padding: 0;
}

.smart-search--header .smart-search__submit span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.smart-search__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(420px, calc(100vh - 130px));
  overflow: auto;
  padding: 10px;
  border: 1.5px solid #e3e9f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(17, 24, 64, .18);
}

.smart-search__section + .smart-search__section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf1f8;
}

.smart-search__heading {
  padding: 4px 8px 8px;
  color: #68738d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.smart-search__items {
  display: grid;
  gap: 4px;
}

.smart-search__item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.smart-search__item:hover,
.smart-search__item.is-active {
  background: #f5f2ff;
}

.smart-search__item-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #eef4ff;
  position: relative;
  overflow: hidden;
}

.smart-search__item-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid #1d7df2;
  border-radius: 50%;
}

.smart-search__item-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #1d7df2;
  transform: rotate(45deg);
}

.smart-search__item--category .smart-search__item-icon {
  background: #eaf9e8;
}

.smart-search__item--category .smart-search__item-icon::before {
  inset: 8px 9px;
  border-color: #25a84b;
  border-radius: 4px;
}

.smart-search__item--category .smart-search__item-icon::after {
  right: 10px;
  bottom: 9px;
  background: #25a84b;
}

.smart-search__item--history .smart-search__item-icon {
  background: #fff6df;
}

.smart-search__item--history .smart-search__item-icon::before {
  inset: 8px;
  border-color: #e59d08;
}

.smart-search__item--history .smart-search__item-icon::after {
  right: 11px;
  bottom: 15px;
  width: 7px;
  height: 2px;
  background: #e59d08;
  transform: rotate(0);
}

.smart-search__item.has-image .smart-search__item-icon {
  background: #fff;
  border: 1px solid #e4eaf5;
  box-shadow: 0 5px 14px rgba(18, 27, 74, .08);
}

.smart-search__item.has-image .smart-search__item-icon::before,
.smart-search__item.has-image .smart-search__item-icon::after {
  display: none;
}

.smart-search__item.has-image .smart-search__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
}

.smart-search__item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.smart-search__item-title,
.smart-search__item-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-search__item-title {
  font-size: 14px;
  font-weight: 950;
}

.smart-search__item-meta {
  color: #66728e;
  font-size: 12px;
  font-weight: 700;
}

.smart-search__item-type {
  justify-self: end;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #5a647d;
  background: #f1f4fa;
  font-size: 11px;
  font-weight: 900;
}

.smart-search__empty {
  padding: 18px 10px;
  color: #66728e;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.search-toolbar {
  align-items: center;
  gap: 18px;
}

.search-toolbar__query {
  flex: 1 1 520px;
  min-width: min(100%, 320px);
}

.search-toolbar select {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 14px;
}

.smart-search--page .smart-search__box {
  min-height: 54px;
}

.smart-search--page .smart-search__submit {
  min-width: 128px;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

@media (max-width: 1120px) {
  .main-nav.open ~ .header-search.smart-search {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .search-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-toolbar__query,
  .search-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .smart-search__box {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .smart-search__submit,
  .smart-search--page .smart-search__submit {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .smart-search__submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .smart-search__panel {
    max-height: min(390px, calc(100vh - 120px));
    border-radius: 14px;
  }

  .smart-search__item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .smart-search__item-type {
    display: none;
  }

  .site-header .logo > span:not(.sr-only),
  .site-footer .logo > span:not(.sr-only) {
    font-size: 0;
  }

  .site-header .logo > span:not(.sr-only)::before,
  .site-footer .logo > span:not(.sr-only)::before {
    font-size: 27px;
  }
}

/* Final override: compact custom logo header */
.site-header .header-inner {
  min-height: 78px;
}

.site-header .logo.has-custom-logo img {
  height: 56px;
  max-width: 290px;
}

@media (max-width: 680px) {
  .site-header .header-inner {
    min-height: 66px;
  }

  .site-header .logo.has-custom-logo img {
    height: 44px;
    max-width: 210px;
  }
}
