/* web/static/css/main.css */
/* ================================================================
   Industrial Spare Parts Store — CSS Design System
   Palette: Steel grey, safety orange accent, white working surfaces
   Type: Inter (UI) + IBM Plex Mono (part numbers, SKUs)
   ================================================================ */

:root {
  --color-bg:           #F5F6F7;
  --color-surface:      #FFFFFF;
  --color-border:       #D1D5DB;
  --color-border-light: #E9EBEE;

  --color-text:         #1A1D23;
  --color-text-2:       #4B5563;
  --color-text-3:       #6B7280;

  --color-accent:       #E85D04;   /* safety orange */
  --color-accent-dark:  #C2410C;
  --color-accent-bg:    #FFF3ED;

  --color-steel:        #374151;
  --color-steel-light:  #6B7280;

  --color-instock:      #15803D;
  --color-instock-bg:   #DCFCE7;
  --color-outstock:     #991B1B;
  --color-outstock-bg:  #FEE2E2;

  --font-ui:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;

  --radius:     4px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:  0 4px 20px rgba(0,0,0,.12);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------------------------------------------------------------- Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

/* Dropdown menu for Support nav item */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #D1D5DB;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, background .15s;
  cursor: pointer;
}

.nav-dropdown > a .arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-dropdown.open > a .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 10;
  margin-top: 4px;
  padding: 8px 0;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  color: #D1D5DB;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.dropdown-menu li a:hover {
  color: #FFF;
  background: rgba(255,255,255,.08);
}

/* ---------------------------------------------------------------- Header */
.site-header {
  background: var(--color-text);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark img {
    width: 32px;
    height: 32px;
    display: block;
}

.logo-mark {
  font-size: 22px;
  color: var(--color-accent);
}
.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #FFF;
  letter-spacing: -.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.main-nav a {
  color: #D1D5DB;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.main-nav a:hover {
  color: #FFF;
  background: rgba(255,255,255,.08);
}
.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-count {
  background: var(--color-accent);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.header-search {
  display: flex;
  flex: 1;
  max-width: 480px;
  gap: 0;
  margin-left: auto;
}
.header-search input {
  flex: 1;
  padding: 7px 12px;
  font-size: 14px;
  border: 1px solid #4B5563;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #2D3748;
  color: #FFF;
  outline: none;
}
.header-search input::placeholder { color: #9CA3AF; }
.header-search input:focus { border-color: var(--color-accent); }
.header-search button {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-accent);
  color: #FFF;
  border: 1px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  white-space: nowrap;
}
.header-search button:hover { background: var(--color-accent-dark); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #FFF;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
  color: #FFF;
}
.btn-secondary {
  background: var(--color-steel);
  color: #FFF;
  border-color: var(--color-steel);
}
.btn-secondary:hover {
  background: #1F2937;
  border-color: #1F2937;
  text-decoration: none;
  color: #FFF;
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-2);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
}
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; }

