:root {
  --orange: #ff6a00;
  --orange-dark: #e85d00;
  --orange-soft: #fff3ea;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f6f8;
  --white: #fff;
  --green: #059669;
  --gold: #f59e0b;
  --red: #dc2626;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --max: 1280px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.currency-pick select {
  border: 0; background: transparent; color: inherit; font: inherit;
  max-width: 180px; cursor: pointer;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 12px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dot { width: 4px; height: 4px; background: #475569; border-radius: 50%; }

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 0;
}
.logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.logo-footer {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.logo-footer img {
  height: 44px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
}
.search-box {
  display: flex;
  background: #f8fafc;
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  height: 46px;
}
.search-box select {
  border: 0; background: #fff; padding: 0 10px;
  border-right: 1px solid var(--line); color: var(--ink); outline: none;
}
.search-box input {
  flex: 1; border: 0; background: transparent; padding: 0 14px; outline: none; font-size: 14px;
}
.search-box button {
  background: var(--orange); color: #fff; border: 0; padding: 0 22px;
  font-weight: 700; cursor: pointer;
}
.search-box button:hover { background: var(--orange-dark); }
.header-actions { display: flex; gap: 18px; align-items: center; }
.ha {
  display: flex; flex-direction: column; align-items: flex-start; font-size: 12px; color: var(--muted);
}
.ha strong { color: var(--ink); font-size: 13px; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--orange); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: grid; place-items: center; padding: 0 4px;
}

/* Category nav */
.catnav { background: var(--navy); color: #fff; }
.catnav .wrap { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; }
.cat-all {
  background: var(--orange); padding: 11px 16px; font-weight: 700; font-size: 13px;
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.catnav a.item {
  padding: 11px 14px; font-size: 13px; white-space: nowrap; color: #e2e8f0;
}
.catnav a.item:hover { color: #fff; background: rgba(255,255,255,.06); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 280px at 80% 0%, rgba(255,106,0,.18), transparent),
    linear-gradient(180deg, #fff, var(--bg));
  padding: 28px 0 10px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 16px;
}
.side-cats {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; overflow: hidden;
}
.side-cats a {
  display: flex; justify-content: space-between; padding: 8px 16px; font-size: 13px; color: var(--navy-2);
}
.side-cats a:hover { background: var(--orange-soft); color: var(--orange); }
.hero-banner {
  border-radius: var(--radius); overflow: hidden; min-height: 320px; position: relative;
  background: #111 url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1400&q=80") center/cover;
  color: #fff; display: flex; align-items: flex-end;
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.72));
}
.hero-copy { position: relative; z-index: 1; padding: 28px; }
.hero-copy h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; max-width: 520px; }
.hero-copy p { margin: 10px 0 16px; color: #e2e8f0; max-width: 460px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 18px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--navy); }
.btn.outline { background: transparent; border: 1px solid currentColor; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.panel h3 { font-size: 14px; margin-bottom: 10px; }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 11px; background: #ecfdf5; color: #047857; padding: 4px 8px; border-radius: 99px; font-weight: 600;
}
.chip.gold { background: #fffbeb; color: #b45309; }
.chip.blue { background: #eff6ff; color: #1d4ed8; }

/* Sections */
.section { padding: 28px 0; }
.sec-head {
  display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px;
}
.sec-head h2 { font-size: 22px; letter-spacing: -.03em; }
.sec-head a { color: var(--orange); font-weight: 600; font-size: 14px; }

.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.cat-card {
  background: #fff; border-radius: 12px; padding: 16px 12px; text-align: center;
  box-shadow: var(--shadow); transition: .2s transform;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card .ico { font-size: 26px; margin-bottom: 6px; }
.cat-card b { display: block; font-size: 13px; }
.cat-card span { font-size: 11px; color: var(--muted); }

.prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.card {
  background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: .2s transform, .2s box-shadow;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,23,42,.12); }
.card-img { height: 190px; background: #f1f5f9; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--orange); color: #fff; padding: 3px 7px; border-radius: 4px;
}
.tag.ready { background: var(--green); }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 14px; line-height: 1.35; min-height: 38px; }
.price { color: var(--orange); font-weight: 800; font-size: 16px; }
.meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }

/* Listing layout */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 22px 0 40px; }
.filters { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 88px; }
.filters h4 { font-size: 13px; margin: 14px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; color: #334155; }
.range { width: 100%; }
.toolbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.toolbar select, .qty input, .form input, .form select, .form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff;
}

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.gallery { background: #f8fafc; border-radius: 12px; overflow: hidden; min-height: 420px; }
.gallery img { width: 100%; height: 420px; object-fit: cover; }
.pdp h1 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 10px; }
.pdp-price { font-size: 28px; color: var(--orange); font-weight: 800; margin: 10px 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv b { color: var(--muted); font-weight: 500; }
.qty { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty input { width: 90px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.supplier-box {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.supplier-box .name { font-weight: 800; }
.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.sup-card {
  background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow);
}
.avatar {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #ff6a00); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.tag.retail { background: #1d4ed8; }
.sample-line { font-size: 12px; color: #047857; font-weight: 600; }
.price-max { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: 6px; }
.btn.sm { padding: 7px 10px; font-size: 12px; flex: 1; }

/* Cart / forms */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.form { display: grid; gap: 12px; }
.form label { font-size: 13px; font-weight: 600; }
.form textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Footer */
.footer { background: var(--navy); color: #94a3b8; margin-top: 40px; padding: 40px 0 20px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h4 { color: #fff; margin-bottom: 10px; font-size: 14px; }
.footer a { display: block; font-size: 13px; margin: 6px 0; }
.footer a:hover { color: #fff; }
.copy { border-top: 1px solid #1e293b; margin-top: 24px; padding-top: 14px; font-size: 12px; }

.toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--navy); color: #fff;
  padding: 12px 16px; border-radius: 10px; display: none; z-index: 80; box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
  .hero-grid, .listing, .pdp, .header-main, .ft-grid, .prod-grid, .cat-grid, .sup-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .side-cats { display: none; }
  .header-main { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
}
@media (max-width: 720px) {
  .prod-grid, .cat-grid, .pdp, .two, .ft-grid, .sup-grid { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; }
  .header-actions { display: none; }
}
