/* =====================================================================
   Perintilan Estetik — stylesheet website
   Mengikuti mockup UI/UI 2.png: krem lembut, serif tipis, tombol sage,
   kartu kategori dengan bar krem dan panah bundar, tampilan editorial minimal.
   ===================================================================== */

:root {
  --bg: #FAF7F2;
  --bg-header: #F9F5EF;
  --band: #F5F0E9;
  --band-2: #F1EBE3;
  --bar: #F8F3ED;
  --chip: #EFE9E1;
  --chip-hover: #E8E1D8;
  --card: #FFFFFF;
  --circle: #E8DFD4;
  --brown: #3A2C22;
  --text: #4A3D33;
  --muted: #6F6358;
  --eyebrow: #6D604D;
  --sage: #71765E;
  --sage-dark: #5C614B;
  --sage-soft: #E6E8DD;
  --line: #E6DFD5;
  --star: #C9962F;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 16px 40px rgba(58, 44, 34, .12);
  --shadow-sm: 0 4px 14px rgba(58, 44, 34, .06);
  --font-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 76px;
  --gutter: clamp(16px, 6.8vw, 103px);
  --container: 1516px;
  --section-y: clamp(40px, 4.5vw, 60px);
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums;
}
body.has-dialog { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brown); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografi ---------- */
h1, h2, h3, .wordmark { font-family: var(--font-serif); font-weight: 400; color: var(--brown); letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--eyebrow); font-weight: 500; }
.eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.1; }
.sec-head p { color: var(--muted); max-width: 56ch; font-size: .95rem; }
.more { display: inline-flex; align-items: center; gap: 10px; color: var(--brown); text-decoration: none; font-weight: 500; font-size: .92rem; min-height: 40px; }
.more span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.more:hover span { text-decoration-color: var(--sage); }
.more svg.i { width: 18px; height: 18px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg.i { width: 18px; height: 18px; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-ghost:hover { background: rgba(58, 44, 34, .06); }
.btn-soft { background: var(--chip); color: var(--brown); }
.btn-soft:hover { background: var(--chip-hover); }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--band); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; gap: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px; border: 0; background: transparent;
  color: var(--brown); font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer;
}
.link-btn span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-btn:hover span { text-decoration-color: var(--sage); }
.link-btn svg.i { width: 16px; height: 16px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--brown);
  display: inline-grid; place-items: center; position: relative; flex: none; transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(58, 44, 34, .06); }
.icon-btn.outlined { background: var(--bar); }
.circle-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--circle); color: var(--brown);
  display: inline-grid; place-items: center; flex: none; transition: background .2s, color .2s;
}
.circle-btn:hover { background: #DDD2C4; }
.circle-btn svg.i { width: 16px; height: 16px; }
.circle-btn[aria-pressed="true"] { background: var(--sage); color: #fff; }
.circle-btn[aria-pressed="true"] svg.i { fill: currentColor; }
.circle-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--circle); color: var(--brown); display: inline-grid; place-items: center; flex: none; transition: background .2s; }
.circle-arrow svg.i { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg-header); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; justify-self: start; }
.brand .leaf { width: 36px; height: 36px; flex: none; }
.wordmark { font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.main-nav { display: flex; justify-content: center; gap: 14px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text); text-decoration: none;
  font-weight: 500; font-size: .95rem;
}
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1.5px; background: var(--brown); opacity: 0; transition: opacity .2s; }
.main-nav a:hover { color: var(--brown); }
.main-nav a[aria-current="true"] { color: var(--brown); }
.main-nav a[aria-current="true"]::after { opacity: 1; }
.header-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--sage); color: #fff; font-size: .68rem; font-weight: 600; display: grid; place-items: center; line-height: 1;
}
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--bg-header); padding: 12px 0 14px; }
.search-panel-inner { display: flex; align-items: center; gap: 10px; }
.search-panel .search-field { flex: 1; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg-header); padding: 10px var(--gutter) 20px; }
.mobile-nav nav a { display: flex; align-items: center; min-height: 50px; padding: 0 4px; font-size: 1.05rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav nav a[aria-current="true"] { color: var(--brown); }
.mobile-nav .mobile-contact { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .header-inner { gap: 14px; }
  .main-nav a { padding: 0 10px; font-size: .92rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-inner { display: flex; gap: 6px; }
  .nav-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .brand { margin-right: auto; min-width: 0; gap: 6px; }
  .wordmark { font-size: 1.35rem; overflow: hidden; text-overflow: ellipsis; }
  .brand .leaf { width: 30px; height: 30px; }
  .header-right { gap: 0; }
}
@media (max-width: 400px) { .wordmark { font-size: 1.15rem; } .brand .leaf { width: 26px; height: 26px; } }

/* ---------- Kolom pencarian umum ---------- */
.search-field { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.search-field svg.i { width: 19px; height: 19px; color: var(--brown); }
.search-field input { border: 0; background: transparent; flex: 1; min-width: 0; font-size: .93rem; color: var(--text); }
.search-field input::placeholder { color: #8E8378; }
.search-field input:focus { outline: none; }
.search-field:focus-within { box-shadow: 0 0 0 2px var(--sage-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--band), var(--band-2)); scroll-margin-top: var(--header-h); }
.hero-leaf { position: absolute; left: -36px; top: 8px; height: 90%; width: auto; z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; min-height: 525px; display: flex; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.hero-text { max-width: 470px; padding-left: 32px; }
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.9rem); line-height: .98; margin-top: 22px; letter-spacing: -.005em; }
.hero .lead { margin-top: 24px; font-size: 1.1rem; line-height: 1.5; color: var(--muted); max-width: 22em; }
.hero .btn { margin-top: 30px; }
.hero-media { position: absolute; top: 0; bottom: 0; left: 35%; right: 0; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--band) 0%, rgba(245, 240, 233, .7) 7%, rgba(245, 240, 233, 0) 20%); pointer-events: none; }

