/* ══════════════════════════════════════════════════════════════════════════
   WR. KACHONG — CORE THEME  (assets/css/app.css)
   ══════════════════════════════════════════════════════════════════════════
   Design language: dark tobacconist — charcoal panels, parchment text,
   brass/gold accents, serif display type. Built on Bootstrap 5 (CDN) but
   fully tokenised: change the variables below and the whole store follows.

   FRONTEND DEVS — do not edit this file for per-project changes.
   Override anything in  assets/custom/custom.css  (loaded after this).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink-900: #0c0d10;
  --ink-850: #101116;
  --ink-800: #14161b;
  --ink-700: #1a1c23;
  --ink-600: #22242c;
  --line:   #262932;
  --line-2: #31343f;

  --text:   #eae7df;
  --muted:  #9b978c;
  --faint:  #6d6a62;

  --gold-300: #e6c288;
  --gold-400: #d8a95c;
  --gold-500: #c9974a;
  --gold-600: #a97e3c;
  --gold-soft: rgba(216, 169, 92, .12);
  --gold-line: rgba(216, 169, 92, .35);

  --ok:    #5fa860;
  --info:  #6a93b8;
  --warn:  #d09a3e;
  --danger:#c05b44;
  --violet:#8a7bd0;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 20px 60px rgba(0,0,0,.5);
}

/* ── Bootstrap bridge ─────────────────────────────────────────── */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--ink-900);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-link-color: var(--gold-400);
  --bs-link-hover-color: var(--gold-300);
  --bs-body-font-family: var(--font-body);
}

/* ═══ 1 · BASE ═════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(216,169,92,.05), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(216,169,92,.04), transparent 55%),
    var(--ink-900);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.site-main { flex: 1 0 auto; }
a { color: var(--gold-400); text-decoration: none; }
a:hover { color: var(--gold-300); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
::selection { background: var(--gold-500); color: #14100a; }
.muted { color: var(--muted) !important; }
.fine { font-size: .8rem; line-height: 1.5; }
.text-gold { color: var(--gold-400) !important; }
code { color: var(--gold-300); background: var(--gold-soft); padding: .1em .4em; border-radius: 5px; }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

/* thin scrollbars on desktop */
@media (min-width: 992px) {
  * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
}

/* ═══ 2 · BUTTONS ══════════════════════════════════════════════ */
.btn { --bs-btn-border-radius: var(--radius-sm); font-weight: 600; letter-spacing: .01em; }
.btn-gold {
  --bs-btn-color: #17120a;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  border: 1px solid var(--gold-600);
  color: #17120a;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px rgba(201,151,74,.18);
}
.btn-gold:hover, .btn-gold:focus { background: linear-gradient(180deg, #f0cf96, var(--gold-400)); color: #17120a; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled, .btn-gold.disabled { background: var(--ink-600); border-color: var(--line-2); color: var(--faint); box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover, .btn-ghost:focus { border-color: var(--gold-line); color: var(--gold-300); background: var(--gold-soft); }
.btn-ghost:disabled { color: var(--faint); }
.btn-sm { padding: .32rem .7rem; font-size: .82rem; }
.btn-lg { padding: .7rem 1.5rem; }
.btn-block { display: block; width: 100%; }

/* ═══ 3 · TOPBAR / NAVBAR ══════════════════════════════════════ */
.topbar {
  background: var(--ink-850);
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.topbar-in { display: flex; justify-content: space-between; padding: .4rem 1rem; }
.topbar i { color: var(--gold-500); margin-right: .35rem; }

.nav-wrap {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(12,13,16,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1rem; padding: .65rem 1rem; position: relative; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--gold-line);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1);
}
.brand-initial {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--gold-400); line-height: 1;
  transform: translateY(-1px);
}
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: .02em; white-space: nowrap;
}

.nav-links { display: none; gap: 1.35rem; margin-left: .5rem; }
.nav-links a {
  color: var(--muted); font-size: .86rem; font-weight: 500; letter-spacing: .03em;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); border-bottom-color: var(--gold-500); }
.nav-links i { font-size: .9rem; color: var(--gold-500); margin-right: .2rem; }
@media (min-width: 992px) { .nav-links { display: flex; } }

.nav-burger {
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  width: 40px; height: 40px; border-radius: 9px; font-size: 1.2rem; line-height: 1;
}
.nav-burger:hover { border-color: var(--gold-line); }

.nav-search {
  display: none; flex: 1; max-width: 320px; margin-left: auto;
  position: relative; align-items: center;
}
.nav-search i { position: absolute; left: .8rem; color: var(--faint); font-size: .9rem; }
.nav-search input {
  width: 100%; background: var(--ink-800); border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); font-size: .86rem;
  padding: .45rem 1rem .45rem 2.2rem;
}
.nav-search input:focus { background: var(--ink-700); border-color: var(--gold-line); box-shadow: none; outline: none; }
.nav-search input::placeholder { color: var(--faint); }
@media (min-width: 768px) { .nav-search { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 768px) { .nav-actions { margin-left: 0; } }
.nav-icon {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  width: 40px; height: 40px; border-radius: 9px; font-size: 1.05rem;
}
.nav-icon:hover { border-color: var(--gold-line); color: var(--gold-300); }
.nav-user { width: auto; padding: 0 .7rem; font-size: .95rem; }
.nav-user-name { font-size: .82rem; color: var(--muted); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold-500); color: #17120a;
  font-size: .66rem; font-weight: 700; line-height: 1;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--ink-900);
}
.nav-auth { display: flex; align-items: center; gap: .65rem; }
.nav-auth-link { color: var(--muted); font-size: .86rem; }
.nav-auth-link:hover { color: var(--text); }

