/* =========================================================
   Base theme — dipakai oleh semua 100 template.
   Warna datang dari inline style <body> (lihat Palette.php),
   gaya khas tiap keluarga ada di aurora/editorial/bold/luxe/fresh.css
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { overflow-x: clip; }

.site {
  --surface: color-mix(in oklab, var(--bg) 95%, var(--ink));
  --surface-2: color-mix(in oklab, var(--bg) 89%, var(--ink));
  --card: color-mix(in oklab, var(--bg) 100%, var(--ink));
  --muted: color-mix(in oklab, var(--ink) 66%, var(--bg));
  --line: color-mix(in oklab, var(--ink) 13%, var(--bg));
  --line-strong: color-mix(in oklab, var(--ink) 26%, var(--bg));
  --tint: color-mix(in oklab, var(--primary) 11%, var(--bg));
  --tint-2: color-mix(in oklab, var(--accent) 14%, var(--bg));
  --overlay: rgb(8 10 14 / .55);

  --gutter: 16px;
  --wrap: 1200px;
  --sec-y: clamp(56px, 7vw, 112px);
  --hdr-h: 64px;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-btn: 12px;

  --shadow: 0 1px 2px rgb(15 20 30 / .05), 0 8px 24px -8px rgb(15 20 30 / .12);
  --shadow-lg: 0 2px 6px rgb(15 20 30 / .06), 0 24px 48px -16px rgb(15 20 30 / .22);

  --demo-bar: 0px;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

.site.has-demo { --demo-bar: 60px; padding-bottom: var(--demo-bar); }

.site.r-none { --r-xs: 0; --r-sm: 0; --r: 0; --r-lg: 0; --r-btn: 0; }
.site.r-small { --r-xs: 3px; --r-sm: 5px; --r: 8px; --r-lg: 12px; --r-btn: 6px; }
.site.r-round { --r-xs: 10px; --r-sm: 16px; --r: 24px; --r-lg: 32px; --r-btn: 999px; }

@media (min-width: 640px) { .site { --gutter: 24px; } }
@media (min-width: 1024px) { .site { --gutter: 32px; --hdr-h: 76px; } }

[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:where(h1, h2, h3, h4, p, li, a, span, dd, dt, blockquote) { overflow-wrap: break-word; }
::selection { background: var(--primary); color: var(--on-primary); }

:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 3px; border-radius: 4px; }

.ic { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 820px; }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, .brand__name, .price__now, .stat__v, .step__n {
  font-family: var(--font-head), var(--font-body), system-ui, sans-serif;
  font-weight: var(--head-weight, 700);
  letter-spacing: var(--head-tracking, -0.02em);
}
.display { font-size: clamp(2.15rem, 1.15rem + 4.6vw, 4.6rem); line-height: 1.04; text-wrap: balance; }
.h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.08; text-wrap: balance; }
.h2 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.75rem); line-height: 1.12; text-wrap: balance; }
.h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.25; }
.lead { font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.eyebrow {
  width: fit-content; max-width: 100%;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-text);
}
.muted { color: var(--muted); }
.prose { max-width: 68ch; color: color-mix(in oklab, var(--ink) 86%, var(--bg)); }
.prose p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-align: center;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn--primary { --btn-bg: var(--primary); --btn-ink: var(--on-primary); }
.btn--primary:hover { background: color-mix(in oklab, var(--primary) 88%, var(--ink)); }
.btn--accent { --btn-bg: var(--accent); --btn-ink: var(--on-accent); }
.btn--ink { --btn-bg: var(--ink); --btn-ink: var(--bg); }
.btn--ghost { --btn-bg: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-ink: #111; }
.btn--outline-light { --btn-bg: transparent; --btn-ink: #fff; border-color: rgb(255 255 255 / .6); }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn--sm { min-height: 42px; padding: .5rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 479px) {
  .btn-row--stack > .btn { flex: 1 1 100%; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--primary-text); white-space: nowrap;
}
.link-arrow .ic { transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: transparent; color: inherit; position: relative;
}
.icon-btn:hover { background: var(--surface); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .45rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); font-size: .92rem; font-weight: 500; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
}

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 1rem; min-height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; margin-right: auto; }
.brand__logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.brand__mark {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head), sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: 0;
}
.brand__name { font-size: 1.12rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.nav { display: none; }
.hdr__act { display: flex; align-items: center; gap: .5rem; flex: none; }
.hdr__cta { display: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 700; line-height: 1;
}
.cart-count[data-n="0"] { display: none; }

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: .25rem; }
  .nav__a {
    position: relative; padding: .55rem .8rem; border-radius: var(--r-sm);
    font-weight: 500; font-size: .96rem; color: color-mix(in oklab, var(--ink) 78%, var(--bg));
  }
  .nav__a:hover { color: var(--ink); background: var(--surface); }
  .nav__a.is-active { color: var(--ink); }
  .nav__a.is-active::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
    background: var(--primary); border-radius: 2px;
  }
  .hdr__cta { display: inline-flex; }
  .menu-btn { display: none; }
}

.mnav {
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100svh - var(--hdr-h));
  overflow-y: auto;
}
.mnav[hidden] { display: none; }
.mnav__in { padding-block: .75rem 1.25rem; display: grid; gap: .25rem; }
.mnav__a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: .5rem .25rem; border-bottom: 1px solid var(--line);
  font-size: 1.08rem; font-weight: 500;
}
.mnav__a.is-active { color: var(--primary-text); }
.mnav .btn { margin-top: .75rem; }
@media (min-width: 960px) { .mnav { display: none !important; } }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-y); position: relative; }
.sec + .sec--flush-top, .sec--flush-top { padding-top: 0; }
.sec--tint { background: var(--surface); }
.sec--ink { background: var(--ink); color: var(--bg); --muted: color-mix(in oklab, var(--bg) 70%, var(--ink)); --line: color-mix(in oklab, var(--bg) 16%, var(--ink)); }

.sec-head { display: grid; gap: .75rem; margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1fr); align-items: end; }
.sec-head--split > div { display: grid; gap: .75rem; max-width: 720px; }
@media (min-width: 768px) {
  .sec-head--split { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .93rem; color: var(--muted); }
.hero__badge .ic { color: var(--primary-text); width: 1.1em; height: 1.1em; }
.hero__text { display: grid; gap: 1.1rem; align-content: center; min-width: 0; }
.hero__text .btn-row { margin-top: .5rem; }
.hero__media { position: relative; min-width: 0; }
.hero__img { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* split */
.hero--split { padding-block: clamp(28px, 5vw, 72px) var(--sec-y); }
.hero--split .hero__grid { display: grid; gap: 2rem; }
.hero--split .hero__img { aspect-ratio: 4 / 3; }
.hero--split .hero__float {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: .75rem;
  max-width: 300px; padding: .8rem 1rem; border-radius: var(--r);
  background: color-mix(in oklab, var(--bg) 94%, transparent); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .9rem; line-height: 1.35;
}
.hero__float .ic { color: var(--primary-text); width: 28px; height: 28px; padding: 5px; border-radius: 10px; background: var(--tint); }
.hero__float strong { display: block; font-size: .98rem; }
@media (min-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .hero--split .hero__img { aspect-ratio: 5 / 6; }
  .hero--split .hero__float { left: -28px; bottom: 32px; right: auto; }
}

