/* ── Bohubrihi Brand Palette ─────────────────────────────────── */
:root {
  --teal:      #20B2AA;
  --teal-dark: #1a9e96;
  --teal-dim:  rgba(32,178,170,.12);
  --navy:      #001F3F;
  --navy-mid:  #0a3460;
  --lime:      #ADFF2F;
  --lime-dark: #8fd400;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --purple:    #7c3aed;
  --pink:      #ec4899;
  --bg:        #f0f4f8;
  --card:      #ffffff;
  --border:    #dde3ec;
  --text:      #0f1f2e;
  --muted:     #5a6d82;
  --radius:    12px;
  --shadow:    0 1px 6px rgba(0,31,63,.07), 0 4px 16px rgba(0,31,63,.05);
  --shadow-lg: 0 8px 32px rgba(0,31,63,.13);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo span { color: var(--lime); }
.logo small {
  display: block;
  font-size: .6rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 2px;
  text-transform: uppercase;
}
nav { display: flex; gap: 24px; align-items: center; }
nav a {
  color: #cbd5e1;
  font-size: .95rem;
  transition: color .2s;
}
nav a:hover, nav a.active { color: #fff; }
.cart-btn {
  background: var(--teal);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}
.cart-btn:hover { background: var(--teal-dark); }
.cart-count {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4f7c 50%, var(--teal-dark) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--lime); }
.hero p { font-size: 1.2rem; color: #94a3b8; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 1rem; transition: all .2s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ── Categories Bar ──────────────────────────────────────────── */
.categories-section { background: #fff; border-bottom: 1px solid var(--border); }
.categories-scroll {
  display: flex;
  gap: 12px;
  padding: 20px;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  min-width: 90px;
  text-decoration: none;
  color: var(--text);
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--teal);
  background: #f0fdfa;
  color: var(--teal);
  transform: translateY(-2px);
}
.cat-chip .icon { font-size: 1.6rem; }
.cat-chip .label { font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* ── Product Grid ────────────────────────────────────────────── */
.products-section { padding: 40px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.section-title span { color: var(--teal); }
.see-all { color: var(--teal); font-weight: 600; font-size: .9rem; }
.see-all:hover { text-decoration: underline; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #f0fdfa, #e0f2fe);
}
.badge-sale {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.badge-feat {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--purple);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: .75rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.product-weight { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.product-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price-wrap { display: flex; align-items: baseline; gap: 6px; }
.price { font-size: 1.2rem; font-weight: 800; color: var(--teal-dark); }
.price::before { content: '৳'; font-size: .9rem; }
.original-price { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.original-price::before { content: '৳'; }
.add-cart-btn {
  background: var(--teal); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 14px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.add-cart-btn:hover { background: var(--teal-dark); }

/* ── Search Bar ──────────────────────────────────────────────── */
.search-bar-wrap { margin-bottom: 28px; }
.search-bar {
  display: flex;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 500px;
}
.search-bar input { flex: 1; padding: 12px 18px; border: none; outline: none; font-size: 1rem; }
.search-bar button { background: var(--teal); color: #fff; padding: 12px 20px; font-size: 1.1rem; }

/* ── Cart Panel ──────────────────────────────────────────────── */
.cart-sidebar {
  position: fixed; top: 0; right: -420px;
  width: 400px; height: 100vh;
  background: #fff; box-shadow: -8px 0 40px rgba(0,0,0,.15);
  z-index: 200; transition: right .3s ease;
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 199; display: none; }
.cart-overlay.show { display: block; }
.cart-header {
  padding: 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy); color: #fff;
}
.cart-header h3 { font-size: 1.1rem; }
.cart-close-btn { background: none; color: #fff; font-size: 1.4rem; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img {
  width: 60px; height: 60px; border-radius: 8px;
  object-fit: cover; background: #f0fdfa;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--teal-dark); font-weight: 700; font-size: .9rem; }
.cart-item-price::before { content: '৳'; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700; cursor: pointer;
}
.qty-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.remove-item { color: var(--red); background: none; font-size: 1.1rem; margin-left: auto; }
.cart-footer { padding: 20px; border-top: 2px solid var(--border); background: #f8fafc; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 1.1rem; font-weight: 700; }
.cart-total .amount { color: var(--teal-dark); font-size: 1.3rem; }
.cart-total .amount::before { content: '৳'; }
.btn-checkout { display: block; width: 100%; padding: 14px; background: var(--teal); color: #fff; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; text-align: center; }
.btn-checkout:hover { background: var(--teal-dark); }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-cart .icon { font-size: 3rem; margin-bottom: 12px; }

/* ── Product Detail ──────────────────────────────────────────── */
.product-detail { padding: 40px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail-img {
  border-radius: 16px; overflow: hidden; aspect-ratio: 1;
  background: linear-gradient(135deg, #f0fdfa, #e0f2fe);
  display: flex; align-items: center; justify-content: center; font-size: 8rem;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.product-detail-info .cat-label { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.detail-price { font-size: 2.2rem; font-weight: 900; color: var(--teal-dark); margin-bottom: 4px; }
.detail-price::before { content: '৳'; font-size: 1.4rem; }
.detail-orig { color: var(--muted); text-decoration: line-through; font-size: 1rem; margin-bottom: 20px; }
.detail-orig::before { content: '৳'; }
.detail-desc { color: var(--muted); line-height: 1.8; margin-bottom: 24px; font-size: .95rem; }
.detail-meta { margin-bottom: 24px; }
.detail-meta p { display: flex; gap: 8px; margin-bottom: 8px; font-size: .9rem; }
.detail-meta strong { color: var(--navy); min-width: 90px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-large { display: flex; align-items: center; gap: 12px; background: #f0fdfa; padding: 8px 16px; border-radius: 10px; }
.qty-large .qty-btn { width: 32px; height: 32px; font-size: 1.2rem; }
.qty-large .qty-num { font-size: 1.2rem; font-weight: 700; min-width: 30px; }
.btn-add-large {
  flex: 1; padding: 14px 24px;
  background: var(--teal); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .2s;
}
.btn-add-large:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-form, .order-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-section-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: .95rem; outline: none; transition: border-color .2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 80px; }
.summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.summary-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.summary-total .val { color: var(--teal-dark); }
.summary-total .val::before { content: '৳'; }

/* ── Order Success ───────────────────────────────────────────── */
.success-box {
  max-width: 600px; margin: 80px auto; text-align: center;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 60px 40px;
}
.success-icon { font-size: 5rem; margin-bottom: 20px; }
.success-box h2 { font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.success-box p { color: var(--muted); font-size: 1rem; margin-bottom: 8px; }
.order-id { font-weight: 800; color: var(--teal); font-size: 1.2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: var(--navy); color: #94a3b8; padding: 48px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #94a3b8; font-size: .9rem; transition: color .2s; }
footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2d4f7c; padding-top: 20px; text-align: center; font-size: .85rem; }

/* ── Flash Messages ──────────────────────────────────────────── */
.flash-msg {
  padding: 12px 18px; border-radius: 8px; margin-bottom: 16px;
  font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ══════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════ */
:root {
  --sidebar-w: 240px;
  --topbar-h:  60px;
  --admin-bg:  #f5f7fa;
}

.admin-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Brand header */
.sidebar-header {
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .92rem; font-weight: 900; color: #fff;
  flex-shrink: 0; letter-spacing: -0.5px;
  box-shadow: 0 2px 10px rgba(32,178,170,.4);
}
.sidebar-brand-text strong {
  display: block; font-size: .9rem; font-weight: 800;
  color: #f1f5f9; line-height: 1.25;
}
.sidebar-brand-text small {
  display: block; font-size: .59rem; color: rgba(255,255,255,.27);
  letter-spacing: 1.8px; text-transform: uppercase; margin-top: 1px;
}

/* Nav scroll area */
.sidebar-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px 12px; scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

/* Nav items */
.sidebar-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  color: rgba(255,255,255,.48);
  font-size: .875rem; font-weight: 500;
  border-radius: 8px;
  transition: color .15s, background .15s, box-shadow .15s;
  margin-bottom: 3px;
}
.sidebar-nav-link:hover {
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.07);
}
.sidebar-nav-link.active {
  color: #fff;
  background: rgba(32,178,170,.14);
  box-shadow: inset 3px 0 0 var(--teal);
  font-weight: 600;
}

/* Icons */
.nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,.32);
  transition: color .15s;
}
.sidebar-nav-link:hover .nav-icon  { color: rgba(255,255,255,.7); }
.sidebar-nav-link.active .nav-icon { color: var(--teal); }

.nav-label { white-space: nowrap; flex: 1; }

/* Footer actions */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 2px;
}

/* View Store */
.nav-store { color: rgba(255,255,255,.34); }
.nav-store:hover { color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); }
.nav-store .nav-icon { color: rgba(255,255,255,.22); }
.nav-store:hover .nav-icon { color: var(--teal); }

/* Logout */
.nav-logout { color: rgba(239,100,100,.68); }
.nav-logout:hover { color: #fca5a5; background: rgba(239,68,68,.1); }
.nav-logout .nav-icon { color: rgba(239,100,100,.42); }
.nav-logout:hover .nav-icon { color: #fca5a5; }

/* Mobile overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 299;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── Main ────────────────────────────────────────── */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  background: var(--admin-bg);
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────── */
.admin-topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40; gap: 12px;
  box-shadow: 0 1px 0 var(--border);
}
.topbar-left  { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-topbar h1 { font-size: 1.05rem; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-date { font-size: .75rem; color: var(--muted); }

.hamburger-btn {
  display: none;
  background: none; border: none; padding: 6px; cursor: pointer;
  flex-direction: column; gap: 5px; flex-shrink: 0;
}
.hamburger-btn span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: background .2s; }
.hamburger-btn:hover span { background: var(--teal); }

.admin-content { padding: 28px; }

/* ── Stat Cards ──────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
}
.sc-teal::before  { background: var(--teal); }
.sc-navy::before  { background: #3b82f6; }
.sc-amber::before { background: var(--amber); }
.sc-lime::before  { background: #22c55e; }

.stat-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stat-icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.sc-teal  .stat-icon-box { background: rgba(32,178,170,.12); }
.sc-navy  .stat-icon-box { background: rgba(59,130,246,.1); }
.sc-amber .stat-icon-box { background: rgba(245,158,11,.1); }
.sc-lime  .stat-icon-box { background: rgba(34,197,94,.1); }

.stat-value { font-size: 1.9rem; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 4px; letter-spacing: -.5px; }
.stat-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ── Panel Card ──────────────────────────────────── */
.panel-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.panel-header h3 { font-size: .9rem; font-weight: 700; color: var(--navy); }
.panel-body { padding: 20px; }

/* ── Table ───────────────────────────────────────── */
.admin-table-wrap { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.admin-table-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.admin-table-header h3 { font-size: .9rem; font-weight: 700; color: var(--navy); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 10px 16px;
  font-size: .7rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid #f0f4f8; font-size: .875rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcff; }
.td-img {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden;
}
.td-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Badges ──────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 100px; font-size: .7rem; font-weight: 700; letter-spacing: .2px; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #92400e; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-teal   { background: rgba(32,178,170,.12); color: var(--teal-dark); }

/* ── Buttons ─────────────────────────────────────── */
.btn-sm { padding: 6px 14px; border-radius: 7px; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: all .15s; }
.btn-teal  { background: var(--teal);  color: #fff; }
.btn-teal:hover  { background: var(--teal-dark); }
.btn-red   { background: var(--red);   color: #fff; }
.btn-red:hover   { background: #dc2626; }
.btn-navy  { background: var(--navy);  color: #fff; }
.btn-navy:hover  { background: var(--navy-mid); }
.btn-lime  { background: var(--lime);  color: var(--navy); }
.btn-lime:hover  { background: var(--lime-dark); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--admin-bg); }

/* ── Quick Actions ───────────────────────────────── */
.quick-actions-list { display: flex; flex-direction: column; gap: 2px; }
.quick-action-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  font-size: .875rem; font-weight: 600; color: var(--navy);
  text-decoration: none; transition: background .14s;
}
.quick-action-item:hover { background: var(--admin-bg); }
.quick-action-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.qa-teal  .quick-action-icon { background: rgba(32,178,170,.1); }
.qa-amber .quick-action-icon { background: rgba(245,158,11,.1); }
.qa-navy  .quick-action-icon { background: rgba(0,31,63,.07); }
.qa-lime  .quick-action-icon { background: rgba(34,197,94,.1); }
.qa-arrow { margin-left: auto; color: var(--muted); }

/* ── Store Health ────────────────────────────────── */
.health-list { display: flex; flex-direction: column; }
.health-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.health-row:last-child { border-bottom: none; }
.health-label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.health-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.health-dot.ok   { background: #22c55e; }
.health-dot.warn { background: var(--amber); }
.health-dot.bad  { background: var(--red); }

/* ── Admin Form ──────────────────────────────────── */
.admin-form-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 28px; max-width: 720px; }
.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select {
  width: 100%; padding: 10px 13px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: .925rem; outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-family: inherit; background: #fff;
}
.admin-form-card input:focus,
.admin-form-card textarea:focus,
.admin-form-card select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(32,178,170,.1);
}
.admin-form-card textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: flex; gap: 24px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }
.checkbox-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--teal); }
.img-preview { margin-top: 10px; border-radius: 8px; overflow: hidden; max-width: 140px; }
.img-preview img { width: 100%; }
.current-img-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

/* ── Login ───────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
}
.login-card {
  background: #fff; border-radius: 18px; padding: 44px 40px;
  width: 100%; max-width: 360px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); text-align: center;
}
.login-logo { font-size: 1.9rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.login-logo span { color: var(--teal); }
.login-sub { color: var(--muted); font-size: .82rem; margin-bottom: 28px; }
.login-card .form-group { text-align: left; margin-bottom: 16px; }
.login-card .form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.login-card input[type=password] {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: .95rem; outline: none; transition: border-color .2s;
}
.login-card input[type=password]:focus { border-color: var(--teal); }
.login-btn {
  width: 100%; padding: 13px;
  background: var(--teal); color: #fff;
  border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s;
}
.login-btn:hover { background: var(--teal-dark); }
.login-error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .87rem; }

/* ── Dashboard Layout ────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}
.dash-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}
.dash-filter-group { padding-bottom: 6px; }
.dash-filter-group + .dash-filter-group { border-top: 1px solid var(--border); padding-top: 6px; }
.dash-filter-title {
  padding: 14px 16px 5px;
  font-size: .63rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted);
}
.dash-filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  font-size: .865rem; color: var(--muted);
  text-decoration: none; font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .13s, color .13s;
  gap: 8px;
}
.dash-filter-item:hover  { background: var(--admin-bg); color: var(--navy); }
.dash-filter-item.active { color: var(--navy); background: var(--teal-dim); border-left-color: var(--teal); font-weight: 600; }
.dash-filter-item .fi-icon { font-size: .85rem; width: 18px; text-align: center; flex-shrink: 0; }
.dash-filter-item .fi-label { flex: 1; }

/* ── Filter Bar ──────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter-chip {
  padding: 6px 14px; border-radius: 100px;
  border: 2px solid var(--border); background: #fff;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all .18s; cursor: pointer;
}
.filter-chip:hover, .filter-chip.active { border-color: var(--teal); color: var(--teal); background: #f0fdfa; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-grid       { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; }
  .stat-cards          { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 8px 0 32px rgba(0,0,0,.2);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main    { margin-left: 0; }
  .hamburger-btn { display: flex; }
  .admin-topbar  { padding: 0 16px; }
  .admin-content { padding: 16px; }
  .admin-form-card { padding: 20px; }
  .topbar-date   { display: none; }
  .dash-layout   { grid-template-columns: 1fr; }
  .dash-sidebar  { position: static; }
  .dash-bottom-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 540px) {
  .hero h1      { font-size: 2rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cart-sidebar { width: 100%; right: -100%; }
  .stat-cards   { gap: 12px; }
  .stat-value   { font-size: 1.6rem; }
  .form-row     { grid-template-columns: 1fr; }
  table         { font-size: .82rem; }
  thead th, tbody td { padding: 9px 12px; }
}
