@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:          #f9f9f7;
  --surface:     #ffffff;
  --surface-2:   #f4f4f0;
  --ink:         #111111;
  --ink-2:       #444444;
  --muted:       #777777;
  --line:        #e5e5e0;
  --brand:       #1a3c5e;
  --brand-dark:  #122c47;
  --brand-light: #eef3f9;
  --accent:      #f4a024;
  --accent-soft: #fff8ed;
  --ok:          #1a7f4e;
  --ok-soft:     #e8f8ef;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.13);
}

/* ─── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Syne', 'Inter', sans-serif;
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-2); }
img { max-width: 100%; display: block; }

.container { width: min(1220px, 94vw); margin: 0 auto; }

/* ─── Top Bar ───────────────────────────────────────────── */
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.topbar-inner span { display: flex; align-items: center; gap: 6px; }

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-biz   { color: var(--brand); }
.logo-beeper{ color: var(--accent); }

.main-nav {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .93rem;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--brand); }
.main-nav .nav-track-link {
  background: var(--accent-soft);
  border: 1px solid #f2d8a7;
  color: var(--brand);
  font-weight: 700;
}
.main-nav .nav-track-link:hover {
  background: #ffecc9;
  color: var(--brand-dark);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .93rem;
  color: var(--ink-2);
  position: relative;
  transition: background .15s;
}
.nav-cart-btn:hover { background: var(--surface-2); }
.cart-badge {
  position: absolute;
  top: 4px; right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(26,60,94,.25); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e09018; }
.btn-ghost   { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: #bbb; background: var(--surface-2); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-light); }
.btn-track {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 700;
}
.btn-track:hover {
  background: #f3f7fb;
  border-color: #f3f7fb;
  color: var(--brand);
}
.btn-cta-ghost {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.btn-cta-ghost:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.22);
  color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ─── Sections ──────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--brand); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-soft { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head .overline {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f2a44 0%, #1a3c5e 60%, #1e4c78 100%);
  color: #fff;
  padding: 90px 0 80px;
  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-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.06; color: #fff; margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .86rem; font-weight: 500; }
.hero-trust-item svg { opacity: .7; }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.hero-card h3 { color: #fff; margin-bottom: 20px; font-size: 1.15rem; }
.hero-product-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero-product-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}
.hero-product-list .price { color: var(--accent); font-weight: 700; font-size: 1rem; }

/* ─── Trust Bar ─────────────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  gap: 0;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.trust-item svg { color: var(--brand); flex-shrink: 0; }
.trust-item small { font-weight: 400; color: var(--muted); display: block; }

/* ─── Product Grid ──────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 20px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-card-img {
  position: relative;
  background: #f7f7f5;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.03); }
.product-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-card-badge.best { background: var(--accent); }

.product-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.product-sku { font-size: .74rem; color: var(--muted); font-family: monospace; }
.product-category { font-size: .74rem; color: var(--brand); font-weight: 600; background: var(--brand-light); padding: 2px 7px; border-radius: 4px; }

.product-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); line-height: 1.3; }
.product-card .desc { font-size: .84rem; color: var(--muted); margin-bottom: 12px; flex: 1; }

.product-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: .8rem;
}
.stars { color: #f4a024; letter-spacing: 1px; }
.review-count { color: var(--muted); }

.product-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.product-price { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.stock-badge {
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.stock-badge.in  { background: var(--ok-soft); color: var(--ok); }
.stock-badge.out { background: #fff0f0; color: #c0392b; }

.product-ship-note { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }

.product-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ─── Filter Bar ────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-bar input[type=text] { flex: 1; min-width: 200px; }
.filter-bar select { min-width: 180px; }

/* ─── Form elements ─────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font: inherit;
  font-size: .93rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,60,94,.1);
}
label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
textarea { resize: vertical; min-height: 120px; }

/* ─── Product Detail Page ───────────────────────────────── */
.detail-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }

.detail-gallery { position: sticky; top: 90px; }
.detail-main-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #f7f7f5;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  object-fit: cover;
  cursor: pointer;
  background: #f7f7f5;
  transition: border-color .15s;
}
.detail-thumb.active, .detail-thumb:hover { border-color: var(--brand); }