/* full */
.hero--full {
  min-height: min(88svh, 860px); display: grid; align-items: end;
  color: #fff; isolation: isolate; overflow: hidden;
  --muted: rgb(255 255 255 / .82); --primary-text: #fff;
}
.hero--full .hero__bg { position: absolute; inset: 0; z-index: -2; background: #1b1d22; }
.hero--full .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--full::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .1) 35%, rgb(0 0 0 / .72) 100%);
}
.hero--full .hero__text { padding-block: calc(var(--hdr-h) + 48px) clamp(40px, 7vw, 96px); max-width: 780px; }
.hero--full .lead { color: rgb(255 255 255 / .86); }
.hero--full .hero__badge { color: rgb(255 255 255 / .86); }
.hero--full .hero__badge .ic { color: var(--accent); }
.hero--full .eyebrow { color: #fff; }

/* center */
.hero--center { padding-block: clamp(36px, 6vw, 88px) var(--sec-y); text-align: center; }
.hero--center .hero__text { justify-items: center; margin-inline: auto; max-width: 900px; }
.hero--center .lead { margin-inline: auto; }
.hero--center .btn-row, .hero--center .hero__badges { justify-content: center; }
.hero--center .hero__media { margin-top: clamp(32px, 5vw, 64px); }
.hero--center .hero__img { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .hero--center .hero__img { aspect-ratio: 21 / 9; } }

/* collage */
.hero--collage { padding-block: clamp(28px, 5vw, 72px) var(--sec-y); }
.hero--collage .hero__grid { display: grid; gap: 2rem; }
.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.collage .hero__img { border-radius: var(--r-lg); }
.collage .hero__img:first-child { grid-row: span 2; }
@media (min-width: 900px) {
  .hero--collage .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .collage { gap: 16px; aspect-ratio: 1 / 1.02; }
}

/* editorial */
.hero--editorial { padding-block: clamp(28px, 5vw, 64px) var(--sec-y); }
.hero--editorial .hero__top { display: grid; gap: 1rem; padding-bottom: clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line-strong); }
.hero--editorial .display { font-size: clamp(2.5rem, 1rem + 6.6vw, 6.4rem); line-height: .98; max-width: 16ch; }
.hero--editorial .hero__grid { display: grid; gap: 1.75rem; padding-top: clamp(24px, 4vw, 40px); }
.hero--editorial .hero__img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .hero--editorial .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .hero--editorial .hero__img { aspect-ratio: 16 / 9; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 1rem; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; font-weight: 600; font-size: 1.05rem; }
.marquee__item::after { content: "✦"; color: var(--primary-text); font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } }
.cat {
  position: relative; display: grid; align-content: end; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; padding: 14px; border-radius: var(--r); color: #fff; background: var(--surface-2);
}
.cat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .7)); }
.cat:hover img { transform: scale(1.05); }
.cat__name { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); font-size: clamp(1rem, .9rem + .5vw, 1.25rem); line-height: 1.2; }
.cat__n { font-size: .82rem; opacity: .85; }

/* ---------- Product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.pgrid--3 { }
@media (min-width: 1080px) { .pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r); background: var(--card); container-type: inline-size; }
/* Harga panjang di kartu sempit (HP kecil) tetap muat */
@container (max-width: 150px) { .pcard .price__now { font-family: var(--font-body), sans-serif; font-weight: 700; font-size: .86rem; letter-spacing: -.02em; } .pcard .price__unit { font-size: .76rem; } }
.pcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: .8rem .15rem 0; min-width: 0; flex: 1; align-content: start; }
.pcard__cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: clamp(.98rem, .92rem + .3vw, 1.12rem); line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard__sum { display: none; color: var(--muted); font-size: .9rem; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 720px) { .pcard__sum { display: -webkit-box; } }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: .35rem; }
.pcard__add, .pcard__go {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-btn);
  border: 0; background: var(--primary); color: var(--on-primary);
  transition: transform .15s ease, background-color .2s ease;
}
.pcard__add:hover, .pcard__go:hover { transform: scale(1.06); }
.pcard__go { background: var(--surface-2); color: var(--ink); }
.pcard.is-out .pcard__media img { filter: grayscale(.8); opacity: .7; }
/* HP: kartu 2 kolom sempit — tombol pindah ke pojok foto supaya harga muat */
@media (max-width: 559px) {
  .pcard__go { display: none; }
  .pcard__add { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; box-shadow: 0 4px 12px rgb(0 0 0 / .18); }
  .pcard__foot { margin-top: .2rem; }
  .price__now { font-size: .98rem; }
}

.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3rem; row-gap: 0; min-width: 0; line-height: 1.25; }
.pcard__foot .price { flex: 1 1 auto; }
.price__now { font-size: 1.05rem; letter-spacing: -0.01em; }
.price__unit { font-size: .82rem; color: var(--muted); }
.price__old { font-size: .82rem; color: var(--muted); width: 100%; }
.price__ask { font-weight: 600; font-size: .95rem; color: var(--primary-text); }

