/* Kinder Zone design system — Cute & Colorful. Brand tokens from the approved identity. */
:root {
  --coral: #FF8A76; --sun: #FFD166; --aqua: #71C9CE; --lav: #A78BFA; --mint: #8BCF9B; --indigo: #514080; --cream: #FFF8EE;
  --coral-soft: #FFE6E0; --sun-soft: #FFF3D1; --aqua-soft: #DDF3F4; --lav-soft: #EEE8FE; --mint-soft: #E3F4E7;
  --ink: #2E2550; --muted: #6E6790; --line: #ECE4F7; --surface: #FFFFFF; --bg: var(--cream);
  --danger: #D9534F; --radius: 18px; --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(81, 64, 128, .10); --shadow-sm: 0 2px 10px rgba(81, 64, 128, .08);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-logo: 'Baloo 2', 'Nunito', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; color: var(--indigo); font-weight: 800; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); } h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .right { text-align: right; }
.stack > * + * { margin-top: 1rem; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .spread { justify-content: space-between; }
.grid { display: grid; gap: 20px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Logo wordmark (placeholder until the official logo file is supplied at assets/img/logo.svg) */
.logo { font-family: var(--font-logo); font-weight: 800; font-size: 1.7rem; letter-spacing: -.5px; display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); }
.logo:hover { text-decoration: none; }
.logo img { height: 42px; width: auto; }
.logo .k1 { color: var(--coral); } .logo .k2 { color: var(--aqua); } .logo .k3 { color: var(--lav); }
.tagline { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* Header */
.site-header { background: var(--surface); border-bottom: 3px solid var(--sun); position: sticky; top: 0; z-index: 20; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.search { flex: 1; display: flex; max-width: 520px; }
.search input { flex: 1; border-radius: 999px 0 0 999px; border-right: 0; }
.search button { border-radius: 0 999px 999px 0; }
.nav-links { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-weight: 700; color: var(--indigo); }
.nav-links a:hover { background: var(--lav-soft); text-decoration: none; }
.cart-count { background: var(--coral); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 7px; margin-left: 4px; }
.cat-strip { background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.cat-strip .container { display: flex; gap: 8px; padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--indigo); }
.chip:hover, .chip.active { background: var(--sun-soft); border-color: var(--sun); text-decoration: none; }
@media (max-width: 760px) { .site-header .bar { flex-wrap: wrap; padding: 8px 0; } .search { order: 3; max-width: none; flex-basis: 100%; } .nav-links a span.lbl { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; cursor: pointer; background: var(--indigo); color: #fff; text-decoration: none; transition: transform .1s, box-shadow .15s; min-height: 44px; }
.btn:hover { text-decoration: none; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn-coral { background: var(--coral); } .btn-aqua { background: var(--aqua); color: var(--ink); } .btn-mint { background: var(--mint); color: var(--ink); } .btn-sun { background: var(--sun); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--line); } .btn-ghost:hover { background: var(--lav-soft); }
.btn-danger { background: var(--danger); } .btn-sm { padding: 6px 14px; min-height: 34px; font-size: .875rem; } .btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.linkbtn { background: none; border: 0; color: var(--indigo); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* Forms */
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--lav); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; } .field .hint { font-size: .825rem; color: var(--muted); margin-top: 4px; }
.field .err { color: var(--danger); font-size: .85rem; margin-top: 4px; font-weight: 700; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; } .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--indigo); }
.form-card { max-width: 520px; margin: 32px auto; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; border: 1px solid var(--line); }
.card h2, .card h3 { margin-top: 0; }
.stat { border-radius: var(--radius); padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat .v { font-size: 1.6rem; font-weight: 800; color: var(--indigo); } .stat .k { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.stat.coral { background: var(--coral-soft); } .stat.sun { background: var(--sun-soft); } .stat.aqua { background: var(--aqua-soft); } .stat.lav { background: var(--lav-soft); } .stat.mint { background: var(--mint-soft); }

/* Product cards */
.pcard { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .cover { aspect-ratio: 3/4; background: linear-gradient(135deg, var(--lav-soft), var(--aqua-soft)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard .cover .ph { font-family: var(--font-logo); font-size: 2.4rem; color: var(--lav); }
.pcard .body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .title { font-weight: 800; color: var(--ink); line-height: 1.3; }
.pcard .by { font-size: .85rem; color: var(--muted); }
.pcard .price { font-weight: 800; color: var(--coral); font-size: 1.1rem; margin-top: auto; }
.stars { color: #F5A623; letter-spacing: 1px; font-size: .9rem; }

/* Hero / banners */
.hero { border-radius: 28px; padding: clamp(24px, 5vw, 56px); margin: 24px 0; position: relative; overflow: hidden; background: var(--coral-soft); }
.hero h1 { font-family: var(--font-logo); font-size: clamp(1.9rem, 5vw, 3.2rem); margin-bottom: .3em; }
.hero p { font-size: 1.1rem; max-width: 560px; color: var(--ink); }
.hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -60px; top: -60px; background: rgba(255,255,255,.45); }
.hero.tone-sun { background: var(--sun-soft); } .hero.tone-aqua { background: var(--aqua-soft); } .hero.tone-lav { background: var(--lav-soft); } .hero.tone-mint { background: var(--mint-soft); }
.age-tile { border-radius: var(--radius); padding: 22px 16px; text-align: center; font-weight: 800; color: var(--indigo); display: block; }
.age-tile:nth-child(5n+1) { background: var(--coral-soft); } .age-tile:nth-child(5n+2) { background: var(--sun-soft); } .age-tile:nth-child(5n+3) { background: var(--aqua-soft); } .age-tile:nth-child(5n+4) { background: var(--lav-soft); } .age-tile:nth-child(5n+5) { background: var(--mint-soft); }
.age-tile .big { font-family: var(--font-logo); font-size: 1.6rem; display: block; }
.section { margin: 40px 0; } .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }

/* Badges & alerts */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.badge-mint { background: var(--mint-soft); color: #2F7A45; } .badge-sun { background: var(--sun-soft); color: #8A6200; } .badge-coral { background: var(--coral-soft); color: #B0402E; } .badge-lav { background: var(--lav-soft); color: #5B3FB8; } .badge-aqua { background: var(--aqua-soft); color: #1F7479; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 700; border: 2px solid; }
.alert-success { background: var(--mint-soft); border-color: var(--mint); color: #24603A; } .alert-error { background: var(--coral-soft); border-color: var(--coral); color: #8E2F20; }
.alert-info { background: var(--aqua-soft); border-color: var(--aqua); color: #1F5F63; } .alert-warn { background: var(--sun-soft); border-color: var(--sun); color: #7A5600; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); } .empty .ico { font-size: 2.6rem; display: block; margin-bottom: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-weight: 800; color: var(--indigo); white-space: nowrap; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; } .kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; }
.totals td { padding: 6px 0; border: 0; } .totals tr.grand td { font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--line); padding-top: 10px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; }
.pagination .current { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* Footer */
.site-footer { background: var(--indigo); color: #E8E2FF; margin-top: 64px; padding: 40px 0 24px; }
.site-footer a { color: #fff; } .site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: var(--sun); font-size: 1rem; } .site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 6px 0; }
.site-footer .logo { color: #fff; }

/* Panel (seller/admin) layout */
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--indigo); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { color: #fff; font-size: 1.4rem; margin: 0 8px 4px; } .sidebar .area-label { margin: 0 8px 18px; font-size: .78rem; color: var(--sun); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sidebar nav a { display: block; padding: 9px 12px; border-radius: 12px; color: #E8E2FF; font-weight: 700; font-size: .94rem; }
.sidebar nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; } .sidebar nav a.active { background: var(--sun); color: var(--ink); }
.sidebar nav .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #B9B0E0; margin: 16px 12px 6px; font-weight: 800; }
.panel-main { padding: 24px clamp(16px, 3vw, 36px); min-width: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; } .sidebar { position: fixed; inset: 0 30% 0 0; height: 100vh; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; } .menu-toggle { display: inline-flex; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; } .toolbar .field { margin: 0; min-width: 160px; }
.inline-form { display: inline; }

/* Reader */
.reader { background: #3B335E; min-height: 100vh; color: #fff; }
.reader-bar { position: sticky; top: 0; z-index: 5; background: var(--indigo); display: flex; gap: 10px; align-items: center; padding: 10px 16px; flex-wrap: wrap; }
.reader-bar .title { font-weight: 800; flex: 1; min-width: 160px; }
.reader-stage { display: flex; justify-content: center; padding: 20px 8px; }
.reader-stage canvas { background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.35); border-radius: 6px; max-width: 100%; height: auto !important; }
.reader input[type=number] { width: 80px; min-height: 36px; padding: 6px 8px; }

dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: 440px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(46, 37, 80, .45); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; } .steps span { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; } .steps span.done { background: var(--mint-soft); border-color: var(--mint); }
.prose { max-width: 760px; } .prose p { white-space: pre-line; }
.prod-hero { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 32px; margin-top: 24px; }
@media (max-width: 760px) { .prod-hero { grid-template-columns: 1fr; } }
.prod-hero .cover { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--lav-soft), var(--aqua-soft)); aspect-ratio: 3/4; }
.prod-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.price-big { font-size: 2rem; font-weight: 800; color: var(--coral); }
