/*
Theme Name: Norf Organic
Theme URI: https://norfstore.com
Author: Whiz MM Services
Author URI: https://whizmmservices.com
Description: Custom e-commerce theme for Norf Organic peanut butter — Northern Ghana.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: norfstore
*/

/* ===================================================
   RESET & TOKENS
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: #f7f1e6;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:root {
  --black:  #0d0d0d;
  --cream:  #f7f1e6;
  --green:  #7ab844;
  --yellow: #f9c11a;
  --yellow-deep: #e6a800;
  --rust:   #d85a1e;
  --ink:    #1a1a1a;
  --mute:   #6b6b6b;
  --r:      18px;
}

/* ===================================================
   TOPBAR
   =================================================== */
.topbar {
  background: var(--black);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 16px;
}
.topbar span { color: var(--yellow); }

/* ===================================================
   HEADER / NAV
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.08);
  width: 100%;
}
/* WP admin bar pushes body down — sticky header needs same offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;        /* force single horizontal row, always */
  flex-wrap: nowrap;          /* never allow wrapping */
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 58px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--black);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;             /* logo never shrinks */
  flex-grow: 0;
}
.logo-mark { color: var(--green); font-style: normal; font-size: 15px; }
.logo b { color: var(--rust); font-weight: 500; }
.nav-links {
  display: none;              /* hidden on mobile */
  flex: 1;                    /* take all space between logo and actions */
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  padding: 0 20px;
  margin: 0;
}
.nav-links a {
  transition: color .15s;
  white-space: nowrap;
  text-decoration: none;
  color: var(--black);
}
.nav-links a:hover, .nav-links a.active { color: var(--rust); }
.nav-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;             /* actions never shrink */
  flex-grow: 0;
  margin-left: auto;          /* push to far right when nav-links hidden */
}
.nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--cream);
  display: grid; place-items: center;
  font-size: 15px;
  position: relative;
  transition: background .15s;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.nav-btn:hover { background: var(--rust); }
.cart-btn::after {
  content: attr(data-count);
  position: absolute; top: -4px; right: -4px;
  background: var(--yellow); color: var(--black);
  font-size: 9px; font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 99px; padding: 0 4px;
  display: grid; place-items: center;
  pointer-events: none;
}
.cart-btn[data-count="0"]::after { display: none; }
.mob-btn { display: grid; }   /* hamburger visible on mobile */
@media (min-width: 860px) {
  .nav-links { display: flex; }   /* show nav links on desktop */
  .mob-btn { display: none; }     /* hide hamburger on desktop */
  .nav-actions { margin-left: 0; } /* let flexbox handle it */
}

/* ===================================================
   DRAWER
   =================================================== */
.drawer {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer.open { opacity: 1; pointer-events: all; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--cream);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 18px; cursor: pointer;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  margin-bottom: 12px;
}
.drawer-panel a {
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: block;
}
.drawer-panel a:hover { color: var(--rust); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  background:
    radial-gradient(ellipse 70% 90% at 75% 40%, rgba(44,42,10,.65), transparent 60%),
    linear-gradient(148deg, #171a0c 0%, #0d0d0d 55%, #191408 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 0 48px;
  min-height: 480px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 36px;
  max-width: 540px;
}
.hero-eyebrow {
  background: var(--green);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
  align-self: flex-start;
  white-space: nowrap;
}
.hero-eyebrow span { color: var(--yellow); }
.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(48px, 5vw, 78px);
  line-height: .97;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 4px;
}
.hero-title em {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--yellow);
  margin-top: 12px;
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.65;
  color: #cec8b5;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-tag {
  background: rgba(255,255,255,.1);
  color: #ddd;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