/* scroll variant */
.pscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.pscroll > * { scroll-snap-align: start; }
@media (min-width: 1280px) {
  .pscroll { margin-inline: 0; padding-inline: 0; grid-auto-columns: calc((100% - 48px) / 4); }
}
.scroll-nav { display: none; gap: .5rem; }
@media (min-width: 768px) { .scroll-nav { display: flex; } }

/* list variant (menu) */
.plist { display: grid; gap: 0 48px; }
@media (min-width: 880px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prow { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.prow__img { width: 76px; height: 76px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.prow__img img { width: 100%; height: 100%; object-fit: cover; }
.prow__top { display: flex; align-items: baseline; gap: .5rem; }
.prow__name { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); font-size: 1.05rem; line-height: 1.3; min-width: 0; }
.prow__name a::after { content: ""; position: absolute; inset: 0; }
.prow__dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.prow__price { font-weight: 600; white-space: nowrap; }
.prow__sum { color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Features ---------- */
.feats { display: grid; gap: 14px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.feat { display: grid; gap: .65rem; align-content: start; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.feat__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--tint); color: var(--primary-text); }
.feat__ic .ic { width: 24px; height: 24px; }
.feat__t { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); font-size: 1.12rem; line-height: 1.3; letter-spacing: var(--head-tracking); }
.feat__d { color: var(--muted); font-size: .95rem; }

.feats-split { display: grid; gap: 2rem; }
.feats-split__img { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--surface-2); }
.feats-split__img img { width: 100%; height: 100%; object-fit: cover; }
.flist { display: grid; gap: 0; }
.flist__i { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.flist__i:first-child { padding-top: 0; }
.flist__i .feat__ic { width: 44px; height: 44px; }
@media (min-width: 900px) {
  .feats-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .feats-split__img { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--hdr-h) + 24px); }
}

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; }
.about__img { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--surface-2); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: grid; gap: 1rem; align-content: center; min-width: 0; }
.checks { display: grid; gap: .6rem; margin-top: .5rem; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .6rem; align-items: start; }
.checks .ic { color: var(--primary-text); margin-top: 2px; width: 22px; height: 22px; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
  .about__img { aspect-ratio: 1 / 1; }
}
.about-banner { display: grid; overflow: hidden; border-radius: var(--r-lg); background: var(--tint); }
.about-banner .about__text { padding: clamp(24px, 5vw, 64px); }
.about-banner .about__img { border-radius: 0; aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .about-banner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .about-banner .about__img { aspect-ratio: auto; min-height: 100%; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 22px; } }
.step { position: relative; display: grid; gap: .5rem; align-content: start; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 1.05rem; }
.step__t { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.step__d { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.stat { display: grid; gap: .2rem; padding: clamp(18px, 3vw, 32px); background: var(--bg); min-width: 0; }
.stat__v { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; color: var(--primary-text); }
.stat__l { color: var(--muted); font-size: .93rem; }

/* ---------- Testimonials ---------- */
.tgrid { display: grid; gap: 14px; }
@media (min-width: 720px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard { display: grid; gap: 1rem; align-content: space-between; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.tcard__q { font-size: 1.02rem; line-height: 1.6; }
.tcard__who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; overflow: hidden; background: var(--tint); color: var(--primary-text); font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcard__n { font-weight: 600; line-height: 1.25; }
.tcard__r { font-size: .86rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars .ic { width: 16px; height: 16px; fill: currentColor; }

.tquote { display: grid; gap: 1.5rem; max-width: 900px; margin-inline: auto; text-align: center; }
.tquote__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tquote__track::-webkit-scrollbar { display: none; }
.tquote__item { scroll-snap-align: center; display: grid; gap: 1.25rem; justify-items: center; padding-inline: 4px; }
.tquote__q { font-family: var(--font-head), serif; font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: clamp(1.35rem, 1rem + 1.8vw, 2.3rem); line-height: 1.3; text-wrap: balance; }
.tquote__nav { display: flex; justify-content: center; gap: .5rem; }

/* ---------- Gallery ---------- */
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.ggrid .gitem { aspect-ratio: 1 / 1; }
.gmason { columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .gmason { columns: 3; column-gap: 16px; } }
.gmason .gitem { margin-bottom: 10px; break-inside: avoid; }
@media (min-width: 768px) { .gmason .gitem { margin-bottom: 16px; } }
.gmason .gitem:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.gmason .gitem:nth-child(3n+2) { aspect-ratio: 1 / 1; }
.gmason .gitem:nth-child(3n) { aspect-ratio: 4 / 3; }
.gitem { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); border: 0; padding: 0; cursor: zoom-in; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gitem:hover img { transform: scale(1.04); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: clamp(28px, 6vw, 80px) clamp(20px, 5vw, 72px); background: var(--ink); color: #fff; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(0 0 0 / .78), rgb(0 0 0 / .35)); }
.cta__in { display: grid; gap: 1rem; max-width: 640px; }
.cta .lead { color: rgb(255 255 255 / .85); }
.cta .btn-row { margin-top: .5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding-block: 1rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.04rem; line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .ic { flex: none; transition: transform .25s ease; color: var(--primary-text); }
.faq__i[open] .faq__q .ic { transform: rotate(45deg); }
.faq__a { padding-bottom: 1.15rem; color: var(--muted); max-width: 70ch; }
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; } .faq-wrap .sec-head { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; } }
.cinfo { display: grid; gap: 1.25rem; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.cinfo__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.cinfo__row .feat__ic { width: 40px; height: 40px; }
.cinfo__row .feat__ic .ic { width: 20px; height: 20px; }
.cinfo__k { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.cinfo__v { font-weight: 500; }
.hours { display: grid; gap: .2rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.map { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); }
.socials a:hover { background: var(--surface); }
.socials .ic { width: 18px; height: 18px; }

/* ---------- Page header ---------- */
.phead { padding-block: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.phead__in { display: grid; gap: .9rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { width: 14px; height: 14px; }

/* ---------- Catalog toolbar ---------- */
.toolbar { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) { .toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent); }
.search .input { padding-left: 44px; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field__l { font-size: .9rem; font-weight: 600; }
.fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips-scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.tools-right { display: flex; gap: 10px; align-items: center; }
.tools-right .select { width: auto; min-width: 170px; }
.result-n { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.empty { display: grid; justify-items: center; gap: .75rem; padding: 56px 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); }
.empty .ic { width: 40px; height: 40px; }

/* ---------- Product detail ---------- */
.pd { display: grid; gap: 28px; padding-bottom: var(--sec-y); }
@media (min-width: 960px) { .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; } }
.pd__gallery { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 960px) { .pd__gallery { position: sticky; top: calc(var(--hdr-h) + 20px); } }
.pd__main { overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--surface-2); }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.pd__thumb { flex: none; width: 72px; height: 72px; padding: 0; overflow: hidden; border-radius: var(--r-sm); border: 2px solid transparent; background: var(--surface-2); opacity: .7; }
.pd__thumb.is-active { border-color: var(--primary); opacity: 1; }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.pd__price .price__now { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.pd__price .price__old { width: auto; font-size: 1rem; }
.pd__box { display: grid; gap: 1rem; padding: clamp(16px, 2.5vw, 24px); border-radius: var(--r); background: var(--surface); }
.opt { display: grid; gap: .5rem; }
.opt__l { font-size: .9rem; font-weight: 600; }
.opt__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__v input { position: absolute; opacity: 0; pointer-events: none; }
.opt__v span { display: inline-flex; align-items: center; min-height: 42px; padding: .45rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); background: var(--bg); font-size: .94rem; font-weight: 500; cursor: pointer; }
.opt__v input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.opt__v input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); overflow: hidden; background: var(--bg); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button:hover { background: var(--surface); }
.qty input { width: 48px; height: 44px; border: 0; text-align: center; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 36px; height: 36px; }
.qty--sm input { width: 36px; height: 36px; font-size: .92rem; }
.specs { display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; }
.pd__trust { display: grid; gap: .55rem; font-size: .92rem; color: var(--muted); }
.pd__trust div { display: flex; gap: .55rem; align-items: center; }
.pd__trust .ic { color: var(--primary-text); }

.buybar {
  position: fixed; left: 0; right: 0; bottom: var(--demo-bar); z-index: 35;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .18);
}
.buybar__p { min-width: 0; flex: 1; display: grid; line-height: 1.2; }
.buybar__p .price__now { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: none; min-height: 46px; padding-inline: 1.1rem; }
.page-product .wa-float { display: none; }
.page-product .ftr { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .buybar { display: none; } .page-product .wa-float { display: grid; } .page-product .ftr { padding-bottom: 32px; } }

/* ---------- About page ---------- */
.values { display: grid; gap: 14px; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.ahero { display: grid; gap: 24px; }
.ahero__img { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 10; background: var(--surface-2); }
.ahero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .ahero__img { aspect-ratio: 21 / 9; } }
.story { display: grid; gap: 28px; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; } }

/* ---------- Footer ---------- */
.ftr { padding-block: clamp(48px, 6vw, 80px) 32px; border-top: 1px solid var(--line); background: var(--surface); }
.ftr__grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 40px; } .ftr__about { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ftr__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); } .ftr__about { grid-column: auto; } }
.ftr__about { display: grid; gap: 1rem; align-content: start; max-width: 380px; }
.ftr__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: .75rem; }
.ftr__links { display: grid; gap: .1rem; }
.ftr__links a { display: flex; align-items: center; gap: .55rem; min-height: 40px; padding-block: 4px; color: color-mix(in oklab, var(--ink) 82%, var(--bg)); min-width: 0; }
.ftr__links a > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.ftr__links a:hover { color: var(--ink); }
.ftr__links .ic { width: 16px; height: 16px; flex: none; }
.ftr__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.ftr__bot a:hover { color: var(--ink); }

