/* ThriftLux: black & gold luxury thrift */
:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #4a4540;
  --ink-faint: #8a857f;
  --gold: #c9a961;
  --gold-deep: #a88847;
  --gold-light: #ead7a8;
  --line: #ece6dc;
  --shadow: 0 1px 2px rgba(13,13,13,0.04), 0 8px 24px rgba(13,13,13,0.06);
  --shadow-lg: 0 20px 60px rgba(13,13,13,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg); }
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; border: 2px solid var(--bg); }
html::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
html::-webkit-scrollbar-corner { background: var(--bg); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,97,0.18);
  z-index: 200;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 6px 0;             /* tightened from 14px so the logo can grow without the header growing */
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  transition: transform 0.2s;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-logo {
  height: 72px; width: auto;  /* bigger + more prominent; pill frame removed */
  object-fit: contain;
  transition: transform 0.2s;
}
.footer-brand .brand-logo { height: 72px; }
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: #f0e9d8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: #0d0d0d !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); color: #0d0d0d !important; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  z-index: 220;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 24px;
  background: var(--gold-light);
  transition: 0.3s;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%; height: 100vh;
    background: rgba(13,13,13,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-100vh);
    transition: transform 0.3s;
    z-index: 210;
    visibility: hidden;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a { font-size: 20px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1410 50%, #0d0d0d 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,169,97,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,169,97,0.10), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: #d8d2c4;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201,169,97,0.5);
}
.btn-ghost:hover { background: rgba(201,169,97,0.1); border-color: var(--gold); }

/* ===== FILTERS ===== */
.filters {
  background: var(--bg);
  padding: 60px 0 24px;
}
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.filter-pills { display: flex; gap: 8px; }
.pill {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  color: var(--ink-soft);
  font-family: inherit;
}
.pill:hover { border-color: var(--gold); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--gold-light); }
/* On Sale pill — red accent so it stands out from the neutral filter row. */
.pill-sale { border-color: rgba(192,57,43,0.45); color: #c0392b; font-weight: 600; }
.pill-sale:hover { border-color: #c0392b; color: #c0392b; }
.pill-sale.active { background: #c0392b; border-color: #c0392b; color: #fff; }
.filter-meta { color: var(--ink-faint); font-size: 14px; }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 16px 0 80px;
}

/* Numbered pagination */
.pager-wrap { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 16px 72px; }
.pager-btn { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink); border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.15s; display: inline-flex; align-items: center; justify-content: center; }
.pager-btn:hover:not(.disabled):not(.active):not(.ellipsis) { background: var(--gold-light); border-color: var(--gold); color: var(--ink); }
.pager-btn.active { background: var(--ink); color: var(--gold-light); border-color: var(--ink); cursor: default; }
.pager-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.pager-btn.ellipsis { border: none; background: transparent; cursor: default; }
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img {
  width: 82%; height: 82%; object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s;
}
.card:hover .card-img { transform: scale(1.04); }

.card.sold .card-img { filter: grayscale(0.4) brightness(0.92); }

.badge-sold {
  position: absolute;
  top: 14px; left: 14px;
  background: #0d0d0d;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--gold);
}
/* SALE ribbon — red so it's unmistakable. Sits top-left; a bag is never both
   sold and on-sale (isOnSale requires !sold), so no clash with .badge-sold. */
.badge-sale {
  position: absolute;
  top: 14px; left: 14px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(192,57,43,0.45);
  z-index: 2;
}

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.card-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.card-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.card-price small { font-size: 12px; color: var(--ink-faint); font-weight: 400; font-family: var(--sans); }

/* Sale pricing on a card: original price struck-through, sale price in red,
   and a small "-X%" pill so the discount magnitude reads instantly. */
.card-price-was {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(138,133,127,0.7);
}
.card-price-sale { color: #c0392b; }
.price-off {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #c0392b;
  border-radius: 999px;
  padding: 3px 8px;
  align-self: center;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.btn-card {
  flex: 1;
  text-align: center;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  transition: 0.2s;
}
.btn-card:hover:not(:disabled) { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-card.primary {
  background: var(--ink); color: var(--gold-light); border-color: var(--ink);
}
.btn-card.primary:hover:not(:disabled) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-card:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-card .wa-icon { vertical-align: -3px; margin-right: 6px; }

/* ===== NESSA CROSS-PROMO =====
   Editorial dark band between the gallery and About. Cross-sells Venessa's
   makeup + wardrobe styling work (nessa.co.ke). Mirrors the hero's black+gold
   treatment so it reads on-brand, not like an ad. The .nessa-inner caps line
   length and supplies the side gutters on mobile (the section itself is
   full-bleed dark). */
.nessa-promo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1510 52%, #0d0d0d 100%);
  color: #fff;
  text-align: center;
  border-top: 1px solid rgba(201,169,97,0.20);
  border-bottom: 1px solid rgba(201,169,97,0.20);
  padding: 104px 0;
}
.nessa-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 28%, rgba(201,169,97,0.16), transparent 46%),
    radial-gradient(circle at 84% 72%, rgba(201,169,97,0.11), transparent 46%);
  pointer-events: none;
}
.nessa-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;        /* side gutters so copy never touches the screen edge */
}
.nessa-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.nessa-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 22px;
}
.nessa-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.nessa-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #cfc8ba;
  max-width: 520px;
  margin: 0 auto 30px;
}
.nessa-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
}
.nessa-chip {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201,169,97,0.08);
  border: 1px solid rgba(201,169,97,0.32);
  border-radius: 999px;
  padding: 8px 16px;
}
.nessa-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nessa-cta svg { transition: transform 0.22s; }
.nessa-cta:hover svg { transform: translate(2px, -2px); }
@media (max-width: 600px) {
  .nessa-promo { padding: 72px 0; }
  .nessa-sub { font-size: 16px; }
}

