/* ===========================================================
   Hanason demo: base styles shared by the three designs.
   Each design's style.css sets the tokens below and adds its own
   header, hero, footer and card personality.
=========================================================== */
:root {
  --bg: #fff; --surface: #fff; --ink: #111; --soft: #666; --line: rgba(0,0,0,.12);
  --accent: #111; --on-accent: #fff; --img-bg: #f2f2f2;
  --radius: 0px; --radius-sm: 0px; --btn-radius: 0px;
  --head: Georgia, serif; --body: system-ui, sans-serif; --head-weight: 400;
  --wrap: 1200px; --gut: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
svg { width: 1em; height: 1em; flex: none; }

/* ---------- motion ---------- */
/* smooth cross-fade between pages (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
main { animation: page-in .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
/* reveal on scroll (only hidden when JS is there to show it again) */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 1ms); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.js-anim .t-grid:not(.is-in) > * { opacity: 0; }
.js-anim .t-cats > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.js-anim .t-cats.is-in > * { opacity: 1; transform: none; }
/* cards re-drawn by filters animate in again */
.t-grid.is-in > .t-card { animation: card-in .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.t-card-add:active, .t-btn:active { transform: scale(.97); }
.cart-count { animation: pop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(.4); } }

/* section heads */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.sec-head p { color: var(--soft); max-width: 520px; margin-top: 8px; }
.eyebrow { font: 600 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.t-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.t-link svg { transition: transform .3s; }
.t-link:hover svg { transform: translateX(4px); }

/* buttons */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid var(--accent); border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.t-btn:hover { transform: translateY(-1px); }
.t-btn svg { width: 19px; height: 19px; }
.t-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.t-btn-ghost:hover { border-color: var(--ink); }
.t-btn-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; width: 100%; }

/* product grid + card */
.t-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px) clamp(12px, 2vw, 24px); }
.t-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.t-card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--img-bg); border-radius: var(--radius); }
.t-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.t-card:hover .t-card-img img { transform: scale(1.04); }
.t-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; font: 600 12px/1.5 var(--body); background: var(--bg); color: var(--ink); border-radius: var(--radius-sm); }
.t-card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.t-card-cat { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.t-card-name { font: 500 15.5px/1.35 var(--body); }
.t-card-name a { text-decoration: none; }
.t-card-name a::after { content: ""; position: absolute; inset: 0; }
.t-card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); }
.t-rate { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; }
.t-rate svg { width: 13px; height: 13px; color: var(--accent); }
.t-new { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.t-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.t-now { font-weight: 600; font-size: 16px; }
.t-was { font-size: 13px; color: var(--soft); }
.t-card-add { position: relative; z-index: 1; margin-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: transparent; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.t-card-add svg { width: 16px; height: 16px; }
.t-card-add:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* categories */
.t-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.t-cat { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.t-cat-img { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--img-bg); border-radius: var(--radius); }
.t-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.t-cat:hover .t-cat-img img { transform: scale(1.05); }
.t-cat-body { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.t-cat-body b { font: var(--head-weight) 21px/1.2 var(--head); }
.t-cat-body > span { font-size: 14px; color: var(--soft); line-height: 1.5; }
.t-cat-body em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; }

/* catalog page */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(36px, 5.4vw, 64px); }
.page-head p { color: var(--soft); max-width: 560px; margin-top: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 36px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 520px; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.t-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: transparent; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.t-chip span { font-size: 12px; color: var(--soft); }
.t-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.t-chip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.tool-right { display: flex; gap: 10px; flex: 1 1 360px; justify-content: flex-end; }
.field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--surface); }
.field input, .field select { border: 0; background: transparent; outline: 0; min-width: 0; width: 100%; font-size: 14px; }
.field-search { flex: 1; max-width: 280px; }
.field svg { width: 16px; height: 16px; color: var(--soft); }
.result { font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.t-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 16px; text-align: center; color: var(--soft); }
.t-empty-cart svg { width: 44px; height: 44px; }

