/* Sportaxis E-commerce Styles */
:root {
  --primary: #0056b3;
  --primary-dark: #004494;
  --primary-light: #e8f0fa;
  --accent-red: #dc3545;
  --navy: #1a2b4a;
  --navy-dark: #0f1a2e;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f8f9fa;
  --deals-bg: #fff5f0;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* Header */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.search-form {
  flex: 1;
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.search-form input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--bg-light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.15);
  background: var(--white);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}
.search-suggestions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.search-suggestions a:hover { background: var(--bg-light); }
.search-suggestions img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.2s;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header-icon:hover { background: var(--bg-light); }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

.category-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.category-nav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
}
.category-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.category-nav a:hover, .category-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Flash messages */
.flash-container { padding-top: 12px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 420px;
}
.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.hero-stat {
  flex: 1;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
}
.hero-stat strong { display: block; font-size: 1.25rem; }
.hero-stat span { font-size: 0.8rem; opacity: 0.85; }
.hero-inner { max-width: 600px; }
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* Shop by sport */
.shop-by-sport { padding: 64px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}
.sport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sport-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sport-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.sport-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.sport-item span { font-weight: 600; font-size: 0.9rem; }

/* Trust bar — sits directly above footer on every page */
.trust-bar {
  background: var(--bg-light);
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.trust-bar--above-footer {
  border-bottom: none;
}
.trust-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon { font-size: 1.75rem; }
.trust-item strong { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.8rem; color: var(--text-muted); }

/* Product sections */
.featured-section { padding: 64px 0; }
.deals-section {
  padding: 64px 0;
  background: var(--deals-bg);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-header .section-title { margin-bottom: 0; text-align: left; }
.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.view-all:hover { text-decoration: underline; }
.sale-tag {
  background: var(--accent-red);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

/* Product grid & cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stock-badge.out {
  background: #1f2937;
  color: #fff;
}
.product-image-wrap img.dimmed {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.product-card.out-of-stock .product-name { color: var(--text-muted); }
.stock-info.stock-out { color: #b91c1c; font-weight: 600; }
.deal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.product-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--primary); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}
.stars { color: #f59e0b; }
.review-count { color: var(--text-muted); }
.product-price-row { display: flex; align-items: center; gap: 8px; }
.price { font-weight: 700; font-size: 1rem; }
.price-sale { font-weight: 700; font-size: 1rem; color: var(--accent-red); }
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.product-info .btn { margin-top: auto; }

/* Community CTA */
.community-cta {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  margin: 0;
}
.community-inner { text-align: center; }
.community-inner h2 { font-size: 2rem; margin-bottom: 12px; }
.community-inner p { opacity: 0.85; margin-bottom: 24px; }

/* Footer (trust bar sits directly above) */
.site-footer {
  background: var(--navy-dark);
  color: #9ca3af;
  padding: 64px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.footer-col p { font-size: 0.85rem; line-height: 1.6; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; }
.footer-col a:hover { color: var(--white); }
.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-newsletter input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #374151;
  border-radius: var(--radius);
  background: #1f2937;
  color: var(--white);
  font-size: 0.85rem;
}
.footer-newsletter button {
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* Page header */
.page-header {
  background: var(--bg-light);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.75rem; }
.page-header p { color: var(--text-muted); margin-top: 4px; }

/* Products page */
.products-page { padding: 48px 0; }
.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
.filters-sidebar h3:not(:first-child) {
  margin-top: 20px;
}
.filters-sidebar h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-list { margin-bottom: 24px; }
.filter-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.filter-list a:hover, .filter-list a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.filters-sidebar select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Product detail */
.product-detail-page { padding: 32px 0 64px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--primary); }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
}
.detail-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-gallery-main img,
.detail-gallery-main video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.detail-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gallery-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
}
.gallery-thumb.active { border-color: var(--primary, #2563eb); }
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.detail-info h1 { font-size: 1.75rem; margin: 8px 0 16px; }
.product-rating.large { margin-bottom: 16px; font-size: 1rem; }
.detail-price { margin-bottom: 20px; }
.detail-price .price, .detail-price .price-sale { font-size: 1.75rem; }
.detail-description { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.stock-info { font-size: 0.9rem; color: #059669; margin-bottom: 24px; }
.detail-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Size selector */
.size-selector-block { margin-bottom: 20px; }
.size-label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 0.9rem; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option {
  min-width: 56px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.size-option .size-stock { font-size: 0.65rem; font-weight: 400; color: var(--text-muted); }
.size-option:hover:not(.disabled):not(:disabled) { border-color: var(--primary); }
.size-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.size-option.disabled, .size-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--border); }
.qty-selector input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 1rem;
  padding: 8px 0;
}
.related-products h2 { font-size: 1.5rem; margin-bottom: 24px; }

/* Cart */
.cart-page { padding: 48px 0; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cart-item-info a { font-weight: 600; display: block; margin-bottom: 4px; }
.cart-item-info a:hover { color: var(--primary); }
.cart-line-price { font-size: 0.85rem; color: var(--text-muted); }
.cart-item-total { font-weight: 700; min-width: 80px; text-align: right; }
.cart-remove-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.cart-remove-btn:hover { color: var(--accent-red); }
.cart-summary {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 120px;
}
.cart-summary h3 { margin-bottom: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}
.total-row {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
}
.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--primary);
  font-size: 0.9rem;
}

/* Checkout */
.checkout-page { padding: 48px 0; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
}
.checkout-form h2 { margin-bottom: 24px; margin-top: 8px; }
.checkout-hint { color: var(--text-muted); margin: -12px 0 16px; font-size: 0.9rem; }
.checkout-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
}
.checkout-auth-banner.logged-in { background: #ecfdf5; border-color: #a7f3d0; }
.checkout-auth-banner p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.checkout-auth-actions { display: flex; gap: 8px; flex-shrink: 0; }
.payment-options { display: grid; gap: 12px; margin-bottom: 16px; }
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.payment-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
  background: var(--primary-light);
}
.payment-option input { margin-top: 4px; }
.payment-option-body { display: flex; flex-direction: column; gap: 2px; }
.payment-option-title { font-weight: 600; }
.payment-option-desc { font-size: 0.85rem; color: var(--text-muted); }
.payment-note, .checkout-guest-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.checkout-guest-note { text-align: center; margin-top: 10px; }
.order-success-id { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.order-success-details {
  max-width: 420px;
  margin: 0 auto 24px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  text-align: left;
}
.order-success-note { color: var(--text-muted); font-size: 0.95rem; }
.order-payment { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; }
.form-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.15);
}
.checkout-summary {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-lg);
  height: fit-content;
}
.checkout-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.checkout-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.checkout-item div { flex: 1; }

