/* ===================== TOKENS ===================== */
:root {
  --ink: #14111f;
  --ink-soft: #1b1730;
  --card: #221c3a;
  --card-hover: #2a2246;
  --border-dark: rgba(245, 243, 250, 0.1);
  --gold: #f4a93a;
  --gold-dark: #c9861f;
  --gold-soft: #ffd98a;
  --coral: #ff6b57;
  --green: #25d366;
  --text: #f5f3fa;
  --text-dim: rgba(245, 243, 250, 0.62);
  --text-faint: rgba(245, 243, 250, 0.4);

  --paper: #faf7f1;
  --paper-card: #ffffff;
  --line: #e9e1d1;
  --ink-2: #211c30;
  --muted: #8a8270;
  --muted-2: #b6ad95;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 8px 24px rgba(20, 17, 31, 0.28);
  --shadow-2: 0 16px 40px rgba(20, 17, 31, 0.35);

  --font-display: "Fraunces", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-soft); color: var(--ink); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  background: var(--ink);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-2);
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { color: var(--gold); width: 15px; height: 15px; }

/* ===================== STORE SHELL ===================== */
.store {
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(245,243,250,0.05) 1px, transparent 0);
  background-size: 20px 20px;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(20, 17, 31, 0.82);
  border-bottom: 1px solid var(--border-dark);
}
.store-header .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(150deg, var(--gold-soft), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(244, 169, 58, 0.35);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-pill-gold {
  background: linear-gradient(150deg, var(--gold-soft), var(--gold));
  color: #241a02;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(244, 169, 58, 0.28);
}
.btn-pill-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(244, 169, 58, 0.4); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: rgba(245, 243, 250, 0.08); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; padding: 46px 0 34px; }
.hero::before {
  content: "";
  position: absolute; top: -120px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,169,58,0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  max-width: 640px;
}
.hero p { color: var(--text-dim); font-size: 15px; max-width: 460px; margin: 0 0 26px; line-height: 1.55; }

.search-row { display: flex; gap: 10px; max-width: 520px; }
.search-box {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: rgba(245,243,250,0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 0 16px;
  transition: border-color 0.15s ease;
}
.search-box:focus-within { border-color: rgba(244,169,58,0.5); }
.search-box svg { width: 17px; height: 17px; color: var(--text-faint); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; padding: 12px 0; width: 100%;
}
.search-box input::placeholder { color: var(--text-faint); }
.btn-search {
  background: linear-gradient(150deg, var(--gold-soft), var(--gold));
  color: #241a02; font-weight: 700; font-size: 14px;
  padding: 0 22px; border-radius: 999px;
}

.categories {
  display: flex; gap: 8px; margin-top: 22px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  color: var(--text-dim);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.cat-pill:hover { background: rgba(245,243,250,0.06); }
.cat-pill.active {
  background: linear-gradient(150deg, var(--gold-soft), var(--gold));
  border-color: transparent;
  color: #241a02;
  font-weight: 700;
}

/* ===================== CATALOG ===================== */
.catalog { padding: 8px 0 60px; position: relative; z-index: 1; }
.catalog-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.catalog-head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0; }
.catalog-count { font-size: 12.5px; color: var(--text-faint); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  color: var(--text-faint);
}
.empty-state svg { width: 30px; height: 30px; margin-bottom: 10px; opacity: 0.5; }

.card {
  background: var(--card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(244,169,58,0.35); background: var(--card-hover); }

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #2c2549, #1e1934);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.ribbon-flash {
  position: absolute;
  top: 12px; left: -30px;
  width: 128px;
  text-align: center;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold-dark));
  color: #241a02;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 0;
  transform: rotate(-40deg);
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.ribbon-flash svg { width: 10px; height: 10px; }