/* ---------- Floating WA ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + var(--demo-bar) + env(safe-area-inset-bottom)); z-index: 36;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgb(37 211 102 / .55);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 28px; height: 28px; }
@media (min-width: 1024px) { .wa-float { right: 28px; bottom: calc(28px + var(--demo-bar)); } }

/* ---------- Drawer / Sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgb(10 12 16 / .5); opacity: 0; transition: opacity .25s ease; }
.overlay.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(100%, 440px); display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open { transform: none; }
.drawer__h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__b { flex: 1; overflow-y: auto; padding: 16px var(--gutter); display: grid; gap: 18px; align-content: start; }
.drawer__f { padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.citem { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.citem__img { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__n { font-weight: 600; line-height: 1.3; }
.citem__o { font-size: .85rem; color: var(--muted); }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.citem__rm { border: 0; background: none; color: var(--muted); font-size: .85rem; padding: 6px 0; text-decoration: underline; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; }
.total strong { font-size: 1.2rem; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 92svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sheet.is-open { transform: none; }
@media (min-width: 640px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100% - 48px)); max-height: 88vh; border-radius: 20px; transform: translate(-50%, -46%); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet[hidden], .drawer[hidden], .overlay[hidden] { display: none; }
.sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet__h .h3 { font-size: 1.15rem; }
.sheet__b { overflow-y: auto; padding: 18px 20px; display: grid; gap: 14px; }
.sheet__f { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.wa-preview { white-space: pre-wrap; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: #e7fbe9; color: #10331b; font-size: .92rem; line-height: 1.5; border: 1px solid #c9efcf; overflow-wrap: anywhere; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(24px + var(--demo-bar) + env(safe-area-inset-bottom)); z-index: 70;
  width: fit-content; max-width: min(calc(100% - 32px), 460px); margin-inline: auto;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .94rem; line-height: 1.4; text-align: center;
  transition: opacity .25s ease, transform .25s ease; box-shadow: var(--shadow-lg);
}
.toast.is-show { opacity: 1; transform: none; }
.page-product .toast { bottom: calc(88px + var(--demo-bar) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .page-product .toast { bottom: calc(24px + var(--demo-bar)); } }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86svh; width: auto; border-radius: 8px; }
.lightbox__x { position: absolute; top: 12px; right: 12px; color: #fff; border-color: rgb(255 255 255 / .3); }
.lightbox__nav { position: absolute; inset: auto 0 16px; display: flex; justify-content: center; gap: 12px; }
.lightbox__nav .icon-btn { color: #fff; border-color: rgb(255 255 255 / .3); }

/* ---------- Demo bar ---------- */
.demo-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--demo-bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 12px 0 16px; background: #111214; color: #f4f4f5;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: .88rem; line-height: 1.3;
  border-top: 1px solid #2a2b2f;
}
.demo-bar__t { min-width: 0; display: grid; }
.demo-bar__t strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar__t span { color: #a1a1aa; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar__a { display: flex; gap: 8px; flex: none; }
.demo-bar .dbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.demo-bar .dbtn--y { background: #d9f99d; color: #1a2e05; }
.demo-bar .dbtn--g { border: 1px solid #3f3f46; color: #e4e4e7; }
.demo-bar .dbtn--g span { display: none; }
@media (min-width: 640px) { .demo-bar .dbtn--g span { display: inline; } }
@media (max-width: 380px) { .demo-bar .dbtn--g { display: none; } }

/* ---------- Image fallback ---------- */
.img-ph, img.img-fail {
  display: block; width: 100%; height: 100%; min-height: 60px;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in oklab, var(--primary) 38%, transparent), transparent 60%),
    radial-gradient(90% 80% at 90% 90%, color-mix(in oklab, var(--accent) 34%, transparent), transparent 60%),
    var(--surface-2);
}
img.img-fail { color: transparent; font-size: 0; }

/* ---------- Status page ---------- */
.status { min-height: 100svh; display: grid; place-items: center; padding: 24px; text-align: center; }
.status__in { display: grid; gap: 1rem; justify-items: center; max-width: 520px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .rv.is-in { opacity: 1; transform: none; }
}

/* =========================================================
   Generasi 2 — varian layout baru (dipakai 5 gaya baru,
   tapi bisa dipilih juga oleh semua template lewat dashboard)
   ========================================================= */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header: menu layar penuh (Bento) ---------- */
.hdr--menu .nav { display: none !important; }
.hdr--menu .menu-btn { display: inline-grid !important; }
.hdr--menu .mnav { position: fixed; left: 0; right: 0; top: var(--hdr-h); bottom: 0; max-height: none; z-index: 39; }
.hdr--menu .mnav__in { padding-block: 20px 40px; }
.hdr--menu .mnav__a { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: clamp(1.5rem, 1rem + 3vw, 3rem); min-height: 64px; line-height: 1.15; }
@media (min-width: 960px) { .hdr--menu .mnav:not([hidden]) { display: block !important; } .hdr--menu .mnav__in { width: min(100% - 64px, 900px); } }
.mnav__info { display: grid; gap: 12px; padding-top: 16px; color: var(--muted); font-size: .94rem; }
.mnav__info p { display: flex; gap: 8px; align-items: flex-start; }
.mnav__info .ic { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Header: logo di tengah, menu terbelah (Arch) ---------- */
@media (min-width: 960px) {
  .hdr--split .hdr__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 16px; }
  .hdr--split .nav--l { justify-self: start; }
  .hdr--split .brand { margin: 0; justify-self: center; }
  .hdr--split .nav--r { justify-self: end; }
}

/* ---------- Header: toko (Etalase) ---------- */
.annbar { background: var(--ink); color: var(--bg); font-size: .84rem; }
.annbar__in { display: flex; align-items: center; gap: .5rem; min-height: 38px; }
.annbar__in span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.annbar__in a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 600; padding: 8px 0; }
.annbar .ic { width: 16px; height: 16px; color: var(--accent); }
.hdr--shop .menu-btn { display: none !important; }
.hdr--shop .hdr__in { gap: 12px; }
.hsearch { display: none; position: relative; flex: 1; max-width: 560px; align-items: center; }
.hsearch .ic { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.hsearch .input { padding-left: 44px; min-height: 46px; border-radius: 999px; background: var(--surface); border-color: transparent; }
@media (min-width: 768px) { .hsearch { display: flex; } .hsearch-m { display: none !important; } .hdr--shop .brand { margin-right: 8px; } .hdr--shop .hdr__act { margin-left: auto; } }
.catnav { border-top: 1px solid var(--line); }
.catnav__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav__in::-webkit-scrollbar { display: none; }
.catnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.catnav a:hover, .catnav a.is-active { color: var(--ink); border-bottom-color: var(--primary); }

/* tab bawah (HP) */
.tabbar { position: fixed; left: 0; right: 0; bottom: var(--demo-bar); z-index: 37; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .25); }
.tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 60px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: .74rem; font-weight: 600; line-height: 1.1; }
.tabbar .ic { width: 22px; height: 22px; }
.tabbar .is-active { color: var(--primary-text); }
.tabbar .tabbar__wa { color: #12924b; }
.tabbar .cart-count { top: 4px; right: calc(50% - 24px); }
.has-tabbar { --tabbar: 60px; }
.has-tabbar .wa-float { display: none; }
.has-tabbar .ftr { padding-bottom: calc(32px + var(--tabbar) + env(safe-area-inset-bottom)); }
.has-tabbar .toast { bottom: calc(20px + var(--tabbar) + var(--demo-bar) + env(safe-area-inset-bottom)); }
.page-product .tabbar { display: none; }
@media (min-width: 960px) { .tabbar { display: none; } .has-tabbar .ftr { padding-bottom: 32px; } .has-tabbar .wa-float { display: grid; } .has-tabbar .toast { bottom: calc(24px + var(--demo-bar)); } }

/* ---------- Menu samping (Studio) ---------- */
.sidebar { display: none; }
@media (min-width: 1024px) {
  .has-side { --side: 300px; }
  .sidebar { display: block; position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 41; overflow-y: auto; background: var(--bg); border-right: 1px solid var(--line); }
  .sidebar__in { min-height: 100%; display: flex; flex-direction: column; gap: 20px; padding: 32px 28px 28px; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand__name { white-space: normal; }
  .sidebar__tag { color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .sidebar__nav { display: grid; margin-top: 8px; }
  .sidebar__nav a { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: 1.55rem; line-height: 1.2; color: color-mix(in oklab, var(--ink) 50%, var(--bg)); transition: color .2s ease, transform .2s ease; }
  .sidebar__nav a span { font-family: var(--font-body), sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
  .sidebar__nav a:hover, .sidebar__nav a.is-active { color: var(--ink); transform: translateX(4px); }
  .sidebar__nav a.is-active span { color: var(--primary-text); }
  .sidebar__foot { margin-top: auto; display: grid; gap: 12px; font-size: .88rem; color: var(--muted); }
  .sidebar__foot p { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
  .sidebar__foot .ic { width: 16px; height: 16px; margin-top: 3px; }
  .row-actions { display: flex; gap: 8px; }
  .has-side .hdr--side { display: none; }
  .has-side main, .has-side .ftr { margin-left: var(--side); }
}

/* ---------- Hero: Bento ---------- */
.hero--bento { padding-block: clamp(14px, 3vw, 32px) var(--sec-y); }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento__t { position: relative; overflow: hidden; min-width: 0; border-radius: var(--r-lg); background: var(--surface); }
.bt-title { grid-column: 1 / -1; display: grid; gap: 1rem; align-content: end; padding: clamp(22px, 4vw, 44px); background: var(--primary); color: var(--on-primary); --muted: color-mix(in oklab, var(--on-primary) 78%, var(--primary)); --primary-text: var(--on-primary); }
.bt-title .display { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.8rem); }
.bt-title .lead { color: var(--muted); }
.bt-title .btn--primary { --btn-bg: var(--on-primary); --btn-ink: var(--primary); }
.bt-title .btn--primary:hover { background: color-mix(in oklab, var(--on-primary) 88%, var(--primary)); }
.bt-title .btn--ghost { border-color: color-mix(in oklab, var(--on-primary) 45%, transparent); color: var(--on-primary); }
.bt-img { aspect-ratio: 1; background: var(--surface-2); }
.bt-img img { width: 100%; height: 100%; object-fit: cover; }
.bt-img--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.bt-stat { display: grid; align-content: center; gap: 6px; padding: 18px; background: var(--accent); color: var(--on-accent); }
.bt-stat b { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1; }
.bt-stat b .ic { width: 36px; height: 36px; }
.bt-stat span { font-size: .9rem; line-height: 1.35; }
.bt-badges { display: grid; align-content: center; gap: 10px; padding: 18px; font-size: .9rem; font-weight: 600; }
.bt-badges span { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.bt-badges .ic { color: var(--primary-text); width: 18px; height: 18px; margin-top: 1px; }
.bt-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 150px; padding: 18px; background: var(--ink); color: var(--bg); }
.bt-cta > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: #25d366; color: #fff; }
.bt-cta b { font-size: 1.05rem; line-height: 1.25; padding-right: 24px; }
.bt-cta > .ic { position: absolute; top: 18px; right: 18px; transition: transform .2s ease; }
.bt-cta:hover > .ic { transform: translate(3px, -3px); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 16px; }
  .bt-title { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .bt-img--main { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: auto; }
  .bt-img { aspect-ratio: auto; }
}

/* ---------- Hero: banner geser (Etalase) ---------- */
.hero--slider { padding-block: 16px var(--sec-y); }
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; display: grid; align-items: end; min-height: 440px; overflow: hidden; isolation: isolate; scroll-snap-align: start; color: #fff; --muted: rgb(255 255 255 / .86); --primary-text: #fff; }
.slide__bg { position: absolute; inset: 0; z-index: -2; background: var(--surface-2); }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .78), rgb(0 0 0 / .1) 70%); }
.slide__text { display: grid; gap: .9rem; max-width: 640px; padding: clamp(22px, 5vw, 56px); padding-top: 64px; }
.slide .display { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); }
.slide .h2 { color: #fff; }
.slide .lead { color: rgb(255 255 255 / .86); }
.slide .eyebrow { color: #fff; }
@media (min-width: 768px) { .slide { min-height: 480px; } .slide::after { background: linear-gradient(90deg, rgb(0 0 0 / .72), rgb(0 0 0 / .08) 72%); } .slide { align-items: center; } }
.slider__dots { position: absolute; top: 10px; right: 10px; display: flex; gap: 0; padding: 0 4px; border-radius: 999px; background: rgb(0 0 0 / .3); }
.slider__dots button { display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 0; background: none; }
.slider__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgb(255 255 255 / .55); transition: width .2s ease, background-color .2s ease; }
.slider__dots button[aria-selected="true"]::before { width: 20px; background: #fff; }
.usp { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.usp li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.usp .ic { color: var(--primary-text); }
@media (min-width: 640px) { .usp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Hero: lengkung (Arch) ---------- */
.hero--arch { padding-block: clamp(28px, 5vw, 72px) var(--sec-y); }
.archhero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .archhero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.archhero__media { position: relative; display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; align-items: end; }
.archimg { overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: var(--surface-2); }
.archimg img { width: 100%; height: 100%; object-fit: cover; }
.archimg--main { aspect-ratio: 3 / 4.2; }
.archimg--small { aspect-ratio: 3 / 4; margin-bottom: 16%; }
.ring { position: absolute; top: -2%; right: 2%; width: clamp(92px, 22vw, 124px); height: auto; aspect-ratio: 1; border-radius: 999px; background: var(--bg); padding: 4px; box-shadow: var(--shadow); animation: spin 24s linear infinite; }
.ring text { font-family: var(--font-body), sans-serif; font-size: 9.4px; font-weight: 700; letter-spacing: .16em; fill: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ring, .poster__sun { animation: none; } }
.about--arch .about__img { border-radius: 999px 999px var(--r-lg) var(--r-lg); aspect-ratio: 4 / 5; }

/* ---------- Hero: layar terbelah (Studio) ---------- */
.ss { display: grid; }
.ss__img { overflow: hidden; aspect-ratio: 4 / 5; max-height: 70svh; background: var(--surface-2); }
.ss__img img { width: 100%; height: 100%; object-fit: cover; }
.ss__text { display: grid; gap: 1.1rem; align-content: center; padding: clamp(28px, 6vw, 72px) var(--gutter); }
.ss .display { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 5rem); line-height: .98; }
.ss__list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; border-top: 1px solid var(--line); }
.ss__list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.ss__list span { color: var(--primary-text); font-weight: 700; font-size: .86rem; }
@media (min-width: 1024px) {
  .ss { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
  .ss__img { aspect-ratio: auto; max-height: none; }
  .ss__text { padding: 64px clamp(32px, 4vw, 72px); }
}

/* ---------- Hero: poster (Retro) ---------- */
.hero--poster { padding-top: clamp(28px, 5vw, 64px); background: var(--tint); }
.poster { display: grid; gap: 36px; align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .poster { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; } }
.poster__art { position: relative; display: grid; place-items: center; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto; }
.poster__sun { position: absolute; inset: 0; border-radius: 999px; background: repeating-conic-gradient(var(--accent) 0 9deg, transparent 9deg 18deg); opacity: .5; animation: spin 80s linear infinite; }
.poster__img { position: relative; width: 74%; aspect-ratio: 1; overflow: hidden; border-radius: 999px; border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--surface-2); }
.poster__img img { width: 100%; height: 100%; object-fit: cover; }
.poster__sticker { position: absolute; max-width: 58%; padding: .5rem .9rem; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: .86rem; line-height: 1.25; text-align: center; }
.poster__sticker--1 { top: 6%; left: 0; transform: rotate(-7deg); }
.poster__sticker--2 { bottom: 9%; right: 0; transform: rotate(6deg); background: var(--accent); color: var(--on-accent); }
.poster__wave { display: block; width: 100%; height: 40px; fill: var(--bg); margin-bottom: -1px; }

/* ---------- Kategori: bulat geser ---------- */
.crail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.crail::-webkit-scrollbar { display: none; }
.crail__i { flex: none; width: 78px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.crail__img { display: grid; place-items: center; width: 68px; height: 68px; overflow: hidden; border-radius: 999px; background: var(--surface-2); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s ease; }
.crail__i:hover .crail__img { box-shadow: 0 0 0 2px var(--primary); }
.crail__img img { width: 100%; height: 100%; object-fit: cover; }
.crail__img--all { background: var(--tint); color: var(--primary-text); }
.crail__img--all .ic { width: 26px; height: 26px; }
.crail__n { font-size: .82rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 960px) { .crail { flex-wrap: wrap; justify-content: center; gap: 22px; overflow: visible; margin-inline: 0; padding-inline: 0; } .crail__i { width: 96px; } .crail__img { width: 84px; height: 84px; } }

/* ---------- Produk: mosaik bento & indeks ---------- */
.pbento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pbento > :first-child { grid-column: 1 / -1; }
.pbento > :first-child .pcard__media { aspect-ratio: 16 / 10; }
.pbento > :last-child:nth-child(even) { grid-column: 1 / -1; }
.pbento > :last-child:nth-child(even) .pcard__media { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .pbento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .pbento > :first-child { grid-column: span 2; grid-row: span 2; }
  .pbento > :first-child .pcard__media { flex: 1; aspect-ratio: auto; min-height: 380px; }
  .pbento > :first-child .pcard__name { font-size: 1.5rem; }
  .pbento > :last-child:nth-child(even) { grid-column: span 2; }
  .pbento > :last-child:nth-child(even) .pcard__media { aspect-ratio: auto; flex: 1; min-height: 220px; }
}
.pindex { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.pidx { position: relative; display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pidx__n { width: 22px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pidx__img { width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.pidx__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pidx:hover .pidx__img img { transform: scale(1.06); }
.pidx__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
.pidx__name { overflow-wrap: break-word; }
.pidx__name { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: clamp(1.02rem, .92rem + .8vw, 1.6rem); line-height: 1.2; transition: color .2s ease; }
.pidx__name::after { content: ""; position: absolute; inset: 0; }
.pidx:hover .pidx__name { color: var(--primary-text); }
.pidx__cat { font-size: .82rem; color: var(--muted); }
.pidx__price { display: grid; text-align: right; font-weight: 700; white-space: nowrap; line-height: 1.25; }
.pidx__price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.pidx__go { display: none; }
/* HP kecil: nomor urut disembunyikan supaya nama produk tidak terpotong */
@media (max-width: 399px) { .pidx { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; } .pidx__n { display: none; } .pidx__img { width: 52px; height: 52px; } .pidx__name { overflow-wrap: break-word; } }
@media (min-width: 768px) {
  .pidx { grid-template-columns: 40px 104px minmax(0, 1fr) auto 44px; gap: 24px; padding: 18px 0; }
  .pidx__img { width: 104px; height: 78px; }
  .pidx__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background-color .2s ease, color .2s ease; }
  .pidx:hover .pidx__go { background: var(--ink); color: var(--bg); }
}

/* ---------- Keunggulan: bento & strip ---------- */
.fbento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-auto-flow: dense; }
.fbento__t { display: grid; gap: .6rem; align-content: start; min-width: 0; padding: clamp(18px, 2.5vw, 28px); border-radius: var(--r-lg); background: var(--surface); }
.fbento__t.is-lead { background: var(--ink); color: var(--bg); --muted: color-mix(in oklab, var(--bg) 70%, var(--ink)); }
.fbento__t.is-lead .feat__ic { background: color-mix(in oklab, var(--bg) 12%, var(--ink)); color: var(--accent); }
.fbento__t.is-lead .feat__t { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.fbento__img { padding: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.fbento__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 560px) { .fbento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fbento__t.is-lead, .fbento__img { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .fbento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fbento__t.is-lead { grid-column: span 2; grid-row: span 2; align-content: end; }
  .fbento__img { grid-column: span 2; aspect-ratio: auto; min-height: 200px; }
  .fbento > :last-child { grid-column: span 2; }
}
.sec--features:has(.fstrip) { padding-block: clamp(18px, 3vw, 32px); }
.fstrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fstrip__i { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: var(--r); background: var(--surface); }
.fstrip__i .feat__ic { width: 40px; height: 40px; flex: none; }
.fstrip__i .feat__ic .ic { width: 20px; height: 20px; }
.fstrip__i > span:last-child { min-width: 0; }
.fstrip__i b { display: block; font-size: .92rem; line-height: 1.25; }
.fstrip__i small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 419px) { .fstrip small { display: none; } }
@media (min-width: 900px) { .fstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .fstrip__i { padding: 16px; } }

/* ---------- Testimoni: dinding ---------- */
.twall { columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .twall { columns: 2; } }
@media (min-width: 1024px) { .twall { columns: 3; } }
.twall .tcard { display: grid; break-inside: avoid; margin-bottom: 16px; }
.twall .tcard:nth-child(4n+1) .tcard__q { font-size: 1.14rem; }

/* ---------- Galeri: pita geser ---------- */
.gfilm { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.gfilm::-webkit-scrollbar { display: none; }
.gfilm .gitem { aspect-ratio: 3 / 4; scroll-snap-align: start; }

/* ---------- CTA: foto di samping ---------- */
.cta--split { display: grid; padding: 0; background: var(--tint); color: var(--ink); --muted: color-mix(in oklab, var(--ink) 68%, var(--bg)); }
.cta--split::after { display: none; }
.cta--split .cta__bg { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
.cta--split .cta__in { padding: clamp(24px, 5vw, 64px); }
.cta--split .lead { color: var(--muted); }
.cta--split .btn--light { --btn-bg: var(--primary); --btn-ink: var(--on-primary); }
@media (min-width: 768px) { .cta--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cta--split .cta__bg { aspect-ratio: auto; min-height: 100%; } .cta--split .cta__in { align-content: center; } }

/* ---------- Promo ---------- */
.promo { position: relative; display: grid; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); }
.promo__img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.promo__img img { width: 100%; height: 100%; object-fit: cover; }
.promo__text { display: grid; gap: .9rem; align-content: center; padding: clamp(22px, 5vw, 56px); }
.promo__tag { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .35rem .8rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .82rem; font-weight: 700; }
.promo__tag .ic { width: 15px; height: 15px; }
.promo .btn--ink { --btn-bg: var(--ink); --btn-ink: var(--bg); }
.promo--banner { background: var(--accent); color: var(--on-accent); --muted: color-mix(in oklab, var(--on-accent) 76%, var(--accent)); }
.promo--banner .lead { color: var(--muted); }
@media (min-width: 768px) { .promo--banner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .promo--banner .promo__img { order: 2; aspect-ratio: auto; min-height: 100%; } }
.promo--full { min-height: 360px; align-items: end; color: #fff; }
.promo--full .promo__img { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.promo--full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .78), rgb(0 0 0 / .15)); }
.promo--full .lead { color: rgb(255 255 255 / .86); }
.promo--full .promo__tag { background: #fff; color: #111; }

/* ---------- Pilih kategori lewat modal (bukan deretan kapsul) ---------- */
.ctools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ctools .search { grid-column: 1 / -1; order: -1; }
.ctools:not(.has-cat) .search { grid-column: auto; order: 0; }
.ctools .select { width: auto; min-width: 0; }
@media (min-width: 720px) {
  .ctools.has-cat { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr) auto; }
  .ctools .search { grid-column: auto; order: 0; }
  .ctools .select { min-width: 150px; }
}
.toolbar:has(.ctools) { display: block; }
.catbtn {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--card); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease;
}
.catbtn:hover { border-color: var(--ink); }
.catbtn.is-set { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.catbtn .ic { width: 18px; height: 18px; color: var(--muted); }
.catbtn.is-set > .ic:first-child { color: var(--primary-text); }
.catbtn__t { display: grid; min-width: 0; line-height: 1.2; }
.catbtn__t small { font-size: .74rem; color: var(--muted); }
.catbtn__t b { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.clist { display: grid; gap: 4px; margin: 0 -8px; }
.clist__a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 6px 8px; border-radius: var(--r); transition: background-color .15s ease; }
.clist__a:hover { background: var(--surface-2); }
.clist__a.is-active { background: var(--tint); }
.clist__a > .ic { width: 18px; height: 18px; color: var(--muted); }
.clist__a.is-active > .ic { color: var(--primary-text); }
.clist__img { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.clist__img img { width: 100%; height: 100%; object-fit: cover; }
.clist__img--all { background: var(--tint); color: var(--primary-text); }
.clist__img--all .ic { width: 22px; height: 22px; }
.clist__t { display: grid; min-width: 0; }
.clist__t b { font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.clist__t small { font-size: .82rem; color: var(--muted); }
.sheet--cats .sheet__b { gap: 12px; }

.catnav button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.catnav button .ic { width: 16px; height: 16px; }
.catnav button:hover { border-bottom-color: var(--primary); }

button.crail__i { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.crail__img--all { font-weight: 800; font-size: 1.05rem; }
.cat--more { border: 0; font: inherit; cursor: pointer; text-align: left; background: var(--tint); color: var(--primary-text); }
.cat--more::after { display: none; }
.cat__plus { font-family: var(--font-head), sans-serif; font-weight: var(--head-weight); font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); line-height: 1; margin-bottom: auto; }
.cat--more { align-content: stretch; grid-template-rows: 1fr auto auto; }

/* ---------- Stok, varian berfoto, info pemesanan ---------- */
.badge--low { background: #fff4d6; color: #7a4b00; }
.opt__cur { font-weight: 500; color: var(--muted); }
.opt__v span { gap: .5rem; }
.opt__v span b { font-weight: inherit; }
.opt__v span small { font-size: .78rem; opacity: .75; font-weight: 600; }
.opt__v--img span { padding-left: .35rem; }
.opt__img { display: block; width: 32px; height: 32px; flex: none; overflow: hidden; border-radius: calc(var(--r-btn) * .6); background: var(--surface-2); }
.opt__img img { width: 100%; height: 100%; object-fit: cover; }
.opt__v.is-out span { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; cursor: not-allowed; }
.opt__v.is-out span small { text-decoration: none; }
.pd__sku { font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.pd__note, .order-note { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--tint); color: var(--ink); font-size: .9rem; line-height: 1.45; }
.pd__note .ic, .order-note .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--primary-text); }
.order-note { margin-bottom: .6rem; }
.pd__stock { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pd__stock.is-low { color: #a15c00; }
.pd__stock.is-out { color: #b42318; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