/* ---------- Kartu kategori ---------- */
#kategori.section { padding-top: 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bar); text-decoration: none; color: var(--brown); }
.cat-card figure { aspect-ratio: 316 / 215; overflow: hidden; background: var(--chip); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 20px 10px 22px; }
.cat-bar h3 { font-size: 1.6rem; line-height: 1; }
.cat-card:hover .circle-arrow { background: #DDD2C4; }

/* ---------- Kartu produk ---------- */
.featured-grid, .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--chip); aspect-ratio: 4 / 3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-media:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--bg-header); color: var(--brown); font-size: .74rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.product-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 2px; }
.product-cat { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.product-name { font-size: 1.4rem; line-height: 1.15; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--sage-dark); }
.rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.rating .stars { display: inline-flex; gap: 1px; color: var(--star); }
.rating .stars svg { width: 14px; height: 14px; }
.rating b { color: var(--brown); font-weight: 600; }
.product-price { font-size: .95rem; color: var(--brown); font-weight: 500; }
.product-price.is-placeholder { color: var(--muted); font-weight: 400; font-style: italic; }
.product-desc { font-size: .86rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-actions { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.product-actions .link-btn { margin-right: auto; }

/* ---------- Belanja (katalog) ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 4px; }
.shop-toolbar .search-field { flex: 1 1 260px; max-width: 400px; min-height: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--chip); font-size: .88rem; font-weight: 500; color: var(--brown); transition: background .2s, color .2s; display: inline-flex; align-items: center; }
.chip:hover { background: var(--chip-hover); }
.chip[aria-pressed="true"] { background: var(--brown); color: #fff; }
.chip .n { opacity: .6; margin-left: 4px; font-weight: 400; }
.select-field { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: .88rem; }
.select-field select { border: 0; background: transparent; color: var(--brown); font-weight: 500; min-height: 38px; }
.select-field select:focus { outline: none; }
.select-field:focus-within { box-shadow: 0 0 0 2px var(--sage-soft); }
.result-count { margin: 18px 0 14px; font-size: .86rem; color: var(--muted); min-height: 1.4em; }
.empty { text-align: center; padding: 52px 20px; border-radius: var(--radius-lg); background: var(--bar); }
.empty svg.i { width: 40px; height: 40px; color: var(--sage); margin: 0 auto; stroke-width: 1.2; }
.empty h3 { font-size: 1.7rem; margin-top: 12px; }
.empty p { color: var(--muted); margin-top: 6px; max-width: 46ch; margin-inline: auto; }
.empty .btn { margin-top: 18px; }
.also { margin-top: 44px; padding: 24px 26px 10px; background: var(--bar); border-radius: var(--radius-lg); }
.also h3 { font-size: 1.6rem; }
.also p { color: var(--muted); margin-top: 2px; font-size: .9rem; }
.mini-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.mini-item { flex: 0 0 auto; width: 112px; text-align: center; text-decoration: none; color: var(--text); scroll-snap-align: start; padding: 8px 4px 10px; border-radius: var(--radius); }
.mini-item:hover { background: var(--chip); }
.mini-item img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.mini-item span { display: block; font-size: .82rem; line-height: 1.3; font-weight: 500; }
.mini-item small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* ---------- Inspirasi ---------- */
.insp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insp-card { display: flex; flex-direction: column; }
.insp-card figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--chip); }
.insp-card img { width: 100%; height: 100%; object-fit: cover; }
.insp-body { padding: 16px 2px 8px; }
.insp-body h3 { font-size: 1.5rem; line-height: 1.15; }
.insp-body p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.insp-body a { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 40px; font-weight: 500; text-decoration: none; font-size: .9rem; color: var(--brown); }
.insp-body a span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.insp-body a svg.i { width: 16px; height: 16px; }
.insp-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 28px; }
.panel { background: var(--bar); border-radius: var(--radius-lg); padding: clamp(22px, 2.8vw, 34px); }
.panel h3 { font-size: 1.8rem; line-height: 1.1; }
.panel > p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.types { display: grid; gap: 4px; margin-top: 16px; }
.type { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.type img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.type b { display: block; font-weight: 600; color: var(--brown); }
.type span { font-size: .88rem; color: var(--muted); display: block; }
.type small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); margin-top: 4px; font-weight: 500; }
.tips-panel { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
.tips-panel figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--chip); }
.tips-panel img { width: 100%; height: 100%; object-fit: cover; }
.tips { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.tip { display: flex; gap: 12px; align-items: flex-start; }
.tip .num { width: 28px; height: 28px; border-radius: 50%; background: var(--circle); color: var(--brown); font-size: .76rem; font-weight: 600; display: grid; place-items: center; flex: none; margin-top: 1px; }
.tip b { display: block; color: var(--brown); font-weight: 600; font-size: .95rem; }
.tip span { font-size: .86rem; color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; }
.steps { list-style: none; counter-reset: step; margin-top: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--circle); color: var(--brown); font-size: .76rem; font-weight: 600; display: grid; place-items: center; flex: none; }
.steps li > div { flex: 1; }
.steps b { font-weight: 600; color: var(--brown); }
.steps span { color: var(--muted); font-size: .88rem; margin-left: 6px; }
.collage { position: relative; aspect-ratio: 1 / 1; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; }
.collage .c1 { left: 0; top: 0; width: 62%; height: 78%; }
.collage .c2 { right: 0; bottom: 0; width: 58%; height: 50%; }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.about-visual figure { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--chip); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; margin-top: 16px; }
.about-text > p { margin-top: 16px; color: var(--muted); }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 26px; }
.about-values > div { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); }
.about-values svg.i { width: 24px; height: 24px; color: var(--sage-dark); stroke-width: 1.4; margin-top: 1px; }
.about-values b { display: block; color: var(--brown); font-weight: 600; font-size: .95rem; }
.about-values span { font-size: .84rem; color: var(--muted); }
.consult { margin-top: 28px; background: var(--sage); color: #FBF8F2; padding: 26px 28px; border-radius: var(--radius-lg); }
.consult h3 { color: #FBF8F2; font-size: 1.8rem; line-height: 1.1; }
.consult p { margin-top: 8px; opacity: .9; font-size: .92rem; }
.consult-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.consult .btn-ghost { color: #FBF8F2; border-color: rgba(251, 248, 242, .6); }
.consult .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-y); background: var(--band); padding: clamp(40px, 5vw, 64px) 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { margin-top: 14px; font-size: .92rem; color: var(--muted); max-width: 38ch; }
.footer-brand em { font-family: var(--font-serif); font-style: italic; color: var(--brown); display: block; margin-top: 8px; font-size: 1.15rem; }
.site-footer h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 12px; font-weight: 500; }
.site-footer a { color: var(--text); text-decoration: none; }
.footer-links { list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 38px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--sage-dark); }
.footer-contact a { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.footer-contact .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--circle); color: var(--brown); display: grid; place-items: center; flex: none; }
.footer-contact small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-contact b { font-weight: 600; color: var(--brown); }
.footer-bottom { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

/* ---------- Dialog umum ---------- */
dialog { border: 0; padding: 0; background: var(--card); color: var(--text); max-width: 100vw; }
dialog::backdrop { background: rgba(58, 44, 34, .5); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--bar); }