.badge-discount {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(140deg, #ff8a76, var(--coral));
  color: #2b0a05;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(255,107,87,0.35);
}

.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 600; }
.card-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.card-price-row { margin-top: 2px; }
.price-old { font-size: 11px; color: var(--text-faint); text-decoration: line-through; }
.price-now { font-size: 16.5px; font-weight: 800; color: var(--gold); font-family: var(--font-display); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-note { font-size: 10px; color: var(--text-faint); }
.tag-nego {
  font-size: 10px; font-weight: 700; color: #6ee7a8;
  background: rgba(37,211,102,0.12);
  padding: 2px 7px; border-radius: 999px;
}

/* ===================== FOOTER ===================== */
.store-footer { background: rgba(0,0,0,0.28); border-top: 1px solid var(--border-dark); position: relative; z-index: 1; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  padding: 46px 0 30px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-brand span.name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer-col p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 4px; }
.footer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); font-weight: 700; margin-bottom: 10px; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.footer-wa svg { width: 16px; height: 16px; color: var(--green); }
.footer-wa:hover { color: var(--gold); }
.qris-thumb { width: 100px; height: 100px; border-radius: 12px; background: #fff; padding: 6px; object-fit: contain; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 16px 0; text-align: center;
  font-size: 12px; color: var(--text-faint);
}

/* ===================== MODAL (checkout) ===================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 8, 18, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 20px; } }
.modal-box {
  background: var(--ink-soft);
  color: var(--text);
  width: 100%; max-width: 440px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--border-dark);
  animation: slideUp 0.22s ease;
}
@media (min-width: 640px) { .modal-box { border-radius: 22px; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-dark);
  position: sticky; top: 0; background: var(--ink-soft); z-index: 2;
}
.modal-head h3 { font-family: var(--font-display); font-size: 17px; margin: 0; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.modal-close:hover { background: rgba(245,243,250,0.08); }
.modal-close svg { width: 16px; height: 16px; }

.order-summary {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border-dark);
}
.order-summary .thumb {
  width: 50px; height: 50px; border-radius: 10px; overflow: hidden;
  background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.order-summary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-summary .name { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; }
.order-summary .price { font-size: 14px; font-weight: 800; color: var(--gold); margin: 0; }

.modal-body { padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(245,243,250,0.06);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.form-error { color: #ff8a80; font-size: 12.5px; margin: -6px 0 14px; }

.btn-block {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 12px; font-size: 14.5px; font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-block:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(150deg, var(--gold-soft), var(--gold)); color: #241a02; }
.btn-wa { background: var(--green); color: #04270f; }
.btn-outline-dark { border: 1px solid var(--border-dark); color: var(--text); background: transparent; }

.qris-panel {
  background: #fff; border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px;
}
.qris-panel img { width: 210px; height: 210px; object-fit: contain; }
.qris-empty { width: 210px; height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 14px; }
.qris-empty svg { width: 34px; height: 34px; opacity: 0.6; }
.qris-empty p { font-size: 12px; margin: 0; }

.total-block { text-align: center; margin-bottom: 16px; }
.total-block .label { font-size: 11.5px; color: var(--text-faint); margin-bottom: 3px; }
.total-block .amount { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--gold); }

.info-note {
  display: flex; gap: 9px; background: rgba(245,243,250,0.06);
  border: 1px solid var(--border-dark); border-radius: 12px;
  padding: 12px 14px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 18px;
}
.info-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn-block { flex: 1; }

/* ===================== ADMIN ===================== */
.admin { min-height: 100vh; background: var(--paper); }

.gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card {
  width: 100%; max-width: 380px;
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px;
  box-shadow: var(--shadow-1);
}
.gate-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--ink-2); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.gate-icon svg { width: 20px; height: 20px; }
.gate-card h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 6px; }
.gate-card p.sub { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.pin-input {
  width: 100%; text-align: center; letter-spacing: 0.5em;
  font-size: 18px; padding: 13px; border-radius: 12px;
  border: 1.5px solid var(--line); outline: none; margin-bottom: 12px;
}
.pin-input:focus { border-color: var(--ink-2); }
.pin-error { color: #b3413b; font-size: 12.5px; text-align: center; margin: -4px 0 12px; }
.link-back {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 14px; font-size: 12.5px; color: var(--muted);
}
.link-back:hover { color: var(--ink-2); }
.link-back svg { width: 13px; height: 13px; }

.admin-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-top {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; max-width: 900px; margin: 0 auto;
}
.admin-brand { display: flex; align-items: center; gap: 9px; }
.admin-brand .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--ink-2); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; }
.admin-brand .ic svg { width: 15px; height: 15px; }
.admin-brand span { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.btn-ghost-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
}
.btn-ghost-pill:hover { background: var(--paper); }
.btn-ghost-pill svg { width: 13px; height: 13px; }