/* product image + badge column */
.hero-media {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-bottom: 24px;
  margin-left: -20px;
}
.hero-img {
  width: 340px;
  height: auto;
  display: block;
  flex-shrink: 0;
  animation:
    hEntry .85s cubic-bezier(.22,1,.36,1) both,
    hBounce 3.2s ease-in-out .85s infinite;
}
@keyframes hEntry  { from { opacity:0; transform:translateY(36px) scale(.94); } to { opacity:1; transform:none; } }
@keyframes hBounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-18px); } }
.hero-badge {
  width: 104px; height: 104px;
  background: var(--yellow);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  transform: rotate(-10deg);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  flex-shrink: 0;
  align-self: center;
  animation: hEntry 1.05s cubic-bezier(.22,1,.36,1) both;
}
.hero-badge-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 8px;
}
.hero-badge-text b {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--rust);
  text-transform: none;
  letter-spacing: -.01em;
  margin: 1px 0;
}
@media (max-width: 899px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    padding: 32px 20px 0;
    min-height: unset;
    align-items: flex-start;
  }
  .hero-text { max-width: 100%; padding-bottom: 16px; }
  .hero-media {
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    margin-left: 0;
    padding-bottom: 0;
  }
  .hero-img { width: 210px; }
  .hero-badge { width: 82px; height: 82px; }
}

/* ===================================================
   TRUST TICKER
   =================================================== */
.trust {
  background: var(--black);
  color: #9a9080;
  padding: 13px 0;
  overflow: hidden;
}
.trust-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.trust-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 12px;
  vertical-align: middle;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================================================
   SHARED SECTION UTILITIES
   =================================================== */