/* ---------------------------------------------------------------- Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-instock  { background: var(--color-instock-bg);  color: var(--color-instock); }
.badge-outofstock { background: var(--color-outstock-bg); color: var(--color-outstock); }

/* ---------------------------------------------------------------- Hero */
.hero {
  background: var(--color-steel);
  background-image: linear-gradient(135deg, #1A1D23 0%, #374151 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(255,255,255,.03) 39px, rgba(255,255,255,.03) 40px
  );
}
.hero-text { position: relative; max-width: 640px; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 17px;
  color: #9CA3AF;
  margin-bottom: 28px;
  line-height: 1.5;
}
.hero-search {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin-bottom: 16px;
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #4B5563;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,.06);
  color: #FFF;
  outline: none;
}
.hero-search input::placeholder { color: #6B7280; }
.hero-search input:focus { border-color: var(--color-accent); }
.hero-search button {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hero-trust { font-size: 13px; color: #6B7280; }

.compatibility-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.compatibility-input-row input,
.compatibility-input-row button {
  height: 42px;
  box-sizing: border-box;
}

.compatibility-input-row input {
  flex: 1;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.compatibility-input-row button {
  padding: 0 20px;
  font-size: 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- Model strip */
.model-strip {
  background: #FFF;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.model-strip > .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.model-strip-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-2);
  white-space: nowrap;
}
.model-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.model-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.model-chip:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  text-decoration: none;
  color: var(--color-accent-dark);
}

/* ---------------------------------------------------------------- Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
}
.product-card:hover {
  box-shadow: var(--shadow);
  border-color: #9CA3AF;
}

.product-card-image-link { display: block; }
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-bg);
}
.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-3);
}
.product-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.product-card-name a {
  color: var(--color-text);
  text-decoration: none;
}
.product-card-name a:hover { color: var(--color-accent-dark); }
.product-card-sku, .product-card-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-3);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

/* ---------------------------------------------------------------- Section header */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.section-link {
  font-size: 14px;
  font-weight: 500;
}

/* ---------------------------------------------------------------- Trust section */
.trust-section { background: var(--color-surface); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}
.trust-item { text-align: center; }
.trust-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.trust-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.trust-item p  { font-size: 14px; color: var(--color-text-2); }

/* ---------------------------------------------------------------- CTA */
.cta-section { background: var(--color-accent-bg); }
.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cta-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cta-box p  { color: var(--color-text-2); margin-bottom: 20px; }

/* ---------------------------------------------------------------- Page Header */
.page-header { padding: 32px 0 24px; }
.page-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.page-sub { font-size: 15px; color: var(--color-text-2); }

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-3);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-3); }
.breadcrumb a:hover { color: var(--color-accent-dark); }

/* ---------------------------------------------------------------- Search bar */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  max-width: 600px;
}
.search-bar input {
  flex: 1;
  padding: 9px 14px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #FFF;
  outline: none;
}
.search-bar input:focus { border-color: var(--color-accent); }

/* ---------------------------------------------------------------- Product Detail */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0 48px;
}
.product-detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color .15s;
}
.thumbnail:hover { border-color: var(--color-accent); }

.product-category-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.product-detail-info h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.product-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-2);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.product-sku-label, .product-brand-label {
  font-weight: 600;
  color: var(--color-text-3);
  font-family: var(--font-ui);
}
.product-price-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 20px;
}
.product-price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.add-to-cart-block {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.qty-selector {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qty-selector label { font-size: 11px; font-weight: 600; color: var(--color-text-3); }
.qty-selector input {
  width: 64px;
  padding: 9px 8px;
  font-size: 15px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #FFF;
  outline: none;
}
.shipping-note { font-size: 13px; color: var(--color-text-2); margin-bottom: 20px; }
.product-description h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-top: 20px;
}
.product-description p { font-size: 15px; color: var(--color-text-2); line-height: 1.7; }
.compatible-models { margin-top: 28px; }
.compatible-models h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.compatible-models p { font-size: 14px; color: var(--color-text-2); margin-bottom: 10px; }
.model-list { display: flex; flex-direction: column; gap: 6px; }
.model-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s;
}
.model-link:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}
.model-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.model-name { font-size: 13px; color: var(--color-text-2); }

/* ---------------------------------------------------------------- Machine Model Page */
.model-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.model-description h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.model-description p  { font-size: 15px; color: var(--color-text-2); }
.parts-heading { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.model-guide-cta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border-light); }
.model-link-table { text-decoration: none; color: var(--color-text); }
.model-link-table:hover { color: var(--color-accent-dark); }

/* ---------------------------------------------------------------- Guide Article */
.guide-article {
  max-width: 800px;
  padding-bottom: 56px;
}
.guide-article h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -.01em;
}
.guide-article p  { font-size: 15px; color: var(--color-text-2); line-height: 1.7; margin-bottom: 12px; }
.guide-steps { padding-left: 0; counter-reset: steps; }
.guide-steps li {
  font-size: 15px;
  color: var(--color-text-2);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}
