:root {
  color-scheme: light;
  --navy: #0b1f33;
  --ink: #172a3d;
  --muted: #64768a;
  --paper: #f2f6fa;
  --white: #fff;
  --blue: #1b5bff;
  --orange: #ec6a21;
  --lime: #b7d900;
  --line: #d9e3ed;
  --shadow: 0 16px 44px rgb(11 31 51 / 16%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #6f9cff; outline-offset: 3px; }
.topbar { height: 76px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); display:flex; align-items:center; justify-content:space-between; background:var(--navy); color:white; }
.brand { display:flex; gap:11px; align-items:center; color:inherit; text-decoration:none; }
.brand-mark { width:40px;height:40px;display:grid;place-items:center;background:var(--lime);border-radius:12px; }
.brand-mark svg { width:23px;fill:var(--navy); }
.brand strong,.brand small { display:block; }
.brand strong { font-size:16px;letter-spacing:-.2px; }
.brand small { margin-top:3px;color:#aebdca;font-size:11px; }
.admin-link { color:#d6e1eb;text-decoration:none;font-size:13px;padding:11px 13px;border:1px solid #34495d;border-radius:10px; }
.admin-link:hover { background:#162e45; }
main { max-width:1180px;margin:auto;padding:0 22px; }
.intro { margin-top:22px;min-height:220px;border-radius:20px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:30px 42px;position:relative;overflow:hidden; }
.intro::after { content:"";position:absolute;inset-inline-start:42%;top:-105px;width:330px;height:330px;border:1px solid #29445d;border-radius:50%;box-shadow:0 0 0 30px rgb(255 255 255 / 2%),0 0 0 65px rgb(255 255 255 / 2%);pointer-events:none; }
.intro-copy,.intro-stats { position:relative;z-index:1; }
.eyebrow { margin:0 0 9px;color:#bddb23;font-size:12px;font-weight:700;display:flex;align-items:center;gap:8px; }
.eyebrow span { width:7px;height:7px;border-radius:50%;background:var(--lime); }
.intro h1 { margin:0;font-size:clamp(27px,4vw,40px);line-height:1.25;letter-spacing:-1px; }
.intro-note { max-width:390px;margin:12px 0 0;color:#c5d2de;font-size:14px;line-height:1.7; }
.intro-stats { display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:160px;padding-inline-start:28px;border-inline-start:1px solid #395069;color:#bccbd8;font-size:12px; }
.intro-stats strong { color:#fff;font-size:36px;line-height:1.1; }
.intro-stats i { width:30px;height:3px;background:var(--orange);border-radius:3px;margin:9px 0 5px; }
.catalog { padding-top:30px; }
.catalog-tabs { display:flex;gap:9px;margin-bottom:20px;padding:5px;background:#e5edf4;border:1px solid var(--line);border-radius:14px;width:max-content;max-width:100%; }
.catalog-tab { min-height:46px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#455a6d;padding:0 17px;font-weight:750;white-space:nowrap; }
.catalog-tab span { min-width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#d5e0e9;color:#40576a;font-size:11px; }
.catalog-tab.is-active { background:#fff;border-color:#d5e0e9;color:var(--navy);box-shadow:0 2px 6px rgb(11 31 51 / 8%); }
.catalog-tab.is-active span { background:#e9f0f6;color:var(--navy); }
.catalog-tools { display:flex;align-items:center;justify-content:space-between;gap:18px; }
.section-heading { display:flex;align-items:baseline;gap:12px; }
.section-heading h2 { margin:0;font-size:23px;letter-spacing:-.5px; }
.section-heading span { font-size:12px;color:var(--muted); }
.search-box { height:46px;width:min(300px,52vw);display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:0 12px; }
.search-box svg { width:18px;fill:none;stroke:#6c7f92;stroke-width:1.8;flex:none; }
.search-box input { width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px; }
.filters { display:flex;gap:8px;overflow-x:auto;padding:18px 0 17px;scrollbar-width:none; }
.filters::-webkit-scrollbar { display:none; }
.filter-chip { min-height:40px;flex:none;border:1px solid var(--line);background:#fff;color:#42566a;border-radius:999px;padding:0 14px;font-size:12px;font-weight:600;white-space:nowrap; }
.filter-chip span { display:inline-grid;place-items:center;margin-inline-start:5px;width:20px;height:20px;border-radius:50%;background:#e7edf4;color:#53677b;font-size:10px; }
.filter-chip.is-active { background:var(--navy);border-color:var(--navy);color:#fff; }
.filter-chip.is-active span { background:#314b64;color:#fff; }
.product-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px; }
.product-card { min-width:0;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;transition:border-color .18s,transform .18s; }
.product-card:hover { border-color:#a9bfd3;transform:translateY(-2px); }
.product-photo { aspect-ratio:1 / .86;position:relative;background:#fff;display:grid;place-items:center;padding:9px; }
.product-photo img { width:100%;height:100%;object-fit:contain; }
.product-photo.is-tools img { width:62%;height:62%; }
.no-product-image { color:var(--muted);font-size:12px; }
.product-number { position:absolute;top:10px;inset-inline-start:10px;background:#eaf0f7;color:var(--navy);height:27px;min-width:38px;padding:0 8px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:800;direction:ltr; }
.product-info { padding:12px 13px 14px;border-top:1px solid #edf1f5; }
.product-info h3 { margin:0;color:#40566b;font-size:13px;font-weight:650;line-height:1.4;min-height:36px; }
.price-row { margin-top:5px;display:flex;align-items:baseline;justify-content:space-between;gap:6px; }
.price { color:var(--navy);font-size:19px;font-weight:800;letter-spacing:-.4px;white-space:nowrap; }
.price small { font-size:10px;font-weight:600;color:#64768a;letter-spacing:0; }
.carton { color:#8594a4;font-size:10px;white-space:nowrap; }
.card-actions { margin-top:11px; }
.quantity-entry { width:100%;min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 9px;border:1px solid #cbd8e5;border-radius:10px;background:#fff; }
.quantity-entry span,.line-quantity span { color:var(--muted);font-size:11px;font-weight:700; }
.quantity-input { width:80px;min-height:34px;padding:4px 7px;border:1px solid #dce6ef;border-radius:8px;background:#f7f9fc;color:var(--navy);font-size:16px;font-weight:800;text-align:center;direction:ltr; }
.quantity-input:focus { outline:3px solid rgb(27 91 255 / 20%);border-color:var(--blue); }
.empty-results { text-align:center;color:var(--muted);padding:35px; }
.cart-bar { position:fixed;z-index:5;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 28px));min-height:64px;padding:8px 15px;display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;border:0;border-radius:15px;box-shadow:0 10px 30px rgb(11 31 51 / 30%);text-align:right; }
.cart-icon { position:relative;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#243e58; }
.cart-icon svg { width:21px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.cart-icon b { position:absolute;top:-5px;inset-inline-start:-5px;width:19px;height:19px;border-radius:50%;background:var(--lime);color:var(--navy);display:grid;place-items:center;font-size:10px; }
.cart-label { display:flex;flex-direction:column;gap:2px;flex:1; }
.cart-label strong { font-size:13px; }
.cart-label small { font-size:11px;color:#bdcbd8; }
.cart-total { font-size:16px; }
.cart-dialog { width:min(540px,100%);max-height:min(90dvh,820px);margin:auto 0 0 auto;padding:0;border:0;border-radius:22px 22px 0 0;background:#fff;color:var(--ink);box-shadow:var(--shadow);overflow:auto; }
.cart-dialog::backdrop { background:rgb(7 20 34 / 55%);backdrop-filter:blur(2px); }
.dialog-grabber { display:none; }
.dialog-head { display:flex;align-items:center;justify-content:space-between;padding:23px 23px 14px; }
.dialog-head h2 { margin:0;font-size:23px; }
.dialog-head .eyebrow { margin-bottom:3px;color:var(--orange); }
.dialog-head .eyebrow span { display:none; }
.icon-button { width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:24px;color:#53677a;line-height:1; }
.cart-lines { padding:0 22px;max-height:36dvh;overflow:auto; }
.cart-line { min-height:74px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf1f5;padding:9px 0; }
.line-number { width:38px;height:38px;flex:none;border-radius:10px;display:grid;place-items:center;background:#eff3f7;color:var(--navy);font-weight:800;font-size:12px;direction:ltr; }
.line-copy { flex:1;min-width:0; }
.line-copy strong,.line-copy small { display:block; }
.line-copy strong { font-size:13px; }
.line-copy small { margin-top:4px;color:var(--muted);font-size:11px; }
.line-total { min-width:64px;text-align:left;font-size:13px;font-weight:800;direction:ltr; }
.line-controls { display:flex;align-items:center;gap:9px; }
.remove-cart-item { width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #f0d5d3;border-radius:11px;background:#fff8f7;color:#a52b25;font-size:25px;line-height:1;cursor:pointer; }
.remove-cart-item:hover { background:#ffebeb; }
.remove-cart-item:focus-visible { outline:3px solid #74a9cf;outline-offset:2px; }
.line-quantity { display:flex;flex-direction:column;align-items:center;gap:3px; }
.line-quantity .quantity-input { width:68px;min-height:34px; }
.cart-empty { padding:4px 24px 18px;text-align:center;color:var(--muted); }
.text-button { border:0;background:transparent;color:var(--blue);font-weight:700;padding:9px; }
.checkout-form { padding:15px 23px calc(22px + env(safe-area-inset-bottom)); }
.checkout-form label { display:block;margin-bottom:11px;font-size:12px;font-weight:700; }
.checkout-form label span { color:#8291a1;font-weight:400; }
.checkout-form .field-label { display:flex;align-items:center;gap:6px;color:var(--ink); }
.checkout-form .field-label svg { width:17px;height:17px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.checkout-form input,.checkout-form textarea { width:100%;margin-top:6px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);resize:vertical; }
.checkout-form textarea { min-height:58px; }
.checkout-total { display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:13px;margin-top:8px;font-size:13px; }
.checkout-total strong { font-size:21px; }
.checkout-hint { margin:9px 0 13px;color:var(--muted);font-size:11px;line-height:1.6; }
.submit-order { width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:11px;background:#176b50;color:#fff;font-size:14px;font-weight:800; }
.submit-order:hover { background:#125b44; }
.submit-order:disabled { opacity:.6;cursor:wait; }
.submit-order svg { width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.form-error { margin:10px 0 0;color:#a52b25;font-size:12px; }
.toast { position:fixed;z-index:9;bottom:95px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#18324b;color:#fff;border-radius:9px;padding:10px 14px;font-size:12px;transition:opacity .18s,transform .18s; }
.toast.is-visible { opacity:1;transform:translate(-50%,0); }
@media (min-width: 700px) { .cart-dialog { margin:auto;align-self:center;border-radius:20px; } }
@media (max-width: 900px) { .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 620px) {
  body { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
  .topbar { height:66px;padding:0 15px; }
  .brand-mark { width:36px;height:36px;border-radius:10px; }
  .brand strong { font-size:14px; }
  .brand small { font-size:10px; }
  .admin-link { min-height:40px;padding:10px;font-size:11px; }
  main { padding:0 13px; }
  .intro { min-height:180px;margin-top:13px;padding:22px 19px;border-radius:16px; }
  .intro::after { inset-inline-start:35%;top:-85px;width:260px;height:260px; }
  .intro h1 { font-size:29px; }
  .intro-note { max-width:260px;font-size:12px;line-height:1.65; }
  .intro-stats { min-width:78px;padding-inline-start:13px;font-size:10px; }
  .intro-stats strong { font-size:29px; }
  .catalog { padding-top:22px; }
  .catalog-tools { align-items:flex-start;flex-direction:column;gap:11px; }
  .section-heading h2 { font-size:20px; }
  .search-box { width:100%;height:44px; }
  .filters { margin-inline:-13px;padding:14px 13px; }
  .filter-chip { min-height:38px;padding:0 12px;font-size:11px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
  .product-card { border-radius:12px; }
  .product-photo { aspect-ratio:1 / .92;padding:5px; }
  .product-photo.is-tools img { width:66%;height:66%; }
  .product-number { top:7px;inset-inline-start:7px;height:24px;min-width:34px;font-size:11px; }
  .product-info { padding:9px 9px 10px; }
  .product-info h3 { font-size:10px; }
  .price { font-size:17px; }
  .price small,.carton { font-size:9px; }
  .card-actions { margin-top:9px; }
  .quantity-entry { min-height:42px; }
  .cart-dialog { width:100%;max-height:91dvh;border-radius:20px 20px 0 0; }
  .dialog-grabber { display:block;width:38px;height:4px;margin:9px auto 0;background:#cbd4dd;border-radius:5px; }
  .dialog-head { padding:17px 17px 12px; }
  .dialog-head h2 { font-size:20px; }
  .cart-lines { padding:0 17px;max-height:30dvh; }
  .checkout-form { padding:13px 17px calc(17px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .intro { padding-inline:15px; }.intro h1 {font-size:26px}.intro-stats {min-width:68px}.product-grid {gap:7px}.price {font-size:16px} }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important;transition:none !important; } }
