
:root {
  --sky: #29A9E1;
  --royal: #1F4E9A;
  --ink: #333333;
  --amber: #F9B233;
  --white: #FFFFFF;
  --paper: #F4F8FB;
  --line: 2px solid var(--ink);
  --dots: radial-gradient(var(--royal) 1px, transparent 1px) 0 0 / 13px 13px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font: 15px/1.5 var(--font-body); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--royal); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, h4, .logo, .brand strong, .brand small, .tagline { font-family: var(--font-display); }
h1, h2, .logo, .tagline { font-weight: 950; }
h1 { font-size: clamp(2.65rem, 6.4vw, 5.95rem); text-wrap: balance; line-height: .99; letter-spacing: -.075em; max-width: 760px; }
h1 span { color: var(--royal); }
h2 { font-size: clamp(2rem, 4.7vw, 4rem); line-height: 1; letter-spacing: -.06em; }
img { display: block; width: 100%; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 40px, 1240px); margin-inline: auto; }
.announcement { text-align: center; background: var(--royal); color: var(--white); padding: 8px 16px; font-size: .75rem; font-weight: 750; }
header { border-bottom: var(--line); background: var(--white); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { display: grid; place-items: center; width: 43px; height: 39px; border: var(--line); border-radius: 9px; box-shadow: 2px 3px var(--ink); background: var(--amber); transform: rotate(-7deg); font-size: 1.3rem; letter-spacing: -.08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; line-height: 1.2; }
.brand small { font-size: .68rem; }
nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px 18px; font-size: .75rem; font-weight: 750; order: 3; flex-basis: 100%; padding-top: 10px; border-top: 1px solid var(--ink); scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; }
nav a:hover, footer a:hover { text-decoration: underline; }
.tools { display: flex; gap: 7px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: var(--line); border-radius: 8px; background: var(--paper); }
.icon-button svg { width: 18px; height: 18px; }
.hero { background: var(--paper); border-bottom: var(--line); }
.hero-grid { display: grid; gap: 24px; padding-block: 35px 27px; align-items: center; }
.eyebrow { display: inline-block; border: var(--line); background: var(--sky); border-radius: 5px; padding: 5px 9px; margin-bottom: 15px; font-size: .68rem; letter-spacing: .065em; font-weight: 900; transform: rotate(-2deg); }
.hero-copy > p { margin-top: 16px; max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 13px; border: var(--line); border-radius: 9px; box-shadow: 3px 3px var(--ink); background: var(--amber); font-family: var(--font-body); font-size: .86rem; font-weight: 850; line-height: inherit; cursor: pointer; }
.button:hover, .category:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px var(--ink); }
.button.secondary { background: var(--white); }
.scene { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1.4; background: var(--dots), var(--sky); border: var(--line); border-radius: 18px; box-shadow: 5px 5px var(--ink); overflow: hidden; }
.scene::before { content: ""; position: absolute; width: 68%; aspect-ratio: 1; border: var(--line); border-radius: 50%; background: var(--amber); top: 9%; left: 18%; z-index: -1; }
.sticker { position: absolute; display: grid; place-items: center; border: var(--line); border-radius: 12px; background: var(--white); box-shadow: 5px 5px var(--ink); overflow: hidden; }
.sticker img { height: 100%; object-fit: contain; min-height: 0; }
.sticker.main { width: 58%; height: 72%; left: 12%; top: 14%; transform: rotate(-10deg); }
.sticker.small { width: 36%; height: 52%; right: 8%; bottom: 9%; transform: rotate(12deg); }
.spark { position: absolute; right: 9%; top: 3%; color: var(--white); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; text-shadow: 3px 3px var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 0 23px; margin-block: 0; }
.stats div { border-left: var(--line); padding-left: 9px; }
.stats dt { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 950; line-height: 1.15; color: var(--royal); }
.stats dd { margin: 0; font-size: .73rem; font-weight: 700; }
.tagline { text-align: center; background: var(--amber); border-bottom: var(--line); padding: 12px; font-size: clamp(1rem, 3vw, 1.65rem); letter-spacing: .025em; }
.tagline span { margin-inline: .35em; }
.section { padding-block: clamp(40px, 6vw, 82px); }
.section h2 { margin-bottom: 22px; }
.categories, .products, .trust-grid { display: grid; gap: 14px; }
.categories, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; background: var(--paper); border: var(--line); border-radius: 12px; box-shadow: 3px 3px var(--ink); font-weight: 850; line-height: 1.2; }
.category-icon, .trust-icon { display: grid; place-items: center; width: 38px; height: 38px; border: var(--line); border-radius: 9px; background: var(--sky); }
.category:nth-child(even) .category-icon, .trust-item:nth-child(2) .trust-icon { background: var(--amber); }
.category small { margin-top: auto; color: var(--royal); }
.featured { background: var(--paper); border-block: var(--line); }
.product { display: flex; flex-direction: column; min-width: 0; border: var(--line); border-radius: 12px; background: var(--white); box-shadow: 3px 3px var(--ink); overflow: hidden; }
.product img { aspect-ratio: 1.25; object-fit: contain; background: var(--white); padding: 6px; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 11px; gap: 8px; border-top: var(--line); }
.product h3 { font-size: .79rem; line-height: 1.35; overflow-wrap: anywhere; }
.price { margin-top: auto; color: var(--royal); font-size: clamp(.95rem, 2vw, 1.3rem); font-weight: 950; }
.stock { font-size: .72rem; }
.product .button { min-height: 38px; font-size: .75rem; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: var(--line); border-radius: 12px; background: var(--white); box-shadow: 3px 3px var(--ink); }
.trust-icon { flex: none; }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { font-size: .9rem; }
footer { border-top: var(--line); background: var(--royal); color: var(--white); }
.footer-grid { display: grid; gap: 22px; padding-block: 33px 40px; }
footer .logo, footer .button { color: var(--ink); }
footer .button { margin-top: 14px; }
address { font-style: normal; display: grid; gap: 5px; font-size: .88rem; }
@media (min-width: 700px) {
  .wrap { width: min(100% - 64px, 1240px); }
  .categories, .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 950px) {
  nav { order: 0; flex-basis: auto; border: 0; padding: 0; gap: 21px; font-size: .87rem; }
  .header-row { padding-block: 17px; }
  .hero-grid { grid-template-columns: 1.12fr 1fr; gap: 42px; padding-block: 50px 34px; }
  .stats { width: 55%; padding-bottom: 31px; }
  .category, .product-body { padding: 16px; }
  .product h3 { font-size: .93rem; }
}