/* mobile drawer (toggled by app.js) */
@media (max-width: 991.98px) {
  .nav-links {
    display: flex; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--ink-850); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); padding: .5rem 1.2rem 1rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .18s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav-links a:last-child { border-bottom: 0; }
}

.dropdown-menu-dark {
  background: var(--ink-800); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); border-radius: var(--radius);
}
.dropdown-menu-dark .dropdown-item { color: var(--muted); font-size: .88rem; padding: .5rem 1rem; }
.dropdown-menu-dark .dropdown-item:hover { background: var(--gold-soft); color: var(--gold-300); }
.dropdown-menu-dark .dropdown-divider { border-color: var(--line); }

/* ═══ 4 · WARNING STRIP ════════════════════════════════════════ */
.warning-strip {
  background: linear-gradient(180deg, #6e2418, #571c12);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #f2d9cf; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-align: center;
  padding: .42rem 1rem; text-transform: uppercase;
}

/* ═══ 5 · FLASH ZONE ═══════════════════════════════════════════ */
.flash-zone { margin-top: 1rem; }
.alert {
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--ink-800); color: var(--text); font-size: .88rem;
}
.alert-success { border-color: rgba(95,168,96,.4); background: rgba(95,168,96,.08); }
.alert-danger  { border-color: rgba(192,91,68,.45); background: rgba(192,91,68,.09); }
.alert-warning { border-color: rgba(208,154,62,.4); background: rgba(208,154,62,.08); }
.btn-close { filter: invert(1) grayscale(1); opacity: .5; }

/* ═══ 6 · AGE GATE ═════════════════════════════════════════════ */
.agegate {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(7,8,10,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.agegate[hidden] { display: none; }
.agegate-card {
  max-width: 440px; width: 100%; text-align: center;
  background: linear-gradient(170deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--gold-line); border-radius: 16px;
  padding: 2.4rem 2rem 1.8rem; box-shadow: var(--shadow-2);
  animation: rise .35s ease both;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.agegate-title { font-size: 1.7rem; margin: 1rem 0 .5rem; }
.agegate-body { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.agegate-actions { display: grid; gap: .6rem; }
.agegate-fine { font-size: .66rem; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; margin: 1.4rem 0 0; }

/* ═══ 7 · HERO ═════════════════════════════════════════════════ */
.hero { position: relative; padding: 5.5rem 1rem 5rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 78% 18%, var(--gold-soft), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container-xl { position: relative; max-width: 720px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1.1rem;
}
.hero-kicker::before, .hero-kicker::after { content: ''; width: 26px; height: 1px; background: var(--gold-line); }
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 600; line-height: 1.12;
  margin-bottom: 1.1rem; letter-spacing: 0;
}
.hero-sub { color: var(--muted); font-size: 1.02rem; max-width: 560px; margin-bottom: 1.9rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-arc {
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 140%; height: 60px; background: var(--ink-900);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ═══ 8 · SECTIONS / GRIDS / PRODUCT CARDS ═════════════════════ */
.section { padding: 2.2rem 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-title { font-size: 1.5rem; margin: 0; }
.see-all { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.see-all:hover { color: var(--gold-300); }

.cat-strip { display: flex; gap: .6rem; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .45rem 1rem; color: var(--muted); font-size: .85rem; font-weight: 500;
  background: var(--ink-800); transition: all .15s;
}
.cat-chip i { color: var(--gold-500); }
.cat-chip small { color: var(--faint); font-size: .72rem; }
.cat-chip:hover { border-color: var(--gold-line); color: var(--text); transform: translateY(-1px); }

.pgrid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.pcard {
  background: linear-gradient(175deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--shadow-2); }
.pcard-media { position: relative; display: block; aspect-ratio: 4/3; background: var(--ink-700); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,13,16,.55));
}
.pcard-flag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--gold-500); color: #17120a;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 5px;
}
.pcard-flag-out { background: #3d3d3d; color: #cfcabf; }
.pcard-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.pcard-brand {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: .2rem;
}
.pcard-name {
  color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.pcard-name:hover { color: var(--gold-300); }
.pcard-meta { display: flex; gap: .6rem; color: var(--faint); font-size: .72rem; margin-top: .3rem; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; }
.pcard-price { font-weight: 700; color: var(--gold-300); font-size: .98rem; letter-spacing: .01em; }

/* ═══ 9 · STEPS (how it works) ═════════════════════════════════ */
.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; background: var(--ink-850); position: relative; overflow: hidden;
}
.step::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.step-no {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--gold-line); line-height: 1;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .84rem; margin: 0; }

/* ═══ 10 · SHOP LAYOUT ═════════════════════════════════════════ */
.breadcrumb { --bs-breadcrumb-divider-color: var(--faint); }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--gold-300); }
.breadcrumb-item.active { color: var(--faint); }
.page-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sort-bar { display: flex; align-items: center; }
.sort-bar .form-select {
  background-color: var(--ink-800); border-color: var(--line-2); color: var(--text);
  font-size: .84rem; border-radius: var(--radius-sm);
}
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 992px) { .shop-layout { grid-template-columns: 230px 1fr; } }

.shop-rail {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-850); padding: 1.1rem; align-self: start;
  position: sticky; top: 86px;
}
.rail-h {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
  margin-bottom: .8rem;
}
.rail-link {
  display: flex; align-items: center; gap: .55rem;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  padding: .5rem .6rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; margin-bottom: .15rem;
}
.rail-link i { color: var(--gold-500); font-size: .9rem; }
.rail-link:hover { background: var(--ink-700); color: var(--text); }
.rail-link.active { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-300); }
.rail-count { margin-left: auto; color: var(--faint); font-size: .74rem; }

