:root {
  --bg: #f4f8fa;
  --surface: #fff;
  --surface-2: #f0f4f7;
  --surface-3: #e7edf1;
  --border: #d6dde3;
  --border-strong: #b8c2cc;
  --ink: #0b1f3a;
  --ink-2: #3b4a5b;
  --muted: #6a7d90;
  --accent: #5ad8d3;
  --accent-strong: #055e63;
  --shadow: 0 1px 2px #0b1f3a0a, 0 8px 24px #0b1f3a0f;
  --shadow-lg: 0 30px 60px #0b1f3a2e;
  --radius: 10px;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { overscroll-behavior-y: contain; font-size: 14px; line-height: 1.5; }
button { font: inherit; touch-action: manipulation; }
input, select, textarea { touch-action: manipulation; font: 16px/1.4 Arial, Helvetica, sans-serif; }
.shop-shell { min-height: 100vh; display: flex; flex-direction: column; }

.shop-hero { position: relative; isolation: isolate; overflow: hidden; padding: 0; color: #fff; background: var(--ink); }
.shop-hero-art { position: absolute; z-index: -1; inset: 0; }
.shop-hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.shop-hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(#0b1f3a59 0%, #0b1f3ad9 100%); }
.shop-hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) clamp(40px, 8vw, 96px); }
.shop-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: clamp(40px, 8vw, 80px); }
.shop-brand { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.autide-signature { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 20px; position: relative; }
.brand-mark i { position: absolute; display: block; width: 14px; height: 8px; background: #fff; transform: skew(-32deg); }
.brand-mark i:first-child { top: 3px; left: 0; background: var(--accent); transform: skew(-32deg) rotate(60deg); }
.brand-mark i:last-child { right: 0; bottom: 2px; }
.autide-signature img { display: block; width: 110px; height: auto; filter: brightness(0) invert(1); }
.shop-cart-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; color: #fff; cursor: pointer; border: 1px solid #ffffff59; border-radius: 999px; background: #ffffff1f; transition: background .15s; }
.shop-cart-button:hover { background: #ffffff38; }
.shop-cart-button b { min-width: 24px; padding: 2px 9px; color: var(--ink); text-align: center; font-size: 13px; font-weight: 800; border-radius: 999px; background: #fff; }
.shop-hero-copy { max-width: 760px; }
.shop-eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.shop-hero h1 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.shop-hero-lede { max-width: 600px; margin: 0; color: #ffffffe0; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; }

.shop-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px); }
.shop-section-head { margin-bottom: 24px; }
.shop-section-head h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
.shop-section-head .shop-eyebrow { margin-bottom: 12px; }
.shop-section-sub { margin: 0; color: var(--muted); font-size: 15px; }
.shop-search-controls { display: grid; grid-template-columns: 1fr 240px; gap: 12px; margin-bottom: 10px; }
.shop-search-input, .shop-category-select { width: 100%; padding: 12px 14px; color: var(--ink); border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); }
.shop-search-input:focus, .shop-category-select:focus { outline: 3px solid #087b8059; outline-offset: 1px; }
.shop-results-count { margin: 4px 0 20px; color: var(--muted); font-size: 13px; }
.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shop-product-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.shop-product-card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.shop-product-code { padding: 3px 8px; color: var(--accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; border-radius: 4px; background: var(--surface-3); }
.shop-product-category { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.shop-product-name { margin: 0 0 16px; color: var(--ink); font-size: 18px; letter-spacing: -.01em; }
.shop-product-card-body { overflow: hidden; }
.shop-spec-grid { display: flex; flex-direction: column; gap: 8px; }
.shop-spec-card { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 32px; align-items: center; gap: 12px; min-height: 56px; padding: 14px; color: inherit; text-align: left; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); transition: background .12s, border-color .12s, color .12s; -webkit-tap-highlight-color: #087b802e; }
.shop-spec-card:hover { color: #fff; border-color: var(--accent-strong); background: var(--accent); }
.shop-spec-card:active { color: #fff; background: #055e63; transform: scale(.98); }
.shop-spec-sku { color: var(--accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700; }
.shop-spec-card:hover .shop-spec-sku, .shop-spec-card:active .shop-spec-sku { color: #fff; }
.shop-spec-label { color: var(--ink-2); font-size: 13px; }
.shop-spec-card:hover .shop-spec-label, .shop-spec-card:active .shop-spec-label { color: #fff; }
.shop-spec-price { color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.shop-spec-card:hover .shop-spec-price, .shop-spec-card:active .shop-spec-price { color: #fff; }
.shop-spec-add { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--accent-strong); font-size: 18px; font-weight: 800; border-radius: 999px; background: #087b8026; }
.shop-spec-card:hover .shop-spec-add, .shop-spec-card:active .shop-spec-add { color: #fff; background: #ffffff40; }
.shop-spec-card.is-added { border-color: #b9dfdc; background: #e4f6f4; }
.shop-spec-card.is-added .shop-spec-add { color: #fff; background: var(--accent-strong); }
.shop-empty { padding: 40px; color: var(--muted); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }

.shop-add-toast { position: fixed; z-index: 35; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100% - 32px)); padding: 12px 14px 12px 18px; color: #fff; pointer-events: none; opacity: 0; border: 1px solid #ffffff2e; border-radius: 12px; background: var(--ink); box-shadow: var(--shadow-lg); transform: translate(-50%, calc(100% + 40px)); transition: opacity .18s ease-out, transform .22s ease-out; }
.shop-add-toast.show { pointer-events: auto; opacity: 1; transform: translate(-50%, 0); }
.shop-add-toast span { min-width: 0; font-weight: 700; }
.shop-add-toast button { flex: none; min-height: 44px; padding: 10px 14px; color: var(--ink); font-weight: 800; cursor: pointer; border: 1px solid #ffffff59; border-radius: 8px; background: #fff; }

.shop-drawer-backdrop { position: fixed; z-index: 30; inset: 0; border: 0; background: #0b1f3a59; opacity: 0; pointer-events: none; transition: opacity .2s; }
.shop-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.shop-cart-drawer { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%); overflow-y: auto; color: var(--ink); border-left: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overscroll-behavior: contain; transform: translateX(100%); transition: transform .25s ease-out; }
.shop-cart-drawer.open { transform: translateX(0); }
.shop-cart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.shop-cart-header .shop-eyebrow { margin: 0; }
.shop-cart-header h2 { margin: 4px 0 0; font-size: 18px; }
.shop-icon-button { flex: none; width: 44px; height: 44px; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; border: 0; border-radius: 50%; background: var(--surface-2); }
.shop-icon-button:hover { color: var(--ink); background: var(--surface-3); }
.shop-cart-list { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 16px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.shop-cart-empty { padding: 60px 20px; color: var(--muted); text-align: center; }
.shop-cart-empty-icon { margin-bottom: 12px; color: var(--accent-strong); font-size: 42px; }
.shop-cart-empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 16px; }
.shop-cart-empty p { margin: 0; }
.shop-cart-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.shop-cart-item-meta { display: flex; flex-direction: column; gap: 2px; }
.shop-cart-item-sku { color: var(--accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; }
.shop-cart-item-name { color: var(--ink); font-size: 15px; }
.shop-cart-item-spec { color: var(--muted); font-size: 12px; }
.shop-cart-item-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.shop-cart-item-qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 999px; }
.shop-cart-item-qty button { width: 44px; height: 44px; color: var(--ink-2); font-size: 18px; font-weight: 800; cursor: pointer; border: 0; background: var(--surface); }
.shop-cart-item-qty span { min-width: 36px; text-align: center; font-weight: 800; }
.shop-cart-item-subtotal { color: var(--ink); font-size: 16px; text-align: right; }
.shop-cart-item-remove { width: 44px; height: 44px; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); }
.shop-cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.shop-cart-subtotal span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.shop-cart-subtotal strong { color: var(--ink); font-size: 22px; }
.shop-cart-actions { display: flex; flex-direction: column; gap: 8px; padding: 16px 24px 24px; }
.shop-btn-primary, .shop-btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 18px; font-weight: 800; text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 8px; transition: background .12s, transform 80ms; }
.shop-btn-primary { color: var(--ink); background: var(--accent); }
.shop-btn-primary:hover { color: #fff; background: var(--accent-strong); }
.shop-btn-ghost { color: var(--ink-2); border-color: var(--border-strong); background: var(--surface); }
.shop-cart-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.shop-quote-modal-layer { position: fixed; z-index: 40; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.shop-quote-modal-layer[hidden] { display: none; }
.shop-modal-backdrop { position: absolute; inset: 0; border: 0; background: #0b1f3a8c; }
.shop-quote-modal { position: relative; display: flex; flex-direction: column; width: min(820px, 100%); max-height: min(92vh, 820px); overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.shop-quote-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.shop-quote-modal-header h2 { margin: 4px 0 0; font-size: 22px; overflow-wrap: anywhere; }
.shop-toast { padding: 6px 12px; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; background: var(--ink); }
.shop-quote-canvas { padding: 24px; overflow: auto; background: var(--surface-2); -webkit-overflow-scrolling: touch; }
.shop-quote-doc { width: 720px; max-width: 720px; min-width: 720px; margin: 0 auto; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.shop-request-head { margin: -28px -28px 22px; padding: 24px 28px 20px; border-bottom: 4px solid #d97706; background: #fff4dc; }
.shop-request-head .shop-eyebrow { margin-bottom: 8px; color: #b45309; }
.shop-quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.shop-quote-head h3 { margin: 4px 0 6px; font-size: 22px; }
.shop-quote-dates { margin: 0; color: var(--muted); font-size: 13px; }
.shop-quote-company { margin: 0; color: var(--ink-2); font-size: 12px; text-align: right; }
.shop-request-status { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.shop-request-status strong { padding: 6px 10px; color: #fff; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: #b45309; }
.shop-request-status span { color: #756b5e; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.shop-quote-section-title { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.shop-quote-table { width: 100%; margin-bottom: 18px; border-collapse: collapse; font-size: 12px; }
.shop-quote-table th, .shop-quote-table td { padding: 8px 6px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.shop-quote-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); }
.shop-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.shop-mono { color: var(--accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.shop-quote-mobile-items { display: none; }
.shop-quote-totals { padding-top: 12px; border-top: 1px solid var(--border); }
.shop-quote-total-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.shop-quote-grand { margin-top: 8px; padding-top: 8px; color: var(--ink); font-size: 15px; font-weight: 800; border-top: 1px solid var(--border); }
.shop-quote-footer { margin: 16px 0 0; padding-top: 12px; color: var(--muted); font-size: 11px; border-top: 1px dashed var(--border); }
.shop-quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); }
.shop-quote-actions .shop-toast { margin-right: auto; }

.shop-footer { margin-top: 80px; padding: 64px 0 0; color: #ffffffc7; background: var(--ink); }
.shop-footer-inner { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(145px, 1fr)) minmax(190px, 1.15fr); gap: clamp(24px, 4vw, 56px); max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 56px; }
.shop-footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.shop-footer-logo img { display: block; width: 110px; height: auto; filter: brightness(0) invert(1); }
.shop-footer-logo .brand-mark { flex: none; }
.shop-footer-brand p { max-width: 290px; margin: 17px 0 0; line-height: 1.65; }
.shop-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; min-width: 0; }
.shop-footer-column strong { display: block; margin: 4px 0 10px; color: #fff; font-size: 11px; text-transform: uppercase; }
.shop-footer-column p { max-width: 260px; margin: 0; font-size: 13px; line-height: 1.7; }
.shop-footer a { color: #ffffffd9; text-decoration: none; overflow-wrap: anywhere; }
.shop-footer a:hover { color: #fff; text-decoration: underline; }
.shop-footer-bottom { padding: 20px clamp(16px, 4vw, 40px); color: #ffffff80; font-size: 12px; text-align: center; border-top: 1px solid #ffffff1f; }

@media (max-width: 1000px) {
  .shop-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 40px; }
}
@media (max-width: 760px) {
  .shop-footer { padding-top: 48px; }
  .shop-footer-inner { gap: 32px 20px; padding-bottom: 42px; }
  .shop-footer-brand, .shop-footer-column:last-child { grid-column: 1 / -1; }
  .shop-footer-column strong { margin-bottom: 5px; }
  .shop-cart-button span { display: none; }
  .shop-cart-button { padding: 10px 12px; }
  .shop-cart-button b { margin-left: 4px; }
  .shop-search-controls, .shop-product-grid { grid-template-columns: 1fr; }
  .shop-cart-drawer { top: auto; right: 0; bottom: 0; width: 100%; height: min(720px, 92dvh); border-top: 1px solid var(--border); border-left: 0; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .shop-cart-drawer.open { transform: translateY(0); }
  .shop-cart-list { padding: 14px 16px; }
  .shop-cart-header { padding: 18px 20px; }
  .shop-cart-subtotal, .shop-cart-actions { padding-right: 20px; padding-left: 20px; }
  .shop-cart-actions { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .shop-quote-modal { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .shop-quote-modal-layer { align-items: stretch; padding: 0; }
  .shop-quote-canvas { padding: 16px; overflow-x: hidden; }
  .shop-quote-doc { width: 100%; min-width: 0; padding: 18px; }
  .shop-request-head { margin: -18px -18px 20px; padding: 20px 18px; }
  .shop-quote-head { flex-direction: column; }
  .shop-quote-company { text-align: left; }
  .shop-request-status { align-items: flex-start; text-align: left; }
  .shop-quote-table { display: none; }
  .shop-quote-mobile-items { display: grid; gap: 10px; margin-bottom: 18px; }
  .shop-quote-mobile-item { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .shop-quote-mobile-item-head, .shop-quote-mobile-prices { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .shop-quote-mobile-item-head { color: var(--muted); font-size: 12px; }
  .shop-quote-mobile-name { color: var(--ink); font-size: 15px; }
  .shop-quote-mobile-spec { color: var(--muted); font-size: 13px; }
  .shop-quote-mobile-prices { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--border); }
  .shop-quote-mobile-prices span { display: grid; gap: 1px; }
  .shop-quote-mobile-prices span:last-child { text-align: right; }
  .shop-quote-mobile-prices small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .shop-quote-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .shop-quote-actions .shop-btn-primary, .shop-quote-actions .shop-btn-ghost { min-height: 48px; }
  .shop-quote-actions .shop-btn-primary:last-child { grid-column: 1 / -1; }
  .shop-quote-actions .shop-toast { grid-column: 1 / -1; justify-self: center; margin: 0; }
  .shop-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 380px) {
  .shop-add-toast { width: calc(100% - 24px); flex-direction: column; align-items: stretch; }
  .shop-add-toast button { width: 100%; }
  .shop-spec-card { grid-template-columns: 1fr; gap: 6px; }
  .shop-spec-add { justify-self: end; }
  .shop-cart-item-controls { grid-template-columns: auto 1fr; gap: 8px; }
  .shop-cart-item-remove { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