/* ---------------------------------------------------------- Tokoku integration */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button.button { appearance: none; }
.icon-button { position: relative; }
.icon-button .cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--ink);
  border-radius: 999px; background: var(--amber); color: var(--ink);
  font-size: .62rem; font-weight: 900; line-height: 1;
}
.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.brand .logo { overflow: hidden; }
.product h3 a { color: inherit; }
.product h3 {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 4.3em;
}
.product .price { padding-top: 2px; }
.product .was { margin-left: 6px; color: var(--ink); font-size: .7rem; font-weight: 650; }
.product .stock.in { color: var(--royal); }
.product .stock.low { color: #a15c00; }
.product .stock.out { color: #b42318; }
.product-add { margin-top: auto; }
.product-add .button { width: 100%; }
.product .button.secondary { background: var(--white); }
.flash-wrap { padding-top: 22px; }
.flash {
  border: var(--line); border-radius: 10px; padding: 10px 13px; margin-bottom: 8px;
  background: var(--white); box-shadow: 3px 3px var(--ink); font-size: .85rem; font-weight: 650;
}
.flash.ok { background: #e9f9ee; }
.flash.err { background: #fff0ee; }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px);
  z-index: 90; padding: 10px 16px; border: var(--line); border-radius: 10px;
  background: var(--ink); color: var(--white); font-size: .82rem; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty-catalog {
  border: var(--line); border-radius: 14px; background: var(--paper);
  padding: 26px 20px; text-align: center; box-shadow: 4px 4px var(--ink);
}
.empty-catalog p { margin: 6px 0 16px; }
[hidden] { display: none !important; }