/* detail */
.t-crumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0; font-size: 13.5px; color: var(--soft); }
.t-crumb a { text-decoration: none; }
.t-crumb a:hover { color: var(--ink); }
.t-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.t-detail-img { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--img-bg); border-radius: var(--radius); }
.t-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.t-detail-info { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.t-detail-cat { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.t-detail-name { font-size: clamp(30px, 3.6vw, 46px); }
.t-price-lg .t-now { font-size: 28px; }
.t-price-lg .t-was { font-size: 16px; }
.t-save { font-size: 13px; font-weight: 600; color: var(--accent); }
.t-feat { list-style: none; margin: 4px 0; padding: 18px 0; border-block: 1px solid var(--line); display: grid; gap: 10px; }
.t-feat li { display: flex; gap: 10px; align-items: flex-start; }
.t-feat svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.t-buy { display: flex; align-items: center; gap: 18px; }
.t-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); }
.t-qty button { width: 40px; height: 42px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.t-qty output { min-width: 28px; text-align: center; font-weight: 600; }
.t-stock { font-size: 13.5px; color: var(--soft); }
.t-stock.low { color: #b4552d; font-weight: 600; }
.t-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-alt { display: flex; gap: 10px; font-size: 14px; color: var(--soft); }
.t-alt a { text-underline-offset: 3px; }
.t-promise { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; color: var(--soft); }
.t-promise li::before { content: "— "; color: var(--accent); }
.t-desc { max-width: 720px; padding: clamp(48px, 6vw, 80px) 0 0; display: grid; gap: 14px; color: var(--soft); }
.t-desc h2 { color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); }

/* cart */
.t-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.t-lines { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.t-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto 40px; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.t-line-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--img-bg); border-radius: var(--radius-sm); }
.t-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-line-info a { text-decoration: none; font-weight: 500; }
.t-line-info span { font-size: 14px; color: var(--soft); }
.t-line-total { min-width: 96px; text-align: right; }
.t-line-x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.t-line-x svg { width: 18px; height: 18px; }
.t-line-x:hover { color: var(--ink); }
.t-summary { position: sticky; top: 110px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.t-summary h2 { font-size: 26px; margin-bottom: 16px; }
.t-summary dl { margin: 0 0 20px; display: grid; gap: 10px; font-size: 14.5px; }
.t-summary dl div { display: flex; justify-content: space-between; gap: 16px; }
.t-summary dt { color: var(--soft); }
.t-summary dd { margin: 0; font-weight: 500; }
.t-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; }
.t-total dt { color: var(--ink); font-weight: 600; }
.t-total dd { font-weight: 700; }
.t-form { display: grid; gap: 12px; }
.t-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--soft); }
.t-form input, .t-form textarea, .t-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: 15px; }
.t-form input:focus, .t-form textarea:focus, .t-form select:focus { outline: 0; border-color: var(--ink); }
.t-note { font-size: 13px; color: var(--soft); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--soft); max-width: 680px; }

/* toast */
.t-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px; background: var(--ink); color: var(--bg); border-radius: var(--radius-sm); font-size: 14px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.t-toast.is-on { transform: translate(-50%, 0); }
.t-toast svg { width: 18px; height: 18px; }
.t-toast a { margin-left: 6px; padding: 6px 12px; border: 1px solid currentColor; border-radius: var(--btn-radius); font-weight: 600; text-decoration: none; font-size: 13px; }

/* demo note */
.demo-note { font-size: 12.5px; opacity: .7; }