/* ===== INFO ===== */
.info {
  background: #ffffff;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.info h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 18px;
}
.info p { color: var(--ink-soft); margin-bottom: 14px; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 14px 0 14px 50px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600;
}
.steps li:last-child { border-bottom: none; }
.steps strong { color: var(--ink); }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===== FOOTER =====
   Editorial 3-column treatment in ThriftLux gold/black: brand identity +
   tagline left, Explore nav middle, Connect (WA + IG with icons) right.
   .footer-brand MUST be display:block — flex made the tagline/blurb lay out
   in a horizontal row and overflow the viewport on mobile. */
.footer {
  background: #0d0d0d;
  color: #d8d2c4;
  padding: 96px 0 28px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(201,169,97,0.10), transparent 50%),
    radial-gradient(circle at 88% 82%, rgba(201,169,97,0.07), transparent 50%);
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: 64px;
  margin-bottom: 64px;
  position: relative;
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; max-width: 540px; }
}
@media (max-width: 520px) {
  .footer { padding: 72px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; margin-bottom: 44px; }
}
.footer-brand { display: block; }
.footer-logo {
  width: 88px; height: 88px;
  border-radius: 14px;
  display: block;
  margin-bottom: 22px;
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(201,169,97,0.18);
}
@media (max-width: 520px) { .footer-logo { width: 72px; height: 72px; } }
.footer-tagline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 26px);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 100%;
}
.footer-tagline em { font-style: italic; }
.footer-blurb {
  color: #a09686;
  font-size: 14px;
  line-height: 1.65;
  max-width: 100%;
}
.footer-heading {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  align-items: flex-start;
}
.footer-list a {
  color: #d8d2c4;
  font-size: 14.5px;
  transition: color 0.22s, transform 0.22s;
  display: inline-block;
}
.footer-list a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
}
.footer-social .footer-icon {
  color: var(--gold);
  flex-shrink: 0;
  transition: color 0.22s, transform 0.22s;
}
.footer-social:hover .footer-icon { color: var(--gold-light); transform: scale(1.08); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(201,169,97,0.18);
  position: relative;
}
.footer-fine {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.02em;
}
.footer-credit { color: var(--gold); transition: color 0.2s; }
.footer-credit:hover { color: var(--gold-light); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(900px, 100%);
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,97,0.4);
  color: var(--gold-light);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}
.lightbox-close:hover { background: var(--gold); color: var(--ink); }

/* ===== ADMIN ===== */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.admin-header h1 { font-family: var(--serif); font-size: 36px; font-weight: 500; }

