:root {
  --pink: #E82585;
  --pink-soft: #FFF0F7;
  --purple: #7A4FA3;
  --yellow: #FFD76A;
  --blue: #DDF3FF;
  --green: #DDF5E6;
  --white: #FFFFFF;
  --text: #2D2433;
  --muted: #6F6575;
  --border: #EDE5EA;
  --shadow: 0 20px 45px rgba(45, 36, 51, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Nunito Sans", Arial, sans-serif;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--pink);
}
.brand img {
  display: block;
  width: auto;
  height: 72px;
  max-width: min(320px, 58vw);
  object-fit: contain;
}
.footer-brand img {
  height: 96px;
  max-width: 320px;
}
.brand-mark, .butterfly, .cover-butterfly {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 32px;
  color: var(--white);
  background: var(--pink);
  border-radius: 50% 50% 45% 45%;
  font-weight: 800;
  box-shadow: inset 18px 0 rgba(122, 79, 163, .32);
}
.main-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}
.main-nav a:hover { color: var(--pink); }
.cart-button, .icon-button {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  min-height: 42px;
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  color: var(--text);
  font-weight: 800;
}
.cart-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.cart-button span {
  display: inline-grid;
  place-items: center;
}
.cart-button [data-cart-count] {
  min-width: 24px;
  min-height: 24px;
  color: var(--white);
  background: var(--pink);
  border-radius: 999px;
}
.icon-button { min-width: 42px; font-size: 1.4rem; }
.mobile-only { display: none; }

.section { padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px); }
.section-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.eyebrow {
  color: var(--pink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3 {
  font-family: "Baloo 2", cursive;
  line-height: 1.04;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); max-width: 860px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.65; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
}
.button.primary { color: var(--white); background: var(--pink); box-shadow: 0 12px 24px rgba(232, 37, 133, .24); }
.button.secondary { color: var(--pink); background: var(--pink-soft); border-color: #ffd4e9; }
.button.full { width: 100%; }

.coupon-banner {
  padding: 10px 18px;
  text-align: center;
  color: var(--text);
  background: var(--yellow);
  font-weight: 800;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
  min-height: min(720px, calc(100vh - 116px));
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(221, 243, 255, .95), transparent 24%),
    radial-gradient(circle at 58% 8%, rgba(255, 215, 106, .22), transparent 18%),
    linear-gradient(180deg, var(--pink-soft), var(--white));
}
.hero h1 { font-size: clamp(2.55rem, 5.6vw, 4.9rem); }
.hero-copy p { max-width: 680px; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.hero-banner {
  display: block;
  width: min(100%, 680px);
  height: auto;
  object-fit: contain;
}

.quick-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
.quick-benefits article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 84px;
  padding: 16px;
  background: var(--white);
  text-align: center;
}
.quick-benefits span, .feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--purple);
  font-weight: 900;
}

