/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1b2d42;
  --blue:       #1a56db;
  --blue-light: #ebf0ff;
  --green:      #0e7b3a;
  --green-light:#e9f7ef;
  --yellow:     #b45309;
  --yellow-light:#fef3c7;
  --sky:        #0369a1;
  --sky-light:  #e0f2fe;
  --red:        #b91c1c;
  --red-light:  #fee2e2;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --white:      #ffffff;

  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.15);
  --transition: 140ms ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  opacity: 0.65;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
  position: relative;
}
.cart-btn:hover { background: rgba(255,255,255,0.2); }

.cart-count {
  background: #ef4444;
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

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

/* ─── PRICING BANNER ───────────────────────────────────────── */
.price-banner {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 7px 20px;
  font-size: 0.85rem;
}

/* ─── HOW IT WORKS ──────────────────────────────────────────── */
.how-it-works {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 9px 20px;
}
.hiw-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
  font-size: 0.78rem;
  color: var(--gray-600);
}
.hiw-step { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.hiw-num {
  width: 18px;
  height: 18px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hiw-arrow { color: var(--gray-400); font-size: 0.85rem; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 8px;
}
.page-btn {
  padding: 8px 18px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover:not([disabled]) { border-color: var(--blue); color: var(--blue); }
.page-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.page-info { font-size: 0.85rem; color: var(--gray-600); white-space: nowrap; }

/* ─── ORDER TYPE TOGGLE ─────────────────────────────────────── */
.buyer-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.buyer-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.buyer-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  white-space: nowrap;
}

.buyer-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  padding: 8px 16px;
  transition: all var(--transition);
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.toggle-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.toggle-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.toggle-discount {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ─── MAIN LAYOUT ───────────────────────────────────────────── */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 24px 20px;
  align-items: start;
}

/* ─── FILTER BAR ────────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-50);
}

.search-input:focus {
  border-color: var(--blue);
  background: white;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

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

.filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

.filter-select {
  padding: 7px 28px 7px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--gray-50);
  color: var(--gray-800);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select:focus { border-color: var(--blue); }

.clear-btn {
  padding: 7px 12px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--gray-600);
  transition: all var(--transition);
  margin-top: auto;
}

.clear-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

.results-bar {
  margin-bottom: 12px;
}

.results-count {
  font-size: 0.85rem;
  color: var(--gray-600);
}

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

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.no-results {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--gray-600);
}

.hidden { display: none !important; }

.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ─── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.card-img {
  width: calc(100% + 32px);
  margin: -16px -16px 0 -16px;
  height: 180px;
  object-fit: contain;
  background: #f1f5f9;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px;
  box-sizing: border-box;
}

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

.product-card.unavailable { opacity: 0.85; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.brand-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
}

.brand-badge.wilson { background: #7c3aed; }
.brand-badge.easton { background: #059669; }
.brand-badge.rawlings { background: #dc2626; }

/* Stock badges */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.stock-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.stock-badge.in-stock {
  background: var(--green-light);
  color: var(--green);
}
.stock-badge.in-stock::before { background: var(--green); }

.stock-badge.backordered {
  background: var(--yellow-light);
  color: var(--yellow);
}
.stock-badge.backordered::before { background: var(--yellow); }

.stock-badge.coming-soon {
  background: var(--sky-light);
  color: var(--sky);
}
.stock-badge.coming-soon::before { background: var(--sky); }

.stock-badge.out-of-stock {
  background: var(--red-light);
  color: var(--red);
}
.stock-badge.out-of-stock::before { background: var(--red); }

/* ─── SIZE SELECTOR ─────────────────────────────────────────── */
.size-selector {
  margin: 10px 0 4px;
}
.size-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.size-btn {
  padding: 4px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  background: white;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  line-height: 1.4;
}
.size-btn:hover:not(.oos) {
  border-color: var(--blue);
  color: var(--blue);
}
.size-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}
.size-btn.oos {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Card body */
.card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  font-size: 0.7rem;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 500;
}
.meta-cat {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
}
.meta-sub {
  font-size: 0.65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-sku {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.card-stock-note {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-style: italic;
}

.release-date-note {
  font-size: 0.75rem;
  background: var(--sky-light);
  color: var(--sky);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius);
  display: inline-block;
}

/* Pricing */
.card-pricing {
  margin-top: auto;
}

.msrp-line {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.msrp-value {
  text-decoration: line-through;
}

.price-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}

.price-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

.price-savings {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 2px;
}

/* Add to order row */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-btn {
  background: var(--gray-100);
  border: none;
  width: 30px;
  height: 34px;
  font-size: 1rem;
  color: var(--gray-800);
  transition: background var(--transition);
}

.qty-btn:hover { background: var(--gray-200); }

.qty-input {
  width: 38px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  background: white;
}

.add-btn {
  flex: 1;
  padding: 8px 12px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.add-btn:hover { background: var(--blue); }
.add-btn:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}

.add-btn.in-cart {
  background: var(--green);
}
.add-btn.pre-order {
  background: var(--sky);
}
.add-btn.pre-order:hover { background: #0284c7; }

/* ─── CART SIDEBAR ──────────────────────────────────────────── */
.cart-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray-400);
  transition: color var(--transition);
  display: none;
}

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

.cart-buyer-type {
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.buyer-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.buyer-type-badge.team {
  background: var(--blue-light);
  color: var(--blue);
}

.buyer-type-badge.individual {
  background: var(--yellow-light);
  color: var(--yellow);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.cart-empty-sub {
  margin-top: 6px;
  font-size: 0.8rem;
}

/* Cart line item */
.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-sku {
  font-size: 0.7rem;
  color: var(--gray-400);
  font-family: monospace;
}

.cart-item-size {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.cart-item-each {
  font-size: 0.7rem;
  color: var(--gray-400);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-qty-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cart-qty-btn:hover { background: var(--gray-200); }

.cart-qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

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

/* Cart footer */
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.cart-note {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-bottom: 12px;
  line-height: 1.5;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition);
}

.checkout-btn:hover { background: #1648c4; }

/* ─── CHECKOUT MODAL ────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-backdrop.open { display: flex; }

.checkout-modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--navy);
  color: white;
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.modal-close:hover { color: white; }

.modal-body {
  padding: 24px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.modal-order-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.modal-order-summary h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-of-type { border-bottom: none; }

.summary-item-name { flex: 1; color: var(--navy); font-weight: 500; }
.summary-item-qty { color: var(--gray-600); white-space: nowrap; }
.summary-item-price { font-weight: 700; color: var(--navy); white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--gray-200);
}

/* Order form */
.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
}

.req { color: var(--red); }

.form-group input,
.form-group textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-50);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: var(--red);
  background: var(--red-light);
}

.form-group textarea { resize: vertical; }

.form-group select {
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-50);
  cursor: pointer;
}
.form-group select:focus { border-color: var(--blue); background: white; }
.form-group select.error { border-color: var(--red); background: var(--red-light); }

.form-group-full { grid-column: 1 / -1; margin-bottom: 14px; }

.form-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray-400);
}
.code-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-input-wrap input {
  flex: 1;
}
.code-status {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.code-valid   { color: var(--green); }
.code-invalid { color: #c0392b; }

.summary-size {
  display: inline-block;
  background: var(--gray-100);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-left: 4px;
}

.msrp-strike {
  text-decoration: line-through;
  color: var(--gray-400);
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 4px;
}

.preorder-wrap { min-height: 0; }
.preorder-badge {
  background: var(--sky-light);
  color: var(--sky);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-primary {
  flex: 1;
  padding: 12px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition);
}

.btn-primary:hover { background: #1648c4; }
.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.order-reminders {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 0 0 6px;
  line-height: 1.5;
}

.form-fine-print {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Delivery badges & Venmo note in checkout modal */
.delivery-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.team-badge  { background: var(--blue-light);  color: var(--blue);   }
.indiv-badge { background: var(--yellow-light); color: var(--yellow); }

.donation-note {
  font-size: 0.78rem;
  color: var(--green);
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 8px 0;
  font-weight: 500;
}

.venmo-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 12px;
}

/* ─── MOBILE CART BAR ───────────────────────────────────────── */
.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navy);
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.2);
}