.section { padding: 48px 0; }
.section.cream { background: var(--cream); }
.section.white { background: #fff; }
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec-eye {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.sec-h {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.02em;
  color: var(--black);
  margin-bottom: 8px;
}
.sec-h em { font-style: italic; font-weight: 400; color: var(--rust); }
.sec-p { font-size: 15px; color: var(--mute); max-width: 480px; margin-bottom: 32px; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { opacity: .9; }
.btn-dark { background: var(--black); color: var(--cream); }
.btn-dark:hover { opacity: .85; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { opacity: .9; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.btn-back {
  background: transparent;
  color: var(--mute);
  border: 1.5px solid rgba(0,0,0,.15);
}
.btn-back:hover { border-color: var(--black); color: var(--black); }

/* ===================================================
   PRODUCT GRID (homepage + shop)
   =================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.p-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 6px 24px -8px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.p-card:hover { transform: translateY(-3px); }
.p-card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e6b87a, #a8651e);
  position: relative;
  overflow: hidden;
}
.p-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.p-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.p-card-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 3px;
}
.p-card-size { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.p-card-price {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--rust);
  margin-bottom: 12px;
  margin-top: auto;
}
.p-card-stock { font-size: 11px; margin-bottom: 10px; }
.p-card-stock.in  { color: var(--green); }
.p-card-stock.low { color: #d97706; }
.p-card-stock.out { color: #dc2626; }
.p-card-btn {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: var(--black);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
  transition: background .2s;
}
.p-card-btn:hover { background: var(--rust); }
.p-card-btn:disabled { background: #ccc; cursor: not-allowed; }
.sec-cta { text-align: center; margin-top: 32px; }

/* ===================================================
   STORY SECTION
   =================================================== */
.story-card {
  background: var(--black);
  color: var(--cream);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.story-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: var(--green);
  border-radius: 50%;
  opacity: .12;
}
@media (min-width: 700px) {
  .story-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 44px 48px;
  }
}
.story-content { position: relative; z-index: 1; }
.story-eye {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.story-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.story-title em { font-style: italic; font-weight: 400; color: var(--yellow); }
.story-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #c8c0a8;
  margin-bottom: 12px;
  max-width: 480px;
}
.story-stats { display: flex; gap: 36px; margin-top: 28px; }
.story-stat b {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 36px;
  color: var(--yellow);
  letter-spacing: -.02em;
  line-height: 1;
}
.story-stat small {
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: #9a9080;
}
.story-img {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.story-img img { width: 100%; display: block; }

/* ===================================================
   FEATURES SECTION
   =================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 700px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feat-card {
  background: #fff;
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.1);
}
.feat-icon {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feat-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.feat-card p { font-size: 14px; line-height: 1.6; color: var(--mute); }

/* ===================================================
   CTA STRIP
   =================================================== */
.cta-strip {
  background: var(--yellow);
  padding: 52px 24px;
  text-align: center;
}
.cta-strip h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -.025em;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.05;
}
.cta-strip p { font-size: 16px; color: rgba(0,0,0,.55); margin-bottom: 28px; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 60px 24px 120px;
}
.foot-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.foot-logo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-logo .mk { color: var(--green); font-style: normal; font-size: 16px; }
.foot-logo b { color: var(--rust); font-weight: 500; }
.foot-tag { color: #a89d8a; font-size: 14px; line-height: 1.6; max-width: 260px; margin-bottom: 8px; }
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  font-size: 13px;
  transition: background .2s;
}
.foot-social a:hover { background: var(--green); }
.foot-col h5 {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px; font-weight: 700;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: #cfc7b8; font-size: 14px; transition: color .15s; cursor: pointer; }
.foot-col a:hover { color: var(--yellow); }
.foot-divider {
  max-width: 960px; margin: 32px auto 0;
  border: none; border-top: 1px solid rgba(255,255,255,.08);
}
.foot-copy {
  max-width: 960px; margin: 18px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: #7a7163;
}
.foot-copy a { color: var(--green); }
.foot-copy a:hover { color: var(--yellow); }

/* ===================================================
   STICKY MOBILE BAR
   =================================================== */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--black);
  padding: 12px 14px;
  display: flex; gap: 10px;
  z-index: 80;
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.mobile-bar .btn { flex: 1; justify-content: center; padding: 14px; font-size: 13px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  background: var(--black);
  color: var(--cream);
  padding: 48px 24px 52px;
}
.page-hero .container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.page-crumb { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.page-hero p { color: #cfc7b8; font-size: 15px; max-width: 520px; }

/* ===================================================
   SHOP PAGE
   =================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .shop-layout { grid-template-columns: 1fr 320px; align-items: start; } }
.shop-sidebar {
  background: #fff;
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.1);
  position: sticky; top: 80px;
}
.sidebar-title {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 22px;
  letter-spacing: -.01em; margin-bottom: 4px;
}
.sidebar-sub { font-size: 13px; color: var(--mute); margin-bottom: 16px; }
.sidebar-items { min-height: 60px; margin-bottom: 16px; }
.sidebar-empty { font-size: 13px; color: var(--mute); text-align: center; padding: 20px 0; }
.sidebar-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.sidebar-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--black);
}
.sidebar-total .lbl { font-weight: 600; }
.sidebar-total .val { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--rust); }
.sidebar-batch {
  margin-top: 14px; padding: 12px; border-radius: 10px;
  background: var(--cream); font-size: 12px; color: var(--mute);
}
.sidebar-batch .code { font-weight: 700; color: var(--black); font-size: 13px; }

/* ===================================================
   ORDERS PAGE
   =================================================== */
.order-row {
  background: #fff;
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
}
.order-ref { font-weight: 700; font-family: 'Fraunces', serif; font-size: 16px; min-width: 100px; }
.order-name { font-size: 14px; color: var(--mute); flex: 1; }
.order-amt { font-weight: 600; color: var(--rust); font-size: 15px; }
.order-status {
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.status-paid     { background: #d1fae5; color: #065f46; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-shipped  { background: #dbeafe; color: #1e40af; }
.status-delivered{ background: #d1fae5; color: #065f46; }
.status-cancelled{ background: #fee2e2; color: #991b1b; }
.order-btn { font-size: 12px; padding: 7px 14px; }
.no-orders { text-align: center; padding: 60px 20px; color: var(--mute); }

/* ===================================================
   TRACK PAGE
   =================================================== */
.track-card {
  background: #fff;
  border-radius: var(--r);
  padding: 32px;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.1);
  max-width: 560px;
}
.track-result { margin-top: 20px; }

/* ===================================================
   ADMIN PAGE
   =================================================== */
.admin-gate {
  min-height: 100vh;
  display: grid; place-items: center;
  background: var(--cream);
  padding: 24px;
}
.admin-login-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.15);
}
.admin-login-logo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 4px;
  color: var(--black);
}
.admin-login-logo b { color: var(--rust); font-weight: 500; }
.admin-login-sub { font-size: 13px; color: var(--mute); margin-bottom: 28px; }
.admin-login-hint {
  font-size: 12px; color: var(--mute);
  background: var(--cream); padding: 10px 14px; border-radius: 10px;
  margin-bottom: 20px; line-height: 1.6;
}
.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.admin-topbar h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 28px; letter-spacing: -.02em;
}
.admin-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px;
  background: #fff; padding: 6px; border-radius: 14px;
  box-shadow: 0 2px 10px -4px rgba(0,0,0,.1);
  overflow-x: auto;
}
.admin-tab {
  padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; background: none;
  color: var(--mute); white-space: nowrap;
  transition: background .15s, color .15s;
}
.admin-tab.active { background: var(--black); color: var(--cream); }
.admin-tab:hover:not(.active) { background: var(--cream); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* ADMIN STATS */
.stats-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 600px) { .stats-row { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  background: #fff; border-radius: 14px; padding: 18px 16px;
  box-shadow: 0 2px 10px -4px rgba(0,0,0,.08);
}
.stat-card .val {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 28px; color: var(--rust); letter-spacing: -.02em;
}
.stat-card .lbl { font-size: 11px; color: var(--mute); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* ADMIN CARDS */
.admin-card {
  background: #fff; border-radius: var(--r); padding: 24px;
  margin-bottom: 16px; box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
}
.admin-card h4 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 18px; letter-spacing: -.01em; margin-bottom: 14px;
}
.admin-card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .admin-card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .admin-card-grid.three { grid-template-columns: 1fr 1fr 1fr; } }

/* ADMIN ORDER ROW */
.admin-order {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.admin-order:last-child { border-bottom: none; }
.admin-order-ref { font-weight: 700; font-size: 13px; min-width: 90px; }
.admin-order-name { font-size: 13px; flex: 1; }
.admin-order-amt { font-weight: 600; color: var(--rust); font-size: 13px; }
.admin-order-status select {
  padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15);
  font-size: 12px; font-family: inherit;
}
.admin-order-actions { display: flex; gap: 6px; }
.admin-order-actions button { padding: 5px 10px; font-size: 11px; border-radius: 8px; }

/* ADMIN PRODUCT FORM */
.product-photo-wrap { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--cream); cursor: pointer; }
.product-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-photo-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; font-size: 24px; color: #fff;
}
.product-photo-wrap:hover .product-photo-overlay { opacity: 1; }

/* FORM ELEMENTS */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 6px;
}
.field label em { color: var(--rust); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 12px; color: var(--mute); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===================================================
   CHECKOUT MODAL
   =================================================== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-inner {
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 880px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
}
.modal-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-head h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.08); display: grid; place-items: center;
  cursor: pointer; font-size: 16px; transition: background .15s;
}
.modal-close:hover { background: rgba(0,0,0,.15); }
.stepper { display: flex; gap: 6px; padding: 16px 24px 0; }
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,.15); transition: background .2s;
}
.step-dot.active { background: var(--green); width: 24px; border-radius: 4px; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.step { display: none; }
.step.active { display: block; }
.step h3 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 18px; letter-spacing: -.01em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0;
}
.prod-list { margin-bottom: 16px; }
.prod-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.prod-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.prod-info { flex: 1; }
.prod-info .name { font-weight: 600; font-size: 14px; }
.prod-info .size { font-size: 12px; color: var(--mute); }
.prod-info .p { font-weight: 700; color: var(--rust); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.15);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  transition: background .15s;
}
.qty button:hover { background: var(--cream); }
.qty span { font-weight: 700; min-width: 18px; text-align: center; }
.sum { background: var(--cream); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.sum-row.total { font-weight: 700; font-size: 16px; padding-top: 10px; margin-top: 6px; border-top: 1px solid rgba(0,0,0,.1); }
.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1; justify-content: center; }
.delivery-block {
  background: var(--cream); border: 1.5px dashed rgba(0,0,0,.15);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.delivery-block-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.pay-box {
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 14px; padding: 18px; margin-bottom: 16px;
}
.pay-box-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; color: #15803d; }
.pay-box p { font-size: 13px; line-height: 1.55; color: var(--ink); margin-bottom: 10px; }
.pay-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-tags span { background: #fff; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.06); font-size: 11px; }
.ref-box {
  background: var(--cream); border-radius: 14px; padding: 20px; text-align: center; margin-bottom: 16px;
}
.ref-box .lbl { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.ref-box .ref { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; letter-spacing: -.01em; color: var(--black); }
.copy-btn {
  display: inline-block; margin-top: 8px; padding: 6px 14px;
  background: var(--black); color: var(--cream); border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px;
  font-size: 22px; color: #fff; font-weight: 800;
}
.next-box { background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 14px; margin: 16px 0; font-size: 13px; line-height: 1.5; }
/* sidebar */
.modal-sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--black); color: var(--cream);
  padding: 24px 20px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
@media (min-width: 700px) { .modal-sidebar { display: flex; } }
.summary-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.summary-sub { font-size: 13px; color: #9a9080; margin-bottom: 16px; }
.summary-items { flex: 1; }
.summary-empty { font-size: 13px; color: #9a9080; padding: 20px 0; }
.summary-item { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.summary-delivery { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; color: #9a9080; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.summary-total .lbl { font-weight: 600; }
.summary-total .val { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; color: var(--yellow); }
.summary-batch { margin-top: 16px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12px; color: #9a9080; }
.summary-batch .code { font-weight: 700; color: var(--cream); font-size: 13px; }

/* ===================================================
   TOAST
   =================================================== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--black); color: var(--cream);
  padding: 12px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  z-index: 400; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================================================
   DETAIL MODAL
   =================================================== */
.detail-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 350;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.detail-modal.open { opacity: 1; pointer-events: all; }
.detail-inner {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 520px; max-height: 85vh;
  overflow-y: auto; padding: 28px 24px;
}

/* ===================================================
   ADMIN VERSION BADGE
   =================================================== */
.version-badge {
  background: var(--cream); border-radius: 12px; padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.06); margin-top: 14px;
}

/* ===================================================
   ADMIN LOGIN (admin-pin class from existing admin page)
   =================================================== */
.admin-pin {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.15);
  text-align: center;
}
.pin-icon { font-size: 40px; margin-bottom: 12px; }
.admin-pin h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 26px;
  letter-spacing: -.01em; margin-bottom: 6px;
}
.admin-pin #loginSubtitle { font-size: 14px; color: var(--mute); margin-bottom: 20px; }
.admin-pin .hint { font-size: 12px; color: var(--mute); margin-top: 8px; }
.admin-pin input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 12px;
  font-family: inherit; font-size: 15px;
  background: #fff; outline: none;
  transition: border-color .15s;
  margin-bottom: 8px;
}
.admin-pin input:focus { border-color: var(--green); }
/* Admin stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px; margin-bottom: 24px;
}
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(4,1fr); } }
/* Settings grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .settings-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.settings-card {
  background: #fff; border-radius: var(--r); padding: 22px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
}
.settings-card h4 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 17px; letter-spacing: -.01em; margin-bottom: 14px;
}
/* Preset buttons */
.preset-btn {
  padding: 8px 14px; border-radius: 10px; font-size: 12px;
  font-weight: 600; cursor: pointer; border: 1.5px solid rgba(0,0,0,.12);
  background: #fff; transition: border-color .15s;
}
.preset-btn:hover { border-color: var(--green); }
/* Colour input rows */
.hdr-desc { font-size: 12px; color: var(--mute); margin-bottom: 14px; }
.good { color: var(--green); font-size: 12px; font-weight: 600; }
.warn { color: #d97706; font-size: 12px; font-weight: 600; }
/* Page hero override for admin */
.crumbs { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.num {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 28px; color: var(--rust); letter-spacing: -.02em; line-height: 1;
}
.lbl { font-size: 11px; color: var(--mute); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* ===================================================
   SHOP CARD ALIASES (used by app.js renderShopProducts
   and renderHomepageProducts — maps to p-card styles)
   =================================================== */
.shop-card { background:#fff; border-radius:var(--r); overflow:hidden; box-shadow:0 6px 24px -8px rgba(0,0,0,.12); display:flex; flex-direction:column; transition:transform .2s; }
.shop-card:hover { transform:translateY(-3px); }
.shop-card.out { opacity:.65; }
.shop-card .img { aspect-ratio:4/3; background:linear-gradient(135deg,#e6b87a,#a8651e); position:relative; overflow:hidden; }
.shop-card .img img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.shop-card:hover .img img { transform:scale(1.04); }
.shop-card .slide-tag, .shop-card .badge-label { position:absolute;top:10px;left:10px;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:var(--yellow);color:var(--black); }
.shop-card .body { padding:14px 16px 18px;flex:1;display:flex;flex-direction:column; }
.shop-card h3 { font-family:'Fraunces',serif;font-weight:500;font-size:18px;letter-spacing:-.01em;margin-bottom:3px; }
.shop-card .size { font-size:12px;color:var(--mute);margin-bottom:8px; }
.shop-card .price { font-family:'Fraunces',serif;font-weight:600;font-size:20px;color:var(--rust);margin-bottom:10px;margin-top:auto; }
.shop-card .stock { font-size:11px;margin-bottom:8px; }
.shop-card .stock.in { color:var(--green); }
.shop-card .stock.low { color:#d97706; }
.shop-card .stock.out { color:#dc2626; }
.shop-card .qty-pick button { width:100%;padding:11px;border-radius:12px;background:var(--black);color:var(--cream);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-family:'Archivo',sans-serif;transition:background .2s; }
.shop-card .qty-pick button:hover { background:var(--rust); }
.shop-card .qty-pick button:disabled { background:#ccc;cursor:not-allowed; }

/* ===================================================
   ADMIN ORDERS — rendered by renderAdminOrders()
   =================================================== */
.admin-order {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.admin-order:last-child { border-bottom: none; }
.admin-order-details { flex: 1; min-width: 160px; font-size: 13px; }
.admin-order-details b { font-size: 14px; font-weight: 700; }
.admin-order-details .meta { font-size: 12px; color: var(--mute); margin-top: 2px; }
.admin-order .amt { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; color: var(--rust); flex-shrink: 0; }
.admin-order select {
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 12px; font-family: inherit;
}
.admin-actions { display: flex; gap: 6px; }
.ab-view, .ab-del, .ab-wa {
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; display: inline-block;
}
.ab-view { background: var(--cream); color: var(--ink); }
.ab-view:hover { background: #e8dcc5; }
.ab-del  { background: #fee2e2; color: #991b1b; }
.ab-del:hover { background: #fecaca; }
.ab-wa   { background: #d1fae5; color: #065f46; }
.ab-wa:hover { background: #a7f3d0; }
.stat-card.warn .num { color: #d97706; }
.stat-card.good .num { color: var(--green); }

/* ===================================================
   ADMIN PRODUCTS — rendered by renderAdminProducts()
   =================================================== */
.admin-prod {
  background: #fff;
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: start;
}
@media (max-width: 640px) { .admin-prod { grid-template-columns: 1fr; } }
.admin-prod > img {
  width: 140px; height: 140px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream);
}
.admin-prod-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .admin-prod-fields { grid-template-columns: 1fr 1fr 1fr; } }
.admin-prod-fields .wide { grid-column: 1 / -1; }
.admin-prod-fields label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 4px;
}
.admin-prod-fields input,
.admin-prod-fields select,
.admin-prod-fields textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  background: var(--cream);
}
.admin-prod-fields input:focus,
.admin-prod-fields select:focus,
.admin-prod-fields textarea:focus {
  border-color: var(--green); background: #fff; outline: none;
}
.pdel {
  padding: 8px 14px; border-radius: 10px;
  background: #fee2e2; color: #991b1b;
  font-size: 12px; font-weight: 700;
  cursor: pointer; border: none;
  flex-shrink: 0; align-self: start;
}
.pdel:hover { background: #fecaca; }

/* ===================================================
   ORDERS LIST — renderMyOrders()
   =================================================== */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.orders-empty { text-align: center; padding: 60px 20px; color: var(--mute); }
.orders-empty .emoji { font-size: 48px; display: block; margin-bottom: 14px; }
.order-row {
  background: #fff;
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
}
.order-ref { font-weight: 700; font-family: 'Fraunces', serif; font-size: 16px; min-width: 90px; }
.order-meta { font-size: 12px; color: var(--mute); }
.order-items { font-size: 13px; }
.order-total { font-weight: 600; color: var(--rust); font-size: 15px; margin-left: auto; }
.order-status {
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.order-status.paid, .order-status.delivered { background: #d1fae5; color: #065f46; }
.order-status.awaiting_payment              { background: #fef3c7; color: #92400e; }
.order-status.shipped                       { background: #dbeafe; color: #1e40af; }
.order-status.cancelled                     { background: #fee2e2; color: #991b1b; }
.actions-inline { display: flex; gap: 6px; }
.mini-btn {
  padding: 6px 12px; border-radius: 8px;
  background: var(--cream); color: var(--ink);
  font-size: 12px; font-weight: 600;
  border: none; cursor: pointer;
}
.mini-btn:hover { background: #e8dcc5; }

/* ===================================================
   TRACK PAGE — doTrack() results
   =================================================== */
.track-result { margin-top: 20px; }
.progress-bar { display: flex; gap: 8px; margin: 16px 0 4px; align-items: center; }
.pdot {
  width: 32px; height: 8px; border-radius: 4px;
  background: rgba(0,0,0,.12); flex: 1;
}
.pdot.done    { background: var(--green); }
.pdot.current { background: var(--yellow); }
.progress-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--mute);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.status-badge-lg {
  display: inline-block;
  margin: 10px 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.dr { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.dr .k { color: var(--mute); }
.dr .v { font-weight: 600; text-align: right; }

/* ===================================================
   DETAIL MODAL — viewOrderDetail()
   =================================================== */
.detail-modal.open { opacity: 1; pointer-events: all; }

/* ===================================================
   CHECKOUT — prod-row selected state
   =================================================== */
.prod-row.selected { background: rgba(122,184,68,.06); }

/* ===================================================
   ADMIN ORDERS LIST wrapper
   =================================================== */
.admin-orders { }

/* ===================================================
   ANALYTICS DASHBOARD
   =================================================== */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 600px) { .dash-kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .dash-kpi-row { grid-template-columns: repeat(6, 1fr); } }
.dash-kpi {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
}
.dash-kpi-val {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--rust);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.dash-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .dash-grid { grid-template-columns: 1fr 1fr; } }

.dash-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.08);
  overflow: hidden;
}
.dash-wide { grid-column: 1 / -1; }
.dash-card-head {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: var(--black);
}

/* Bar chart */
.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-bottom: 28px;
  position: relative;
  overflow-x: auto;
}
.dash-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 36px;
  flex: 1;
  position: relative;
  height: 100%;
}
.dash-bar-col:hover .dash-bar-tip { opacity: 1; }
.dash-bar-tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--cream);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
  z-index: 5;
  line-height: 1.4;
  text-align: center;
}
.dash-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--green), #5e9a2e);
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
  transition: background .2s;
}
.dash-bar-col:hover .dash-bar { background: linear-gradient(180deg, var(--rust), #b04018); }
.dash-bar-lbl {
  position: absolute;
  bottom: 4px;
  font-size: 9px;
  color: var(--mute);
  text-align: center;
  white-space: nowrap;
}

/* Product rows */
.dash-prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.dash-prod-row:last-child { border-bottom: none; }
.dash-rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 12px;
  font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--mute);
}
.dash-prod-info { flex: 1; min-width: 0; }
.dash-prod-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dash-prod-bar-wrap { height: 6px; background: rgba(0,0,0,.06); border-radius: 3px; overflow: hidden; }
.dash-prod-bar { height: 100%; background: var(--green); border-radius: 3px; transition: width .4s; }
.dash-prod-stats { text-align: right; flex-shrink: 0; }
.dash-prod-rev { display: block; font-size: 14px; font-weight: 700; color: var(--rust); }
.dash-prod-qty { font-size: 11px; color: var(--mute); }

/* Status rows */
.dash-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.dash-status-bar-wrap { flex: 1; height: 8px; background: rgba(0,0,0,.06); border-radius: 4px; overflow: hidden; }
.dash-status-bar { height: 100%; background: var(--yellow); border-radius: 4px; }
.dash-status-num { font-size: 13px; font-weight: 700; min-width: 24px; text-align: right; }
.dash-badge {
  display: inline-block;
  background: var(--cream);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* Customer table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 8px 10px;
  border-bottom: 2px solid rgba(0,0,0,.06);
  white-space: nowrap;
}
.dash-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  vertical-align: middle;
}
.dash-table tbody tr:hover { background: rgba(0,0,0,.015); }
.dash-table tbody tr:last-child td { border-bottom: none; }