.product-grid, .feature-grid, .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card, .feature-grid article, .testimonial-grid article, .step-grid article, .collection, .newsletter, .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover {
  display: grid;
  align-content: space-between;
  min-height: 210px;
  aspect-ratio: 3 / 4;
  padding: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.38), transparent 16%),
    linear-gradient(145deg, var(--cover), color-mix(in srgb, var(--cover), #2D2433 28%));
  border-radius: var(--radius);
  overflow: hidden;
}
.book-cover.image-cover {
  display: block;
  padding: 0;
  background: var(--pink-soft);
  box-shadow: inset 0 0 0 1px rgba(45, 36, 51, .06);
}
.book-cover.image-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover strong { font-family: "Baloo 2"; font-size: 1.5rem; line-height: 1.05; }
.book-cover small { font-weight: 800; opacity: .9; }
.book-cover-large { min-height: 480px; }
.tag {
  align-self: start;
  margin-top: 14px;
  padding: 6px 10px;
  color: var(--purple);
  background: var(--pink-soft);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
}
.meta, .price-row, .card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.meta { margin-top: auto; color: var(--muted); font-size: .92rem; }
.price-row { margin: 16px 0; }
.price-row span { color: var(--muted); text-decoration: line-through; }
.price-row strong { color: var(--pink); font-size: 1.5rem; }
.card-actions { align-items: stretch; }
.quick-link {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-weight: 800;
}

.collection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(100deg, var(--pink-soft), var(--blue));
}
.collection p { max-width: 760px; }
.feature-grid article, .testimonial-grid article, .step-grid article { padding: 22px; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step-grid span {
  display: block;
  font-family: "Baloo 2";
  font-size: 4rem;
  color: var(--pink);
}
.testimonials { background: var(--pink-soft); }
.stars { color: var(--yellow); letter-spacing: 1px; }

.faq [data-faq] { max-width: 920px; margin: auto; }
.faq-item { margin-bottom: 10px; overflow: hidden; }
.faq-item button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 18px;
  border: 0;
  background: var(--white);
  color: var(--text);
  font-weight: 900;
  text-align: left;
}
.faq-item div { padding: 0 18px 18px; }

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
  background: var(--green);
}
label { display: block; margin-bottom: 7px; font-weight: 900; }
input, select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.inline-form { display: flex; gap: 10px; }
.form-message { min-height: 22px; margin: 8px 0 0; font-weight: 800; }
.form-message.success { color: #237446; }
.form-message.error { color: #B5234B; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--text);
}
.site-footer p, .site-footer a, .site-footer small { color: rgba(255,255,255,.76); }
.site-footer a { display: block; margin: 8px 0; }
.site-footer small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; }

.cart-overlay, .quick-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(45, 36, 51, .42);
}
.cart-overlay.is-open, .quick-modal.is-open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100vw);
  height: 100dvh;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform .24s ease;
  overflow-y: auto;
}
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .book-cover { min-height: 96px; padding: 10px; }
.cart-item .book-cover.image-cover { padding: 0; }
.cart-item .book-cover strong, .cart-item .book-cover small, .cart-item .cover-butterfly { display: none; }
.quantity { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.quantity button, .coupon-box button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 900;
}
.quantity button { min-width: 34px; }
.quantity .remove { padding: 0 10px; }
.coupon-box, .totals { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.totals p { display: flex; justify-content: space-between; margin: 8px 0; }
.totals .grand { color: var(--text); font-size: 1.25rem; }
.empty-state {
  margin: 20px 0;
  padding: 18px;
  color: var(--muted);
  background: var(--pink-soft);
  border-radius: var(--radius);
}
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 90;
  display: grid;
  gap: 10px;
}
.toast {
  max-width: 320px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal-card {
  width: min(520px, calc(100vw - 28px));
  max-height: 88vh;
  overflow: auto;
  margin: 6vh auto;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
}
.modal-close { float: right; }
.back-top {
  position: fixed;
  z-index: 25;
  right: 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  box-shadow: var(--shadow);
}
.back-top { bottom: 24px; width: 44px; height: 44px; background: var(--purple); }
.cookie-notice {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 460px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cookie-notice button { border: 0; border-radius: var(--radius); background: var(--pink); color: var(--white); padding: 9px 12px; font-weight: 900; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .mobile-only { display: inline-grid; margin-left: auto; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    padding: 14px 0;
  }
  .main-nav.is-open { display: flex; }
  .cart-button { margin-left: 0; }
  .hero, .newsletter { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { min-height: auto; }
  .hero-banner { width: min(100%, 620px); }
  .quick-benefits, .product-grid, .feature-grid, .testimonial-grid, .step-grid, .site-footer { grid-template-columns: 1fr 1fr; }
  .collection { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .section { padding-inline: 16px; }
  .brand img { height: 58px; max-width: 220px; }
  .quick-benefits, .product-grid, .feature-grid, .testimonial-grid, .step-grid, .site-footer { grid-template-columns: 1fr; }
  .inline-form, .card-actions { flex-direction: column; }
  .hero-banner { width: 100%; }
  .cookie-notice { right: 12px; left: 12px; flex-direction: column; align-items: stretch; }
}