.admin-tabs {
  display: flex; gap: 6px; max-width: 900px; margin: 0 auto;
  padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-btn:hover { background: var(--paper); }
.tab-btn.active { background: var(--ink-2); color: #fff; }

.admin-main { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }

.admin-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.admin-row h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 3px; }
.admin-row .sub { font-size: 12.5px; color: var(--muted); margin: 0; }
.btn-dark {
  display: flex; align-items: center; gap: 7px;
  background: var(--ink-2); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 17px; border-radius: 12px; transition: background 0.15s ease;
}
.btn-dark:hover { background: #33294f; }
.btn-dark svg { width: 15px; height: 15px; }

.product-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .product-list { grid-template-columns: 1fr 1fr; } }
.product-row {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; display: flex; gap: 12px;
}
.product-row .thumb {
  width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.product-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row .info { flex: 1; min-width: 0; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
.chip {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 6px; background: var(--paper); color: var(--muted);
}
.chip.gold { background: #fdf0da; color: #96650f; }
.chip.green { background: #e4f9ec; color: #1f8a4c; }
.product-row .pname { font-size: 13.5px; font-weight: 600; margin: 3px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-row .pdesc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 4px; }
.product-row .price-row { display: flex; align-items: center; gap: 8px; }
.product-row .price-old { font-size: 11px; color: var(--muted-2); text-decoration: line-through; }
.product-row .price-now { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.product-row .actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.icon-sq {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.icon-sq:hover { background: var(--paper); }
.icon-sq svg { width: 13.5px; height: 13.5px; }
.icon-sq.danger:hover { background: #fdeceb; }
.icon-sq.danger svg { color: #b3413b; }

.section-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; margin-bottom: 16px;
}
.section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.section-head .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--ink-2); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-head .ic svg { width: 16px; height: 16px; }
.section-head h3 { font-family: var(--font-display); font-size: 15.5px; margin: 0 0 2px; }
.section-head p { font-size: 12px; color: var(--muted); margin: 0; }

.form-field { margin-bottom: 14px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: #3a3626; margin-bottom: 6px; }
.form-field input[type="text"], .form-field input[type="number"], .form-field input[type="email"], .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 13.5px; color: var(--ink-2); outline: none; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--ink-2); }
.form-field textarea { resize: vertical; min-height: 68px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.upload-row { display: flex; align-items: center; gap: 12px; }
.upload-preview {
  width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview svg { width: 20px; height: 20px; color: var(--muted-2); }
.upload-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.btn-upload { font-size: 12.5px; font-weight: 600; background: var(--ink-2); color: #fff; padding: 7px 13px; border-radius: 8px; }
.btn-upload:hover { background: #33294f; }
.btn-remove { font-size: 11.5px; color: #b3413b; }
.btn-remove:hover { text-decoration: underline; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.toggle-row .tlabel { font-size: 13px; font-weight: 600; color: #3a3626; }
.toggle-row .thint { font-size: 11.5px; color: var(--muted); }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.15s ease; flex-shrink: 0; }
.switch.on { background: var(--ink-2); }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: left 0.15s ease; }
.switch.on .knob { left: 18px; }

.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.btn-save {
  display: flex; align-items: center; gap: 7px;
  background: var(--ink-2); color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 10px;
}
.btn-save:hover { background: #33294f; }
.btn-save svg { width: 14px; height: 14px; }

/* admin product modal */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,17,31,0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .admin-modal-overlay { align-items: center; padding: 20px; } }
.admin-modal-box {
  background: #fff; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0;
}
@media (min-width: 640px) { .admin-modal-box { border-radius: 20px; } }
.admin-modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff;
}
.admin-modal-head h3 { font-family: var(--font-display); font-size: 16.5px; margin: 0; }
.admin-modal-body { padding: 20px; }

.empty-products { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line); border-radius: 18px; }
.empty-products svg { width: 28px; height: 28px; color: var(--muted-2); margin-bottom: 8px; }
.empty-products p { font-size: 13px; color: var(--muted); margin: 0; }