.guide-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.model-table-wrapper { overflow-x: auto; margin-bottom: 24px; }
.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.model-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--color-steel);
  color: #FFF;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.model-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-2);
}
.model-table tbody tr:hover td { background: var(--color-bg); }
.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.repair-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.repair-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.repair-card p  { font-size: 13px; color: var(--color-text-2); margin-bottom: 10px; }
.repair-card a  { font-size: 13px; font-weight: 500; }

/* ---------------------------------------------------------------- Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 190;
  display: none;
}
.cart-overlay.visible { display: block; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-steel);
  color: #FFF;
}
.cart-drawer-header h2 { font-size: 16px; font-weight: 600; color: #FFF; }
.cart-close {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.cart-close:hover { color: #FFF; }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border-light);
  align-items: flex-start;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-3);
  margin-bottom: 6px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--color-border);
  background: #FFF;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 11px;
  color: var(--color-text-3);
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}
.cart-item-remove:hover { color: var(--color-outstock); }
.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.cart-footer {
  border-top: 2px solid var(--color-border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
}
.cart-totals { display: flex; flex-direction: column; gap: 4px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  align-items: center;
}
.cart-shipping-row { flex-direction: column; align-items: stretch; gap: 4px; }
.cart-shipping-row span:first-child { font-size: 14px; margin-bottom: 2px; }
.cart-shipping-row select {
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #FFF;
  width: 100%;
}
.cart-total-row {
  padding-top: 6px;
  border-top: 1px solid var(--color-border);
  font-size: 16px;
}
.cart-contact label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.cart-contact input,
.cart-address input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #FFF;
  margin-bottom: 6px;
  outline: none;
}
.cart-address input:focus,
.cart-contact input:focus { border-color: var(--color-accent); }
.addr-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.addr-row input { margin-bottom: 0; }
.cart-address label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.cart-secure-note {
  font-size: 12px;
  color: var(--color-text-3);
  text-align: center;
}

/* ---------------------------------------------------------------- Cart page */
.cart-empty-msg { padding: 40px 0; color: var(--color-text-2); }

/* ---------------------------------------------------------------- Empty state */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state h2   { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p    { color: var(--color-text-2); margin-bottom: 20px; }

/* ---------------------------------------------------------------- Success */
.success-page {
  max-width: 520px;
  margin: 64px auto;
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  background: var(--color-instock-bg);
  color: var(--color-instock);
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.success-order-number { font-family: var(--font-mono); font-size: 14px; color: var(--color-text-2); margin-bottom: 12px; }
.success-details {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 20px 0;
}
.success-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.success-row:last-child { border: none; }
.success-support { font-size: 13px; color: var(--color-text-2); margin: 16px 0; }


.about-hero {
  background: #1A1D23;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(255,255,255,.03) 39px, rgba(255,255,255,.03) 40px
  );
}
.about-hero-inner { position: relative; }
.about-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.about-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  max-width: 520px;
}
.about-hero-sub {
  font-size: 16px;
  color: #9CA3AF;
  line-height: 1.7;
  max-width: 480px;
}
.about-section { padding: 56px 0; }
.about-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.about-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-2);
  max-width: 640px;
}
.about-section p + p { margin-top: 16px; }

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.pillar-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-2);
  max-width: none;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  margin: 0 -24px;
}
.stat-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-2);
  margin-top: 6px;
  line-height: 1.4;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
  width: 38px;
  height: 38px;
  background: var(--color-accent-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-3);
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* CTA strip */
.cta-strip {
  background: var(--color-steel);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
}
.cta-strip h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.cta-strip p {
  color: #9CA3AF;
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--color-text);
  color: #9CA3AF;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
}
.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; line-height: 1.5; }
.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #D1D5DB;
  margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col a {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: #FFF; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: #6B7280; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
  .addr-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .about-hero h1 { font-size: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .btn { transition: none; }
}
