/* Struktur bersama: reset, aksesibilitas, kartu, mood, dialog. Warna/font/bentuk diatur tiap versi. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.shopee-mark { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; text-decoration: none; font-weight: 600; }

/* Kartu */
.card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body, .card-no, .card-name, .card-sub, .card-price { display: block; }
.card-tag { position: absolute; left: 10px; top: 10px; }
.cat-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.cat-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; }
.cat-group { scroll-margin-top: 24px; }

/* Mood */
.mood-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.mood { display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; text-align: left; flex: none; }

/* Dialog: bottom sheet di mobile, panel dua kolom di layar lebar */
.sheet { width: 100%; max-width: 480px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; background: var(--surface); color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: rgb(30 14 12 / .55); }
.sheet-panel { position: relative; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgb(0 0 0 / .16); }
.sheet-img { width: 100%; aspect-ratio: 1; max-height: 42dvh; object-fit: cover; }
.sheet-body { display: grid; gap: 12px; padding: 20px 20px 24px; }
.sheet-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sheet-tag { padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; letter-spacing: .04em; }
.sheet-sub, .sheet-note, .sheet-sold { color: var(--muted); }
.sheet-sub { font-size: 15px; margin-top: -6px; }
.sheet-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sheet-price strong { font-size: 20px; }
.sheet-sold { font-size: 14px; }
.sheet-desc { font-size: 15px; }
.sheet-note { font-size: 13px; }
.sheet-block { display: grid; gap: 6px; }
.sheet-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet-scent { font-size: 15px; }
.sheet-notes, .sheet-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-notes li, .sheet-variants li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.sheet-buy { width: 100%; margin-top: 4px; }
.sheet-alt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; }
@media (min-width: 760px) {
  .sheet { max-width: 880px; margin: auto; }
  .sheet-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .sheet-media { position: sticky; top: 0; align-self: start; }
  .sheet-img { max-height: none; }
  .sheet-body { padding: 32px 28px; align-content: start; }
}
