/* ============================================================
   Electrospot Computers — Design System
   Colors: Deep Navy primary, Electric Orange CTA, clean white
   Type: Space Grotesk (headings) / Inter (body)
   ============================================================ */
:root {
  --navy-900: #0b1526;
  --navy-800: #101f38;
  --navy-700: #16294a;
  --navy-100: #e6ecf5;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-50: #eff6ff;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-50: #fff7ed;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --red-600: #dc2626;
  --amber-500: #f59e0b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 56, .06);
  --shadow-md: 0 4px 12px rgba(16, 31, 56, .10);
  --shadow-lg: 0 12px 32px rgba(16, 31, 56, .16);
  --container: 1200px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--navy-900); color: #cbd5e1; font-size: 13.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .mpesa { color: #4ade80; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.header-main { display: flex; align-items: center; gap: 20px; padding: 14px 20px; max-width: var(--container); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--navy-900); flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: #fff;
}
.logo span em { font-style: normal; color: var(--orange-500); }
.search-form { flex: 1; display: flex; max-width: 560px; position: relative; }
.search-form input {
  width: 100%; padding: 11px 46px 11px 16px; border: 2px solid var(--gray-200);
  border-radius: 999px; font-size: 15px; transition: border-color .2s;
}
.search-form input:focus { outline: none; border-color: var(--blue-500); }
.search-form button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--orange-500);
  color: #fff; display: grid; place-items: center; transition: background .2s;
}
.search-form button:hover { background: var(--orange-600); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-actions a, .header-actions button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px; border-radius: var(--radius-sm); color: var(--gray-700);
  font-size: 12px; min-width: 56px; transition: background .2s, color .2s; position: relative;
}
.header-actions a:hover, .header-actions button:hover { background: var(--gray-100); color: var(--navy-900); }
.cart-count {
  position: absolute; top: 2px; right: 8px; background: var(--orange-500); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Nav ---------- */
.main-nav { background: var(--navy-800); }
.main-nav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.main-nav a {
  color: #e2e8f0; font-size: 14.5px; font-weight: 500; padding: 12px 14px;
  white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange-500); }
