/* ============================================================
   EBONI · SHARED STYLES
   Design tokens + components used across every page.
   Theme: strict monochrome — base putih, seluruh teks hitam,
   satu keluarga font (Inter). Layout & struktur tidak diubah.
   ============================================================ */

/* Single type family: Inter (Google Fonts) — dipakai seluruh halaman publik.
   Imported here so EVERY page that loads this stylesheet inherits the type system. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap');

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

:root {
  /* ── INK SCALE ──
     Putih-hitam murni: base putih (#fff), SEMUA teks hitam (#000). */
  --ink:#000000; --ink-s:#000000; --ink-m:#000000;
  --white:#fff; --off:#F5F5F5; --off2:#E5E5E5;

  /* ── ACCENT ──
     Monochrome: accent IS the ink (black). No colour anywhere.
     (var name kept as --pink so existing selectors keep working.) */
  --pink:#000000;     --pk-bg:#F5F5F5;

  /* ── SECONDARIES → hitam / abu netral ──
     Semua colour-coding lama diratakan agar palet ketat hitam-putih. */
  --green:#000000;    --gn-bg:#F5F5F5;
  --yellow:#000000;   --yw-bg:#F5F5F5;
  --blue:#000000;     --bl-bg:#F5F5F5;
  --coral:#000000;    --co-bg:#F5F5F5;
  --purple:#000000;   --pu-bg:#F5F5F5;

  --border:rgba(0,0,0,0.12);
  --hair:rgba(0,0,0,0.12);   /* hairline rules */

  /* ── RADII (restrained — editorial, not bubbly) ── */
  --r-sm:3px; --r-md:6px; --r-lg:10px; --r-xl:14px; --r-full:9999px;

  /* ── LAYOUT ── */
  --max-w:1200px;
  --pad-x:28px;
}