.detail-info { }
.detail-breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.detail-breadcrumb a { color: var(--brand); }
.detail-sku { font-size: .78rem; color: var(--muted); font-family: monospace; margin-bottom: 6px; }
.detail-info h1 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 10px; }
.detail-stars { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .86rem; }
.detail-price-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.detail-price { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.detail-vat { font-size: .82rem; color: var(--muted); }
.detail-stock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.detail-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.detail-qty-row label { margin: 0; font-size: .86rem; white-space: nowrap; }
.qty-input { width: 70px; }
.detail-actions { display: grid; gap: 10px; margin-bottom: 24px; }

.detail-assurance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.assurance-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
}
.assurance-item svg { color: var(--ok); flex-shrink: 0; }

.detail-tabs { margin-top: 48px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 28px; gap: 0; }
.tab-btn {
  padding: 12px 20px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) td { background: var(--surface-2); }
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.spec-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; }
.spec-table td:last-child { color: var(--ink-2); }

.policy-box {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.policy-box h4 { font-size: .95rem; margin-bottom: 8px; }
.policy-box p { font-size: .88rem; margin: 0; }

.review-list { display: grid; gap: 16px; }
.review-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reviewer-name { font-weight: 700; font-size: .9rem; }
.review-date { font-size: .78rem; color: var(--muted); }
.review-text { font-size: .88rem; color: var(--ink-2); margin: 0; }
.review-verified { font-size: .75rem; color: var(--ok); font-weight: 600; margin-top: 6px; }

/* ─── Checkout ──────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.checkout-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.checkout-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-summary-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 800; font-size: 1.1rem; }
.checkout-shipping-option { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin-bottom: 10px; transition: border-color .15s; }
.checkout-shipping-option:hover { border-color: var(--brand); }
.checkout-shipping-option input { width: auto; }
.checkout-shipping-label { flex: 1; }
.checkout-shipping-label strong { display: block; font-size: .9rem; }
.checkout-shipping-label span { font-size: .8rem; color: var(--muted); }
.checkout-shipping-price { font-weight: 700; }
.secure-badge { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* ─── Cart ──────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-product-cell { display: flex; align-items: center; gap: 14px; }
.cart-thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f7f7f5; }
.cart-name { font-weight: 700; font-size: .9rem; }
.cart-sku  { font-size: .74rem; color: var(--muted); font-family: monospace; margin-top: 2px; }
.cart-qty-input { width: 70px; text-align: center; }
.cart-summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.cart-summary-box h3 { margin-bottom: 18px; font-size: 1rem; }
.cart-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cart-row-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 800; font-size: 1.1rem; }

/* ─── Misc ──────────────────────────────────────────────── */
.chip { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: .72rem; font-weight: 600; color: var(--brand); background: var(--brand-light); }
.price-lg { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 12px 0; }
.overline { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ─── Category Grid ─────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s, transform .15s;
  cursor: pointer;
}
.category-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.category-card h3 { font-size: .95rem; margin-bottom: 6px; }
.category-card p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ─── Why Choose / Features ─────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.feature-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
}
.feature-card h3 { font-size: .95rem; margin-bottom: 8px; }
.feature-card p { font-size: .84rem; color: var(--muted); margin: 0; }

/* ─── Testimonials ──────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.testimonial-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.testimonial-stars { color: var(--accent); margin-bottom: 12px; font-size: .9rem; }
.testimonial-text { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; font-style: italic; }
.testimonial-meta strong { font-size: .86rem; }
.testimonial-meta span { font-size: .78rem; color: var(--muted); }

/* ─── Sales Table ───────────────────────────────────────── */
.sales-table, .admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sales-table th, .sales-table td,
.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: .88rem;
}
.sales-table th, .admin-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-table tbody tr:hover { background: var(--surface-2); }