.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }
.pager-link {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: .86rem;
}
.pager-link:hover { border-color: var(--gold-line); color: var(--text); }
.pager-link.active { background: var(--gold-500); border-color: var(--gold-600); color: #17120a; font-weight: 700; }

.empty-state {
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 3.5rem 1.5rem; text-align: center; color: var(--muted);
}
.empty-state i { font-size: 2rem; color: var(--faint); display: block; margin-bottom: .6rem; }

/* ═══ 11 · PRODUCT DETAIL ══════════════════════════════════════ */
.pd { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 768px) { .pd { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.pd-media {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--ink-800); box-shadow: var(--shadow-1);
}
.pd-media img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.pd-brand {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: .35rem;
}
.pd-name { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .8rem; }
.pd-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold-300); display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.pd-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .8rem; margin: 1.3rem 0; padding: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-850);
}
.pd-specs dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .15rem; }
.pd-specs dd { margin: 0; font-size: .9rem; font-weight: 600; }
.pd-buy { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin: 1.2rem 0 .6rem; }
.pd-descr { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--muted); font-size: .92rem; }

.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-800); }
.qty-btn { width: 38px; background: transparent; border: 0; color: var(--gold-400); font-size: 1rem; }
.qty-btn:hover { background: var(--gold-soft); }
.qty-input {
  width: 52px; text-align: center; background: transparent; border: 0;
  color: var(--text); font-weight: 700; font-size: .95rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input:focus { outline: none; }

/* ═══ 12 · CARDS / FORMS (dark) ════════════════════════════════ */
.card-dark {
  background: linear-gradient(175deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card-header-dark {
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  background: rgba(255,255,255,.015); border-radius: var(--radius) var(--radius) 0 0 !important;
}
.form-control, .form-select {
  background-color: var(--ink-800); border-color: var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); font-size: .92rem;
}
.form-control:focus, .form-select:focus { background-color: var(--ink-700); border-color: var(--gold-line); box-shadow: 0 0 0 .2rem var(--gold-soft); color: var(--text); }
.form-control::placeholder { color: var(--faint); }
.form-control[readonly] { color: var(--muted); }
.form-label, .form-group > label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; margin-bottom: .35rem; }
.form-group { margin-bottom: 1rem; }
.form-check-input { background-color: var(--ink-700); border-color: var(--line-2); }
.form-check-input:checked { background-color: var(--gold-500); border-color: var(--gold-600); }
.input-group-text { background: var(--ink-700); border-color: var(--line-2); color: var(--muted); font-size: .84rem; }

/* tables */
.table-dark { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); --bs-table-hover-color: var(--text); --bs-table-hover-bg: rgba(255,255,255,.025); }
.table thead th { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; border-bottom-color: var(--line-2) !important; }