.mobile-cart-open {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue);
  border: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.mobile-cart-summary {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Cart overlay for mobile */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--gray-400);
  font-size: 0.82rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 24px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }

  .cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 90vw);
    height: 100%;
    max-height: 100%;
    z-index: 95;
    border-radius: 0;
    border-left: 1px solid var(--gray-200);
    transition: right 0.25s ease;
  }

  .cart-sidebar.open {
    right: 0;
  }

  .cart-overlay.open {
    display: block;
  }

  .cart-close {
    display: block;
  }

  .mobile-cart-bar {
    display: block;
  }
}

@media (max-width: 600px) {
  .filter-chips { flex-direction: column; }
  .filter-select { width: 100%; }
  .buyer-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .checkout-modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
}

/* ─── CATALOG LINK ─────────────────────────────────────────────────── */
.card-catalog-link {
  margin-top: 6px;
  text-align: center;
}
.catalog-link-btn {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gray-500);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 3px 10px;
  transition: color 140ms, border-color 140ms;
}
.catalog-link-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  text-decoration: none;
}

/* ─── CATALOG BANNER ────────────────────────────────────────────────── */
.catalog-banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--navy);
}
.catalog-covers {
  display: flex;
  width: 100%;
  height: 100%;
}
.catalog-cover-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.78;
  display: block;
}
.catalog-banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  background: linear-gradient(transparent, rgba(13,27,42,0.88));
  color: white;
}
.catalog-banner-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.catalog-banner-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@media (max-width: 640px) {
  .catalog-banner { height: 180px; }
  .catalog-banner-text { padding: 12px 16px; }
  .catalog-banner-title { font-size: 1rem; }
}

/* ─── BATTING GLOVES COLOR NOTE ─────────────────────────────────────── */
.color-note {
  font-size: 0.72rem;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 4px 8px;
  margin: 4px 0;
  text-align: center;
}
