:root {
  --ink: #2B1B3D; --lil: #E4D7FA; --apr: #FFB98A; --plum: #4A2A82; --bg: #FBF7FF;
  --mute: #5B4A70; --line: #E7DDF5; --err: #B3261E;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3, .logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -.02em; margin: 0; }
a { color: var(--plum); }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sec { max-width: 1240px; margin: 0 auto; padding: 56px 24px; }
.sec h2 { font-size: 40px; margin-bottom: 24px; }
.sub { color: var(--mute); font-size: 17px; margin: -12px 0 24px; }

/* header */
.top { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 20px; }
.logo { font-size: 28px; color: var(--plum); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav a:hover { background: var(--lil); }
.badge { background: var(--apr); color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 8px; font-weight: 800; }

/* buttons */
.btn { background: var(--plum); color: #fff; border: 0; border-radius: 999px; padding: 14px 30px; font-weight: 700; cursor: pointer; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: #3B2068; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 12px 28px; }
.btn.ghost:hover { background: var(--lil); }
.btn.sm { padding: 10px 20px; }
.btn.danger { background: #fff; color: var(--err); border: 2px solid var(--err); padding: 10px 22px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--plum); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; min-height: 44px; }

/* hero */
.hero { background: var(--lil); border-radius: 48px; margin-top: 20px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero .txt { flex: 1 1 420px; min-width: 0; }
.tag { display: inline-block; background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; color: var(--plum); }
.hero h1 { font-size: 72px; line-height: 1; margin: 22px 0 18px; letter-spacing: -.03em; }
.hero p { font-size: 19px; color: #46345C; max-width: 480px; margin: 0 0 30px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.heroart { position: relative; flex: 1 1 420px; min-width: 0; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.heroart .blob { position: absolute; width: 400px; height: 400px; max-width: 90%; border-radius: 50%; background: var(--apr); }
.heroart .packwrap { position: relative; transform: rotate(-5deg); }
.heroart .bubble { position: absolute; right: 2%; top: 6%; background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 10px 24px rgba(43,27,61,.15); }
.heroart .chip1 { position: absolute; left: 0; bottom: 12%; background: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 700; box-shadow: 0 10px 24px rgba(43,27,61,.12); }
.heroart .chip2 { position: absolute; right: 0; bottom: 4%; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 700; }
.marquee { background: var(--apr); margin-top: 48px; padding: 18px 24px; overflow: hidden; white-space: nowrap; text-align: center; font-weight: 800; letter-spacing: .12em; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { min-width: 0; background: #fff; border-radius: 36px; padding: 14px; border: 1px solid var(--line); }
.card .pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 240px; border-radius: 26px; text-decoration: none; }
.card .body { padding: 20px 12px 10px; }
.card h3 { font-size: 24px; }
.card .pack { color: var(--mute); margin: 4px 0 16px; }
.card .foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.price { font-weight: 800; font-size: 22px; }
.bg-diapers { background: #E4D7FA; } .bg-pants { background: #FFE3CF; } .bg-wipes { background: #DDF3E8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.fchip { background: #fff; color: var(--ink); border: 2px solid #D9C9F2; border-radius: 999px; padding: 10px 22px; font-weight: 700; cursor: pointer; min-height: 44px; }
.fchip[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }

/* sizes */
.sizes { display: flex; flex-wrap: wrap; gap: 16px; }
.size { flex: 1 1 150px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 20px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.size.hl { background: var(--apr); }
.size .ic { height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.size b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 800; }

/* steps */
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 260px; min-width: 0; background: #fff; border-radius: 32px; padding: 32px; border: 1px solid var(--line); }
.step .n { width: 52px; height: 52px; border-radius: 50%; background: var(--apr); display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; }
.step h3 { font-size: 24px; margin: 18px 0 8px; }
.step p { margin: 0; color: var(--mute); }

/* product page */
.pdp { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pdp .art { flex: 1 1 440px; min-width: 0; border-radius: 48px; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.pdp .info { flex: 1 1 420px; min-width: 0; }
.pdp h1 { font-size: 46px; line-height: 1.05; margin: 6px 0 12px; }
.pdp .big { font-weight: 800; font-size: 30px; margin-bottom: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.opt { background: #fff; color: var(--ink); border: 2px solid #D9C9F2; border-radius: 16px; min-width: 64px; padding: 12px 18px; font-weight: 800; cursor: pointer; min-height: 48px; }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 2px solid #D9C9F2; border-radius: 999px; background: #fff; }
.qty button { width: 48px; height: 48px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 36px; text-align: center; font-weight: 800; font-size: 18px; }
.totalrow { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.totalrow b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; }
.note { margin-top: 24px; background: var(--lil); border-radius: 24px; padding: 20px 24px; line-height: 1.9; font-weight: 600; }

/* cart + checkout */
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.line { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 16px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.line .thumb { flex: 0 0 130px; height: 110px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.line .mid { flex: 1 1 200px; min-width: 0; }
.line .mid b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; }
.line .qty button { width: 44px; height: 44px; }
.line .end { flex: 0 0 120px; text-align: right; font-weight: 800; font-size: 18px; }
.del { background: none; border: 0; color: var(--err); font-weight: 700; cursor: pointer; min-height: 44px; padding: 0; font-size: 14px; }
.summary { background: var(--lil); border-radius: 36px; padding: 28px; flex: 1 1 320px; min-width: 0; }
.summary h3 { font-size: 24px; margin-bottom: 12px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sumtotal { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; font-weight: 800; }
.sumtotal b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; }
.bar { height: 10px; background: #fff; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 10px; background: var(--plum); border-radius: 999px; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
form.f { background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 32px; flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
form.f > .field { flex: none; }
.two { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { padding: 14px 16px; border: 2px solid #D9C9F2; border-radius: 14px; background: #fff; color: #1A1A1A; font-weight: 400; }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-weight: 600; font-size: 13px; min-height: 0; }
.formerr { background: #FDECEA; border: 2px solid var(--err); color: var(--err); border-radius: 16px; padding: 12px 16px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success */
.ok { text-align: center; max-width: 760px; margin: 0 auto; }
.ok .code { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 36px; color: var(--plum); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 28px; text-align: left; margin-top: 28px; }
.box h3 { font-size: 22px; margin-bottom: 12px; }

/* faq */
details { border-top: 1px solid var(--line); padding: 6px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; color: var(--plum); line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { margin: 0 0 18px; color: #46345C; max-width: 620px; }
.help { background: var(--lil); border-radius: 36px; padding: 32px; flex: 1 1 300px; min-width: 0; }

/* footer + toast */
footer { background: var(--ink); color: #E4D7FA; padding: 40px 24px; margin-top: 40px; }
footer .in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer .logo { color: var(--apr); }
footer a { color: #E4D7FA; text-decoration: none; padding: 10px 12px; display: inline-block; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }

@media (max-width: 720px) {
  .top { border-radius: 28px; padding: 8px 12px 8px 20px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .nav a { padding: 10px 8px; }
  .hero { padding: 28px; border-radius: 32px; }
  .hero h1 { font-size: 44px; }
  .sec h2 { font-size: 32px; }
  .pdp h1 { font-size: 34px; }
  .pdp .art { min-height: 320px; border-radius: 32px; }
  .heroart { min-height: 380px; }
  form.f { padding: 20px; }
  .line .end { text-align: left; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.card .pic, .pdp .art, .line .thumb { overflow: hidden; }
