/* Vali Warehouse — site stylesheet
   Premium pass applied 2026-09-02 per references/premium-design-system.md,
   product/ecommerce register. Parameter block confirmed with Charlie:
   warm cream ground, brand blue (oklch H 262.7, sampled from the logo)
   drives ink/accent, radius family rounded (16px cards / pill buttons,
   derived from the logo's sunglasses lenses + hat brim), Inter throughout
   at 500-600 heading weight, minimal motion, tabular-nums on all prices. */

:root {
  --blue: oklch(0.41 0.20 262.7);
  --blue-dark: oklch(0.32 0.19 262.7);
  --ink: oklch(0.22 0.02 262.7);
  --black: oklch(0.15 0.015 262.7);
  --muted: oklch(0.46 0.02 262.7);
  --bg: oklch(0.975 0.010 80);
  --bg-light: oklch(0.955 0.012 80);
  --border: oklch(0.89 0.013 80);
  --terracotta: oklch(0.60 0.08 45);

  --radius: 16px;      /* cards: cat-card, product-card, trust-item, info-card, cta-banner, modal, notice-banner */
  --radius-sm: 10px;   /* inputs, qty-stepper, add-btn, form fields */
  --radius-pill: 999px;/* buttons, chip nav, badges */
  --shadow: 0 8px 24px oklch(0.15 0.015 262.7 / 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--black);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; color: var(--ink); text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-light { background: var(--bg-light); }
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.lede { font-size: 18px; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px oklch(0.41 0.20 262.7 / 0.28); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: oklch(0.10 0.012 262.7); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 60px; width: auto; }
.brand-text { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a { color: var(--black); }
.nav-links a.active, .nav-links a:hover { color: var(--blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
}
.cart-count {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-pill);
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 110px 0 90px;
  background: linear-gradient(180deg, oklch(0.15 0.06 262.7 / 0.72), oklch(0.15 0.06 262.7 / 0.86)), center/cover no-repeat;
}
.hero-home { background-image: linear-gradient(180deg, oklch(0.15 0.06 262.7 / 0.72), oklch(0.15 0.06 262.7 / 0.88)), url('images/warehouse-hero.jpg'); }
.hero h1 { color: #fff; font-size: 48px; max-width: 720px; }
.hero p.lede { color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-sub {
  padding: 64px 0 48px;
  text-align: center;
}
.hero-sub h1 { font-size: 36px; }

/* Category / product cards */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.cat-card {
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.cat-card img { height: 170px; object-fit: cover; width: 100%; }
.cat-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card-body h3 { font-size: 18px; margin-bottom: 6px; }
.cat-card-body p { color: var(--muted); font-size: 14px; flex: 1; }
.cat-card-body .btn { align-self: flex-start; margin-top: 8px; }

.trust-grid { grid-template-columns: repeat(3, 1fr); }
.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.trust-item .icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.trust-item h3 { font-size: 17px; margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 14px; margin: 0; }

.cta-banner {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* Product catalog */
.notice-banner {
  background: oklch(0.94 0.05 80);
  border: 1px solid oklch(0.82 0.09 75);
  color: oklch(0.38 0.07 65);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.cat-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
}
.cat-nav a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.area-pill {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: inline-block;
}

.product-category { padding: 48px 0; border-top: 1px solid var(--border); }
.product-category:first-of-type { border-top: none; }
.cat-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.cat-header img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cat-header h2 { margin-bottom: 4px; }
.cat-header p { margin: 0; color: var(--muted); }

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card h4 { font-size: 16px; margin: 0; font-weight: 600; }
.product-card .unit { color: var(--muted); font-size: 13px; }
.product-card .price {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: clip;
}
.qty-stepper button {
  background: var(--bg-light);
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
}
.qty-stepper input {
  width: 40px;
  border: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: var(--ink);
}
.add-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  flex: 1;
  transition: background 0.2s ease;
}
.add-btn:hover { background: var(--blue); }
.add-btn.added { background: oklch(0.52 0.13 150); }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0;
  background: oklch(0.15 0.02 262.7 / 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  z-index: 91;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px oklch(0.15 0.015 262.7 / 0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { margin: 0; }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 0; }
.cart-line {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line-info { flex: 1; }
.cart-line-info .name { font-weight: 600; font-size: 14px; }
.cart-line-info .unit { color: var(--muted); font-size: 12px; }
.cart-line-price { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-line-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.cart-drawer-footer { padding: 22px 24px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: oklch(0.15 0.02 262.7 / 0.55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  text-align: center;
}
.modal-box h3 { margin-bottom: 10px; }
.modal-box p { color: var(--muted); margin-bottom: 20px; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Info cards */
.info-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.info-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { font-size: 16px; margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .label { color: var(--muted); min-width: 90px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.85fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand img { height: 48px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14px; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-static { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { display: inline; margin-bottom: 0; color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: #fff; }

/* Simple pages (privacy/terms/404) */
.prose h2 { margin-top: 34px; font-size: 20px; }
.prose p, .prose li { color: var(--muted); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
