/* ═══════════════════════════════════════════════════════════════
   UNCS Seasonal Catalog — Dark theme matching UNCS design system
   WHY: Consistent visual language across uncs.ai, products.uncs.com,
   and now seasonal.uncs.com. IBM Plex Sans/Mono, dark background,
   teal/blue accents.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --bg-hover: #2d3a4f;
  --border: #475569;
  --border-subtle: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --transition: 150ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header / Navbar ─────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-teal);
}

.nav-season {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus { border-color: var(--accent-blue); }

.nav-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-teal);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.cart-btn:hover { background: #0d9488; }

.cart-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

/* ── Hero Section ────────────────────────────────────────── */

.hero {
  padding: 48px 24px 32px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero h1 span { color: var(--accent-teal); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-teal);
  font-family: var(--font-mono);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── KPI Bar ─────────────────────────────────────────────── */

.kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-teal);
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Main Layout (Sidebar + Grid) ────────────────────────── */

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 300px);
}

/* ── Sidebar ─────────────────────────────────────────────── */

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group-title .clear-btn {
  font-size: 10px;
  color: var(--accent-blue);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

.filter-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
}

.filter-list li {
  padding: 4px 0;
}

.filter-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.filter-list button:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.filter-list button.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  font-weight: 500;
}

.filter-count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-range input {
  width: 100%;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.filter-range input::placeholder { color: var(--text-muted); }

.filter-select {
  width: 100%;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.filter-apply-btn {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.filter-apply-btn:hover { background: #2563eb; }

.filter-reset-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-reset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border);
}

/* ── Seasonal Preset Bar ─────────────────────────────────── */

.preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  flex-shrink: 0;
}

.preset-btn {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.preset-btn:hover {
  border-color: var(--border);
  color: var(--text-primary);
}

.preset-btn.active {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #fff;
  font-weight: 600;
}

/* ── Completeness Bar on Cards ───────────────────────────── */

.card-completeness-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #000;
  letter-spacing: 0.02em;
}

/* ── Missing Field Tags ──────────────────────────────────── */

.missing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.missing-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── Product Grid ────────────────────────────────────────── */

.grid-container {
  padding: 20px 24px;
}

.grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.grid-result-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.grid-result-count strong {
  color: var(--text-primary);
}

.grid-sort select {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Product Card ────────────────────────────────────────── */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
}

.product-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 40px;
}

.product-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-brand {
  font-size: 12px;
  color: var(--accent-teal);
  font-weight: 500;
}

.product-card-category {
  display: inline-block;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.product-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.product-card-meta-item {
  display: flex;
  flex-direction: column;
}

.product-card-meta-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card-meta-value {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.product-card-meta-value.price {
  color: var(--green);
}

.product-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
}

.add-to-order-btn {
  width: 100%;
  padding: 8px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.add-to-order-btn:hover { background: #2563eb; }

.add-to-order-btn.added {
  background: var(--green);
  pointer-events: none;
}

/* ── Pagination ──────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}

.pagination button {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.pagination button.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 8px;
}

/* ── Product Detail Page ─────────────────────────────────── */

.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  cursor: pointer;
}

.detail-back:hover { color: var(--text-primary); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.detail-image-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.detail-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.detail-brand {
  font-size: 16px;
  color: var(--accent-teal);
  font-weight: 500;
}

.detail-category-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 4px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-sell-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-sell-points li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.detail-sell-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.detail-restrictions {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
}

.detail-restrictions strong {
  display: block;
  margin-bottom: 4px;
}

/* ── Offers Table ────────────────────────────────────────── */

.offers-section {
  margin-top: 32px;
}

.offers-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.offers-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-weight: 600;
}

.offers-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.offers-table tr:hover td {
  background: var(--bg-hover);
}

.offers-table .price-cell {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.offers-table .qty-cell {
  font-family: var(--font-mono);
}

/* ── Market Comps ────────────────────────────────────────── */

.market-comps {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.market-comps h3 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.market-comps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.market-comp-item {
  text-align: center;
}

.market-comp-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

.market-comp-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Add to Order (Detail page) ──────────────────────────── */

.detail-add-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qty-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-input-group label {
  font-size: 13px;
  color: var(--text-secondary);
}

.qty-input {
  width: 100px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  outline: none;
}

.detail-add-btn {
  padding: 10px 24px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.detail-add-btn:hover { background: #2563eb; }

/* ── Cart Page ───────────────────────────────────────────── */

.cart-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.cart-layout h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty p {
  font-size: 16px;
  margin-bottom: 16px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.cart-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-weight: 600;
}

.cart-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-brand {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-qty-input {
  width: 80px;
  padding: 6px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  outline: none;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  transition: color var(--transition);
}

.cart-remove-btn:hover { color: var(--red); }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Contact Form ────────────────────────────────────────── */

.inquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.inquiry-form h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group label .required {
  color: var(--red);
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.submit-inquiry-btn {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  background: var(--accent-teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.submit-inquiry-btn:hover { background: #0d9488; }
.submit-inquiry-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Confirmation ────────────────────────────────────────── */

.confirmation {
  text-align: center;
  padding: 60px 20px;
}

.confirmation-icon {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
}

.confirmation h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.confirmation .inquiry-id {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-teal);
  margin-bottom: 16px;
}

.confirmation p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a { color: var(--text-secondary); }

/* ── Auth Gate ────────────────────────────────────────────── */

.auth-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.auth-logo span {
  color: var(--accent-teal);
}

.auth-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.auth-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-login-btn {
  width: 100%;
  padding: 14px 24px;
  background: #2F2F2F;
  color: #fff;
  border: 1px solid #666;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-login-btn::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 23'%3E%3Cpath fill='%23f25022' d='M1 1h10v10H1z'/%3E%3Cpath fill='%2300a4ef' d='M1 12h10v10H1z'/%3E%3Cpath fill='%237fba00' d='M12 1h10v10H12z'/%3E%3Cpath fill='%23ffb900' d='M12 12h10v10H12z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.auth-login-btn:hover { background: #404040; }

.auth-error {
  margin-top: 16px;
  font-size: 13px;
  color: var(--red);
  min-height: 20px;
}

/* ── Nav user/logout ─────────────────────────────────────── */

.nav-user {
  font-size: 13px;
  color: var(--text-secondary);
}

.nav-logout-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-logout-btn:hover {
  border-color: var(--border);
  color: var(--text-primary);
}

/* ── Loading / Empty States ──────────────────────────────── */

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 16px; }
  .hero-stat-value { font-size: 22px; }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-search {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar { padding: 0 12px; }
  .grid-container { padding: 12px; }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .product-card-image { height: 140px; }
  .product-card-body { padding: 10px; }
  .product-card-meta { grid-template-columns: 1fr; }
}