/* Detail produk */
.product-dialog { width: min(960px, calc(100vw - 32px)); max-height: min(92vh, 900px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; max-height: min(92vh, 900px); }
.pd-media { position: relative; background: var(--band); padding: 12px; }
.pd-main { aspect-ratio: 4 / 5; height: 100%; border-radius: var(--radius); overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 8px; }
.pd-thumbs button { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; padding: 0; background: var(--chip); box-shadow: var(--shadow-sm); }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--sage); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 40px 36px 32px; overflow-y: auto; max-height: min(92vh, 900px); }
.pd-info h2 { font-size: 2.1rem; line-height: 1.08; margin-top: 8px; }
.pd-price { margin-top: 12px; font-size: 1.1rem; }
.pd-desc { margin-top: 14px; color: var(--muted); }
.spec { display: grid; grid-template-columns: 92px 1fr; gap: 10px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--text); font-weight: 500; }
.spec dd.is-placeholder { color: var(--muted); font-weight: 400; font-style: italic; }
.pd-note { margin-top: 18px; padding: 12px 14px; background: var(--band); color: var(--brown); border-radius: var(--radius); font-size: .86rem; line-height: 1.5; }
.pd-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Keranjang (drawer) */
.cart-dialog { width: min(430px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 0; box-shadow: var(--shadow); }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.7rem; }
.cart-head .dialog-close { position: static; }
.cart-body { flex: 1; overflow-y: auto; padding: 6px 20px 16px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item img { width: 72px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--chip); }
.ci-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--brown); line-height: 1.15; }
.ci-price { font-size: .84rem; color: var(--brown); margin-top: 3px; font-weight: 500; }
.ci-price.is-placeholder { font-style: italic; color: var(--muted); font-weight: 400; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; margin-top: 10px; background: var(--chip); }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--brown); display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: rgba(58, 44, 34, .08); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.cart-empty { text-align: center; padding: 56px 12px; }
.cart-empty svg.i { width: 44px; height: 44px; color: var(--sage); margin: 0 auto; stroke-width: 1.2; }
.cart-empty h3 { font-size: 1.6rem; margin-top: 12px; }
.cart-empty p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.cart-empty .btn { margin-top: 18px; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cart-total b { font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; color: var(--brown); }
.cart-total span { color: var(--muted); font-size: .88rem; text-align: right; }
.cart-foot .btn + .btn { margin-top: 8px; }
.cart-hint { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Toast & WhatsApp mengambang ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 70; background: var(--brown); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 0 20px 0 14px; border-radius: 999px; background: var(--sage); color: #fff; text-decoration: none; font-weight: 500; box-shadow: var(--shadow);
}
.wa-float:hover { background: var(--sage-dark); }
.wa-float svg.i { width: 24px; height: 24px; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .featured-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-inner { min-height: 0; display: block; padding-top: 36px; padding-bottom: 28px; }
  .hero-text { max-width: 560px; padding-left: 0; }
  .hero-leaf { height: 60%; left: -50px; top: 0; opacity: .8; }
  .hero-media { position: relative; left: auto; right: auto; height: 300px; margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; }
  .hero-media::before { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .featured-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .insp-grid { grid-template-columns: 1fr 1fr; }
  .insp-two { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .product-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .pd-grid { grid-template-columns: 1fr; max-height: none; height: 100dvh; overflow-y: auto; }
  .pd-main { aspect-ratio: 1 / 1; height: auto; }
  .pd-info { max-height: none; overflow: visible; padding: 22px 20px 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps span { display: block; margin-left: 0; }
  .collage { max-width: 320px; }
  .tips-panel { grid-template-columns: 1fr; }
  .tips-panel figure { max-width: 200px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 52px; justify-content: center; }
  .toast { bottom: 88px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.7rem; }
  .hero .lead { font-size: 1rem; }
  .hero-media { height: 240px; margin-top: 24px; }
  .cat-bar { min-height: 54px; padding: 8px 12px 8px 16px; }
  .cat-bar h3 { font-size: 1.3rem; }
  .circle-arrow { width: 30px; height: 30px; }
  .featured-grid, .product-grid { gap: 12px; }
  .product-name { font-size: 1.15rem; }
  .product-desc { display: none; }
  .product-actions { gap: 6px; }
  .product-actions .link-btn { font-size: .82rem; }
  .product-actions .link-btn svg.i { display: none; }
  .product-actions .circle-btn { width: 32px; height: 32px; }
  .product-card .product-actions [data-action="add"] { display: none; }
  .insp-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