/* ═══ 13 · STATUS BADGES ═══════════════════════════════════════ */
.badge-status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; border: 1px solid;
}
.badge-pending     { color: #e2c08d; background: rgba(208,154,62,.1);  border-color: rgba(208,154,62,.4); }
.badge-review      { color: #a9c6e0; background: rgba(106,147,184,.1); border-color: rgba(106,147,184,.4); }
.badge-processing  { color: #c9b3ec; background: rgba(138,123,208,.1); border-color: rgba(138,123,208,.4); }
.badge-completed   { color: #9fd3a0; background: rgba(95,168,96,.1);  border-color: rgba(95,168,96,.4); }
.badge-declined    { color: #e0a091; background: rgba(192,91,68,.1);  border-color: rgba(192,91,68,.45); }
.badge-cancelled   { color: #b9b5aa; background: rgba(125,125,125,.1); border-color: rgba(125,125,125,.4); }

/* ═══ 14 · AUTH PAGES ══════════════════════════════════════════ */
.auth-bg .site-main { display: flex; }
.auth-shell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(172deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 2.2rem 2rem; box-shadow: var(--shadow-2);
}
.install-card { max-width: 560px; text-align: left; }
.auth-title { font-size: 1.55rem; margin: .9rem 0 .35rem; text-align: center; }
.auth-sub { color: var(--muted); font-size: .87rem; text-align: center; margin-bottom: 1.4rem; }
.auth-form { text-align: left; }
.auth-alt { text-align: center; font-size: .87rem; color: var(--muted); margin: 1.2rem 0 0; }
.auth-foot { text-align: center; color: var(--faint); font-size: .74rem; margin-top: 1rem; }
.auth-foot-note { text-align: center; margin: .8rem 0 0; }
.agecheck { margin: .4rem 0 1.2rem; font-size: .82rem; color: var(--muted); }
.auth-card .brand-mark { display: flex; margin: 0 auto; }
.rule-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .8rem;
}
.req-table { width: 100%; font-size: .84rem; margin-bottom: .5rem; }
.req-table td { padding: .3rem 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.req-state { text-align: right; font-weight: 700; font-size: .72rem; letter-spacing: .1em; }
.req-state.ok { color: var(--ok); } .req-state.bad { color: var(--danger); }

/* ═══ 15 · CHECKOUT / ORDER ════════════════════════════════════ */
.checkout-layout { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .checkout-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.summary-card { position: sticky; top: 86px; }
.pay-note {
  margin-top: 1.1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-850);
}
.pay-note h6 { margin-bottom: .5rem; font-size: .88rem; }
.pay-note i { color: var(--gold-500); }

.cart-line { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--ink-700); }
.cart-line-qty { color: var(--faint); font-size: .78rem; }
.cart-line-x { margin-left: auto; color: var(--faint); background: none; border: 0; padding: .2rem; }
.cart-line-x:hover { color: var(--danger); }
.sum-row { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .92rem; color: var(--muted); }
.sum-row.grand { border-top: 1px solid var(--line-2); margin-top: .5rem; padding-top: .8rem; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.sum-row.grand span:last-child { color: var(--gold-300); }

.block-card { max-width: 640px; }
.block-title { font-size: 1.25rem; margin-bottom: .6rem; }
.block-title i { color: var(--warn); }

.order-layout { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .order-layout { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.oi-list .list-group-item { background: transparent; color: var(--text); border-color: var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.oi-total { justify-content: space-between; color: var(--muted); }
.oi-grand { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.oi-grand span:last-child { color: var(--gold-300); }

.pay-row {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem .9rem; margin-bottom: .6rem; background: var(--ink-800);
}
.pay-name { font-weight: 700; font-size: .92rem; }
.pay-name i { color: var(--gold-500); margin-right: .3rem; }
.pay-acc { font-family: 'Inter', monospace; font-weight: 600; letter-spacing: .04em; color: var(--gold-300); font-size: .95rem; }
.proof-preview { margin-top: .8rem; }
.proof-preview img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }

/* timeline */
.timeline {
  display: flex; justify-content: space-between;
  margin: 1.8rem 0 2.2rem; position: relative;
}
.timeline::before {
  content: ''; position: absolute; top: 17px; left: 8%; right: 8%;
  height: 2px; background: var(--line-2);
}
.timeline-dead::before { background: repeating-linear-gradient(90deg, var(--danger) 0 6px, transparent 6px 12px); }
.tl-step { position: relative; text-align: center; flex: 1; }
.tl-dot {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto .45rem;
  background: var(--ink-700); border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); position: relative; z-index: 1; font-size: .95rem;
}
.tl-step.on .tl-dot { background: var(--gold-500); border-color: var(--gold-600); color: #17120a; box-shadow: 0 0 0 5px var(--gold-soft); }
.timeline-dead .tl-dot { background: var(--ink-700); border-color: var(--danger); color: var(--danger); box-shadow: none; }
.tl-label { font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--faint); }
.tl-step.on .tl-label { color: var(--gold-300); }

/* ═══ 16 · ACCOUNT ═════════════════════════════════════════════ */
.acct-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.acct-stat { display: flex; flex-direction: column; gap: .15rem; }
.acct-stat i { color: var(--gold-500); font-size: 1.1rem; margin-bottom: .3rem; }
.acct-stat strong { font-size: 1.05rem; }
.acct-stat .muted { font-size: .8rem; }

/* ═══ 17 · FOOTER ══════════════════════════════════════════════ */
.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
}
.footer-grid {
  display: grid; gap: 2rem; padding: 3rem 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-h {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: .9rem;
}
.footer-grid a { display: block; color: var(--muted); font-size: .87rem; margin-bottom: .45rem; }
.footer-grid a:hover { color: var(--gold-300); }
.pay-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line-2); border-radius: 7px; color: var(--muted);
  font-size: .76rem; padding: .25rem .6rem; margin: 0 .35rem .45rem 0;
}
.pay-chip i { color: var(--gold-500); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1rem 0; }
.footer-bottom-in { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }

/* ═══ 18 · MISC ════════════════════════════════════════════════ */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.error-wrap { text-align: center; padding: 2rem; }
.error-code {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold-line); line-height: 1;
}
.error-wrap h1 { margin: .6rem 0 1rem; font-size: 1.5rem; }
.error-wrap p { color: var(--muted); max-width: 420px; margin: 0 auto 1.6rem; }
.install-page { background: var(--ink-900); }

.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--gold-500);
  animation: spin .7s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* toast (custom, app.js) */
.toast-stack { position: fixed; bottom: 1rem; right: 1rem; z-index: 2100; display: grid; gap: .5rem; max-width: 340px; }
.toast-item {
  background: var(--ink-800); border: 1px solid var(--line-2); border-left: 3px solid var(--gold-500);
  color: var(--text); border-radius: var(--radius-sm); padding: .7rem 1rem;
  font-size: .86rem; box-shadow: var(--shadow-2);
  animation: toastIn .25s ease both;
}
.toast-item.success { border-left-color: var(--ok); }
.toast-item.danger  { border-left-color: var(--danger); }
.toast-item.warning{ border-left-color: var(--warn); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-item.leaving { transition: all .25s; opacity: 0; transform: translateY(6px); }

/* modal */
.modal-content { background: var(--ink-800); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); }
.modal-header, .modal-footer { border-color: var(--line); }

/* responsive tweaks */
@media (max-width: 575.98px) {
  .hero { padding: 3.4rem 1rem 3.6rem; }
  .section { padding: 1.6rem 1rem; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .pcard-body { padding: .7rem .75rem .8rem; }
  .pcard-name { font-size: .85rem; }
  .pd-buy .btn-lg { flex: 1; }
  .auth-card { padding: 1.6rem 1.2rem; }
}

/* ---- custom ---- */
/* ══════════════════════════════════════════════════════════════════════════
   ★ CUSTOM STYLE AREA — YOUR OVERRIDES GO HERE ★
   ══════════════════════════════════════════════════════════════════════════
   Loaded AFTER app.css and Bootstrap, so any rule here wins.

   DESIGN TOKENS (set in app.css :root) you can retint in one place:

     :root {
       --ink-900: #0c0d10;   page background
       --ink-800: #14161b;   panel background
       --gold-400: #d8a95c;  brand accent
       --text: #eae7df;      body text
       --muted: #9b978c;     secondary text
     }
   ══════════════════════════════════════════════════════════════════════════ */

/* Example — switch the accent to emerald:
:root {
  --gold-300:#9fe0c0; --gold-400:#57c293; --gold-500:#3fa37b; --gold-600:#2f8262;
  --gold-soft:rgba(87,194,147,.12); --gold-line:rgba(87,194,147,.35);
}
*/

/* Your styles below ↓ */

/* ── FIX 1: center the checkout/cart icon inside its box ───────────── */
.nav-icon {
  justify-content: center !important;   /* was missing → icon sat off-center */
  padding: 0 !important;
}
.nav-icon > i,
.nav-icon > svg {
  margin: 0 !important;
  transform: none !important;
}
/* keep the count badge pinned to the corner so it never affects centering */
.cart-badge {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  margin: 0 !important;
}

/* ── FIX 2: category rail must NOT float over the product grid on mobile ── */
@media (max-width: 991.98px) {
  .shop-rail {
    position: static !important;  /* sticky only makes sense in the 2-col desktop layout */
    top: auto !important;
    z-index: auto !important;
  }
}
/* ══════════════════════════════════════════════════════════════════════════
   ★ WR. KACHONG FEATURE PACK v1.2 — styles (F2 unit selector, F3 laporan)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── F2 · Unit selector (Pack / Karton) on the product page ── */
.unit-sel {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px;
  overflow: hidden; background: var(--ink-800); margin-bottom: .2rem;
}
.unit-sel button {
  background: transparent; border: 0; color: var(--muted);
  font-size: .84rem; font-weight: 600; padding: .5rem .95rem;
  display: flex; align-items: center; gap: .4rem; transition: all .15s;
}
.unit-sel button small { color: var(--faint); font-size: .68rem; font-weight: 500; }
.unit-sel button + button { border-left: 1px solid var(--line-2); }
.unit-sel button:hover { color: var(--text); }
.unit-sel button.active {
  background: var(--gold-soft); color: var(--gold-300);
  box-shadow: inset 0 -2px 0 var(--gold-500);
}
.unit-sel button.active small { color: var(--gold-400); }
.pd-buy { flex-wrap: wrap; }
.unit-hint { margin-top: .3rem; font-size: .8rem; }

/* karton chip on cart lines */
.unit-chip {
  display: inline-flex; align-items: center; margin-left: .5rem;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold-300); border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  padding: .1rem .5rem; vertical-align: 1px;
}

/* ── F3 · Laporan Penjualan (admin dashboard) ── */
.rep-card { margin-bottom: 1.4rem; }
.rep-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.rep-presets { display: inline-flex; gap: .35rem; }
.rep-filters {
  display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end;
  padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.rep-filters label {
  display: flex; flex-direction: column; gap: .25rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint);
}
.rep-filters input, .rep-filters select {
  background: var(--ink-800); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 7px; font-size: .85rem; padding: .4rem .6rem; min-width: 130px;
}
.rep-filters input:focus, .rep-filters select:focus {
  outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 .2rem var(--gold-soft);
}
.rep-filters input[type="search"] { min-width: 210px; }
.rep-filters input[type="date"] { color-scheme: dark; }

.rep-kpis {
  display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1rem;
}
.rep-kpi {
  display: flex; gap: .7rem; align-items: center;
  background: var(--ink-800); border: 1px solid var(--line);
  border-radius: 9px; padding: .75rem .85rem;
}
.rep-kpi i { color: var(--gold-400); font-size: 1.15rem; }
.rep-kpi-v { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.rep-kpi-l { color: var(--muted); font-size: .7rem; letter-spacing: .03em; }

.rep-statuses { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

.rep-chart { border: 1px solid var(--line); border-radius: 9px; background: var(--ink-850); padding: .8rem .9rem .5rem; }
.rep-chart svg { width: 100%; height: 150px; display: block; }
.rep-chart rect { fill: var(--gold-500); }
.rep-chart rect:hover { fill: var(--gold-300); }
.rep-chart .rep-tick { fill: var(--faint); font-size: 9px; font-family: var(--font-body); }
.rep-chart-cap { color: var(--muted); font-size: .72rem; padding: .35rem 0 .2rem; }

.rep-table { border: 1px solid var(--line); border-radius: 9px; }
.rep-table thead th { font-size: .64rem; }

@media (max-width: 575.98px) {
  .rep-filters input, .rep-filters select { min-width: 0; flex: 1; }
  .rep-filters label { flex: 1 1 46%; }
  .rep-filters .btn { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★ WR. KACHONG FEATURE PACK v1.3 — F6: guest-visible stock on product cards
   (home / belanja / kategori — single partial: includes/product-card.php)
   Kill switch: Admin → Settings → "Show stock count on product cards"
   ══════════════════════════════════════════════════════════════════════════ */

/* ── F6 · Stock line inside every product tile (between meta and price) ── */
.pcard-stock {
  display: flex; align-items: center; gap: .35rem;
  margin-top: .45rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
}
.pcard-stock i { font-size: .78rem; }
.pcard-stock-ok  { color: var(--ok); }
.pcard-stock-low { color: var(--warn); }

/* stock/price hint states (F2 fix) */
.unit-hint-warn {
  color: #e2c08d !important;
  background: rgba(208, 154, 62, .08);
  border: 1px solid rgba(208, 154, 62, .35);
  border-radius: 7px;
  padding: .35rem .6rem;
  display: inline-block;
  margin-top: .35rem;
}
.unit-hint-warn::before { content: '⚠ '; }
.sisa-note { display: inline; }

/* ═══ F4/F5: alamat tersimpan + lacak paket + ongkir ═══ */
.addr-pick { margin-bottom: 1rem; }
.ship-manual { color: var(--warn); font-size: .78rem; font-style: italic; }

.addr-row {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: 9px; padding: .7rem .9rem;
  margin-bottom: .5rem; background: var(--ink-800);
}
.addr-default { border-color: var(--gold-line); background: var(--gold-soft); }

.resi-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.resi-summary { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .4rem; }
.resi-status { font-weight: 700; font-size: .92rem; }
.resi-timeline { list-style: none; padding-left: 6px; margin: .4rem 0 0; }
.resi-timeline li { position: relative; padding: 0 0 .9rem 22px; }
.resi-timeline li .tl-dot {
  position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2); border: 2px solid var(--line-2);
}
.resi-timeline li.on .tl-dot { background: var(--gold-500); border-color: var(--gold-600); }
.resi-timeline li::before {
  content: ''; position: absolute; left: 4.5px; top: 16px; bottom: 2px; width: 1px; background: var(--line-2);
}
.resi-timeline li:last-child::before { display: none; }

/* ══════════════════════════════════════════════════════════════
   F2/F4 · Volume tier "5 slop" + MANDATORY BUNDLE UI
   ══════════════════════════════════════════════════════════════ */

/* product page: 5-slop tier line under the main price */
.pd-bulk-line { margin-top: .35rem; font-size: .85rem; color: var(--gold-300); }
.pd-bulk-line i { color: var(--gold-400); }

/* product page: mandatory-bundle notice box */
.bundle-req {
  margin-top: 1rem; padding: .85rem 1rem;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  border-radius: 9px; font-size: .86rem;
}
.bundle-req h6 { margin: 0 0 .4rem; font-size: .92rem; color: var(--gold-300); }
.bundle-req ul { margin: .35rem 0 .55rem; padding-left: 1.2rem; color: var(--muted); }
.bundle-req li { margin-bottom: .12rem; }
.bundle-req a { color: var(--gold-300); text-decoration: underline; }

/* product card: small tags (bundle required / 5-slop price) */
.pcard-bundle-tag { color: var(--gold-300); font-weight: 600; }

/* checkout: bundle warning box with one-click fix */
.bundle-warn {
  border: 1px solid rgba(248,113,113,.55); background: rgba(248,113,113,.08);
  border-radius: 9px; padding: .55rem .85rem .65rem; margin-bottom: .9rem;
  font-size: .84rem;
}
.bundle-warn .rail-h { color: #f87171; }
.bw-line { display: flex; gap: .6rem; align-items: center; padding: .45rem 0; }
.bw-line + .bw-line { border-top: 1px dashed rgba(248,113,113,.3); }
.bw-line > i { color: #f87171; font-size: 1.05rem; flex: 0 0 auto; }
.bw-text { flex: 1 1 auto; line-height: 1.35; }
.bw-line .btn { white-space: nowrap; flex: 0 0 auto; }

/* ══════════════════════════════════════════════════════════════════════════
   ★ WR. KACHONG FEATURE PACK v1.3
     F6 · Minimal pembelian (minimum purchase per product)
     F7 · Identitas toko offline + lokasi peta (trust / kredibilitas)
   Semua nilai warna memakai token dari app.css, jadi tetap cocok bila tema
   di-retint di atas.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── F6.1 · product page: kotak info minimal pembelian ─────────────────── */
.pd-minbuy {
  display: flex; gap: .7rem; align-items: flex-start;
  margin-top: 1rem; padding: .8rem 1rem;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  border-radius: 9px; font-size: .86rem; line-height: 1.45;
}
.pd-minbuy > i { color: var(--gold-400); font-size: 1.1rem; line-height: 1.3; flex: 0 0 auto; }
.pd-minbuy strong { color: var(--gold-300); }
.pd-minbuy-warn { border-color: rgba(208,154,62,.5); background: rgba(208,154,62,.1); }
.pd-minbuy-warn > i,
.pd-minbuy-warn strong { color: var(--warn); }

/* ── F6.2 · product card tag ──────────────────────────────────────────── */
.pcard-bundle-tag.pcard-min-tag { color: var(--info); }

/* ── F6.3 · checkout warning box (mirrors .bundle-warn) ───────────────── */
.min-warn {
  border: 1px solid rgba(208,154,62,.55); background: rgba(208,154,62,.09);
  border-radius: 9px; padding: .55rem .85rem .65rem; margin-bottom: .9rem;
  font-size: .84rem;
}
.min-warn .rail-h { color: var(--warn); }
.min-warn .bw-line > i { color: var(--warn); }
.min-warn .bw-line + .bw-line { border-top: 1px dashed rgba(208,154,62,.3); }

/* ── F6.4 · product page qty stepper hints ────────────────────────────── */
.unit-hint-warn { color: var(--warn); }

/* ── F7.1 · top bar: jalur tercepat ke alamat fisik ───────────────────── */
.topbar-in { gap: .75rem; align-items: center; }
.topbar-store {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text); text-decoration: none; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .12rem .6rem; transition: border-color .15s, color .15s;
}
.topbar-store:hover { color: var(--gold-300); border-color: var(--gold-line); }
.topbar-store i { margin: 0; color: var(--gold-400); }
.topbar-store-name { font-weight: 600; letter-spacing: .02em; }
.topbar-store-meta { color: var(--muted); }
.topbar-store-cta { color: var(--gold-400); white-space: nowrap; }
.topbar-store-cta i { font-size: 1rem; }
@media (max-width: 575.98px) {
  .topbar-store { font-size: .7rem; padding: .1rem .5rem; }
  .topbar-store-cta { display: none; }          /* keep the strip compact on phones */
}

/* ── F7.2 · trust line on product / checkout / order pages ────────────── */
.store-trustline {
  margin: .9rem 0 0; font-size: .8rem; color: var(--muted);
  display: flex; gap: .45rem; align-items: flex-start; line-height: 1.45;
}
.store-trustline > i { color: var(--ok); margin-top: .1rem; flex: 0 0 auto; }
.store-trustline a { color: var(--gold-400); text-decoration: underline; white-space: nowrap; }

/* ── F7.3 · HOMEPAGE / TOKO-PAGE SECTION "Kunjungi Toko Kami" ─────────── */
.store-sec { padding: 2.2rem 1rem; }
.store-sec-head { max-width: 720px; margin-bottom: 1.2rem; }
.store-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-400); background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 999px; padding: .25rem .7rem;
}
.store-kicker i { color: var(--gold-400); }
.store-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: .7rem 0 .5rem; }
.store-sub { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }

.store-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--ink-800); overflow: hidden; box-shadow: var(--shadow-1);
}
@media (min-width: 992px) { .store-card { grid-template-columns: 1fr 1fr; } }
.store-card-body { padding: 1.4rem 1.4rem 1.5rem; }
.store-name {
  font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 1rem;
  color: var(--gold-300);
}
.store-meta { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .7rem; }
.store-meta li { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; }
.store-meta li > i { color: var(--gold-500); font-size: 1rem; margin-top: .15rem; flex: 0 0 auto; }
.store-meta-k {
  display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .1rem;
}
.store-meta-v { display: block; color: var(--text); line-height: 1.5; }
.store-meta-v a { color: var(--gold-300); text-decoration: underline; }
.store-meta-v code { color: var(--muted); font-size: .8rem; }

.store-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-actions .btn { display: inline-flex; align-items: center; gap: .45rem; }
.store-fine {
  margin: 1rem 0 0; font-size: .78rem; color: var(--faint); line-height: 1.5;
  display: flex; gap: .45rem; align-items: flex-start;
}
.store-fine > i { color: var(--ok); margin-top: .1rem; flex: 0 0 auto; }
/* "see the full store page" link under the trust line */
.store-fine-link { margin-top: .55rem; }
.store-fine-link a {
  color: var(--gold-300); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.store-fine-link a:hover { color: var(--gold-300); text-decoration: underline; }

.store-map { display: flex; flex-direction: column; min-height: 260px; background: var(--ink-850); }
@media (min-width: 992px) { .store-map { min-height: var(--store-map-h, 340px); } }
.store-photo { width: 100%; height: 148px; object-fit: cover; display: block; flex: 0 0 auto; }
.store-map-view { position: relative; flex: 1 1 auto; min-height: 240px; }
.store-map-view iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; border: 0; filter: grayscale(.15) contrast(1.03);
}

.store-facts {
  display: grid; gap: .9rem; margin-top: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.store-fact {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--ink-850); padding: 1rem 1.1rem;
}
.store-fact > i { color: var(--gold-400); font-size: 1.3rem; line-height: 1.2; flex: 0 0 auto; }
.store-fact strong { display: block; font-size: .9rem; margin-bottom: .25rem; }
.store-fact p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ── F7.4 · /toko page extras ─────────────────────────────────────────── */
.store-page-hero { padding: 2.4rem 1rem 0; }
.store-page-grid { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 992px) { .store-page-grid { grid-template-columns: 1.05fr .95fr; } }
/* On the /toko page the buttons sit in a narrow column, where "Buka di Google
   Maps" used to break onto a second line. Let them size to their content and
   share the row instead of being squeezed. */
.store-page-grid .store-actions .btn { white-space: nowrap; }
@media (min-width: 576px) and (max-width: 991.98px) {
  .store-page-grid .store-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.store-hours-table { width: 100%; font-size: .86rem; border-collapse: collapse; }
.store-hours-table th, .store-hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.store-hours-table th { color: var(--faint); font-weight: 600; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.store-hours-table td:last-child, .store-hours-table th:last-child { text-align: right; }

/* ── F7.5 · FOOTER band (site information area) ───────────────────────── */
.footer-store {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(216,169,92,.05), transparent);
}
.footer-store-in {
  display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center;
  padding: 1.1rem 1rem;
}
.footer-store-ico {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold-400); font-size: 1.15rem;
}
.footer-store-main { flex: 1 1 320px; min-width: 0; }
.footer-store-name { margin: 0; font-family: var(--font-display); font-size: 1.02rem; color: var(--text); }
.footer-store-addr { margin: .15rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.footer-store-meta {
  margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem;
  font-size: .8rem; color: var(--muted);
}
.footer-store-meta i { color: var(--gold-500); margin-right: .25rem; }
.footer-store-meta a { display: inline; color: var(--gold-300); text-decoration: underline; margin: 0; font-size: inherit; }
.footer-store-cta { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-store-cta .btn { display: inline-flex; align-items: center; gap: .4rem; }

/* ── F7.6 · mobile polish ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .store-card-body { padding: 1.1rem 1rem 1.2rem; }
  .store-actions .btn { flex: 1 1 100%; justify-content: center; }
  .store-map { min-height: 220px; }
  .footer-store-in { padding: .95rem 1rem; }
  .footer-store-cta { width: 100%; }
  .footer-store-cta .btn { flex: 1 1 0; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   F8 · MINIMAL PEMBELIAN PER PESANAN (site-wide cart minimum)
   Different from the per-product minimum (F6): this counts the TOTAL packs
   in the whole cart, and the products may be mixed. The warning panel reuses
   .min-warn; below are the always-visible notes and the summary progress row.
   ══════════════════════════════════════════════════════════════════════ */
.order-min-note {
  display: flex; gap: .55rem; align-items: flex-start;
  margin: 1rem 0 0; padding: .7rem .85rem;
  border: 1px solid var(--line-2); border-left: 3px solid var(--gold-400);
  border-radius: 8px; background: rgba(216,169,92,.06);
  font-size: .82rem; color: var(--text); line-height: 1.5;
}
.order-min-note > i { color: var(--gold-300); margin-top: .12rem; flex: 0 0 auto; }
.order-min-note-sm { color: var(--gold-300); }
.order-min-note-sm > i { color: var(--gold-300); }

/* live progress row injected into the checkout order summary */
.sum-row.sum-cartmin { border-top: 1px dashed var(--line); padding-top: .5rem; }
.sum-row.sum-cartmin > span:last-child { color: var(--warn); font-weight: 600; }
.sum-row.sum-cartmin .muted { font-weight: 400; }
.sum-row.sum-cartmin-ok > span:last-child { color: var(--ok); }

/* ══════════════════════════════════════════════════════════════════════
   CART-WIDE WHOLESALE PROMO — plain-language, site-wide explanation
   ══════════════════════════════════════════════════════════════════════ */
.cart-promo-banner {
  padding: .8rem 0 .75rem;
  color: var(--text);
  background: linear-gradient(105deg, rgba(216,169,92,.17), rgba(20,22,27,.97) 72%);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.cart-promo-banner-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
}
.cart-promo-banner-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-300); background: var(--gold-soft);
  border: 1px solid var(--gold-line); font-size: 1.1rem;
}
.cart-promo-banner-intro h2 {
  margin: 0 0 .12rem; color: var(--gold-300);
  font-size: 1rem; font-weight: 800; letter-spacing: .01em;
}
.cart-promo-banner-intro p {
  margin: 0; color: var(--text); font-size: .84rem; line-height: 1.4;
}
.cart-promo-banner-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .48rem .75rem; border: 1px solid var(--gold-line);
  border-radius: 8px; color: var(--gold-300); font-size: .82rem;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.cart-promo-banner-link:hover,
.cart-promo-banner-link:focus-visible {
  color: var(--ink-900); background: var(--gold-400); text-decoration: none;
}
.cart-promo-banner-rules {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .45rem; margin: .65rem 0 .4rem 3.25rem;
}
.cart-promo-banner-rule {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  gap: .2rem .38rem; padding: .38rem .65rem;
  border: 1px solid var(--gold-line); border-radius: 8px;
  background: rgba(216,169,92,.08); font-size: .82rem; line-height: 1.35;
}
.cart-promo-banner-rule strong { color: var(--text); }
.cart-promo-banner-rule > span:last-child { color: var(--gold-300); font-weight: 800; }
.cart-promo-banner-arrow { color: var(--gold-400); font-weight: 800; }
.cart-promo-banner-explain,
.cart-promo-banner-foot {
  margin: .25rem 0 0 3.25rem; color: var(--muted);
  font-size: .76rem; line-height: 1.45;
}
.cart-promo-banner-explain strong { color: var(--text); }
.cart-promo-banner-foot { color: var(--text); }

.pcard-promo-row {
  display: flex; width: 100%; margin: .42rem 0 .15rem;
}
.pcard-promo-row .pcard-promo-tag {
  display: flex; align-items: center; justify-content: flex-start; gap: .35rem;
  width: 100%; padding: .34rem .5rem; border: 1px solid var(--gold-line);
  border-radius: 7px; white-space: nowrap; font-size: .72rem; line-height: 1.3;
  color: var(--gold-300) !important;
  border-color: var(--gold-line) !important;
  background: var(--gold-soft) !important;
}
@media (max-width: 575.98px) {
  .pcard-promo-row .pcard-promo-tag { white-space: normal; line-height: 1.25; }
}
.cart-promo-product-note,
.cart-promo-checkout-note {
  display: flex; align-items: flex-start; gap: .65rem;
  margin: .7rem 0; padding: .7rem .8rem;
  color: var(--text); background: rgba(216,169,92,.07);
  border: 1px solid var(--gold-line); border-left: 3px solid var(--gold-400);
  border-radius: 8px; font-size: .82rem; line-height: 1.5;
}
.cart-promo-product-note > i,
.cart-promo-checkout-note > i {
  flex: 0 0 auto; margin-top: .12rem; color: var(--gold-300);
}
.cart-promo-product-note strong,
.cart-promo-checkout-note strong { color: var(--gold-300); }
.cart-promo-checkout-note { margin-top: .65rem; }

@media (max-width: 767.98px) {
  .cart-promo-banner-head { grid-template-columns: auto minmax(0,1fr); }
  .cart-promo-banner-link { grid-column: 2; justify-self: start; padding: .35rem .6rem; }
  .cart-promo-banner-rules,
  .cart-promo-banner-explain,
  .cart-promo-banner-foot { margin-left: 0; }
}
@media (max-width: 575.98px) {
  .cart-promo-banner { padding: .7rem 0; }
  .cart-promo-banner-head { gap: .55rem; }
  .cart-promo-banner-icon { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
  .cart-promo-banner-intro h2 { font-size: .93rem; }
  .cart-promo-banner-intro p { font-size: .78rem; }
  .cart-promo-banner-rules { display: grid; grid-template-columns: 1fr; gap: .35rem; margin-top: .55rem; }
  .cart-promo-banner-rule { display: flex; width: 100%; font-size: .78rem; padding: .4rem .55rem; }
  .cart-promo-banner-explain,
  .cart-promo-banner-foot { font-size: .73rem; }
  .pcard-promo-tag { white-space: normal; }
}