@media (max-width: 1080px) {
  .t-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .t-detail, .t-cart { grid-template-columns: 1fr; }
  .t-detail-info, .t-summary { position: static; }
  .tool-right { justify-content: flex-start; }
  .field-search { max-width: none; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .t-line { grid-template-columns: 68px minmax(0, 1fr) 36px; grid-template-areas: "img info x" "img qty total"; row-gap: 10px; }
  .t-line-img { grid-area: img; } .t-line-info { grid-area: info; } .t-line .t-qty { grid-area: qty; justify-self: start; } .t-line-total { grid-area: total; } .t-line-x { grid-area: x; }
  .t-actions { grid-template-columns: 1fr; }
  .t-card-add span { display: none; }
  .t-card-add { padding: 0 11px; }
  .t-promise { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js-anim .reveal, .js-anim .t-grid > *, .js-anim .t-cats > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  main, .t-grid.is-in > .t-card { animation: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* about + contact blocks (shared) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pillar { padding-top: 22px; border-top: 1px solid var(--line); }
.pillar b { display: block; font: var(--head-weight) 24px/1.2 var(--head); margin: 10px 0 8px; }
.pillar p { color: var(--soft); }
.pillar small { font-size: 12.5px; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font: var(--head-weight) clamp(34px, 4vw, 52px)/1 var(--head); }
.stat span { display: block; margin-top: 10px; color: var(--soft); font-size: 14px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-img { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--img-bg); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-body { display: grid; gap: 16px; }
.story-body h2 { font-size: clamp(30px, 4vw, 50px); }
.story-body p { color: var(--soft); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.c-list { display: grid; gap: 12px; }
.c-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.c-item span { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.c-item b { display: block; font-weight: 500; font-size: 17px; margin-top: 2px; }
.c-item svg { width: 20px; height: 20px; color: var(--soft); transition: transform .3s; }
a.c-item:hover svg { transform: translateX(4px); color: var(--ink); }
.c-form { padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.c-form h2 { font-size: 26px; margin-bottom: 18px; }
.c-form .t-btn { margin-top: 6px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
.cta { text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 760px; }
.cta p { color: var(--soft); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise div { display: grid; gap: 4px; }
.promise b { font-weight: 600; }
.promise span { font-size: 14px; color: var(--soft); }
@media (max-width: 860px) {
  .pillars, .story, .contact, .split { grid-template-columns: 1fr; }
  .stats, .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[hidden]{display:none !important}

/* ask-the-assistant button (detail page) */
.t-ask { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: transparent; text-align: left; font-size: 14px; color: var(--soft); cursor: pointer; transition: border-color .2s, color .2s; }
.t-ask svg { width: 20px; height: 20px; color: var(--accent); }
.t-ask b { color: var(--ink); font-weight: 600; }
.t-ask:hover { border-color: var(--ink); color: var(--ink); }
.t-empty-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* product cards inside the AI chat (drawn by toko.js) */
.hsc { align-self: stretch; display: grid; gap: 8px; }
.hsc-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hsc-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #fff; }
.hsc-info { display: grid; gap: 3px; min-width: 0; }
.hsc-info b { font-size: 13.5px; line-height: 1.3; color: var(--vbot-ink, #fff); font-weight: 600; }
.hsc-price { font-size: 14px; font-weight: 700; color: var(--vbot-ink, #fff); }
.hsc-price s { font-weight: 400; font-size: 12px; opacity: .55; }
.hsc-stock { font-size: 12px; opacity: .8; }
.hsc-stock.low { color: #f4b98a; opacity: 1; }
.hsc-btns { display: flex; gap: 6px; margin-top: 5px; }
.hsc-btns a, .hsc-btns button { border: 0; border-radius: 99px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.12); color: var(--vbot-ink, #fff); text-decoration: none; }
.hsc-btns .hsc-add { background: var(--vbot-accent, #fff); color: var(--vbot-on, #111); }

/* keep the toast clear of the chat launcher on small screens */
@media (max-width: 640px) { .t-toast { bottom: 84px; } }
@media (min-width: 641px) {
  body:has(.vbot.is-open) .t-toast { left: 24px; transform: translate(0, 140%); }
  body:has(.vbot.is-open) .t-toast.is-on { transform: none; }
}
