/* =========================================================
   RENNY COSMETICS — STYLE TOKO
   Warna dari logo: pink #FF6EB4 + plum + gold
   ========================================================= */
:root {
  --pink: #FF6EB4;
  --pink-strong: #C8317A;
  --pink-hover: #AE2668;
  --blush: #FFF0F6;
  --blush-2: #FFE1EE;
  --line: #F2DDE7;
  --ink: #3B1730;
  --muted: #7D6272;
  --gold: #9C7222;
  --gold-soft: #F8EDD5;
  --danger: #C62F3F;
  --ok: #2E7D5B;
  --wa: #1FA855;
  --wa-hover: #188A45;
  --bg: #FFFFFF;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
main:focus { outline: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--pink-strong); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--pink-hover); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--pink); color: var(--pink-strong); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row.center { justify-content: center; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: var(--blush); }
.icon-btn svg { width: 22px; height: 22px; }

.badge {
  position: absolute; top: 2px; right: 0;
  display: grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--pink-strong); color: #fff;
  font-size: 11px; font-weight: 700;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.link { color: var(--pink-strong); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pink-strong); font-size: 13px; font-weight: 600; text-decoration: underline; }
.link-btn:hover { color: var(--pink-hover); }

.input {
  width: 100%; padding: 10px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none;
}
.input:focus { border-color: var(--pink); }
.input-sm { padding: 8px 12px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--pink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sm { padding: 4px 10px; font-size: 12px; }

/* ---------- BAR PRATINJAU ---------- */
.preview-bar { background: var(--gold-soft); color: var(--ink); font-size: 13px; }
.preview-bar .container { padding: 8px 0; }
.preview-bar a { margin-left: 6px; color: var(--pink-strong); font-weight: 700; }

/* ---------- TOP BAR ---------- */
.topbar { background: var(--ink); color: #FCE4EF; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 12px 0; }
.logo img { height: 46px; width: auto; }
.search {
  position: relative;
  flex: 1; max-width: 640px; height: 46px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: var(--blush);
  border: 1.5px solid transparent; border-radius: 999px;
}
.search:focus-within { background: #fff; border-color: var(--pink); }
.search > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; }
.header-actions { display: flex; gap: 4px; margin-left: auto; }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  max-height: 70vh; overflow-y: auto;
  padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(59, 23, 48, .3);
}
.sg-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 14px; text-decoration: none;
}
.sg-row:hover, .sg-row:focus-visible { background: var(--blush); }
.sg-row small { display: block; color: var(--pink-strong); font-size: 11px; font-weight: 700; }
.sg-row b { font-size: 13px; white-space: nowrap; }
.sg-tag { padding: 2px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700; }
.sg-thumb { width: 40px; height: 40px; overflow: hidden; border-radius: 8px; background: var(--blush); }
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sg-thumb .ph span, .cart-thumb .ph span { display: none; }
.sg-all { display: block; color: var(--pink-strong); font-weight: 700; text-align: center; }
.sg-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.catnav { border-top: 1px solid var(--line); }
.catnav-inner { display: flex; gap: 4px; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-link {
  flex: none; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
.catnav-link:hover { background: var(--blush); color: var(--ink); }
.catnav-link.is-active { background: var(--blush); color: var(--pink-strong); }
.catnav-flash { margin-left: auto; background: var(--pink-strong); color: #fff; }
.catnav-flash:hover { background: var(--pink-hover); color: #fff; }

/* ---------- LOADING ---------- */
.loading { display: grid; justify-items: center; gap: 14px; padding: 120px 16px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--blush-2); border-top-color: var(--pink-strong); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HERO ---------- */
.hero { padding-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 2.1fr 1fr; gap: 14px; }
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; height: 100%; transition: transform .5s ease; }
.slide {
  position: relative; flex: 0 0 100%;
  display: flex; align-items: center;
  min-height: 330px; padding: 40px 56px;
  overflow: hidden;
}
.slide-soft { background: var(--blush); }
.slide-deep { background: var(--pink-strong); color: #fff; }
.slide-pink { background: var(--pink); }
.slide-gold { background: var(--gold-soft); }
.slide-dark { background: var(--ink); color: #fff; }
.slide-text { position: relative; z-index: 1; max-width: 58%; }
.slide h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.slide p { margin-top: 12px; max-width: 42ch; font-size: 15px; opacity: .85; }
.slide-btn { margin-top: 22px; background: var(--ink); color: #fff; padding: 12px 22px; }
.slide-btn:hover { background: #2a0f22; }
.slide-deep .slide-btn, .slide-dark .slide-btn { background: #fff; color: var(--pink-strong); }
.slide-art { position: absolute; right: 6%; bottom: -8%; width: 34%; max-width: 280px; opacity: .9; }
.slide-art svg { width: 100%; height: auto; }
.slide-soft .slide-art { color: var(--pink); }
.slide-deep .slide-art { color: #E4609F; }
.slide-pink .slide-art { color: #FFC2DE; }
.slide-gold .slide-art { color: #E9C77F; }
.slide-dark .slide-art { color: #6B2A57; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; line-height: 1;
}
.car-btn:hover { background: #fff; }
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
.car-dots { position: absolute; bottom: 14px; left: 56px; display: flex; gap: 6px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(59,23,48,.25); transition: width .2s; }
.car-dots button[aria-current] { width: 24px; background: var(--ink); }
.slide-deep ~ .car-dots button { background: rgba(255,255,255,.5); }

.hero-side { display: grid; gap: 14px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 22px; border-radius: var(--radius-lg); text-decoration: none; font-size: 14px;
}
.tile-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tile:hover .tile-title { text-decoration: underline; }
.tile-dark { background: var(--ink); color: #FCE4EF; }
.tile-dark .tile-title { color: #fff; }
.tile-gold { background: var(--gold-soft); }
.cd-inline { font-variant-numeric: tabular-nums; color: var(--pink); }

.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 14px 0 0; padding: 12px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.perks li { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.perks b { display: block; font-size: 14px; }
.perks span { display: block; color: var(--muted); font-size: 12px; }
.ui-icon { width: 26px; height: 26px; flex: none; color: var(--pink-strong); }

/* ---------- SECTION ---------- */
.section { padding-top: 44px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(21px, 2.3vw, 27px); font-weight: 800; letter-spacing: -.015em; }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.h2 { margin-bottom: 16px; font-size: 24px; font-weight: 800; }

.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 6px; text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cat-tile:hover { background: var(--blush); border-color: var(--pink); }
.cat-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blush); color: var(--pink-strong); }
.cat-tile:hover .cat-icon { background: #fff; }
.cat-icon svg { width: 28px; height: 28px; }
.cat-name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.cat-count { font-size: 11px; color: var(--muted); }

/* flash sale */
.flash { padding: 24px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.flash .section-head p { color: #F4CFE0; }
.flash .link { color: var(--pink); }
.flash-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.countdown {
  display: inline-block; margin-left: 4px; padding: 2px 10px;
  background: var(--pink); color: var(--ink); border-radius: 6px;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.flash .card { color: var(--ink); border-color: transparent; }
.flash-bar { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: var(--blush-2); }
.flash-bar span { display: block; height: 100%; border-radius: inherit; background: var(--pink-strong); }

/* deretan brand (3 pilihan: grid, geser, jalan) */
.brand-wall { margin-top: 44px; padding: 30px 0 26px; border-block: 1px solid var(--line); }
.brand-tile { display: grid; place-items: center; height: 72px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--pink-strong); font-weight: 800; font-size: 17px; text-align: center; text-decoration: none; line-height: 1.2; transition: border-color .15s; }
.brand-tile:hover { border-color: var(--pink); }
.brand-tile img { max-height: 46px; max-width: 140px; width: auto; object-fit: contain; }
/* 1. grid diam (paling ringan) */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 960px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
/* 2. geser manual */
.brand-scroll-wrap { position: relative; }
.brand-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.brand-scroll::-webkit-scrollbar { display: none; }
.brand-scroll .brand-tile { scroll-snap-align: start; }
.brand-nav { position: absolute; top: 50%; z-index: 1; width: 38px; height: 38px; margin-top: -19px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; box-shadow: 0 6px 16px -8px rgba(59, 23, 48, .35); }
.brand-nav.prev { left: 4px; }
.brand-nav.next { right: 4px; }
/* 3. berjalan pelan: hanya transform, berhenti saat tidak terlihat */
.brand-run { overflow: hidden; }
.brand-run-track { display: flex; gap: 12px; width: max-content; padding-left: 12px; }
.brand-run-track .brand-tile { width: 168px; flex: none; }
.brand-run.is-running .brand-run-track { animation: brandRun 60s linear infinite; }
.brand-run:hover .brand-run-track, .brand-run:focus-within .brand-run-track { animation-play-state: paused; }
@keyframes brandRun { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-grid .brand-tile:nth-child(n+10) { display: none; }
  .brand-tile { height: 60px; padding: 8px; font-size: 14px; }
  .brand-tile img { max-height: 36px; max-width: 100%; }
  .brand-nav { display: none; }
}

/* ---------- KARTU PRODUK ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.scroller > * { scroll-snap-align: start; }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #F3B7D3; box-shadow: 0 10px 24px -18px rgba(200, 49, 122, .6); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--blush); text-decoration: none; }
.cart-thumb, .sg-thumb { text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.tag-off {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--pink); color: var(--ink);
  font-size: 12px; font-weight: 800;
}
.tag-off.static { position: static; }
.tag-pick { position: absolute; bottom: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--pink-strong); font-size: 11px; font-weight: 700; }
.tag-out {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 6px; border-radius: 8px; text-align: center;
  background: rgba(59, 23, 48, .88); color: #fff; font-size: 12px; font-weight: 700;
}
.wish {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 2px 8px -2px rgba(59,23,48,.2);
}
.wish svg, .wish-lg svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.wish.on svg, .wish-lg.on svg { fill: var(--pink-strong); stroke: var(--pink-strong); }
.wish:hover svg { stroke: var(--pink-strong); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 14px; }
.card-brand { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--pink-strong); text-transform: uppercase; }
.card-name { font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.card-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; text-decoration: none; }
.card-name a:hover { color: var(--pink-strong); }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 4px; }
.card-price strong { font-size: 15.5px; font-weight: 800; }
.card-price s { font-size: 12px; color: var(--muted); }
.card-meta { font-size: 12px; color: var(--muted); }
.card-stock { font-size: 12px; font-weight: 700; color: var(--danger); }
.stars { color: #C98A13; font-weight: 700; }
.card-foot { margin-top: auto; padding-top: 10px; }
.btn-add { width: 100%; background: #fff; border-color: var(--pink-strong); color: var(--pink-strong); }
.btn-add:hover:not(:disabled) { background: var(--pink-strong); color: #fff; }

/* ilustrasi produk tanpa foto */
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg); color: var(--fg);
}
.ph svg { width: 38%; height: auto; }
.ph span { max-width: 84%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }

/* ---------- KEUNGGULAN / TESTIMONI / LOKASI ---------- */
.highlights { margin-top: 52px; padding: 40px 0; background: var(--blush); }
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hl { padding: 22px; background: #fff; border-radius: var(--radius); }
.hl .ui-icon { width: 30px; height: 30px; }
.hl h3 { margin-top: 12px; font-size: 16px; font-weight: 800; }
.hl p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.testi { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.testi blockquote { margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
.testi figcaption { font-size: 13px; color: var(--muted); }
.testi figcaption b { color: var(--ink); }

.visit { padding: 56px 0; }
.visit-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.visit h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.visit-address { margin-top: 10px; font-size: 18px; font-weight: 700; }
.visit-hours { margin-top: 4px; color: var(--ink); }
.visit-note { max-width: 50ch; margin-top: 8px; color: var(--muted); }
.visit-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.visit-card h3 { margin-bottom: 12px; font-size: 16px; }
.social-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--blush); font-weight: 700; text-decoration: none;
}
.social-list a:hover { background: var(--blush-2); }
.social-list span { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- KATALOG ---------- */
.crumbs { padding: 18px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pink-strong); text-decoration: underline; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.catalog-head h1, .page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.catalog-head p { margin-top: 4px; max-width: 70ch; color: var(--muted); font-size: 14px; }
.catalog-tools { display: flex; align-items: center; gap: 10px; }
.filter-open { display: none; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort select { padding: 8px 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; }
.catalog-grid { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }

.filters {
  position: sticky; top: 130px;
  max-height: calc(100vh - 150px); overflow-y: auto;
  display: grid; gap: 18px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  scrollbar-width: thin;
}
.filters-head { display: none; }
.fgroup { display: grid; gap: 2px; }
.fgroup h3 { margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.fopt {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13.5px; text-decoration: none;
}
.fopt:hover { background: var(--blush); }
.fopt.on { background: var(--blush); color: var(--pink-strong); font-weight: 700; }
.fopt .n { color: var(--muted); font-size: 12px; font-weight: 500; }
.brand-opts { display: grid; gap: 2px; margin-top: 6px; max-height: 320px; overflow-y: auto; }
.brand-opts .fopt.more { display: none; }
.brand-opts.expanded .fopt.more, .brand-opts.searching .fopt.more { display: flex; }
.brand-opts .fopt[hidden] { display: none !important; }
.fgroup .link-btn { justify-self: start; margin-top: 6px; }
.price-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.price-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.check, .radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--pink-strong); }
.fgroup .btn { margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.pager a:hover { background: var(--blush); }
.pager a.on { background: var(--pink-strong); color: #fff; }
.pager .off { color: #D6C5CE; }

.empty { display: grid; justify-items: center; gap: 12px; padding: 56px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { color: var(--ink); font-size: 20px; }
.empty p { max-width: 46ch; }

/* ---------- DETAIL PRODUK ---------- */
.pd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 10px; }
.pd-media { position: sticky; top: 130px; align-self: start; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--blush); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .ph svg { width: 30%; }
.pd-media .ph span { font-size: 16px; }
.pd-info { display: flex; flex-direction: column; gap: 12px; }
.pd-brand { align-self: start; color: var(--pink-strong); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; }
.pd-brand:hover { text-decoration: underline; }
.pd-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pd-sku { font-size: 12px; }
.pd-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pd-price strong { font-size: 30px; font-weight: 800; }
.pd-price s { color: var(--muted); }
.pd-stock { padding: 10px 14px; border-radius: 10px; background: var(--blush); font-size: 13px; font-weight: 600; }
.pd-stock.ok { background: #E7F4EE; color: var(--ok); }
.pd-stock.low { background: #FFF1E0; color: #A3550B; }
.pd-stock.out { background: #FDE8EA; color: var(--danger); }
.shades-title { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.shade-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 172px; overflow-y: auto; }
.shade { padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; }
a.shade:hover { border-color: var(--pink); }
.shade.on { border-color: var(--pink-strong); background: var(--blush); color: var(--pink-strong); font-weight: 700; }
.shade.out { color: #B9A8B1; text-decoration: line-through; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.pd-actions .btn-primary { flex: 1; min-height: 46px; }
.wish-lg { width: 46px; height: 46px; border: 1.5px solid var(--line); }
.pd-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pd-perks li { display: flex; align-items: center; gap: 6px; }
.pd-perks .ui-icon { width: 20px; height: 20px; }
.pd-desc { padding-top: 6px; }
.pd-desc h2 { margin: 12px 0 6px; font-size: 15px; font-weight: 800; }
.pd-desc p { max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-line; }

.qty { display: inline-flex; align-items: center; overflow: hidden; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 44px; border: 0; background: #fff; font-size: 18px; }
.qty button:hover:not(:disabled) { background: var(--blush); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input, .qty span { width: 44px; border: 0; text-align: center; font-weight: 700; -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: 30px; height: 30px; font-size: 15px; }
.qty-sm span { width: 30px; font-size: 14px; }

/* ---------- HALAMAN BRAND / BANTUAN ---------- */
.page { padding-bottom: 24px; }
.page-head { display: grid; gap: 6px; margin-bottom: 20px; }
.page-head p { color: var(--muted); }
.page-head .input { max-width: 420px; margin-top: 8px; }
.az { position: sticky; top: 118px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; background: #fff; border-bottom: 1px solid var(--line); }
.az a { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.az a:hover { background: var(--blush); color: var(--pink-strong); }
.az-group { padding-top: 22px; scroll-margin-top: 180px; }
.az-group h2 { margin-bottom: 10px; color: var(--pink-strong); font-size: 22px; font-weight: 800; }
.az-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.az-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.az-list a:hover { border-color: var(--pink); background: var(--blush); }
.az-list img { width: 40px; height: 24px; object-fit: contain; }
.az-list .n { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.help-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.help-card h2 { margin: 12px 0 8px; font-size: 17px; font-weight: 800; }
.help-card ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.help-card p { color: var(--muted); font-size: 14px; }
.pre { white-space: pre-line; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { background: var(--blush); border-color: var(--blush-2); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.help-more { margin-top: 28px; color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer { margin-top: 20px; padding: 46px 0 22px; background: var(--ink); color: #F3DCE7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-logo { width: auto; height: 46px; }
.footer-about { max-width: 34ch; margin-top: 14px; font-size: 14px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social a { padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.social a:hover { background: rgba(255,255,255,.1); }
.footer h4 { margin-bottom: 12px; color: #fff; font-size: 14px; }
.footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer a { color: #F3DCE7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.footer-admin { opacity: .6; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- DIALOG ---------- */
dialog { max-width: calc(100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; background: #fff; color: var(--ink); }
dialog::backdrop { background: rgba(59, 23, 48, .5); }
.modal { width: 760px; border-radius: var(--radius-lg); }
.modal-sm { width: 480px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h2 { font-size: 20px; font-weight: 800; }
.modal-foot, .form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.drawer { width: 420px; max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; flex-direction: column; }
.drawer[open] { display: flex; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.drawer-note { color: var(--muted); font-size: 12px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; }
.total-row strong { font-size: 20px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 72px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--blush); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-size: 14px; line-height: 1.35; }
.cart-price { margin-top: 2px; font-size: 14px; font-weight: 800; }
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-empty { display: grid; justify-items: center; gap: 16px; padding: 56px 0; color: var(--muted); text-align: center; }

.form { padding: 24px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.field > label, .field > legend, .field > .label { font-size: 13px; font-weight: 700; }
.field > legend { margin-bottom: 6px; padding: 0; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select, .field textarea { width: 100%; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); }
.field textarea { resize: vertical; }
.itk-check { margin-bottom: 14px; }
.form-error { margin-bottom: 12px; color: var(--danger); font-size: 13px; font-weight: 600; }
.summary { display: grid; gap: 6px; margin-bottom: 16px; padding: 14px; background: var(--blush); border-radius: 12px; font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed #E8C3D5; font-size: 15px; font-weight: 800; }
.summary-note { color: var(--muted); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 12px 18px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast button { padding: 0; border: 0; background: none; color: var(--pink); font-weight: 800; white-space: nowrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .hl-grid, .help-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .filter-open { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; z-index: 100; top: 0;
    max-height: none; border-radius: 0; border: 0; background: #fff;
    transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
  }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head h2 { font-size: 18px; font-weight: 800; }
  .pd { grid-template-columns: 1fr; gap: 20px; }
  .pd-media { position: static; max-width: 520px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 170px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .logo img { height: 38px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  .topbar a { display: none; }
  .slide { min-height: 260px; padding: 28px 22px 44px; }
  .slide-text { max-width: 100%; }
  .slide-art { width: 40%; right: -4%; opacity: .25; }
  .car-btn { display: none; }
  .car-dots { left: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scroller { grid-auto-columns: 158px; gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .flash { padding: 18px 14px; }
  .az { top: 150px; }
}
@media (max-width: 560px) {
  .hero-side { grid-template-columns: 1fr; }
  .tile { padding: 18px; }
  .cat-grid { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .cat-tile { flex: 0 0 104px; }
  .perks { grid-template-columns: 1fr; }
  .hl-grid, .help-grid, .visit-grid, .footer-grid { grid-template-columns: 1fr; }
  .catalog-tools { width: 100%; justify-content: space-between; }
  .pd-actions .btn-primary { flex-basis: 100%; order: 3; }
}

/* =========================================================
   AKUN PEMBELI
   ========================================================= */
.muted { color: var(--muted); }
.hint { margin-top: 2px; color: var(--muted); font-size: 12px; }
.small { font-size: 13px; }
.field .is-invalid, .is-invalid { border-color: var(--danger) !important; }
.field-error { margin-top: 4px; color: var(--danger); font-size: 12px; font-weight: 600; }
.loading.small { padding: 40px 0; }

.account-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.account-link:hover { background: var(--blush); }
.account-link svg { width: 22px; height: 22px; }

.auth-page { display: grid; place-items: center; padding: 40px 0 24px; }
.auth-card { width: min(100%, 440px); padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.auth-card > .muted { margin: 6px 0 20px; font-size: 14px; }
.auth-note { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: var(--gold-soft); font-size: 13px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 14px; }
.form-plain .field input { width: 100%; padding: 11px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.form-plain .field input:focus { border-color: var(--pink); }
.form-plain .check { margin-bottom: 14px; }

.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.account-head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { flex: none; padding: 10px 16px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab.on { border-bottom-color: var(--pink-strong); color: var(--pink-strong); }

.orders { display: grid; gap: 14px; }
.order { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order header, .order footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; }
.order header { background: #FFFAFC; border-bottom: 1px solid var(--line); font-size: 14px; }
.order ul { margin: 0; padding: 10px 16px; list-style: none; font-size: 14px; }
.order li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order footer { border-top: 1px solid var(--line); font-size: 14px; }
.order footer .btn-row { margin: 0; }
.admin-note { margin-top: 4px; color: var(--ok); font-size: 13px; }
.status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-new { background: var(--gold-soft); color: var(--gold); }
.st-ok { background: #E6EEFB; color: #3E64A8; }
.st-ship { background: var(--blush-2); color: var(--pink-strong); }
.st-done { background: #E7F4EE; color: var(--ok); }
.st-cancel { background: #EFE9EC; color: var(--muted); }

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.addr { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 14px; text-align: left; }
.addr.on { border-color: var(--pink); }
.addr .btn-row { margin-top: 8px; }
.addr-add { place-items: center; min-height: 140px; border-style: dashed; color: var(--pink-strong); font-weight: 700; }
.addr-add:hover { background: var(--blush); }

.panel-form { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-form h2 { margin-bottom: 14px; font-size: 18px; font-weight: 800; }
.panel-form .field input, .panel-form .field textarea, .panel-form .field select { width: 100%; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.panel-form .field input:focus, .panel-form .field textarea:focus { border-color: var(--pink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.grid-2 .span-2 { grid-column: span 2; }
.danger-zone { border-color: #F3C4CA; }
.btn.danger { color: var(--danger); }

.success { display: grid; justify-items: center; gap: 14px; max-width: 520px; margin: 40px auto; padding: 36px 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E7F4EE; color: var(--ok); font-size: 30px; font-weight: 800; }
.success h1 { font-size: 24px; font-weight: 800; }
.success p { color: var(--muted); }

.co-user { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--blush); font-size: 14px; }
.field select { width: 100%; }

@media (max-width: 720px) {
  .account-link span { display: none; }
  .account-link { padding: 0 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .span-2 { grid-column: auto; }
}