/* Auth */
.auth-page { padding: 64px 0; }
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 640px; }
.auth-subtitle { text-align: center; color: var(--text-muted); margin: -12px 0 24px; font-size: 0.95rem; }
.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-form-grid .form-group.full,
.auth-form-grid .form-actions.full { grid-column: 1 / -1; }
.auth-form-grid .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-form-grid select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
.auth-form-grid select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.15);
}
.auth-hint, .auth-dev-otp {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.auth-dev-otp { color: #b45309; background: #fffbeb; padding: 8px 10px; border-radius: var(--radius); }
.auth-forgot { text-align: center; margin-top: 12px; font-size: 0.9rem; }
.auth-forgot a { color: var(--primary); font-weight: 600; }
.otp-section.hidden { display: none; }
.auth-card h1 { margin-bottom: 24px; text-align: center; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Order success */
.order-success {
  padding: 80px 0;
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}
.order-success h1 { margin-bottom: 12px; }
.order-success p { color: var(--text-muted); margin-bottom: 24px; }

/* Empty state */
.empty-state, .empty-msg {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}
.empty-state .btn { margin-top: 16px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  position: relative;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-content h3 { margin-bottom: 8px; }
.modal-content p { color: var(--text-muted); margin-bottom: 20px; }
.modal-content input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.modal-content .btn { width: 100%; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  font-size: 0.9rem;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

.hidden { display: none !important; }

/* Right-side cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}
.cart-drawer.open {
  pointer-events: auto;
}
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-drawer.open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { font-size: 1.25rem; }
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-drawer-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
}
.drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.drawer-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-info strong {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-item-info span { font-size: 0.8rem; color: var(--text-muted); }
.drawer-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-item-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  border-radius: 4px;
  cursor: pointer;
}
.drawer-item-remove {
  background: none !important;
  border: none !important;
  color: var(--text-muted);
  font-size: 1.2rem;
}
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.drawer-summary-row.total {
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}

/* Account page */
.account-page { padding: 48px 0; }
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
.account-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-sidebar a {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.account-sidebar a:hover, .account-sidebar a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.account-main h2 { margin-bottom: 24px; }
.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.order-status {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.order-status.status-confirmed { background: #dbeafe; color: #1e40af; }
.order-status.status-processing { background: #fef3c7; color: #92400e; }
.order-status.status-shipped { background: #e0e7ff; color: #3730a3; }
.order-status.status-delivered { background: #d1fae5; color: #065f46; }
.order-status.status-cancelled { background: #fee2e2; color: #991b1b; }
.order-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

.delivery-tracking {
  margin: 16px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tracking-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tracking-cancelled { color: #b91c1c; font-weight: 600; }
.tracking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}
.tracking-step {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
@media (min-width: 640px) {
  .tracking-step { flex: 1 1 25%; flex-direction: column; align-items: flex-start; text-align: left; }
}
.tracking-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.tracking-step.step-done .tracking-dot { background: #22c55e; }
.tracking-step.step-done .tracking-label { color: var(--text); }
.tracking-step.step-current .tracking-dot {
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.tracking-step.step-current .tracking-label { color: var(--primary); font-weight: 600; }
.tracking-step.step-cancelled .tracking-dot { background: #ef4444; }
.tracking-history { margin-top: 12px; font-size: 0.85rem; }
.tracking-history summary { cursor: pointer; color: var(--primary); font-weight: 500; }
.tracking-history ul { margin-top: 8px; padding-left: 18px; color: var(--text-muted); }

.order-items { margin-bottom: 12px; list-style: none; }
.order-items li { font-size: 0.9rem; padding: 4px 0; }
.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .sport-grid { grid-template-columns: repeat(4, 1fr); }
}
.related-products { margin-top: 48px; }

/* Product detail — tabs & specs */
.product-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 72px;
  background: var(--bg);
  z-index: 5;
}
.product-detail-tabs a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
}
.product-detail-tabs a:hover,
.product-detail-tabs a.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}
.detail-section {
  margin-bottom: 40px;
  scroll-margin-top: 140px;
}
.detail-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.detail-section h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--text-muted);
}
.about-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.75;
}
.about-list li { margin-bottom: 8px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text);
}
.long-description {
  line-height: 1.75;
  color: var(--text-muted);
  white-space: pre-line;
}
.muted { color: var(--text-muted); font-size: 0.95rem; }
.review-summary { font-weight: 600; margin-bottom: 20px; }
.review-form-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
}
.review-form-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.review-form-card .hint { margin-bottom: 16px; font-size: 0.85rem; color: var(--text-muted); }
.review-form-card .form-row { margin-bottom: 14px; }
.review-form-card label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.review-form-card input,
.review-form-card select,
.review-form-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
}
.review-notice {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.review-notice.success { background: #ecfdf5; color: #047857; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.review-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.verified-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 4px;
}
.review-stars { color: #f59e0b; letter-spacing: 1px; margin-bottom: 6px; }
.review-card h4 { margin: 0 0 8px; font-size: 1rem; }
.review-card p { margin: 0 0 8px; line-height: 1.6; color: var(--text-muted); }
.review-date { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-content h1 { font-size: 2rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .sport-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .header-inner { flex-wrap: wrap; }
  .search-form { order: 3; max-width: 100%; width: 100%; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .sport-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