/* Sales dashboard */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; transition: 0.25s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.stat-card-accent { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.65; margin-bottom: 8px; }
.stat-value { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.stat-card-accent .stat-value { color: var(--gold); }
.stat-sub { font-size: 12px; opacity: 0.7; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-admin { padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; font-weight: 500; font-size: 14px; transition: 0.2s; }
.btn-admin:hover { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-admin.primary { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-admin.primary:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-admin.danger { color: #b00020; border-color: #f3c5cc; }
.btn-admin.danger:hover { background: #b00020; color: #fff; border-color: #b00020; }
/* Bulk-sale modal: discount-type toggle (% off vs exact price) */
.sale-mode-btn.active { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #fff; border-radius: 14px; padding: 28px; max-width: 480px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 4px; }
/* Mobile: modals become full-screen sheets so tall sale modals fit, and the
   action buttons stay reachable via a sticky footer. Uses dvh/svh (NOT vh) so
   the card never exceeds the visible area when the browser URL bar is showing
   — that was the "popup doesn't fit / can't reach Save" bug (2026-06-07). */
@media (max-width: 600px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-card {
    max-width: none; border-radius: 0;
    height: 100svh; height: 100dvh;
    max-height: 100svh; max-height: 100dvh;
    padding: 16px 16px 0;
  }
  .modal-card h3 { font-size: 19px; line-height: 1.18; }
  .modal-card .admin-actions {
    position: sticky; bottom: 0; background: #fff; z-index: 2;
    margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -7px 14px -9px rgba(0,0,0,0.25);
  }
  .bulk-bar { flex-wrap: wrap; }
}
.sync-panel { background: #fff; border: 1.5px solid #d4c5b0; border-radius: 14px; padding: 22px 24px; margin-bottom: 24px; }
.sync-panel h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.token-status { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.token-status.ok { color: #2e7d32; }
.token-status.warn { color: #b45309; }
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.admin-form h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px;
  background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-checkbox { display: flex; align-items: center; gap: 10px; }
.field-checkbox input { width: auto; }

.admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-card-body { padding: 12px 14px; }
.admin-card-name { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.admin-card-price { color: var(--gold-deep); font-weight: 600; font-size: 14px; }
.admin-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.admin-card-actions button { flex: 1; padding: 7px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; }
.admin-card-actions button:hover { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.admin-card-actions .danger:hover { background: #b00020; color: #fff; border-color: #b00020; }
.admin-card-actions .sold-toggle.on { background: #0d0d0d; color: var(--gold); }

.login-wrap { max-width: 400px; margin: 100px auto; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.login-wrap h1 { font-family: var(--serif); font-size: 32px; margin-bottom: 8px; text-align: center; }
.login-wrap p { color: var(--ink-faint); font-size: 14px; text-align: center; margin-bottom: 24px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: var(--gold-light); padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow-lg); transform: translateY(120%); transition: 0.3s; z-index: 1000; font-size: 14px; }
.toast.show { transform: translateY(0); }

/* ===== MOBILE POLISH ===== */
@media (max-width: 760px) {
  .nav-inner { padding: 6px 0; }
  .brand-logo { height: 56px; width: auto; }

  .hero { padding: 56px 16px 64px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.25em; margin-bottom: 18px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); margin-bottom: 18px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { gap: 10px; }
  .btn { padding: 13px 22px; font-size: 13px; }

  .filters { padding: 40px 0 16px; }
  .filters-bar { align-items: start; gap: 14px; }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .filter-pills { width: 100%; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .pill { flex-shrink: 0; }

  .gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 0 50px;
  }
  .card-body { padding: 16px 18px 18px; gap: 8px; }
  .card-title { font-size: 19px; }
  .card-desc { font-size: 13.5px; }
  .card-price { font-size: 20px; }
  .card-actions { gap: 8px; padding-top: 12px; margin-top: 12px; }
  .btn-card { padding: 12px 10px; font-size: 13px; }

  .info { padding: 56px 0; }
  .info h2 { font-size: 28px; margin-bottom: 14px; }
  .steps li { padding: 12px 0 12px 46px; font-size: 14px; }

  .footer { padding: 40px 0 24px; }
  .footer-inner { gap: 26px; }
  .footer-brand .brand-logo { height: 60px; width: auto; }
  .footer-fine { padding-top: 24px; margin-top: 12px; }

  .lightbox { padding: 16px; }
  .lightbox-img { max-height: 70vh; border-radius: 8px; }
  .lightbox-caption { font-size: 15px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
}

/* Very small screens: keep hero text from feeling cramped */
@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ==========================================================
   ADMIN — thrift catalog admin pattern
   Mirrors Website Designs/ryker-luxury minus stock grid + restock
   ========================================================== */
.btn-admin.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.btn-admin.gold:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }

/* Login form polish — bigger than default per CLAUDE.md */
.login-wrap { max-width: 440px; padding: 44px 40px 40px; }
.login-wrap .field input { padding: 16px 18px; font-size: 16px; letter-spacing: 0.06em; }
.login-wrap .field label { font-size: 13px; }
.login-wrap .btn-admin { padding: 14px 18px; font-size: 15px; }

/* Sticky admin sub-nav with count badges */
.admin-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  margin: 0 -24px 24px; padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.admin-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); background: #fff;
  transition: 0.15s; white-space: nowrap;
}
.admin-nav a:hover { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.admin-nav a.admin-nav-cta { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.admin-nav a.admin-nav-cta:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.admin-nav-count { display: inline-block; background: var(--line); color: var(--ink-soft); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.admin-nav a:hover .admin-nav-count { background: rgba(255,255,255,0.15); color: var(--gold-light); }
/* Scrollspy — the section you're currently viewing */
.admin-nav a.active { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.admin-nav a.active .admin-nav-count { background: rgba(255,255,255,0.15); color: var(--gold-light); }
.admin-nav a.admin-nav-cta.active { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
#addForm, #salesDash, #invDash, #broadcastDash, #analyticsDash, #allItems { scroll-margin-top: 80px; }

/* Dashboard cards */
.dash { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.dash-title { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 18px; color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.dash-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.dash-card h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 14px; color: var(--ink); font-weight: 600; }
.cat-bars { display: flex; flex-direction: column; gap: 10px; }
.cat-bar-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.cat-bar-name { font-weight: 600; color: var(--ink); }
.cat-bar-meta { color: var(--ink-soft); font-size: 12px; }
.cat-bar-track { background: var(--line); border-radius: 99px; height: 6px; overflow: hidden; }
.cat-bar-fill { background: var(--gold); height: 100%; transition: width 0.4s; }
.recent-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.recent-list::-webkit-scrollbar { width: 6px; }
.recent-list::-webkit-scrollbar-thumb { background: rgba(107,91,58,0.35); border-radius: 99px; }
.recent-list::-webkit-scrollbar-track { background: transparent; }
.recent-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.recent-row img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.recent-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.recent-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.recent-actions { display: grid; grid-template-columns: auto auto; gap: 6px; flex-shrink: 0; align-content: center; }
.recent-actions button { padding: 5px 10px; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; }
.recent-actions button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.recent-actions button.danger { color: #b00020; border-color: #f3c5cc; }
.recent-actions button.danger:hover { background: #b00020; color: #fff; border-color: #b00020; }
@media (max-width: 700px) { .dash-grid { grid-template-columns: 1fr; } }

/* Inventory dashboard */
.inv-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 4px; }
.inv-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.inv-kpi.success { border-color: #50a070; background: #f0fff6; }
.inv-kpi-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.inv-kpi-val { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; }
.inv-kpi-sub { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.inv-filter-bar { display: flex; gap: 8px; margin: 8px 0 14px; flex-wrap: wrap; }
.inv-filter-bar .pill { font-weight: 600; }
.inv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.inv-table th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 12px; border-bottom: 2px solid var(--line); background: #faf7f2; }
.inv-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table tr:hover td { background: #faf7f2; }
.inv-table .item-img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; }
.stock-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.stock-pill.ok { background: #e8f8ef; color: #1a7a40; }
.stock-pill.zero { background: #ffeaea; color: #b00020; }
.restock-btn { padding: 4px 10px; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; font-family: inherit; transition: 0.15s; }
.restock-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* IG quick-add — the recommended primary path. Visually loud so Venessa
   reaches for it before scrolling to the manual upload. */
.ig-quick-add {
  background: linear-gradient(135deg, #fff8ec 0%, #f5e9d3 60%, #ead7a8 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(201,169,97,0.18), 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}
.ig-quick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ig-quick-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.ig-quick-badge {
  display: inline-block;
  background: var(--ink); color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  padding: 4px 9px; border-radius: 99px;
}
.ig-quick-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 12px; }
.ig-quick-desc a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ig-quick-row { display: flex; gap: 10px; }
.ig-quick-row input {
  flex: 1; padding: 13px 16px; border: 1px solid var(--gold); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.ig-quick-row input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,169,97,0.2); }
.ig-quick-row .btn-admin { flex-shrink: 0; padding: 12px 22px; font-size: 14px; }
.ig-quick-status { font-size: 12.5px; margin: 10px 0 0; min-height: 18px; }
.ig-quick-status.ok { color: #1a7a40; }
.ig-quick-status.err { color: #b00020; }
@media (max-width: 600px) {
  .ig-quick-add { padding: 16px 16px 18px; }
  .ig-quick-row { flex-direction: column; }
  .ig-quick-row .btn-admin { padding: 14px 16px; font-size: 14px; }
}

/* "or upload manually below" divider — separates the recommended IG path
   from the manual file upload so it's obvious they're alternatives. */
.form-or-divider {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 4px 0 18px;
}
.form-or-divider::before, .form-or-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.form-or-divider span { padding: 0 4px; }

/* ===== Collapsible manual-entry form (mobile-safe) =====
   The manual add-bag form collapses behind a visible gold-pill toggle. The
   flex layout lives on .me-row, NOT the <summary> (a <summary> with display:flex
   breaks native <details> toggling in mobile WebKit — the toggle is JS-driven
   too, see admin.js). */
.manual-entry { margin: 14px 0 0; }
summary.manual-entry-divider {
  display: block; list-style: none; cursor: pointer; user-select: none; margin: 10px 0;
}
summary.manual-entry-divider::-webkit-details-marker { display: none; }
summary.manual-entry-divider::marker { content: ""; }
summary.manual-entry-divider span { padding: 0; }
.manual-entry .me-row { display: flex; align-items: center; gap: 12px; }
.manual-entry .me-row::before, .manual-entry .me-row::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.manual-entry .me-pill {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--gold); color: #1c1208;
  padding: 12px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(201,169,97,0.4);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.manual-entry .me-plus { transition: transform 0.2s ease; }
.manual-entry[open] .me-plus { transform: rotate(45deg); }
summary.manual-entry-divider:hover .me-pill {
  background: var(--gold-deep); transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(201,169,97,0.52);
}
summary.manual-entry-divider:active .me-pill { transform: translateY(0); }

/* ===== Collapsible dashboard sections: click the title to fold/unfold ===== */
.dash-title.dash-foldable { cursor: pointer; user-select: none; position: relative; padding-right: 30px; }
.dash-title.dash-foldable::after {
  content: "›"; position: absolute; right: 2px; top: 50%;
  font-size: 22px; line-height: 1; color: var(--gold-deep);
  transform: translateY(-50%) rotate(90deg); transition: transform 0.18s ease;
}
.dash.collapsed .dash-title.dash-foldable::after { transform: translateY(-50%) rotate(0deg); }
.dash-title.dash-foldable:hover { color: var(--gold-deep); }
.dash.collapsed > :not(:first-child) { display: none !important; }
.dash.collapsed > .dash-title { margin-bottom: 0; }

/* Extra images preview grid */
.extra-imgs-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-top: 8px; }
.extra-img { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.extra-img img { width: 100%; height: 100%; object-fit: cover; }
.extra-img-rm { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; border: none; font-size: 14px; line-height: 1; cursor: pointer; }
.extra-img-rm:hover { background: #b00020; }

/* WhatsApp Marketing UI */
.set-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.set-form .field input[type="text"], .set-form .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.set-selected-items { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; padding: 6px; border: 1px dashed var(--line); border-radius: 8px; background: #faf7f2; }
.set-selected-item { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px 4px 4px; font-size: 12px; }
.set-selected-item img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.set-selected-rm { background: none; border: none; cursor: pointer; color: #b00020; font-size: 16px; line-height: 1; padding: 0 4px; }
.set-item-picker { display: none; margin-top: 4px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.set-pick-row { display: flex; gap: 10px; align-items: center; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.set-pick-row:last-child { border-bottom: none; }
.set-pick-row:hover { background: #faf7f2; }
.set-pick-row img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.set-pick-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.set-pick-meta { font-size: 11px; color: var(--ink-faint); }
.broadcast-recipients { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 280px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.broadcast-recipient { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: 0.15s; }
.broadcast-recipient.on { background: #faf7f2; border-color: var(--gold); }
.broadcast-recipient input { grid-row: 1 / 3; width: 16px; height: 16px; cursor: pointer; accent-color: var(--gold-deep); }
.broadcast-recipient-name { grid-column: 2; font-size: 13px; font-weight: 600; color: var(--ink); }
.broadcast-recipient-phone { grid-column: 3; font-size: 11px; color: var(--ink-faint); font-family: monospace; align-self: start; }
.broadcast-recipient-meta { grid-column: 2 / -1; font-size: 11px; color: var(--ink-faint); }
@media (max-width: 600px) { .broadcast-recipients { grid-template-columns: 1fr; } }

/* Mobile one-at-a-time send stepper */
.broadcast-stepper { background: var(--bg); border: 1px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.bc-step-head { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.bc-step-name { font-size: 16px; font-weight: 600; color: var(--ink); margin: 4px 0 12px; }
.bc-step-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-step-actions .btn-admin { text-decoration: none; }
.bc-step-hint { font-size: 12px; color: var(--ink-faint); margin-top: 10px; line-height: 1.45; }
.bc-step-done { font-size: 14px; font-weight: 600; color: #1a7a40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Bulk action sticky bar + admin card overrides */
.bulk-bar { position: sticky; top: 64px; z-index: 40; display: flex; align-items: center; gap: 10px; background: #0d0d0d; color: var(--gold-light); padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow); }
.bulk-bar strong { font-size: 18px; font-family: var(--serif); color: var(--gold); margin-right: 4px; }
.bulk-bar .btn-admin { padding: 6px 12px; font-size: 12.5px; }
.admin-card { position: relative; transition: 0.2s; }
.admin-card.bulk-selected { box-shadow: 0 0 0 3px var(--gold); border-color: var(--gold); }
.bulk-check { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,0.92); border-radius: 4px; padding: 4px; cursor: pointer; display: flex; }
.bulk-check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--gold-deep); }
.admin-card-stock { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.admin-card-added { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }

/* Section divider */
.section-divider { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.section-divider span { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); font-weight: 400; }

/* Pending-implementation banner — used on dashboards whose data source
   isn't wired yet. The visible "Pending" label is what stops a future
   maintainer (or a hurried Claude) from feeling tempted to seed the
   widget with placeholder numbers. See workflow doc gotcha. */
.pending-banner {
  background: #fff4e0;
  border: 1px solid #f0c060;
  border-left: 4px solid #a06000;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6b4400;
  line-height: 1.55;
  margin: -8px 0 18px;
}
.pending-banner strong { color: #b04400; }
.pending-banner code { background: rgba(160, 96, 0, 0.12); padding: 1px 5px; border-radius: 3px; font-size: 12px; }

@media (max-width: 760px) {
  .admin-wrap { padding: 24px 16px 60px; }
  .admin-nav { margin: 0 -16px 20px; padding: 10px 16px; gap: 6px; }
  .admin-nav a { padding: 6px 12px; font-size: 12.5px; flex-shrink: 0; }
  .admin-nav .admin-nav-cta { width: 100%; text-align: center; padding: 9px 12px; font-size: 13.5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .inv-table { font-size: 12px; min-width: 640px; }
  .inv-table th, .inv-table td { padding: 7px 8px; }
  .inv-table .item-img { width: 32px; height: 32px; }
  .inv-table-wrap { max-height: 520px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
}

/* ==========================================================
   ADMIN POLISH (v6) — search + mobile horizontal rows
   ========================================================== */

/* Search input above the All bags grid — pill shape, magnifier icon */
.admin-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}
.admin-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
.admin-search input[type="search"] {
  flex: 1;
  padding: 12px 18px 12px 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.admin-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.admin-search input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.2);
}
.admin-search input[type="search"]::placeholder { color: var(--ink-faint); }
.admin-search-meta {
  font-size: 12.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* Helper class used by the buyer row in admin cards */
.admin-card-buyer { font-size: 12px; color: #666; margin-top: 4px; }

/* MOBILE ≤600px — admin cards as horizontal list rows
   Per CLAUDE.md admin-pattern: 78px thumb, single-line name+price,
   nowrap actions, ~110px tall, hide category badge.                  */
@media (max-width: 600px) {
  .admin-list {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px; /* leave room for scrollbar */
  }
  .admin-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    min-height: 110px;
  }
  /* 78×78 thumbnail — explicit dimensions; NEVER use height:100% (stretches) */
  .admin-card img {
    width: 78px;
    height: 78px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .admin-card-body { padding: 0; min-width: 0; }
  .admin-card-name {
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-card-price { font-size: 13px; display: inline; }
  /* Category badge + buyer line: hide on mobile to keep rows compact */
  .admin-card-stock,
  .admin-card-buyer { display: none; }
  /* Action buttons: all in one row, no wrapping */
  .admin-card-actions {
    margin-top: 6px;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .admin-card-actions button {
    padding: 6px 8px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  /* Bulk-select checkbox is fine where it is — just shrink the chrome */
  .admin-card .bulk-check { top: 4px; left: 4px; padding: 2px; }
  .admin-card .bulk-check input { width: 14px; height: 14px; }

  .admin-search { gap: 8px; }
  .admin-search input[type="search"] { font-size: 16px; padding: 10px 14px 10px 42px; }
  .admin-search-icon { left: 14px; }
  .admin-search-meta { font-size: 11.5px; min-width: 0; }
}

/* ==========================================================
   STANDARDS PASS (v7) — CATALOG-STANDARDS.md compliance
   ========================================================== */

/* Public filter row: controls (search + sort) flex sit alongside the title */
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filters-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Pill-shaped search input with magnifier on the left and × clear on the right */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 380px;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}
.search-box input[type="search"] {
  flex: 1;
  padding: 11px 40px 11px 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-box input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.2);
}
.search-clear {
  position: absolute;
  right: 8px;
  width: 24px; height: 24px;
  border: none; background: transparent;
  color: var(--ink-faint);
  font-size: 20px; line-height: 1; cursor: pointer;
  border-radius: 50%;
}
.search-clear:hover { background: var(--line); color: var(--ink); }

/* Sort select — match pill aesthetic */
.sort-select {
  padding: 11px 36px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%238a857f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sort-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,0.2); }

/* Category pills row — wrap to multi-line on mobile per CATALOG-STANDARDS */
.filter-pills--availability,
.filter-pills--cats {
  display: flex; gap: 8px;
  flex-wrap: wrap;       /* never horizontal-scroll on mobile */
  margin: 0 0 10px;
}
.filter-pills--cats:empty { display: none; }

/* NEW badge — gold ribbon top-left for items added in last 7 days */
.badge-new {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(201,169,97,0.4);
}
/* If both SOLD and NEW exist (shouldn't, but safe), SOLD wins visually */
.card.sold .badge-new { display: none; }

/* Like pill — top-right of card, tap to +1 (one-way, persists in localStorage) */
.like-pill {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 8px;
  background: rgba(13,13,13,0.55);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.18s, transform 0.18s;
  z-index: 2;
}
.like-pill:hover { background: rgba(13,13,13,0.75); transform: translateY(-1px); }
.like-pill svg { fill: none; stroke: #fff; stroke-width: 2; transition: fill 0.2s, stroke 0.2s; }
.like-pill.liked { background: rgba(225,29,72,0.92); }
.like-pill.liked:hover { background: rgba(200,20,60,0.95); }
.like-pill.liked svg { fill: #fff; stroke: #fff; }
.like-pill.pop { animation: like-pop 0.35s cubic-bezier(0.22,0.61,0.36,1); }
@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
@media (max-width: 600px) {
  .like-pill { top: 10px; right: 10px; padding: 4px 8px 4px 7px; font-size: 11.5px; }
  .like-pill svg { width: 13px; height: 13px; }
}

/* Admin Insights section ("(This device only)" badge) */
.insights-badge {
  display: inline-block;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 10px;
}
.insights-disclosure {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: -8px 0 18px;
}
.insights-disclosure code {
  background: rgba(0,0,0,0.05);
  padding: 1px 5px; border-radius: 3px; font-size: 12px;
}

/* "Searches with no results" warm-amber pills card (the killer feature) */
.search-gaps {
  background: #fff8eb;
  border: 1px solid #f0c060;
  border-left: 4px solid #d99e22;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}
.search-gaps h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #6b4400;
}
.search-gaps-hint {
  font-size: 12.5px;
  color: #8a6d2a;
  margin: 0 0 12px;
}
.search-gaps-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 116px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px;
}
.search-gaps-pills::-webkit-scrollbar { width: 6px; }
.search-gaps-pills::-webkit-scrollbar-thumb { background: rgba(107,91,58,0.35); border-radius: 99px; }
.search-gaps-pills::-webkit-scrollbar-track { background: transparent; }
.search-gap-pill {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 1px solid #d99e22;
  color: #6b4400;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
}
.search-gap-pill .count {
  background: #d99e22;
  color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 99px;
  padding: 1px 7px;
  margin-left: 6px;
}
.insights-empty { font-size: 13px; color: var(--ink-faint); padding: 12px; }

/* Reset button for Insights */
.insights-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: flex-end; }

/* IG quick-add pill rename ("⚡ FASTEST WAY") + 4px gold-deep left bar */
.ig-quick-add { border-left: 4px solid var(--gold-deep); }
.ig-quick-badge {
  background: linear-gradient(135deg, #3d2817, var(--ink));
  color: var(--gold);
}

/* Long-list custom scrollbar (per CATALOG-STANDARDS) — gold thumb on warm-beige track */
.admin-list, .broadcast-recipients, .set-item-picker, .inv-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #faf7f2;
}
.admin-list::-webkit-scrollbar,
.broadcast-recipients::-webkit-scrollbar,
.set-item-picker::-webkit-scrollbar,
.inv-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.admin-list::-webkit-scrollbar-track,
.broadcast-recipients::-webkit-scrollbar-track,
.set-item-picker::-webkit-scrollbar-track,
.inv-table-wrap::-webkit-scrollbar-track { background: #faf7f2; border-radius: 4px; }
.admin-list::-webkit-scrollbar-thumb,
.broadcast-recipients::-webkit-scrollbar-thumb,
.set-item-picker::-webkit-scrollbar-thumb,
.inv-table-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.admin-list::-webkit-scrollbar-thumb:hover,
.broadcast-recipients::-webkit-scrollbar-thumb:hover,
.set-item-picker::-webkit-scrollbar-thumb:hover,
.inv-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Mobile compact for the new controls */
@media (max-width: 600px) {
  .filters-bar { gap: 12px; }
  .filters-controls { width: 100%; }
  .search-box { min-width: 0; flex: 1 1 100%; max-width: none; }
  .search-box input[type="search"] { font-size: 16px; }
  .sort-select { width: 100%; padding: 10px 32px 10px 14px; font-size: 14px; }
}

/* ============================================================
   IG SYNC BANNER — top-of-admin, sits above admin-nav.
   Reskinned to ThriftLux champagne/gold palette (matches the rest
   of the site). Dark plate keeps the banner high-contrast against
   the warm beige page background.
   ============================================================ */
.ig-sync-banner {
  background: linear-gradient(135deg, #1a1410 0%, #2a2018 100%);
  color: #f5f0e6;
  border-radius: 16px;
  padding: 22px 26px 24px;
  margin-bottom: 28px;
  border: 1px solid rgba(201,169,97,0.35);
  box-shadow: 0 12px 32px rgba(201,169,97,0.18), 0 1px 0 rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
}
.ig-sync-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light) 50%, var(--gold-deep));
}
.ig-sync-banner-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.ig-sync-banner-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1410;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(201,169,97,0.5);
}
.ig-sync-banner-text h2 {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #f5f0e6;
  letter-spacing: 0.005em;
}
.ig-sync-banner-text p {
  font-size: 13.5px;
  color: #d9cfbe;
  margin: 0;
  line-height: 1.5;
  max-width: 640px;
}
.ig-sync-banner-text strong { color: var(--gold-light); font-weight: 600; }
.ig-sync-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #1a1410;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 6px 18px rgba(201,169,97,0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}
.ig-sync-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ig-sync-cta:active { transform: translateY(1px); }
.ig-sync-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ig-sync-cta svg { transition: transform 0.2s ease; }
.ig-sync-cta:hover:not(:disabled) svg { transform: rotate(60deg); }
.ig-sync-banner-status {
  margin-top: 16px;
  font-size: 13px;
  color: #d9cfbe;
  min-height: 18px;
}
.ig-sync-banner-status:empty { display: none; }
@media (max-width: 720px) {
  .ig-sync-banner { padding: 18px 18px 20px; }
  .ig-sync-banner-head { grid-template-columns: auto 1fr; gap: 14px; }
  .ig-sync-banner-icon { width: 44px; height: 44px; }
  .ig-sync-banner-text h2 { font-size: 20px; }
  .ig-sync-banner-text p { font-size: 12.5px; }
  .ig-sync-cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

/* IG sync candidate list */
.ig-sync-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding: 4px; }
.ig-sync-list:empty { display: none; }
.ig-sync-row {
  display: grid;
  grid-template-columns: 30px 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: 10px;
  background: #fff;
}
.ig-sync-check { display: flex; align-items: center; justify-content: center; }
.ig-sync-check input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--gold-deep);
  cursor: pointer;
}
.ig-sync-row img {
  width: 92px; height: 92px; object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(201,169,97,0.25);
  background: #fff;
}
.ig-sync-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ig-sync-row-1 { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-sync-name {
  flex: 1 1 180px; min-width: 0;
  padding: 8px 10px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(201,169,97,0.3); border-radius: 6px; background: #fff;
  font-family: inherit;
  color: var(--ink);
}
.ig-sync-name:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,169,97,0.18); }
.ig-sync-cat {
  padding: 8px 10px; font-size: 13px;
  border: 1px solid rgba(201,169,97,0.3); border-radius: 6px; background: #fff;
  font-family: inherit;
  color: var(--ink);
}
.ig-sync-row-2 { display: flex; gap: 12px; align-items: center; font-size: 12.5px; }
.ig-sync-size { color: var(--ink-soft); font-weight: 600; background: rgba(201,169,97,0.12); padding: 2px 8px; border-radius: 99px; }
.ig-sync-postlink { color: var(--ink-faint); font-size: 11.5px; }
.ig-sync-postlink:hover { color: var(--gold-deep); }
.ig-sync-caption {
  font-size: 12px; color: var(--ink-faint); font-style: italic;
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
@media (max-width: 640px) {
  .ig-sync-row { grid-template-columns: 24px 72px 1fr; padding: 8px; gap: 8px; }
  .ig-sync-row img { width: 72px; height: 72px; }
  .ig-sync-name { font-size: 13px; padding: 6px 8px; }
}

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  background: var(--ink);
  color: var(--gold-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  box-shadow: 0 6px 20px rgba(13,13,13,0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.22,0.61,0.36,1), transform 0.25s cubic-bezier(0.22,0.61,0.36,1), background 0.2s, color 0.2s;
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.to-top[hidden] { display: none; }
@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ===== LOYALTY PROGRAM (admin) ===== */
.loyalty-config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.loyalty-list {
  max-height: 540px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px; background: var(--bg);
  border: 1px solid rgba(201,169,97,0.25); border-radius: 10px;
  scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg);
}
.loyalty-list::-webkit-scrollbar { width: 9px; }
.loyalty-list::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.loyalty-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.loyalty-list::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
.loyalty-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center;
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 9px; padding: 11px 14px;
}
.loyalty-row.ready { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.loyalty-row-main { min-width: 0; }
.loyalty-row-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.loyalty-row-sub { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.loyalty-row-progress { margin-top: 7px; max-width: 340px; }
.loyalty-prog-meta { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 3px; display: flex; justify-content: space-between; gap: 10px; }
.loyalty-bar-track { height: 7px; background: rgba(201,169,97,0.18); border-radius: 4px; overflow: hidden; }
.loyalty-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width 0.3s ease; }
.loyalty-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.loyalty-row-actions .btn-admin { padding: 6px 12px; font-size: 12.5px; }
.loyalty-ready-badge {
  display: inline-block; background: var(--gold); color: #0d0d0d;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
@media (max-width: 600px) {
  .loyalty-config-grid { grid-template-columns: 1fr; }
  .loyalty-row { grid-template-columns: 1fr; }
  .loyalty-row-progress { max-width: none; }
  .loyalty-row-actions { flex-wrap: wrap; }
  .loyalty-row-actions .btn-admin { flex: 1; }
  .loyalty-locked { padding: 22px 16px; }
  .loyalty-locked h3 { font-size: 19px; }
  .loyalty-locked-price { font-size: 23px; }
  .loyalty-locked .btn-admin { display: flex; width: 100%; padding: 13px 16px; font-size: 14.5px; }
}

/* Locked teaser (paid-feature paywall) */
.loyalty-locked {
  background: linear-gradient(160deg, #fffdf8, #fbf4e6);
  border: 1px solid var(--gold); border-radius: 14px;
  padding: 26px 24px; text-align: center; max-width: 560px; margin: 4px auto;
}
.loyalty-locked-badge {
  display: inline-block; background: var(--ink); color: var(--gold-light);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.loyalty-locked h3 { font-size: 21px; color: var(--ink); margin: 0 0 10px; }
.loyalty-locked > p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 auto 16px; max-width: 460px; }
.loyalty-locked-features {
  list-style: none; padding: 0; margin: 0 auto 20px; max-width: 420px;
  text-align: left; display: grid; gap: 8px;
}
.loyalty-locked-features li {
  font-size: 13.5px; color: var(--ink-soft); padding-left: 26px; position: relative;
}
.loyalty-locked-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-weight: 700;
}
.loyalty-locked-price {
  font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 18px;
}
.loyalty-locked-price span {
  display: block; font-size: 12px; font-weight: 500; color: var(--ink-faint);
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px;
}
/* CTA is an <a>, not a <button> — force button-box behaviour and kill the link underline */
.loyalty-locked .btn-admin {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; text-align: center; line-height: 1.3;
  font-size: 15px; padding: 12px 26px; max-width: 100%;
}

/* ===== CLIENTS (free CRM roster) ===== */
.admin-nav-new {
  display: inline-block; margin-left: 5px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--gold, #c9a227);
  padding: 1px 5px; border-radius: 4px; vertical-align: middle; line-height: 1.5;
}
.clients-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 14px; }
.clients-controls #clientsSearch,
.clients-controls #owedSearch {
  flex: 1; min-width: 180px;
  padding: 10px 14px; border: 1px solid var(--line, #e1e1e3); border-radius: 10px;
  font-size: 14px; background: #fff;
}
.clients-controls #clientsSearch:focus,
.clients-controls #owedSearch:focus { outline: none; border-color: var(--gold, #c9a227); }
.clients-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 360px; overflow-y: auto;
  padding: 12px; background: var(--surface,#efe6d4); border: 1px solid var(--line,#ebe0c9); border-radius: 10px;
  scrollbar-width: thin; scrollbar-color: var(--gold,#b8956a) var(--surface,#efe6d4);
}
.clients-list::-webkit-scrollbar { width: 9px; }
.clients-list::-webkit-scrollbar-track { background: var(--surface,#efe6d4); border-radius: 4px; }
.clients-list::-webkit-scrollbar-thumb { background: var(--gold,#b8956a); border-radius: 4px; }
.clients-list::-webkit-scrollbar-thumb:hover { background: var(--gold-deep,#8a6f44); }
.clients-list::-webkit-scrollbar { width: 9px; }
.clients-list::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
.clients-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.clients-list::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
.client-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line, #e1e1e3); border-radius: 12px;
  padding: 12px 14px;
}
.client-row-main { flex: 1; min-width: 0; }
.client-row-name { font-size: 15px; font-weight: 700; color: var(--ink, #1c1208); }
.client-row-sub { font-size: 12.5px; color: #8a857f; margin-top: 3px; }
.client-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 84px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.client-items::-webkit-scrollbar { width: 6px; }
.client-items::-webkit-scrollbar-thumb { background: rgba(107,91,58,0.35); border-radius: 99px; }
.client-items::-webkit-scrollbar-track { background: transparent; }
.client-item {
  font-size: 11.5px; color: #6b5b3a;
  background: #faf6ec; border: 1px solid #e8dcbf; border-radius: 12px;
  padding: 2px 9px; white-space: normal; overflow-wrap: anywhere;
}
.client-row-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) {
  .client-row { flex-direction: column; align-items: stretch; }
  .client-row-actions .btn-admin { width: 100%; }
}
.client-tag { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b5b3a; background: #f3ead6; border: 1px solid #e3d3ad; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.client-note { font-size: 12.5px; color: var(--ink-soft, #6b5b48); margin-top: 5px; font-style: italic; }
/* Add-client item autocomplete */
.client-item-results { border: 1px solid var(--line, #e6dcc8); border-radius: 10px; max-height: 220px; overflow-y: auto; margin-top: 6px; background: #fff; }
.client-item-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid #f1ead9; background: #fff; font-size: 14px; color: var(--ink, #2a1d10); cursor: pointer; }
.client-item-opt:last-child { border-bottom: 0; }
.client-item-opt:hover, .client-item-opt:active { background: #faf6ec; }
.client-item-opt span { color: #9a8e78; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.client-item-empty { padding: 10px 12px; font-size: 13px; color: #999; }
.client-item-chosen { margin-top: 8px; font-size: 13px; color: var(--ink-soft, #6b5b48); }
.client-item-chosen button { background: none; border: 0; color: #b00020; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }


/* ===== POS ? SELL IN STORE + RECEIPTS ===== */
.admin-nav a.admin-nav-pos { background: var(--choco, var(--ink)); color: #fff !important; }
.admin-nav a.admin-nav-pos.active, .admin-nav a.admin-nav-pos:hover { background: var(--choco-deep, var(--gold-deep)); color: #fff !important; }
.pos-sub { font-size: 13.5px; color: var(--ink-soft); margin: -6px 0 14px; line-height: 1.5; }
.pos-today { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.pos-today-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-right: 2px; }
.pos-chip { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface, #f4ece0); color: var(--ink); border: 1px solid var(--line); }
.pos-chip.cash { background: rgba(184,149,106,0.14); border-color: rgba(184,149,106,0.4); color: var(--gold-deep); }
.pos-chip.mpesa { background: rgba(39,174,96,0.12); border-color: rgba(39,174,96,0.35); color: #1c7a43; }
.pos-chip.total { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.pos-results { margin-top: 6px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pos-chosen { margin: 10px 0 4px; font-size: 14px; color: var(--ink); }
.pos-chosen button { background: none; border: none; color: var(--gold-deep); text-decoration: underline; cursor: pointer; font-size: 13px; font-family: inherit; }
.pos-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pos-row .field { flex: 1; min-width: 120px; }
.pos-pay { display: flex; gap: 10px; }
.pos-pay-btn { flex: 1; padding: 14px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--ink-soft); transition: 0.15s; }
.pos-pay-btn.active { border-color: var(--gold-deep); background: var(--surface, #f4ece0); color: var(--ink); }
.pos-link { background: none; border: none; color: var(--gold-deep); cursor: pointer; font-size: 13.5px; font-weight: 600; font-family: inherit; padding: 0; text-align: left; }
.pos-link small { font-weight: 400; color: var(--ink-faint); }
.pos-receipt-panel { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-deep); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.pos-done { font-size: 16px; font-weight: 700; color: #1c7a43; margin-bottom: 6px; }
.pos-receipt-summary { font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
@media (max-width: 600px) { .pos-row .field { min-width: 100%; } }
#posReceiptPrint { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #posReceiptPrint, #posReceiptPrint * { visibility: visible !important; }
  #posReceiptPrint { display: block !important; position: absolute; left: 0; top: 0; width: 100%; }
  .rcpt { font-family: 'Courier New', monospace; width: 280px; margin: 0 auto; color: #000; font-size: 12px; }
  .rcpt-head { font-size: 18px; font-weight: 700; text-align: center; }
  .rcpt-sub { text-align: center; font-size: 10px; margin-bottom: 6px; line-height: 1.3; }
  .rcpt hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
  .rcpt-row { display: flex; justify-content: space-between; gap: 10px; margin: 2px 0; }
  .rcpt-total { font-weight: 700; font-size: 14px; }
  .rcpt-date { text-align: center; font-size: 10px; margin-top: 6px; }
  .rcpt-foot { text-align: center; margin-top: 8px; font-style: italic; }
}

/* ====== MONEY OWED — customer balances feature ====== */
.pos-chip.owed { background: #fff5f5; border-color: #f0c2c2; color: #b3301f; }
.owed-amount { color: #b3301f; font-weight: 700; }
.owed-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #b3301f; background: #fff0ee; border: 1px solid #f0c2c2; border-radius: 5px; padding: 0 6px; vertical-align: middle; }
.owed-row { border-left: 3px solid #e05050; }
.admin-nav a.admin-nav-owed-on { background: #fff0ee; color: #b3301f; border-color: #f0c2c2; }
.owed-lines { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.owed-line { font-size: 12px; color: #6b5b3a; background: #faf6ec; border: 1px solid #e8dcbf; border-radius: 8px; padding: 5px 10px; line-height: 1.45; overflow-wrap: anywhere; }
.owed-line em { color: var(--ink-soft, #6b5b48); }
.owed-total { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0d3b6; font-weight: 700; font-size: 13.5px; color: var(--ink, #2a1d10); }
/* Amount-paid input row (mark-sold + POS) */
.paid-hint { font-size: 12px; color: #b3301f; margin: 5px 0 0; font-weight: 600; }
.paid-row { display: flex; gap: 8px; align-items: stretch; }
.paid-row input { flex: 1; min-width: 0; }
.btn-paid-none { flex: 0 0 auto; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 0 16px; border-radius: 8px; color: #b3301f; background: #fff5f5; border: 1px solid #f0c2c2; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn-paid-none::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; flex: 0 0 auto; transition: background .15s, box-shadow .15s; }
.btn-paid-none:hover { background: #ffe8e6; border-color: #e7a9a3; }
.btn-paid-none.active { background: #b3301f; color: #fff; border-color: #b3301f; box-shadow: 0 2px 8px rgba(179,48,31,0.28); }
.btn-paid-none.active::before { background: #fff; box-shadow: inset 0 0 0 3px #b3301f; }
