@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #FFFFFF;
  --surface: #F4F7FB;
  --ink: #0F172A;
  --muted: #475569;
  --subtle: #64748B;
  --line: #E2E8F0;
  --brand: #0F4C81;
  --brand-dark: #0A3459;
  --navy: #0B1F3A;
  --sky: #E0F2FE;
  --stock: #047857;
  --stock-bg: #ECFDF5;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
p { margin: 0 0 14px; color: var(--muted); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* Top Service Strip */
.top-strip {
  background: var(--navy);
  color: #CBD5E1;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-strip-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 36px; padding: 6px 0; flex-wrap: wrap;
}
.top-strip a { color: #7DD3FC; font-weight: 600; }

/* Main E-Commerce Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.28rem;
  color: var(--navy); text-decoration: none; flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.header-search {
  flex: 1; max-width: 440px; display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 3px 4px 3px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.header-search:focus-within { border-color: var(--brand); background: #FFFFFF; }
.header-search input {
  flex: 1; border: 0; background: transparent; font-family: inherit;
  font-size: 0.9rem; color: var(--ink); outline: none; min-width: 0;
}
.header-search button {
  padding: 8px 14px; border: 0; border-radius: 8px;
  background: var(--brand); color: #FFFFFF; font-weight: 600;
  font-size: 0.84rem; cursor: pointer;
}
.header-search button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 11px;
  background: var(--navy); color: #FFFFFF;
  font-weight: 700; font-size: 0.9rem; border: 0; cursor: pointer;
}
.cart-btn:hover { background: var(--brand); }
.cart-badge {
  background: #38BDF8; color: var(--navy);
  border-radius: 999px; padding: 1px 8px; font-size: 0.78rem; font-weight: 800;
}
.burger {
  display: none; padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; color: var(--ink); cursor: pointer;
}

.header-nav-bar {
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
}
.nav-main {
  display: flex; align-items: center; gap: 6px; padding: 8px 0;
}
.nav-main a {
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: background 0.14s, color 0.14s;
}
.nav-main a:hover { background: var(--surface); color: var(--brand); text-decoration: none; }
.nav-main a.active { background: #EFF6FF; color: var(--brand); font-weight: 700; }

.mobile-nav {
  display: none; padding: 12px 22px 18px; border-top: 1px solid var(--line);
  background: #FFFFFF;
}
.mobile-nav.open { display: grid; gap: 8px; }
.mobile-nav a {
  padding: 10px 12px; border-radius: 9px; background: var(--surface);
  font-weight: 600; color: var(--ink);
}

/* Rich 2-Column Store Hero */
.hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #103A63 58%, #164E80 100%);
  color: #FFFFFF;
  padding: 52px 0 56px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 38px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(56, 189, 248, 0.16); color: #BAE6FD;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); color: #FFFFFF; margin-bottom: 14px; }
.hero p.lead { font-size: 1.03rem; color: rgba(255,255,255,0.86); margin-bottom: 22px; max-width: 560px; }
.hero-checks {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
  font-size: 0.88rem; color: #E0F2FE; font-weight: 600;
}
.hero-checks span::before { content: "✓ "; color: #38BDF8; font-weight: 800; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: #0EA5E9; color: #0B1F3A; font-weight: 700; }
.btn-accent:hover { background: #38BDF8; }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #FFFFFF; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: #FFFFFF; color: var(--ink); border-color: #CBD5E1; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Featured Product Card inside Hero */
.hero-feature {
  background: #FFFFFF; color: var(--ink);
  border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-md);
}
.hf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hf-label {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand); background: #EFF6FF; padding: 4px 10px; border-radius: 999px;
}
.hf-img {
  display: block; border-radius: 10px; overflow: hidden; margin-bottom: 12px;
  aspect-ratio: 16 / 10; background: #FFFFFF;
}
.hf-img img { width: 100%; height: 100%; object-fit: contain; }
.hf-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.06rem; color: var(--ink); margin-bottom: 4px; }
.hf-meta { font-size: 0.84rem; color: var(--subtle); margin-bottom: 12px; }

/* Category Tiles */
.cat-strip { padding: 28px 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 20px; }
.cat-tile {
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 15px 16px; text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cat-tile strong { display: block; font-family: 'Manrope', sans-serif; font-size: 0.96rem; color: var(--ink); margin-bottom: 3px; }
.cat-tile span { font-size: 0.82rem; color: var(--subtle); }

/* Filter Bar & Catalog */
.sec { padding: 48px 0; }
.sec-soft { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px;
}
.filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-controls select, .filter-controls input[type="search"] {
  padding: 9px 12px; border-radius: 9px; border: 1px solid #CBD5E1;
  background: #FFFFFF; font-family: inherit; font-size: 0.9rem; color: var(--ink);
}
.filter-controls input[type="search"] { min-width: 230px; }
.result-label { font-size: 0.88rem; font-weight: 600; color: var(--subtle); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.product-card:hover { box-shadow: var(--shadow-sm); border-color: #CBD5E1; }
.product-thumb {
  display: block; background: #FFFFFF; border-radius: 10px;
  overflow: hidden; margin-bottom: 14px; aspect-ratio: 4 / 3;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.brand-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); }
.stock-tag {
  font-size: 0.75rem; font-weight: 700; color: var(--stock);
  background: var(--stock-bg); padding: 2px 9px; border-radius: 999px;
}
.product-title {
  display: block; font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 1.02rem; color: var(--ink); margin-bottom: 8px; line-height: 1.32;
}
.product-title:hover { color: var(--brand); text-decoration: none; }
.spec-line { font-size: 0.84rem; color: var(--subtle); margin-bottom: 14px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.price { font-family: 'Manrope', sans-serif; font-size: 1.32rem; font-weight: 800; color: var(--ink); }
.vat-note { font-size: 0.78rem; color: var(--subtle); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-sm { padding: 9px 13px; font-size: 0.86rem; border-radius: 9px; }

/* Buyer Guide & FAQ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-box {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.service-box .dist-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 800; color: var(--brand);
  background: #EFF6FF; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.service-box h3 { font-size: 1.06rem; margin-bottom: 6px; color: var(--ink); }
.service-box p { font-size: 0.9rem; margin: 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.faq-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.faq-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.faq-card p { font-size: 0.9rem; margin: 0; }

/* Page Header & Product Detail */
.page-head {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 36px 0 30px;
}
.crumb { font-size: 0.84rem; color: var(--subtle); margin-bottom: 10px; }
.crumb a { color: var(--brand); font-weight: 500; }

.pdp-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.pdp-media {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.pdp-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 18px 0 20px;
}
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.qty-ctrl {
  display: inline-flex; align-items: center; border: 1px solid #CBD5E1;
  border-radius: 9px; background: #FFFFFF; overflow: hidden;
}
.qty-ctrl button {
  width: 34px; height: 38px; border: 0; background: transparent;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--ink);
}
.qty-ctrl span { min-width: 30px; text-align: center; font-weight: 700; font-size: 0.95rem; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td {
  text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; vertical-align: top;
}
.spec-table th { width: 36%; background: var(--surface); color: var(--ink); font-weight: 600; }
.spec-table td { color: var(--muted); }

/* Legal & Info Pages */
.doc-stack { display: grid; gap: 16px; max-width: 920px; }
.doc-card {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px;
}
.doc-card h2 { font-size: 1.18rem; color: var(--ink); margin-bottom: 10px; }
.doc-card ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.doc-card li { margin-bottom: 6px; }

/* Cart & Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 76px; height: 58px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #FFFFFF; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid #CBD5E1;
  font-family: inherit; font-size: 0.93rem; color: var(--ink); background: #FFFFFF;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-line { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; color: var(--muted); margin: 12px 0 16px; }
.check-line input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.err-msg { color: #B91C1C; font-size: 0.86rem; font-weight: 600; margin-bottom: 12px; display: none; }

/* Drawer */
.drawer-bg {
  position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, 0.5);
  display: none; justify-content: flex-end;
}
.drawer-bg.open { display: flex; }
.drawer {
  width: min(400px, 100%); background: #FFFFFF; height: 100%;
  display: flex; flex-direction: column; padding: 20px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 0; }
.drawer-foot { padding-top: 14px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer {
  background: var(--navy); color: #CBD5E1;
  padding: 52px 0 28px; margin-top: 36px; font-size: 0.88rem;
}
.footer-grid { display: grid; grid-template-columns: 1.45fr 0.85fr 0.85fr 0.95fr; gap: 28px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.site-footer h4 { color: #FFFFFF; font-size: 0.9rem; margin-bottom: 12px; }
.footer-ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-ul a { color: #CBD5E1; }
.footer-ul a:hover { color: #FFFFFF; text-decoration: none; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }
.pay-pill {
  padding: 5px 11px; border-radius: 7px; font-size: 0.78rem; font-weight: 700;
  background: rgba(255,255,255,0.08); color: #E2E8F0; border: 1px solid rgba(255,255,255,0.14);
}
.footer-bottom {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 0.82rem; color: #94A3B8;
}

/* Cookie Bar + Modal */
.ck-bar {
  position: fixed; right: 18px; bottom: 18px; z-index: 65;
  width: min(440px, calc(100% - 24px));
  background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow-md);
}
.ck-bar.hidden { display: none; }
.ck-bar p { font-size: 0.85rem; margin: 0 0 12px; color: var(--muted); }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-btn {
  padding: 8px 13px; border-radius: 8px; font-size: 0.83rem; font-weight: 600;
  border: 1px solid #CBD5E1; background: #FFFFFF; color: var(--ink); cursor: pointer;
}
.ck-btn.primary { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.ck-modal-bg {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, 0.52);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.ck-modal-bg.open { display: flex; }
.ck-modal { background: #FFFFFF; border-radius: 14px; max-width: 460px; width: 100%; padding: 24px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }

@media (max-width: 980px) {
  .header-nav-bar, .header-search { display: none; }
  .burger { display: inline-flex; }
  .hero-grid, .cat-grid, .product-grid, .service-grid, .faq-grid, .pdp-grid, .checkout-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .top-strip-row { font-size: 0.74rem; gap: 4px; }
  .header-top { gap: 8px; min-height: 62px; }
  .brand-link { font-size: 1.06rem; gap: 7px; }
  .brand-link svg { width: 26px; height: 26px; }
  .cart-btn { padding: 8px 11px; font-size: 0.82rem; gap: 6px; }
  .cat-grid, .product-grid, .field-row { grid-template-columns: 1fr; }
  .filter-controls input[type="search"] { min-width: 0; width: 100%; }
  .ck-bar { left: 12px; right: 12px; width: auto; }
}