.main-nav .nav-deal { color: #fdba74; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  transition: transform .15s, box-shadow .2s, background .2s; min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.btn-primary:hover { background: var(--orange-600); }
.btn-outline { border: 2px solid var(--gray-300); color: var(--gray-900); background: var(--white); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-whatsapp { background: #22c55e; color: #fff; }
.btn-whatsapp:hover { background: #16a34a; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, #1e3a8a 100%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 18px; color: #fdba74;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.hero h1 .accent { color: var(--orange-500); }
.hero p.lead { font-size: 18px; color: #cbd5e1; margin-bottom: 28px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 24px; }
.hero-stats div span { font-size: 13.5px; color: #94a3b8; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 28px;
  width: min(380px, 100%); box-shadow: var(--shadow-lg);
}
.hero-card .tile { border-radius: 14px; background: linear-gradient(135deg, #1e40af, #7c3aed); height: 180px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.hero-card h3 { font-size: 20px; margin-bottom: 4px; }
.hero-card .price-row { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; }
.hero-card .price-now { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #fdba74; }
.hero-card .price-was { font-size: 15px; color: #94a3b8; text-decoration: line-through; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item span { font-size: 13px; color: var(--gray-500); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--gray-50); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); }
.section-head p { color: var(--gray-500); margin-top: 6px; }
.link-arrow { color: var(--blue-600); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-500); }
.cat-card .ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.cat-card strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.cat-card span { font-size: 12.5px; color: var(--gray-500); }

/* ---------- Deal strip ---------- */
.deal-strip { background: linear-gradient(90deg, var(--navy-900), #7c2d12); color: #fff; border-radius: 16px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.deal-strip h3 { font-size: 22px; }
.deal-strip p { color: #fdba74; font-size: 14.5px; }
.countdown { display: flex; gap: 10px; }
.countdown div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 62px; }
.countdown strong { display: block; font-family: var(--font-head); font-size: 22px; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #cbd5e1; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.p-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--red-600);
}
.p-badge.new { background: var(--green-600); }
.p-media { aspect-ratio: 5 / 4; display: grid; place-items: center; color: #fff; overflow: hidden; }
.p-media svg { width: 34%; height: auto; opacity: .95; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.p-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; font-family: var(--font-body); }
.p-title a:hover { color: var(--blue-600); }
.p-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); }
.stars { color: var(--amber-500); letter-spacing: 1px; font-size: 14px; }
.p-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.p-price { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy-900); }
.p-was { font-size: 13.5px; color: var(--gray-500); text-decoration: line-through; }
.p-actions { padding: 0 16px 16px; }
.btn-cart {
  width: 100%; padding: 11px; border-radius: 999px; background: var(--navy-800); color: #fff;
  font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: background .2s; min-height: 44px;
}
.btn-cart:hover { background: var(--orange-500); }
.stock-note { font-size: 12.5px; color: var(--green-600); font-weight: 600; }
.stock-note.low { color: var(--red-600); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-50); color: var(--orange-600); display: grid; place-items: center; margin-bottom: 16px; }
.svc-card h3 { font-size: 19px; margin-bottom: 8px; }
.svc-card p { color: var(--gray-500); font-size: 14.5px; margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; }
.testi-card p { font-size: 15px; color: var(--gray-700); margin: 12px 0 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head); }
.testi-who strong { display: block; font-size: 14.5px; }
.testi-who span { font-size: 13px; color: var(--gray-500); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: 20px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta-band p { color: #cbd5e1; max-width: 480px; }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: 10px; max-width: 460px; }
.newsletter-form input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 2px solid var(--gray-200); font-size: 15px; }
.newsletter-form input:focus { outline: none; border-color: var(--blue-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #94a3b8; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--orange-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.pay-badges { display: flex; gap: 8px; }
.pay-badges span { background: rgba(255,255,255,.1); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #e2e8f0; }
.pay-badges .mp { background: #16a34a; color: #fff; }

/* ---------- Shop page ---------- */
.page-head { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 28px 0; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); }
.breadcrumb { font-size: 13.5px; color: var(--gray-500); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--blue-600); }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 36px 0; }
.filters { display: grid; gap: 24px; align-content: start; }
.filter-group { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; background: var(--white); }
.filter-group h3 { font-size: 15px; margin-bottom: 12px; }
.filter-group label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 7px 0; cursor: pointer; color: var(--gray-700); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--orange-500); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar .result-count { color: var(--gray-500); font-size: 14.5px; }
.shop-toolbar select { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--gray-300); font-size: 14.5px; background: var(--white); cursor: pointer; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.pdp-gallery { display: grid; gap: 12px; align-content: start; }
.pdp-main-img { border-radius: 16px; aspect-ratio: 4/3; display: grid; place-items: center; color: #fff; }
.pdp-main-img svg { width: 36%; height: auto; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp-thumbs button { border-radius: 10px; aspect-ratio: 1; border: 2px solid var(--gray-200); display: grid; place-items: center; color: #fff; transition: border-color .2s; }
.pdp-thumbs button:hover, .pdp-thumbs button[aria-selected="true"] { border-color: var(--orange-500); }
.pdp-thumbs svg { width: 46%; height: auto; }
.pdp-info h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 10px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gray-500); margin-bottom: 16px; }
.pdp-rating a { color: var(--blue-600); font-weight: 600; }
.pdp-price-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.pdp-price { font-family: var(--font-head); font-size: 34px; font-weight: 700; }
.pdp-was { color: var(--gray-500); text-decoration: line-through; font-size: 17px; margin-left: 10px; }
.pdp-save { display: inline-block; background: var(--green-50); color: var(--green-600); font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 3px 12px; margin-left: 10px; }
.pdp-meta { font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.pdp-buy-row { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.qty { display: inline-flex; border: 2px solid var(--gray-300); border-radius: 999px; overflow: hidden; }
.qty button { width: 46px; min-height: 48px; font-size: 20px; color: var(--gray-700); }
.qty button:hover { background: var(--gray-100); }
.qty input { width: 52px; text-align: center; border: none; font-size: 16px; font-weight: 600; }
.pdp-perks { display: grid; gap: 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; }
.pdp-perks li { display: flex; gap: 12px; align-items: start; font-size: 14.5px; list-style: none; }
.pdp-perks svg { color: var(--green-600); flex-shrink: 0; margin-top: 2px; }
.pdp-tabs { border-top: 1px solid var(--gray-200); padding: 36px 0; }
.tab-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; overflow-x: auto; }
.tab-nav button { padding: 12px 20px; font-weight: 600; color: var(--gray-500); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-nav button[aria-selected="true"] { color: var(--navy-900); border-bottom-color: var(--orange-500); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.spec-table th { width: 220px; color: var(--gray-500); font-weight: 600; background: var(--gray-50); }
.review-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.review-card .who { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.review-card .who strong { font-size: 15px; }
.review-card .who span { color: var(--gray-500); }

/* ---------- Forms (repair booking) ---------- */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14.5px; }
.form-field label .req { color: var(--red-600); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: var(--white); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-500); }
.form-field .hint { font-size: 13px; color: var(--gray-500); }
.form-field .error { font-size: 13px; color: var(--red-600); display: none; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: var(--red-600); }
.form-field.invalid .error { display: block; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 36px 0; align-items: start; }
.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px; background: var(--white); }
.cart-line .thumb { width: 90px; height: 72px; border-radius: 10px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.cart-line .thumb svg { width: 40%; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.cart-line .line-price { font-size: 14px; color: var(--gray-500); }
.cart-line .line-right { display: grid; gap: 8px; justify-items: end; }
.cart-line .line-total { font-family: var(--font-head); font-weight: 700; }
.remove-btn { color: var(--red-600); font-size: 13px; font-weight: 600; }
.remove-btn:hover { text-decoration: underline; }
.summary-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 130px; }
.summary-card h2 { font-size: 20px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; color: var(--gray-700); }
.summary-row.total { border-top: 2px solid var(--gray-200); margin-top: 8px; padding-top: 14px; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--gray-900); }
.empty-cart { text-align: center; padding: 64px 20px; color: var(--gray-500); }
.order-confirm { max-width: 560px; margin: 48px auto; text-align: center; background: var(--green-50); border: 1px solid #bbf7d0; border-radius: 16px; padding: 40px; }
.order-confirm h2 { color: var(--green-600); margin-bottom: 10px; }

/* ---------- Admin panel ---------- */
.admin-body { background: var(--gray-100); min-height: 100vh; }
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-900); color: #cbd5e1; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-side .logo { color: #fff; margin-bottom: 22px; padding: 0 8px; font-size: 18px; }
.admin-side button, .admin-side a.side-link { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; color: #cbd5e1; font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.admin-side button:hover, .admin-side a.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side button[aria-current="true"] { background: var(--orange-500); color: #fff; }
.admin-side .side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.admin-main { padding: 28px; max-width: 1100px; }
.admin-main h1 { font-size: 26px; margin-bottom: 4px; }
.admin-main .sub { color: var(--gray-500); font-size: 14.5px; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 20px; }
.stat-card .num { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.stat-card .lbl { font-size: 13px; color: var(--gray-500); }
.admin-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar input[type="search"] { padding: 10px 14px; border: 2px solid var(--gray-200); border-radius: 999px; font-size: 14.5px; width: 260px; max-width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; background: var(--gray-50); color: var(--gray-500); font-weight: 600; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.admin-table .thumb { width: 52px; height: 42px; border-radius: 8px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.admin-table .thumb svg { width: 45%; }
.admin-table .thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-table select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 13.5px; }
.tbl-btn { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-right: 6px; min-height: 34px; }
.tbl-btn.edit { background: var(--blue-50); color: var(--blue-600); }
.tbl-btn.edit:hover { background: #dbeafe; }
.tbl-btn.del { background: #fef2f2; color: var(--red-600); }
.tbl-btn.del:hover { background: #fee2e2; }
.status-pill { font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.status-Pending { background: var(--orange-50); color: var(--orange-600); }
.status-Processing { background: var(--blue-50); color: var(--blue-600); }
.status-Delivered { background: var(--green-50); color: var(--green-600); }
.status-Cancelled { background: #fef2f2; color: var(--red-600); }
.img-preview { width: 120px; height: 96px; border: 2px dashed var(--gray-300); border-radius: 10px; display: grid; place-items: center; color: var(--gray-500); font-size: 12px; overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: contain; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); padding: 20px; }
.login-card { background: var(--white); border-radius: 18px; padding: 38px; width: min(400px, 100%); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; position: sticky; top: 0; z-index: 50; }
  .admin-side .logo { margin-bottom: 0; }
  .admin-side .side-foot { margin: 0; border: none; padding: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-table-wrap { overflow-x: auto; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--navy-900); color: #fff; padding: 14px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0;
  pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: #4ade80; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150; width: 56px; height: 56px;
  border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(34,197,94,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-visual { display: none; }
  .product-grid, .svc-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .header-main { flex-wrap: wrap; }
  .search-form { order: 3; max-width: 100%; flex-basis: 100%; }
  .header-actions a span.label, .header-actions button span.label { display: none; }
  .header-actions a, .header-actions button { min-width: 44px; }
}
@media (max-width: 520px) {
  .product-grid, .shop-grid, .svc-grid, .testi-grid, .filters { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .deal-strip { justify-content: center; text-align: center; }
}