/* ─── Alerts ────────────────────────────────────────────── */
.alert { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid transparent; font-size: .9rem; }
.alert-error   { background: #fff2ef; color: #9b2a14; border-color: #fccab8; }
.alert-success { background: #edfaf3; color: #0e6e41; border-color: #b8e9cf; }

/* ─── Badges ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-paid     { background: #e8f8ef; color: #0e6e41; }
.badge-pending  { background: #fff8ed; color: #945e00; }
.badge-shipped  { background: #e8f0fc; color: #1a4bb5; }
.badge-cancelled{ background: #fff0f0; color: #c02020; }
.badge-refunded { background: #f5f0ff; color: #6030aa; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: #0f1f35;
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-logo .logo-biz   { color: #fff; }
.footer-logo .logo-beeper{ color: var(--accent); }
.footer-desc { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-col h5 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .87rem; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.footer-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
}

/* ─── Cookie Banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  max-width: 1040px;
  margin: 0 auto;
  background: #0f1f35;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cookie-banner-inner p {
  margin: 6px 0 0;
  font-size: .84rem;
  color: rgba(255,255,255,.75);
}
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Page (generic policy/info) ────────────────────────── */
.page-wrap { max-width: 860px; }
.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.page-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.page-section:last-child { border-bottom: none; }
.page-section h2 { font-size: 1.05rem; margin-bottom: 8px; }

/* ─── Order Lookup ──────────────────────────────────────── */
.order-result, .success-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Admin ─────────────────────────────────────────────── */
.admin-body { background: #f0f2f5; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: #1a2e4a;
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-logo {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.admin-sidebar-logo small { display: block; font-size: .72rem; font-weight: 400; color: rgba(255,255,255,.4); font-family: 'Inter', sans-serif; margin-top: 2px; }
.admin-sidebar nav { padding: 16px 12px; flex: 1; }
.admin-nav-section { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); padding: 14px 10px 6px; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 28px 32px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-topbar h1 { font-size: 1.4rem; margin: 0; }
.admin-subtitle { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.admin-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.admin-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-block-head h2 { font-size: 1rem; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 4px; }
.stat-sub { font-size: .78rem; color: var(--muted); }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.admin-form h2 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-form-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-form-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.admin-form-section h3 { font-size: .88rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.admin-filter input, .admin-filter select { width: auto; }
.link-btn { color: var(--brand); font-weight: 600; font-size: .86rem; }
.link-btn:hover { text-decoration: underline; }
.text-danger { color: #c0392b; }
.product-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f6f8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumb-empty {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.product-image-preview {
  width: min(100%, 340px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f8fb;
  padding: 8px;
}
.product-image-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.admin-actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form {
  display: inline;
  margin: 0;
}
.btn-link {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 35, 0.5);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-modal[hidden] {
  display: none !important;
}
.admin-modal-card {
  width: min(860px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.admin-code-block {
  margin-top: 10px;
  background: #f4f7fb;
  border: 1px solid #d7e0eb;
  border-radius: 10px;
  padding: 14px;
  font-size: .84rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ─── Form sections ─────────────────────────────────────── */
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.form-section-title { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.field-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.admin-hint { font-size: .88rem; color: var(--muted); margin-bottom: 20px; padding: 10px 14px; background: #f0f4fa; border-left: 3px solid var(--brand); border-radius: 4px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
span.req { color: #c0392b; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── Pagination ────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pagination-summary { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.btn-sm { padding: 4px 10px; font-size: .78rem; }

/* ─── Payments page order link ──────────────────────────── */
.payments-order-link { color: var(--brand); font-weight: 600; }
.payments-order-link:hover { text-decoration: underline; }

/* ─── Reports ───────────────────────────────────────────── */
.report-bars { display: grid; gap: 12px; }
.report-bar-row { display: grid; grid-template-columns: 96px 1fr 120px; gap: 14px; align-items: center; }
.report-bar-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.report-bar-track { height: 14px; background: #edf2f8; border-radius: 999px; overflow: hidden; border: 1px solid #d7e0eb; }
.report-bar-fill { height: 100%; background: linear-gradient(90deg, #1a3c5e, #3e6e97); border-radius: 999px; }
.report-bar-value { text-align: right; font-weight: 700; color: var(--ink); }

/* ─── Auth ──────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f2a44, #1a3c5e);
}
.auth-card {
  width: min(440px, 94vw);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .detail-wrap, .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-card-actions { grid-template-columns: 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .report-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .report-bar-value { text-align: left; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
}