html { scroll-behavior:smooth; }
body {
  font-family:'Inter', system-ui, sans-serif;
  background:#fff; color:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  letter-spacing:-0.005em;
}
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-thumb { background:var(--ink-m); border-radius:3px; }
::selection { background:var(--pink); color:#fff; }
a { color:inherit; text-decoration:none; }
button, input, select, textarea { font-family:inherit; }
img { display:block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0; transition:all .3s;
}
.nav.stuck {
  padding:12px 0; background:rgba(255,255,255,.95);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}
.nw {
  max-width:var(--max-w); margin:0 auto; padding:0 var(--pad-x);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.logo {
  display:flex; align-items:center;
  text-decoration:none;
}
.logo-img {
  height:34px; width:auto;
  display:block;
  transition:opacity .2s;
}
.logo:hover .logo-img { opacity:.8; }
/* legacy mk styles kept for backward compat if any page still uses old markup */
.logo-mk {
  width:34px; height:34px; background:var(--ink); border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.logo-mk svg { width:16px; height:16px; stroke:#fff; fill:none; }
.logo span { color:var(--pink); }
.nav-lnk { display:flex; gap:30px; }
.nav-lnk a {
  font-size:13px; font-weight:500; padding:6px 0; color:var(--ink-s);
  position:relative; transition:color .2s;
}
.nav-lnk a::after {
  content:''; position:absolute; left:0; right:0; bottom:-1px; height:1.5px;
  background:var(--ink); transform:scaleX(0); transform-origin:left;
  transition:transform .28s cubic-bezier(.23,1,.32,1);
}
.nav-lnk a:hover, .nav-lnk a.on { color:var(--ink); }
.nav-lnk a:hover::after, .nav-lnk a.on::after { transform:scaleX(1); }

/* ── NAV PATH — strip lokasi halaman (di-inject oleh eboni.js) ──
   Menjawab "kita sedang di halaman apa": Home / <Halaman aktif>. */
.nav-path { border-top:1px solid var(--border); margin-top:14px; }
.nav.stuck .nav-path { margin-top:10px; }
.np-in {
  max-width:var(--max-w); margin:0 auto;
  padding:8px var(--pad-x) 0;
  display:flex; align-items:center; gap:8px;
  font-size:11px; font-weight:600; letter-spacing:.04em;
  color:#000;
}
.np-in a { color:#000; transition:opacity .2s; }
.np-in a:hover { text-decoration:underline; text-underline-offset:3px; }
.np-sep { color:#000; opacity:.45; }
.np-cur { font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.nav-r { display:flex; gap:8px; align-items:center; }
.ibtn {
  width:38px; height:38px; border-radius:50%;
  background:var(--off); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink); transition:all .2s; position:relative;
}
.ibtn:hover { background:var(--ink); color:#fff; }
.ibtn svg { width:16px; height:16px; stroke:currentColor; fill:none; }
.bdg {
  position:absolute; top:-3px; right:-3px;
  width:17px; height:17px; background:var(--pink); color:#fff;
  font-size:9px; font-weight:800; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transform:scale(0); transition:transform .3s cubic-bezier(.23,1,.32,1);
}
.bdg.on { transform:scale(1); }
.hmb { display:none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-p, .btn-g, .btn-dk {
  padding:15px 28px; border-radius:var(--r-sm);
  font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  cursor:pointer; transition:all .25s ease;
  display:inline-flex; align-items:center; gap:10px;
  font-family:'Inter', sans-serif; text-decoration:none; border:none;
}
.btn-p { background:var(--ink); color:#fff; }
.btn-p:hover { background:#000; transform:translateY(-1px); box-shadow:0 10px 26px -12px rgba(20,16,14,.4); }
.btn-p svg { width:13px; height:13px; stroke:#fff; fill:none; }

.btn-g {
  background:transparent; color:var(--ink); padding:14px 27px;
  border:1px solid var(--ink);
}
.btn-g:hover { background:var(--ink); color:#fff; }
.btn-g svg { width:13px; height:13px; stroke:currentColor; fill:none; }

.btn-dk { background:var(--ink); color:#fff; }
.btn-dk:hover { opacity:.78; }
.btn-dk svg { width:14px; height:14px; stroke:#fff; fill:none; }

/* ============================================================
   SECTION HEADER COMMON
   ============================================================ */
.sh { margin-bottom:44px; }
.sh-tag {
  display:inline-flex; align-items:center; gap:10px;
  font-size:10px; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-m); margin-bottom:14px;
}
.sh-tag::before {
  content:''; width:24px; height:1px; background:var(--ink-m);
}
.sh-t {
  font-family:'Inter', sans-serif;
  font-size:clamp(2rem, 3.6vw, 2.9rem);
  font-weight:600; letter-spacing:-.02em; line-height:1.1;
}
.sh-t em { font-style:italic; font-weight:500; color:var(--ink); }
.sh-s { font-size:14px; color:var(--ink-m); line-height:1.7; margin-top:10px; max-width:520px; }
.sh-row { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; }

/* ============================================================
   TICKER — fixed at viewport bottom; auto-hides at footer
   ============================================================ */
.ticker-mount {
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:var(--ink); overflow:hidden; padding:14px 0;
  transition:transform .3s cubic-bezier(.23,1,.32,1), opacity .3s ease;
  will-change:transform, opacity;
}
.ticker-mount.hidden {
  transform:translateY(100%);
  opacity:0;
  pointer-events:none;
}
.ticker { background:transparent; overflow:hidden; }
.tk-row {
  display:flex; width:max-content;
  animation:tkslide 50s linear infinite; will-change:transform;
}
@keyframes tkslide {
  0%   { transform:translate3d(0, 0, 0); }
  100% { transform:translate3d(-25%, 0, 0); }
}
.tk-group {
  display:flex; flex-shrink:0; align-items:center;
}
.tk-i { display:flex; align-items:center; white-space:nowrap; flex-shrink:0; }
.tk-t { color:#fff; font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; padding:0 26px; }
.tk-s { color:#fff; font-size:11px; flex-shrink:0; padding:0 2px; }

/* Ensure footer doesn't get hidden under fixed ticker — add bottom space */
body { padding-bottom:0; } /* JS will set this dynamically based on ticker visibility */

/* ============================================================
   PRODUCT CARD (shared by collection, detail, related)
   ============================================================ */
.pcard {
  border-radius:var(--r-lg); overflow:hidden;
  background:#fff; border:1.5px solid var(--border);
  transition:transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s, border-color .3s;
  display:flex; flex-direction:column;
  position:relative;
}
.pcard:hover {
  transform:translateY(-8px);
  box-shadow:0 20px 52px rgba(0,0,0,.1);
  border-color:transparent;
}
.pc-img {
  position:relative; aspect-ratio:1/1;
  overflow:hidden;
  background:#fff;
}
.pc-img img {
  width:100%; height:100%;
  object-fit:contain;
  display:block;
  transition:transform .5s cubic-bezier(.23,1,.32,1);
}
.pcard:hover .pc-img img { transform:scale(1.04); }

.pc-pill {
  position:absolute; top:13px; left:13px;
  padding:6px 14px; border-radius:var(--r-full);
  font-size:11px; font-weight:700; letter-spacing:-.01em;
  z-index:3;
  display:inline-flex; align-items:center; gap:6px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}
.pc-pill-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.pc-pill.new { background:var(--pink); color:#fff; }
.pc-pill.hot { background:var(--yellow); color:var(--ink); }
.pc-pill.sold { background:var(--ink); color:#fff; }
.pc-pill.col { background:#fff; color:var(--ink); }

.pc-quick {
  position:absolute; bottom:13px; right:13px;
  width:36px; height:36px; border-radius:50%;
  background:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:scale(.7);
  transition:all .25s cubic-bezier(.23,1,.32,1);
  z-index:2; color:var(--ink);
}
.pc-quick svg { width:16px; height:16px; stroke:currentColor; fill:none; }
.pcard:hover .pc-quick { opacity:1; transform:scale(1); }

.pc-body { padding:16px 18px 20px; flex:1; display:flex; flex-direction:column; }
.pc-collection {
  font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-m); margin-bottom:6px;
}
.pc-name {
  font-family:'Inter', sans-serif;
  font-size:14px; font-weight:600; letter-spacing:-.01em;
  margin-bottom:4px; color:var(--ink);
}
.pc-desc { font-size:12px; color:var(--ink-m); line-height:1.55; margin-bottom:14px; flex:1; }

.pc-foot {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-top:auto;
}
.pc-price {
  font-family:'Inter', sans-serif;
  font-size:15px; font-weight:600; letter-spacing:-.01em;
}
.pc-price small {
  font-size:9px; color:var(--ink-m); font-weight:600;
  display:block; text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:1px; font-family:inherit;
}
.add-btn {
  background:var(--ink); color:#fff; border:none;
  padding:10px 16px; border-radius:var(--r-sm);
  font-size:10px; font-weight:600; cursor:pointer;
  transition:all .2s; display:flex; align-items:center; gap:6px;
  font-family:'Inter', sans-serif; letter-spacing:.1em; text-transform:uppercase;
}
.add-btn:hover { background:#000; }
.add-btn.done { background:#000; color:#fff; }
.add-btn:disabled { background:var(--off); color:var(--ink-m); cursor:not-allowed; }
.add-btn:disabled:hover { background:var(--off); }
.add-btn svg { width:12px; height:12px; stroke:currentColor; fill:none; }

/* ============================================================
   CART DRAWER (slide-in from right, used on every page)
   ============================================================ */
.ov {
  position:fixed; inset:0; background:rgba(0,0,0,.28);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  z-index:200; opacity:0; pointer-events:none; transition:opacity .3s;
}
.ov.on { opacity:1; pointer-events:auto; }
.drawer {
  position:fixed; top:0; right:0; bottom:0;
  width:min(420px, 100%); background:#fff; z-index:300;
  transform:translateX(100%); transition:transform .4s cubic-bezier(.23,1,.32,1);
  display:flex; flex-direction:column;
  box-shadow:-16px 0 48px rgba(0,0,0,.08);
}
.drawer.on { transform:translateX(0); }
.dr-hd {
  padding:22px; border-bottom:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center;
}
.dr-t {
  font-family:'Inter', sans-serif;
  font-size:16px; font-weight:600; letter-spacing:-.01em;
}
.dr-s { font-size:12px; color:var(--ink-m); margin-top:2px; }
.xbtn {
  width:34px; height:34px; border-radius:50%;
  background:var(--off); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink); transition:all .2s;
}
.xbtn:hover { background:var(--ink); color:#fff; }
.xbtn svg { width:15px; height:15px; stroke:currentColor; fill:none; }
.dr-list { flex:1; overflow-y:auto; padding:18px 22px; }
.ci { display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.ci:last-child { border-bottom:none; }
.ci-img {
  width:66px; height:66px; border-radius:var(--r-md);
  overflow:hidden; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--off);
}
.ci-img img { width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.ci-info { flex:1; min-width:0; }
.ci-n { font-weight:700; font-size:13px; margin-bottom:3px; }
.ci-p { font-size:12px; color:var(--pink); font-weight:800; margin-bottom:8px; }
.ci-ctrl { display:flex; align-items:center; gap:7px; }
.qb {
  width:26px; height:26px; border-radius:50%;
  background:var(--off); border:none; cursor:pointer;
  font-size:14px; display:flex; align-items:center; justify-content:center;
  transition:all .2s; font-family:inherit;
}
.qb:hover { background:var(--ink); color:#fff; }
.qdp { font-weight:800; font-size:13px; min-width:20px; text-align:center; }
.ci-rm {
  margin-left:auto; background:none; border:none; cursor:pointer;
  font-size:11px; color:var(--ink-m); font-weight:700; font-family:inherit;
}
.ci-rm:hover { color:var(--pink); }
.empty { text-align:center; padding:50px 20px; }
.em-ic { font-size:44px; margin-bottom:12px; }
.em-t {
  font-family:'Inter', sans-serif;
  font-size:16px; font-weight:600; letter-spacing:-.01em; margin-bottom:6px;
}
.em-s { font-size:13px; color:var(--ink-m); }
.dr-ft { padding:18px 22px; border-top:1px solid var(--border); }
.dr-row { display:flex; justify-content:space-between; margin-bottom:6px; font-size:13px; color:var(--ink-m); }
.dr-tot {
  display:flex; justify-content:space-between;
  font-family:'Inter', sans-serif;
  font-size:16px; font-weight:600; letter-spacing:-.01em;
  padding-top:10px; margin-top:6px;
  border-top:1px solid var(--border); margin-bottom:14px;
}
.dr-tot .amt { color:var(--pink); }
.cta-btn { width:100%; justify-content:center; padding:14px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position:fixed; bottom:28px; right:28px; z-index:500;
  background:var(--ink); color:#fff;
  padding:14px 20px; border-radius:var(--r-md);
  display:flex; align-items:center; gap:12px;
  font-size:13px; font-weight:600;
  transform:translateY(100px); opacity:0;
  transition:all .4s cubic-bezier(.23,1,.32,1);
  box-shadow:0 12px 36px rgba(0,0,0,.18);
  min-width:240px; max-width:380px;
}
.toast.on { transform:translateY(0); opacity:1; }
.t-ic {
  width:24px; height:24px; border-radius:50%;
  background:#fff; color:#000;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.t-ic svg { width:13px; height:13px; stroke:currentColor; fill:none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding:52px var(--pad-x) 36px; border-top:1px solid var(--border); max-width:var(--max-w); margin:0 auto; }
.ft { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; margin-bottom:32px; }
.fb { font-family:'Inter', sans-serif; font-size:18px; font-weight:600; letter-spacing:-.01em; }
.fb span { color:var(--pink); }
.fb-img { height:32px; width:auto; display:block; }
.ft-lbl { font-size:12px; color:var(--ink-m); margin-top:3px; }
.ft-soc { display:flex; gap:8px; }
.fsoc {
  width:36px; height:36px; border-radius:50%;
  border:1.5px solid var(--off2);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .2s; color:var(--ink-s);
}
.fsoc:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.fsoc svg { width:15px; height:15px; stroke:currentColor; fill:none; }
.ft-btm {
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px; padding-top:24px;
  border-top:1px solid var(--border);
}
.ft-copy { font-size:11px; color:var(--ink-m); }
.ft-links { display:flex; gap:16px; }
.ft-links a { font-size:11px; color:var(--ink-m); }
.ft-links a:hover { color:var(--ink); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pag {
  display:flex; justify-content:center; align-items:center;
  gap:8px; margin:48px 0 20px; flex-wrap:wrap;
}
.pag-btn {
  min-width:40px; height:40px;
  padding:0 14px; border-radius:var(--r-full);
  background:transparent; border:1.5px solid var(--off2);
  font-family:'Inter', sans-serif;
  font-size:13px; font-weight:600; letter-spacing:-.01em;
  color:var(--ink-s); cursor:pointer; transition:all .2s;
  display:inline-flex; align-items:center; justify-content:center;
}
.pag-btn:hover { border-color:var(--ink); color:var(--ink); }
.pag-btn.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.pag-btn:disabled { opacity:.4; cursor:not-allowed; }
.pag-btn:disabled:hover { border-color:var(--off2); color:var(--ink-s); }
.pag-btn svg { width:14px; height:14px; stroke:currentColor; fill:none; }
.pag-info {
  font-size:12px; color:var(--ink-m); font-weight:600;
  margin:0 12px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.bc {
  display:flex; align-items:center; gap:8px;
  font-size:12px; color:var(--ink-m); font-weight:600;
  margin-bottom:18px; flex-wrap:wrap;
}
.bc a { transition:color .2s; }
.bc a:hover { color:var(--pink); }
.bc-sep { opacity:.5; }
.bc-cur { color:var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:900px) {
  .nav-lnk { display:none; }
  .hmb { display:flex; }
}

@media (max-width:700px) {
  :root { --pad-x:20px; }
  .pgrid { grid-template-columns:repeat(2, 1fr) !important; gap:14px !important; }
  .pc-body { padding:13px 14px 16px; }
  .pc-name { font-size:13px; }
  .pc-desc { display:none; }
  .toast { right:14px; left:14px; bottom:14px; min-width:0; }
  .pag-info { display:none; }
  .ft-btm { flex-direction:column; gap:8px; text-align:center; }
}

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mm-ov {
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:1000;
  opacity:0; pointer-events:none;
  transition:opacity .25s;
}
.mm-ov.on { opacity:1; pointer-events:auto; }
.mm-drawer {
  position:fixed; top:0; right:0; bottom:0;
  width:min(320px, 85vw);
  background:#fff;
  z-index:1001;
  transform:translateX(100%);
  transition:transform .35s cubic-bezier(.23,1,.32,1);
  display:flex; flex-direction:column;
  box-shadow:-12px 0 40px rgba(0,0,0,.12);
}
.mm-drawer.on { transform:translateX(0); }
.mm-hd {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 22px;
  border-bottom:1px solid var(--border);
}
.mm-logo { height:28px; width:auto; }
.mm-close {
  width:36px; height:36px; border-radius:50%;
  background:var(--off); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s;
}
.mm-close:hover { background:var(--ink); color:#fff; transform:rotate(90deg); }
.mm-close svg { width:16px; height:16px; stroke:currentColor; fill:none; }
.mm-links {
  flex:1;
  display:flex; flex-direction:column;
  padding:18px 0;
}
.mm-link {
  font-family:'Inter', sans-serif;
  font-size:18px; font-weight:700; letter-spacing:-.02em;
  color:var(--ink);
  padding:14px 26px;
  text-decoration:none;
  border-left:3px solid transparent;
  transition:all .2s;
}
.mm-link:hover { background:var(--off); border-left-color:var(--pink); }
.mm-link.on {
  color:var(--pink);
  border-left-color:var(--pink);
  background:var(--pk-bg);
}
.mm-foot {
  padding:18px 22px 24px;
  border-top:1px solid var(--border);
  display:flex; flex-direction:column; gap:14px;
}
.mm-cart-btn {
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:13px 20px;
  background:var(--ink); color:#fff;
  border-radius:var(--r-full);
  font-family:inherit; font-size:13px; font-weight:700;
  text-decoration:none; transition:opacity .2s;
}
.mm-cart-btn:hover { opacity:.85; }
.mm-cart-btn svg { width:18px; height:18px; stroke:currentColor; fill:none; }
.mm-socials {
  display:flex; justify-content:center; gap:14px;
  padding-top:6px;
}
.mm-socials a {
  width:38px; height:38px; border-radius:50%;
  background:var(--off);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-s); transition:all .2s;
}
.mm-socials a:hover { background:var(--pink); color:#fff; transform:translateY(-2px); }
.mm-socials svg { width:16px; height:16px; }