/* Mummy Kaki — playful family: rounded everything, mint + sunshine, sticker badges, category tiles */
:root {
  --ink: #2d3047;
  --ink-2: #555a78;
  --muted: #8b8fa8;
  --line: #ece7da;
  --bg: #fffdf6;
  --card: #ffffff;
  --mint: #2bb3a3;
  --mint-2: #1f8f82;
  --mint-soft: #dff5f1;
  --sun: #ffd166;
  --sun-soft: #fff4d6;
  --coral: #ff7b6b;
  --lilac: #b8a9ff;
  --round: 22px;
  --font: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.disclosure-bar { background: var(--sun-soft); color: #8a6200; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; }
.site-footer .disclosure-bar { margin-top: 32px; }

/* ---------- header: floating rounded bar ---------- */
.site-header { position: sticky; top: 0; z-index: 40; padding: 10px 0; background: rgba(255, 253, 246, .9); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 0 10px 0 12px; box-shadow: 0 6px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 50% 50% 50% 12px; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 20px; transform: rotate(-8deg); }
.search { flex: 1; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--mint-2); }
.search input { width: 100%; height: 46px; padding: 0 18px 0 44px; border: none; border-radius: 999px; background: var(--mint-soft); outline: none; font-weight: 600; }
.search input:focus { box-shadow: 0 0 0 3px var(--mint); }
.header-links { display: flex; gap: 6px; font-weight: 800; font-size: 14px; }
.header-links a { padding: 10px 14px; border-radius: 999px; }
.header-links a:hover { background: var(--sun-soft); }

/* ---------- hero: sunny card with bubbles ---------- */
.hero { padding: 18px 0 8px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; background: var(--sun); border-radius: 36px; padding: 48px; position: relative; overflow: hidden; }
.hero-inner::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .25); right: -120px; top: -140px; }
.eyebrow { font-weight: 800; font-size: 15px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; font-weight: 900; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 span { background: var(--card); padding: 0 12px; border-radius: 14px; box-decoration-break: clone; -webkit-box-decoration-break: clone; color: var(--mint-2); }
.lead { font-size: 17px; line-height: 1.6; max-width: 520px; margin: 0 0 26px; font-weight: 600; color: #5b4a12; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { position: relative; z-index: 1; }
.hero-showcase { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero-showcase .tile { position: relative; width: 31%; aspect-ratio: 1; border-radius: 50%; background: var(--card); border: 5px solid var(--card); box-shadow: 0 8px 0 rgba(0, 0, 0, .08); overflow: visible; animation: bob 5s ease-in-out infinite; }
.hero-showcase .tile:nth-child(even) { animation-delay: -2.5s; transform: translateY(14px); }
.hero-showcase img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-showcase .tile span { position: absolute; top: -6px; right: -6px; background: var(--coral); color: #fff; font-weight: 900; font-size: 12px; padding: 4px 8px; border-radius: 999px; transform: rotate(10deg); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stats div { background: var(--card); border-radius: 18px; padding: 12px; text-align: center; }
.hero-stats strong { display: block; font-size: 22px; font-weight: 900; color: var(--mint-2); }
.hero-stats span { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 15px; border: 2px solid var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s; box-shadow: 0 4px 0 var(--ink); }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-primary { background: var(--mint); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- category tiles (cat-nav lives in the page, not the header) ---------- */
.cats-section { margin-top: 40px; }
.cats-title { font-size: 24px; font-weight: 900; margin: 0 0 16px; }
.cat-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-pill { border: 2px solid var(--line); background: var(--card); border-radius: var(--round); padding: 18px 14px; font-weight: 800; font-size: 15px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; transition: all .15s; }
.cat-pill:nth-child(4n+1) { background: var(--mint-soft); border-color: #c4ebe4; }
.cat-pill:nth-child(4n+2) { background: var(--sun-soft); border-color: #ffe7a8; }
.cat-pill:nth-child(4n+3) { background: #ffe9e6; border-color: #ffd0c9; }
.cat-pill:nth-child(4n) { background: #efebff; border-color: #ddd5ff; }
.cat-pill:hover { transform: translateY(-3px) rotate(-1deg); }
.cat-pill.active { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.cat-pill small { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 44px 0 16px; }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.section-head p { margin: 2px 0 0; font-weight: 600; }
.see-all { font-weight: 800; font-size: 14px; background: var(--mint-soft); color: var(--mint-2); padding: 8px 16px; border-radius: 999px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ---------- catalog: filters on the RIGHT ---------- */
.catalog { padding-bottom: 72px; }
.toolbar { display: flex; gap: 10px; align-items: center; }
.select { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.select select { height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; cursor: pointer; }
.filter-toggle { display: none; height: 44px; }
.catalog-body { display: grid; grid-template-columns: 1fr 250px; gap: 24px; align-items: start; }
.results { order: 1; }
.filters { order: 2; position: sticky; top: 100px; background: var(--card); border: 2px solid var(--line); border-radius: 26px; padding: 20px; }
.filter-group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 2px dotted var(--line); }
.filter-group h3 { font-size: 16px; font-weight: 900; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; cursor: pointer; }
.chip:hover { border-color: var(--mint); }
.chip.active { background: var(--mint); border-color: var(--mint); color: #fff; }
.price-range { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.price-range input { width: 100%; height: 42px; padding: 0 12px; border: 2px solid var(--line); border-radius: 14px; outline: none; font-weight: 700; }
.price-range input:focus { border-color: var(--mint); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 4px 0; cursor: pointer; }
.check input { accent-color: var(--mint); width: 18px; height: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* ---------- product card: chunky, sticker badges ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: var(--round); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.card-img { position: relative; margin: 8px 8px 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--mint-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-disc { position: absolute; top: 8px; right: 8px; background: var(--coral); color: #fff; font-weight: 900; font-size: 14px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transform: rotate(12deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.badge-off { position: absolute; bottom: 8px; left: 8px; background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 14.5px; line-height: 1.4; margin: 0; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card-title a { color: inherit; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 900; font-size: 16px; background: var(--mint-soft); color: var(--mint-2); padding: 3px 10px; border-radius: 999px; }
.price-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; font-weight: 700; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin-top: auto; }
.stars { color: #e0a100; }
.stars b { color: var(--ink); }
.card-shop { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skeleton { background: linear-gradient(90deg, #f6f1e3 25%, #fffdf6 50%, #f6f1e3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--round); aspect-ratio: .7; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 60px 20px; font-weight: 800; font-size: 18px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- modal ---------- */
.product-modal { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 3px solid var(--ink); border-radius: 32px; padding: 0; background: var(--bg); overflow: auto; box-shadow: 0 10px 0 var(--ink); }
.product-modal::backdrop { background: rgba(45, 48, 71, .5); }
.modal-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font-size: 24px; font-weight: 900; cursor: pointer; }
.pm-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; }
.pm-gallery .main { aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--mint-soft); border: 2px solid var(--line); }
.pm-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); padding: 0; cursor: pointer; background: var(--card); }
.thumbs button.active { border-color: var(--mint); box-shadow: 0 3px 0 var(--mint); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 13px; font-weight: 800; color: var(--mint-2); }
.pm-info h2, .product-page h1 { font-size: 24px; line-height: 1.3; font-weight: 900; margin: 6px 0 14px; }
.pm-price { background: var(--sun-soft); border: 2px dashed var(--sun); border-radius: 20px; padding: 14px 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-price .price { font-size: 28px; background: none; padding: 0; }
.pm-price .save { background: var(--coral); color: #fff; font-size: 13px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.facts div { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 10px; text-align: center; }
.facts strong { display: block; font-size: 18px; font-weight: 900; }
.facts span { font-size: 12px; font-weight: 700; color: var(--muted); }
.shop-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 14px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-2); }
.tag.green { background: #efebff; color: #6b56d6; }
.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-actions .btn-primary { flex: 1; height: 54px; font-size: 16px; }
.pm-note { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 12px 0 16px; }
.desc { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; background: var(--card); border-radius: 18px; padding: 16px; max-height: 260px; overflow: auto; }
.related { grid-column: 1 / -1; }
.related h3 { margin: 6px 0 12px; font-size: 22px; font-weight: 900; }

/* ---------- footer ---------- */
.site-footer { background: var(--mint); color: #fff; padding: 48px 0 0; margin-top: 40px; border-radius: 40px 40px 0 0; }
.site-footer .muted { color: #e2fbf7; font-size: 14px; line-height: 1.7; font-weight: 600; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.footer-note h4, .footer-cats h4 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.footer-cats { grid-column: 1 / -1; }
.footer-cats a { display: inline-block; margin: 0 8px 8px 0; font-size: 14px; font-weight: 800; background: rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; }
.footer-cats a:hover { background: rgba(255, 255, 255, .32); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
body.view-list .hero, body.view-list .rail-section { display: none; }
body.view-list .cats-section { margin-top: 18px; }
body.view-list .cats-title { display: none; }

/* ---------- static pages ---------- */
.static-main { padding-top: 22px; padding-bottom: 60px; min-height: 60vh; }
.crumbs-nav { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.crumbs-nav a { color: var(--mint-2); }
.product-page { background: var(--card); border: 2px solid var(--line); border-radius: 32px; }
.summary { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); font-weight: 600; }
.desc-title { font-size: 19px; font-weight: 900; margin: 20px 0 8px; }
.product-page .desc { max-height: none; }
.take { font-size: 16px; line-height: 1.7; background: var(--mint-soft); border-radius: 20px; padding: 16px 18px; margin: 0; }
.take-points { margin: 0 0 8px; padding-left: 0; list-style: none; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--ink-2); }
.take-points li { padding: 6px 0 6px 30px; position: relative; }
.take-points li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.related-static h2, .cat-hero h1 { font-size: 26px; font-weight: 900; margin: 40px 0 16px; }
.cat-hero { background: var(--sun-soft); border-radius: 32px; padding: 28px 30px; margin-bottom: 24px; }
.cat-hero h1 { font-size: 36px; margin: 0 0 10px; }
.cat-hero a { color: var(--mint-2); font-weight: 800; }
.subcats { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.cat-intro { max-width: 820px; line-height: 1.75; color: var(--ink-2); margin: 12px 0 0; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 32px 24px; }
  .catalog-body { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters { display: none; position: static; order: 0; }
  .filters.open { display: block; }
  .pm-body { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .site-header { padding: 8px 0; }
  .header-inner { height: 56px; gap: 8px; padding: 0 6px; }
  .brand-name, .header-links { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .search input { height: 42px; }
  .hero-inner { border-radius: 26px; padding: 26px 18px; }
  .hero-stats strong { font-size: 18px; }
  .cat-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-pill { padding: 14px 12px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 46%; gap: 10px; }
  .catalog-head { flex-direction: column; align-items: stretch; }
  .toolbar { justify-content: space-between; }
  .card-body { padding: 10px; }
  .badge-disc { width: 44px; height: 44px; font-size: 12px; }
  .section-head h2 { font-size: 21px; }
}

/* etalase hero: maksimal 3 gelembung */
.hero-showcase .tile:nth-child(n+4) { display: none; }
