/* SwingStock – Optimized Styles
 * 
 * TABLE OF CONTENTS:
 * 1. Tokens & Resets
 * 2. Layout Primitives
 * 3. Global UI Components
 * 4. Global Chrome (Header/Nav/Footer)
 * 5. Sections & Pages
 * 6. Overlays & Modals
 * 7. Media Queries
 * 8. Utilities
 */

/* ===== 1. TOKENS & RESETS ===== */
:root {
  --primary: #009471;
  --primary-weak: #e6f7f4;
  --primary-strong: #0B876E;
  --surface: #ffffff;
  --surface-2: #F6F7F8;
  --ink: #111111;
  --ink-weak: #6B7280;
  --ink-strong: #4A4A4A;
  --border: #e5e7eb;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-1: 6px;
  --radius-2: 12px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06);
  --shadow-2: 0 6px 18px rgba(0,0,0,.08);
  --shadow-3: 0 12px 32px rgba(0,0,0,.12);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--surface-2);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===== 2. LAYOUT PRIMITIVES ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ===== 3. GLOBAL UI COMPONENTS ===== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: var(--radius-2);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: all .15s ease;
  min-height: 44px;
}

.btn:hover { box-shadow: var(--shadow-1); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost {
  background: rgba(0,0,0,0.35) !important;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.55) !important;
  border-color: #fff;
  box-shadow: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
}
.btn-large {
  padding: .875rem 1.5rem;
  font-size: 1.125rem;
  min-height: 48px;
}
.btn-small {
  font-size: 0.875rem;
  padding: var(--space-2) var(--space-3);
  min-height: 36px;
}

.condition-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  margin-right: 12px;
}

.condition-badge.good { background: #0891b2; }
.condition-badge.very-good { background: #059669; }
.condition-badge.like-new { background: var(--primary); }

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.error-state {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-weak);
}

/* ===== 4. GLOBAL CHROME ===== */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: block !important;
  background: #009471;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 36px;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  padding: 0 var(--space-4);
}

.announce-text {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 45;
  height: 72px;
}

.main-nav {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
  margin-right: 2rem;
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: 150px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-strong, #4A4A4A);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
}

.nav-new-link {
   background: var(--primary-weak) !important;
   color: var(--primary-strong) !important;
   border-radius: 6px !important;
   font-weight: 700 !important;
 }

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-strong, #4A4A4A);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 0.15s;
  font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
  color: var(--primary);
}

.dropdown-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-strong, #4A4A4A);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-2, #f5f5f5);
  color: var(--primary);
}
 
 .nav-new-link:hover {
   background: var(--primary) !important;
   color: white !important;
 }

/* Nav layout — flex-based (supports search bar) */
.nav-links {
  flex: 1;
  justify-content: center;
}

.nav-search {
  flex: 0 0 auto;
  position: relative;
  width: 210px;
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  transition: width 0.2s ease;
}
.nav-search:focus-within { width: 250px; }
@media (max-width: 900px) { .nav-search { display: none !important; } }

.nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-weak);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  pointer-events: none;
}

.nav-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  outline: none;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.nav-search input::placeholder { color: var(--ink-weak); }
.nav-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0,148,113,0.1);
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
  position: relative;
}
.nav-icon-btn:hover { background: rgba(0,148,113,0.08); color: var(--primary); }

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  height: auto;
}

.search-toggle,
.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.search-toggle:hover,
.cart-toggle:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.search-toggle svg,
.cart-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: var(--surface-2);
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 2px 0;
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--surface);
  padding: 2rem 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem 2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links a:hover {
  background: var(--surface-2);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 0;
  color: var(--ink-weak);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  align-items: start;
}

.footer-brand {
  max-width: 260px;
}
.footer-brand p {
  margin: 0 0 0.6rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.footer-logo img {
  height: 36px;
  width: 150px;
  object-fit: contain;
}

.footer-description {
  margin: 0 0 0.6rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-weak);
}

.footer-nav {
  display: contents;
}

.footer-section h4 {
  margin: 0 0 var(--space-3) 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: block;
  padding: var(--space-1) 0;
  color: var(--ink-weak);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.footer-newsletter-desc {
  font-size: 0.8rem;
  color: var(--ink-weak);
  margin: 0 0 0.75rem;
}
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-newsletter-form input[type="email"] {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-1);
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.footer-newsletter-form button {
  padding: 8px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-1);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.footer-newsletter-form button:hover { background: var(--primary-dark, #007a5e); }
.footer-social-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.footer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2, #f4f4f4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-weak);
  transition: background 0.15s, color 0.15s;
}
.footer-social-icon:hover { background: var(--primary); color: white; }

.footer-bottom {
  background: #009471;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--space-4) 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: #fff;
}

/* ===== 5. SECTIONS & PAGES ===== */
.hero {
  position: relative;
  min-height: 70vh;
  padding-block: 3rem;
  background: 
    linear-gradient(180deg, rgba(17,17,17,0.06) 0%, rgba(17,17,17,0.02) 60%, rgba(17,17,17,0) 100%),
    url("/assets/hero.jpg") center/cover no-repeat;
  border-radius: 1rem;
  display: flex;
  align-items: center;
}

.hero-text-container {
   position: relative;
   z-index: 2;
 }
 
 .hero-text-container::before {
   content: '';
   position: absolute;
   top: -20px;
   left: -40px;
   right: -40px;
   bottom: -20px;
   background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 100%);
   border-radius: 1rem;
   z-index: -1;
   pointer-events: none;
 }

 .hero-cta {
   border: 2px solid rgba(255,255,255,0.3);
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   transition: all 0.2s ease;
 }
 
 .hero-cta:hover {
   transform: translateY(-2px);
   filter: brightness(1.03);
   box-shadow: 0 6px 20px rgba(0,0,0,0.2);
 }
 
 .hero-cta:focus-visible {
   outline: 2px solid rgba(255,255,255,0.8);
   outline-offset: 2px;
 }

/* Hero carousel — primary styles live in index.html inline <style> block */
.hero-actions {
  display: block;
  margin-top: 0.5rem;
}

/* RESTORED TRUST BAR - Working Version */
.trust-chips {
  padding: 16px 0;
  margin-top: -24px;
  position: relative;
  z-index: 5;
}

.chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--primary);
  border-radius: var(--radius-2);
  padding: 12px 16px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--primary);
  transition: all 0.15s ease;
}

.chips-row:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.chip-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.chip-divider {
  color: #ffffff;
  opacity: 0.7;
  font-weight: bold;
  margin: 0 2px;
}

/* Remove underlines from trust bar chips */
.chips-row a.chip,
.chips-row a.chip:link,
.chips-row a.chip:visited,
.chips-row a.chip:hover,
.chips-row a.chip:focus {
  text-decoration: none;
}

.product-showcase {
  padding: var(--space-5) 0 var(--space-6) 0;
  background: var(--surface);
}

.product-showcase h2 {
  margin: 0 0 var(--space-5) 0;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: stretch;
}

.products-grid[data-section="home-showcase"] {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-5);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.products-grid[data-section="home-showcase"]::-webkit-scrollbar {
  height: 6px;
}

.products-grid[data-section="home-showcase"]::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 3px;
}

.products-grid[data-section="home-showcase"]::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  overflow: hidden;
  transition: all 0.2s ease;
  will-change: transform, box-shadow;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card,
.product-card:hover,
.product-card:focus,
.product-card:visited {
  text-decoration: none !important;
}

.product-card:hover,
.product-card:focus {
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-weak);
}

.product-card * {
  text-decoration: none !important;
}
.product-card s {
  text-decoration: line-through !important;
}

.product-card a,
.product-card a:hover,
.product-card a:focus,
.product-card a:visited {
  text-decoration: none !important;
  color: inherit !important;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-weak);
}

/* Fix: Remove underlines from product titles in cards */
.products-grid .product-card-link,
.products-grid .product-card-link:hover,
.products-grid .product-card-link:focus,
.products-grid .product-card-link:visited,
.products-grid .product-card .product-title {
  text-decoration: none !important;
}

.products-grid[data-section="home-showcase"] .product-card {
  flex: 0 0 280px;
  max-width: 280px;
}

.badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 24px);
  align-items: flex-start;
  z-index: 2;
}

.product-badge {
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-badge.condition-like-new,
.product-badge.condition-very-good, 
.product-badge.condition-good {
  display: none;
}

.product-badge.condition-like-new { background: var(--primary); }
.product-badge.condition-very-good { background: #059669; }
.product-badge.condition-good { background: #0891b2; }
.product-badge.stock-low { background: #dc2626; }
.product-badge.delivery { background: var(--primary); }
.product-badge.product-new { background: #dc2626; color: white; font-weight: 700; }

.product-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.product-details {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px;
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.product-card .product-title,
.product-card:hover .product-title,
.product-card:focus .product-title {
  text-decoration: none;
}

.product-specs {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: calc(1.4em * 1);
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-weak);
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.product-condition {
  font-size: 14px;
  color: var(--ink-weak);
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-now {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
}
.price-was {
  font-size: 0.875rem;
  color: var(--ink-weak);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary);
  margin: 3px 0 0;
}

.product-btn {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  padding: 8px 12px;
  min-height: 38px;
  margin-bottom: 0;
}

.categories { 
  padding: var(--space-6) 0; 
  background: var(--surface); 
}

.categories h2 {
  margin-bottom: var(--space-6);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-1);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: all .15s ease;
  text-align: center;
  min-height: 120px;
}

.category-card:hover,
.category-card:focus { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-2);
  border-color: var(--primary);
  background: var(--primary-weak);
}

.category-icon {
  width: 70px;
  height: 70px;
  margin-bottom: var(--space-1);
  object-fit: contain;
  display: block;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  padding: 4px;
  box-shadow: var(--shadow-1);
  transition: all 0.15s ease;
}

.category-card:hover .category-icon {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
  transform: scale(1.05);
}

.category-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.category-card h3 {
  margin: 0 0 var(--space-1) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.category-caption {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-weak);
  font-weight: 500;
}

.testimonials { 
  background: var(--surface); 
  padding: 4rem 0; 
}

.testimonials .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.testimonials-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.review-card:hover,
.review-card:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  text-decoration: none;
}

.review-stars {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 16px;
  color: #f59e0b;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-strong);
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
  position: relative;
}

.review-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-weak);
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: Georgia, serif;
  line-height: 1;
}

.review-quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-weak);
  position: absolute;
  bottom: -20px;
  right: 10px;
  font-family: Georgia, serif;
  line-height: 1;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.review-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.review-source {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-weak);
  align-self: flex-start;
  font-weight: 500;
}

.testimonials-cta {
  text-align: center;
}

.testimonials-cta .btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
}

.about-us { 
  padding: var(--space-6) 0; 
  background: var(--surface); 
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  margin: 0 0 var(--space-4) 0;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-content p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-weak);
}

/* Contact Page */
.contact-hero {
  padding: calc(72px + 36px + var(--space-6)) 0 var(--space-6);
  background: var(--surface);
  text-align: center;
}

.contact-hero h1 {
  margin: 0 0 var(--space-3) 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
}

.contact-hero p {
  margin: 0;
  color: var(--ink-weak);
  font-size: 1.125rem;
}

.contact-content {
  padding: var(--space-6) 0;
  background: var(--surface-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 var(--space-4) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-info p {
  margin: 0 0 var(--space-5) 0;
  color: var(--ink-weak);
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-item p {
  margin: 0;
  color: var(--ink-weak);
  line-height: 1.5;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-5);
}

.contact-form h2 {
  margin: 0 0 var(--space-5) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-weak);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.error-text {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.875rem;
  color: #dc2626;
  font-weight: 500;
}

.error-text:empty {
  display: none;
}

.form-fallback {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  text-align: center;
}

.form-fallback p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-weak);
}

.form-fallback a {
  color: var(--primary);
  text-decoration: underline;
}

.success-panel,
.error-panel {
  padding: var(--space-5);
  border-radius: var(--radius-2);
  text-align: center;
}

.success-panel {
  background: var(--primary-weak);
  border: 1px solid var(--primary);
  color: var(--primary-strong);
}

.error-panel {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.success-actions,
.error-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.content-page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-page-wrapper h2 {
  margin: var(--space-5) 0 var(--space-3) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.content-page-wrapper h3 {
  margin: var(--space-4) 0 var(--space-2) 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.content-page-wrapper ul, 
.content-page-wrapper ol {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
}

.content-page-wrapper li {
  margin: var(--space-1) 0;
}

.content-page-wrapper p {
  margin: var(--space-3) 0;
}

/* Unify page hero titles (Contact + ALL collections) */
.contact-hero h1,
body.collection-page .collection-header h1 {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

/* Collection Pages */
.collection-header {
  padding: var(--space-5) 0 var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  color: var(--ink-weak);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--primary-strong);
}

.collection-header h1 {
  margin: 0 0 var(--space-2) 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}

.collection-header p {
  margin: 0;
  color: var(--ink-weak);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Collection pages – larger titles (scoped) */
body.collection-page[data-page="all-clubs"] .collection-header h1,
body.collection-page[data-page="iron-sets"] .collection-header h1,
body.collection-page[data-page="putters"] .collection-header h1,
body.collection-page[data-page="wedges"] .collection-header h1,
body.collection-page[data-page="woods"] .collection-header h1 {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

/* Drivers page – scoped H1 tone/alignment only */
body.collection-page[data-page="drivers"] .collection-header h1 {
  color: var(--ink-strong);       /* softer than pure ink */
  font-weight: 700;               /* keep strong, not shouty */
  text-align: left;               /* anchor to content grid */
  letter-spacing: -0.015em;       /* optical tightening */
  margin-block-start: clamp(12px, 2.5vw, 24px);
  margin-block-end: clamp(8px, 1.5vw, 16px);
}

.collection-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.collection-content {
  padding: var(--space-6) 0;
  background: var(--surface-2);
}

/* Ensure collection headers appear below sticky site header + announce bar */
body:not(.announce-dismissed) .collection-header {
  padding-top: calc(72px + 36px + var(--space-5));
}
body.announce-dismissed .collection-header {
  padding-top: calc(72px + var(--space-5));
}

.collection-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  position: sticky;
  top: calc(72px + var(--space-4));
}

.filter-section {
  margin-bottom: var(--space-4);
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.filter-options {
  border: none;
  margin: 0;
  padding: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: calc(var(--space-1) * 0.75) 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.filter-option span {
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.4;
}

.price-range {
  margin-top: var(--space-2);
}

.price-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2);
  width: 100%;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.price-input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-weak);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.price-input-group input {
  padding: var(--space-2);
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--ink);
}

.price-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-weak);
}

.filter-actions {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-actions .btn {
  flex: 1;
}

.collection-main {
  min-width: 0;
}

.collection-intro {
  margin-bottom: var(--space-4);
}
.collection-intro p {
  font-size: 0.9rem;
  color: var(--ink-weak);
  line-height: 1.7;
  margin: 0;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

.results-count {
  font-size: 0.875rem;
  color: var(--ink-weak);
  font-weight: 500;
}

.sort-select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  min-width: 160px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-weak);
}

.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-filter-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-2) var(--radius-2) 0 0;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-filter-overlay.active .mobile-filter-drawer {
  transform: translateY(0);
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.mobile-filter-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-filter-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-1);
}

.mobile-filter-close:hover {
  background: var(--surface-2);
}

.mobile-filter-content {
  padding: var(--space-4);
}

.mobile-filter-actions {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

.mobile-filter-actions .btn {
  flex: 1;
}

.collection-reviews {
  padding: var(--space-6) 0;
  background: var(--surface);
}

.collection-reviews h2 {
  text-align: center;
  margin-bottom: var(--space-5);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
}

.collection-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.collection-review-card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  text-align: center;
}

.collection-review-stars {
  font-size: 1.25rem;
  color: #f59e0b;
  margin-bottom: var(--space-3);
}

.collection-review-quote {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-weak);
  font-style: italic;
}

.collection-reviews-cta {
  text-align: center;
}

.loading-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  overflow: hidden;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--surface-2);
}

.skeleton-content {
  padding: var(--space-3);
}

.skeleton-title,
.skeleton-specs,
.skeleton-price,
.skeleton-button {
  background: var(--surface-2);
  border-radius: var(--radius-1);
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 20px;
  width: 80%;
}

.skeleton-specs {
  height: 16px;
  width: 90%;
}

.skeleton-price {
  height: 18px;
  width: 60%;
}

.skeleton-button {
  height: 38px;
  width: 100%;
  margin-bottom: 0;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-1);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.pagination a:hover {
  background: var(--primary-weak);
  border-color: var(--primary);
  color: var(--primary-strong);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.section-footer {
  text-align: center;
}

/* Reviews Carousel Styles - Scoped to reviews section only */

.reviews-carousel-section {
  padding: 4rem 0;
  background: var(--surface);
}

.reviews-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reviews-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.reviews-section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.reviews-header-controls {
  display: flex;
  gap: 8px;
}

.carousel-nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ink-weak);
}

.carousel-nav:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#reviews-carousel-container {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.reviews-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 100%;
  padding: 0 12px;
}

@media (min-width: 1024px) {
  .review-slide { flex: 0 0 33.333%; }
}

.reviews-carousel-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.reviews-trademe-btn {
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.reviews-trademe-btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

/* Reviews carousel specific review card styling */
.reviews-carousel-section .review-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.reviews-carousel-section .review-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.reviews-carousel-section .review-source {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

/* ===== 6. OVERLAYS & MODALS ===== */
.cart-overlay, .checkout-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); z-index: 200;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cart-overlay.active, .checkout-overlay.active { opacity: 1; visibility: visible; }

#cart-drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 90vw); height: 100vh; height: 100dvh;
  background: var(--surface); box-shadow: var(--shadow-3); z-index: 201;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
#cart-drawer.active { transform: translateX(0); }

.cart-header {
  padding: var(--space-4); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box;
}
.cart-header h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); flex: 1; white-space: nowrap; }
.cart-close { 
  background: none; border: none; padding: var(--space-2); cursor: pointer; 
  color: var(--ink-weak); border-radius: var(--radius-1);
}
.cart-close:hover { color: var(--ink); background: var(--surface-2); }

.cart-content { flex: 1; overflow-y: auto; padding: var(--space-4); }
.cart-items { display: flex; flex-direction: column; gap: var(--space-3); }
.cart-item {
  display: flex; gap: var(--space-3); align-items: center;
  padding: var(--space-3);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s ease;
}
.cart-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.cart-item-image {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: var(--radius-1); flex-shrink: 0; background: var(--surface);
  border: 1px solid var(--border);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title {
  margin: 0 0 var(--space-1) 0; font-size: 0.875rem;
  font-weight: 600; color: var(--ink); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.cart-item-remove {
  background: none; border: none; padding: var(--space-1); cursor: pointer;
  color: var(--ink-weak); border-radius: var(--radius-1); flex-shrink: 0;
  opacity: 0.5; transition: opacity 0.15s ease;
}
.cart-item-remove:hover { opacity: 1; color: #dc2626; background: #fee2e2; }

.cart-empty { 
  text-align: center; padding: var(--space-6) var(--space-4); color: var(--ink-weak); 
}
.cart-empty p { margin: 0 0 var(--space-4) 0; }

.cart-footer {
  padding: var(--space-4); border-top: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.cart-subtotal-label { font-size: 0.9rem; font-weight: 500; color: var(--ink-weak); }
.cart-subtotal-amount { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.cart-actions { display: flex; flex-direction: column; gap: var(--space-2); }
.cart-checkout {
  width: 100%; padding: 0.875rem 1rem;
  background: var(--ink); color: #fff;
  border: none; border-radius: var(--radius-2);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.15s; box-sizing: border-box;
}
.cart-checkout:hover { background: #333; }
.cart-checkout:disabled { background: var(--border); color: var(--ink-weak); cursor: not-allowed; }
.cart-continue {
  width: 100%; padding: 0.75rem 1rem;
  background: none; color: var(--ink-weak);
  border: 1px solid var(--border); border-radius: var(--radius-2);
  font-size: 0.875rem; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s; box-sizing: border-box;
}
.cart-continue:hover { border-color: var(--primary); color: var(--primary); }

#checkout-modal {
  position: fixed; top: 50%; left: 50%;
  width: min(600px, 95vw); max-height: 90vh;
  background: var(--surface); border-radius: var(--radius-2);
  box-shadow: var(--shadow-3); z-index: 201;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
#checkout-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1; visibility: visible;
}
@media (max-width: 600px) {
  #checkout-modal {
    top: 0; left: 0;
    width: 100%; max-height: 100%;
    height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s ease;
  }
  #checkout-modal.active {
    transform: translateY(0);
  }
}

.checkout-header {
  padding: var(--space-4); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
  flex-shrink: 0;
}
.checkout-header h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.checkout-close {
  background: none; border: none; padding: var(--space-2); cursor: pointer;
  color: var(--ink-weak); border-radius: var(--radius-1);
}
.checkout-close:hover { color: var(--ink); background: var(--surface-2); }

.checkout-content { padding: var(--space-4); }
.cart-summary { 
  margin-bottom: var(--space-4); padding: var(--space-3); 
  background: var(--surface-2); border-radius: var(--radius-2);
}
.cart-summary h4 { 
  margin: 0 0 var(--space-2) 0; font-size: 0.875rem; 
  font-weight: 600; color: var(--ink); 
}
.cart-summary ul { margin: 0; padding: 0 0 0 var(--space-4); }
.cart-summary li { 
  margin: var(--space-1) 0; font-size: 0.875rem; color: var(--ink-weak); 
}
.cart-summary a { color: var(--primary); text-decoration: none; }
.cart-summary a:hover { text-decoration: underline; }

.checkout-success { 
  display: none; text-align: center; padding: var(--space-5); 
  color: var(--primary-strong); 
}
.checkout-success h3 { margin: 0 0 var(--space-3) 0; color: var(--primary-strong); }
.checkout-success p { margin: 0; color: var(--ink-weak); }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  margin: 0 0 var(--space-3) 0;
  color: var(--ink);
}

.modal-content p {
  margin: 0 0 var(--space-4) 0;
  color: var(--ink-weak);
}

.modal-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.modal-form input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

/* Product Modal */
/* ===== PRODUCT MODAL — redesigned ===== */
.product-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  padding: 16px;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.product-modal-overlay.active .product-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.15s;
}
.product-modal-close:hover { background: white; }
.product-modal-close svg { width: 18px; height: 18px; }

/* Scrollable area */
.pm-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Gallery */
.pm-gallery {}
.product-modal .main-image-container {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}
.product-modal .main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Thumbnails — horizontal row */
.product-modal .thumbnail-gallery {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  width: 100px; /* Increased from 60px */
  max-height: 420px;
  align-items: flex-start;
}

.thumbnail {
  width: 90px; /* Increased from 48px */
  height: 90px; /* Increased from 48px */
  border: 2px solid var(--border);
  border-radius: 6px; /* Slightly larger radius */
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05); /* Add slight zoom on hover */
}

.thumbnail:hover,
}
.product-modal .thumbnail-gallery::-webkit-scrollbar { display: none; }
.product-modal .thumbnail-wrapper { flex-shrink: 0; }
.product-modal .thumbnail {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.15s;
}
.product-modal .thumbnail.active,
.product-modal .thumbnail:hover { border-color: var(--primary); }
.product-modal .thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gallery nav arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: background 0.15s;
}
.gallery-nav:hover { background: white; }
.gallery-nav svg { width: 16px; height: 16px; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

/* Product body */
.pm-body {
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Pipe-separated spec tags */
.pm-spec-tags {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Title */
.pm-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

/* Price block */
.pm-price-block { margin-top: 0.25rem; margin-bottom: 0.75rem; }
.pm-price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pm-retail-price {
  font-size: 0.875rem;
  color: var(--ink-weak);
  font-weight: 500;
}

/* Spec grid */
.pm-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pm-spec-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 7px 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}
.pm-spec-row:last-child { border-bottom: none; }
.pm-spec-row:nth-child(odd) { background: var(--surface-2); }
.pm-spec-label {
  font-weight: 600;
  color: var(--ink);
  flex: 0 0 90px;
  min-width: 90px;
}
.pm-spec-value {
  color: var(--ink-weak);
  flex: 1;
}

/* Description */
.pm-desc {
  font-size: 0.82rem;
  color: var(--ink-weak);
  line-height: 1.6;
  padding: 0.625rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

/* Action footer */
.product-modal__actions {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.buy-now-modal {
  flex: 1;
  padding: 0.8125rem 1.25rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1;
}
.buy-now-modal:hover:not(:disabled) { background: var(--ink); color: white; }
.buy-now-modal:disabled { opacity: 0.45; cursor: not-allowed; }

.add-to-cart-modal {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.add-to-cart-modal:hover:not(:disabled) { background: var(--ink); color: white; }
.add-to-cart-modal:disabled { opacity: 0.45; cursor: not-allowed; }
.add-to-cart-modal svg { width: 20px; height: 20px; }

/* ===== 7. MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.collection-page #products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .product-modal {
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
    width: 100%;
  }
  .product-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

@media (max-width: 768px) {
  
  .product-modal__actions {
   flex-direction: column;
   gap: 8px;
  }
  
  .product-modal__actions .btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .nav-links,
  .nav-actions .contact-link {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-filter-toggle {
    display: none !important;
  }
  
  .collection-layout {
    grid-template-columns: 200px 1fr !important;
    gap: var(--space-3) !important;
  }
  
  .collection-sidebar {
    display: block !important;
    padding: var(--space-3) !important;
    position: sticky;
    top: calc(72px + var(--space-3));
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .main-nav { 
    flex-wrap: wrap; 
    gap: var(--space-2); 
  }
  
  .category-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  
  .products-grid[data-section="home-showcase"] .product-card {
    flex: 0 0 240px;
    max-width: 240px;
  }
  
  #products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
  
  .collection-reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .loading-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .contact-hero {
    padding: calc(72px + 36px + var(--space-4)) 0 var(--space-4);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .product-modal {
    max-height: 86vh;
    width: calc(100% - 16px);
  }
  
  .product-modal__header {
    padding: 8px;
    flex-wrap: wrap;
  }
  
  .product-modal__content {
    padding: 8px;
  }
  
  .product-modal__actions {
    padding: 8px;
  }

  .main-image-container {
    max-height: 180px;
  }
}

/* RESTORED TRUST BAR MOBILE STYLES - Working Version */
@media (max-width: 640px) {
  .hero { 
    min-height: 50vh; 
    padding-block: 3rem; 
  }
  .chips-row {
    padding: 12px;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .chip {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .chip-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .hero { 
    padding: 3rem 0; 
  }
  
  .category-grid { 
    grid-template-columns: 1fr; 
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
    padding: 3px;
  }
  .products-grid[data-section="home-showcase"] .product-card {
    flex: 0 0 200px;
    max-width: 200px;
  }
  .products-grid[data-section="home-showcase"] .product-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
    min-height: calc(1.3em * 2);
  }
  .products-grid[data-section="home-showcase"] .product-specs {
    font-size: 12px;
  }
  .products-grid[data-section="home-showcase"] .product-condition {
    font-size: 12px;
  }
  .products-grid[data-section="home-showcase"] .product-price {
    font-size: 16px;
  }
  .products-grid[data-section="home-showcase"] .product-btn {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 34px;
  }
}

/* ===== 8. UTILITIES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error Page Styles - Add this to your styles.css */

/* Error Page Layout */
.error-hero {
  padding: calc(72px + 36px + var(--space-6)) 0 var(--space-6);
  background: var(--surface);
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-icon {
  margin-bottom: var(--space-4);
  color: var(--ink-weak);
}

/* Brand the 404 error icon */
body.error-page .error-icon {
  color: var(--primary);
}

.error-icon svg {
  width: 80px;
  height: 80px;
  stroke-width: 1.5;
}

.error-hero h1 {
  margin: 0 0 var(--space-3) 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.error-hero p {
  margin: 0 0 var(--space-5) 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-weak);
}

.error-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .error-hero {
    padding: calc(72px + 36px + var(--space-4)) 0 var(--space-4);
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .error-icon svg {
    width: 60px;
    height: 60px;
  }
}
  
/* TARGETED FIX for Product Card Heights - Add this to the END of your styles.css */

/* Force grid stretching with higher specificity */
body.collection-page #products-grid,
body.collection-page .products-grid {
  display: grid !important;
  align-items: stretch !important;
}

/* Ensure all product cards are flex containers with equal height */
body.collection-page .product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Make product details fill available space */
body.collection-page .product-details {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 10px !important;
  gap: 2px;
}

/* Clamp title text to prevent height variations */
body.collection-page .product-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
  min-height: calc(1.3em * 2) !important;
  max-height: calc(1.3em * 2) !important;
  margin: 0 !important;
  font-size: 15px !important;
}

/* Clamp specs to one line */
body.collection-page .product-specs {
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
  min-height: calc(1.4em * 1) !important;
  max-height: calc(1.4em * 1) !important;
}

/* Push price info to bottom */
body.collection-page .product-info {
  margin-top: auto !important;
  margin-bottom: 12px !important;
}

/* Ensure button stays at true bottom */
body.collection-page .product-btn {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* Fix any potential image height issues */
body.collection-page .product-image {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Hide all condition-related product badges */
.product-badge.condition-like-new,
.product-badge.condition-very-good, 
.product-badge.condition-good,
.product-badge.condition-okay,
.product-badge.condition-great,
.product-badge.condition-excellent,
.product-badge.condition-fair,
.product-badge.condition-poor {
  display: none !important;
}

/* Collection page header — matches hero font treatment */
body.collection-page .collection-header h1,
body.collection-page[data-page="all-clubs"] .collection-header h1,
body.collection-page[data-page="iron-sets"] .collection-header h1,
body.collection-page[data-page="putters"] .collection-header h1,
body.collection-page[data-page="wedges"] .collection-header h1,
body.collection-page[data-page="woods"] .collection-header h1,
body.collection-page[data-page="drivers"] .collection-header h1 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--ink) !important;
  text-align: left !important;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem) !important;
  line-height: 1.1 !important;
  margin-block-start: clamp(12px, 2.5vw, 24px) !important;
  margin-block-end: clamp(8px, 1.5vw, 16px) !important;
  margin-bottom: var(--space-4) !important;
}

/* Global spec chips styles (moved from collection-specific scope) */
.spec-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
}

.spec-chip {
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1.8;
  color: var(--ink-weak);
  background: var(--surface);
}

/* New product card — pipe-separated spec tags */
.pc-spec-tags {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-weak);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* New product card — action row */
.pc-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  align-items: center;
}

.pc-buy-now {
  flex: 1;
  padding: 8px 10px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.pc-buy-now:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.pc-add-cart {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.pc-add-cart:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.pc-buy-now:disabled,
.pc-add-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Guide showcase styling - reuses product showcase classes */
.products-grid[data-section="guides-showcase"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: stretch;
}=

/* Override the center alignment from Contact + collections */
.contact-hero h1,
body.collection-page .collection-header h1 {
  text-align: left !important; /* Force left alignment for all */
}

/* Ensure mobile menu toggle is visible on smaller screens */
@media (max-width: 1100px) {
  .nav-links {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 60;
  }
}

/* Fix mobile menu overlay z-index and visibility */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55; /* Higher than header */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Fix mobile nav positioning */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px; /* Slightly narrower for better mobile fit */
  height: 100vh;
  background: var(--surface);
  padding: 2rem 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 56; /* Above overlay */
  box-shadow: var(--shadow-3);
}

.mobile-menu-overlay.active .mobile-nav {
  transform: translateX(0);
}

/* Ensure mobile nav links are properly styled and visible */
.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem 2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  transition: background-color 0.15s ease;
  width: 100%;
}

.mobile-nav-links a:hover {
  background: var(--surface-2);
  color: var(--primary);
}

/* Style the close button */
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--radius-1);
  transition: background-color 0.15s ease;
}

.mobile-menu-close:hover {
  background: var(--surface-2);
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Mobile Layout Fix - Add this to your styles.css */

/* Force single column layout on mobile and hide sidebar */
@media (max-width: 768px) {
  /* Hide desktop sidebar completely on mobile */
  .collection-sidebar {
    display: none !important;
  }
  
  /* Make collection layout single column */
  .collection-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }
  
  /* Ensure mobile menu toggle is visible */
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 60;
  }
  
  /* Hide desktop nav links */
  .nav-links {
    display: none !important;
  }
  
  /* Make product grid 2 columns on mobile */
  #products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--space-3) !important;
  }
  
  /* Show mobile filter toggle in toolbar */
  .mobile-filter-toggle {
    display: flex !important;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-1);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Stack toolbar: [Filter | Sort] on row 1, results count on row 2 */
  .collection-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-3);
  }
  .toolbar-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .toolbar-right {
    width: 100%;
  }
  .sort-select {
    width: 100%;
  }
  .results-count {
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    order: 3;
  }
  
  /* Ensure collection main takes full width */
  .collection-main {
    width: 100%;
    min-width: 0;
  }
  
  /* Fix product card sizing for mobile */
  .product-card {
    font-size: 0.875rem;
  }
  
  .product-title {
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
  }
  
  .product-specs {
    font-size: 0.75rem !important;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .product-btn {
    font-size: 0.75rem;
    padding: 6px 8px;
    min-height: 32px;
  }
}

/* === Collection card refinements (scoped) === */
.collection-page .product-image {
  aspect-ratio: 4 / 5 !important;   /* align card heights */
  object-fit: cover;
}

.collection-page .product-card .badge-group--right {
  left: auto;
  right: 12px;
  align-items: flex-end;
}
.collection-page .product-card .hand-badge {
  background: #111;
}

/* Kicker + spec chips */
.collection-page .product-kicker {
  font-size: 12px;
  color: var(--ink-weak);
  margin: 2px 0 4px;
}

/* Guide showcase styling - reuses product showcase classes */
.products-grid[data-section="guides-showcase"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: stretch;
}


/* REMOVE HERO TEXT BACKGROUND - Mobile Fix */
.hero-text-container::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Ensure no dark overlays on hero */
.hero::before,
.hero::after {
  display: none !important;
  content: none !important;
}

/* Remove any dark gradient overlays */
.hero-text-capsule {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* ==============================================
   MOBILE TEXT OUTLINE FIX
   Remove text-stroke and heavy shadows on mobile
   while preserving desktop styling and focus states
   ============================================== */

@media (max-width: 768px) {
  /* Remove text stroke on all headings */
  h1, h2, h3, h4, h5, h6,
  .hero h1,
  .hero p,
  .hero-title,
  .collection-header h1,
  .product-title,
  .product-card .product-title,
  .product-modal .product-title,
  .product-modal__header .product-title,
  .contact-hero h1,
  .error-hero h1,
  .reviews-section-header h2,
  .product-showcase h2,
  .categories h2,
  .testimonials h2,
  .faq-section h2,
  .how-it-works h2 {
    -webkit-text-stroke: 0 !important;
    -webkit-text-stroke-width: 0 !important;
    -webkit-text-stroke-color: transparent !important;
    text-stroke: 0 !important;
    text-stroke-width: 0 !important;
    
    /* Replace heavy shadows with subtle, lighter ones */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Hero carousel text */
  .hero-slide h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Product cards - clean text with no outline */
  .product-card .product-title,
  .product-modal .product-title {
    text-shadow: none !important;
  }
  
  /* Collection headers - subtle shadow only */
  .collection-header h1,
  .contact-hero h1 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Preserve accessibility - keep focus outlines on interactive elements */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  .btn:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
  }
}

/* Extra small mobile (≤480px) - even lighter shadows */
@media (max-width: 480px) {
  .hero-slide h1 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  }
  
  h1, h2, h3, 
  .collection-header h1,
  .product-showcase h2 {
    text-shadow: none !important;
  }
}
/* ============================================
   PRODUCT DETAIL PAGE (products.html)
   ============================================ */

/* Push product page content below fixed nav + announce bar (36px bar + 72px nav = 108px) */
body.product-page main {
  padding-top: calc(72px + 36px + var(--space-4));
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 var(--space-4);
  align-items: start;
}

/* Gallery */
.pd-gallery { position: sticky; top: calc(72px + 36px + 16px); }

.pd-main-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 1/1;
  max-height: calc(100vh - 240px); /* keep image + thumbnails visible without scrolling */
}

.pd-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-main-image-wrap .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-1);
}
.pd-main-image-wrap .gallery-nav.prev { left: 12px; }
.pd-main-image-wrap .gallery-nav.next { right: 12px; }

.pd-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--primary); }

/* Info panel */
.pd-info { display: flex; flex-direction: column; gap: 10px; }

.pd-breadcrumb { font-size: 0.85rem; color: var(--ink-weak); margin: 0; }
.pd-breadcrumb a { color: var(--primary); text-decoration: none; }
.pd-breadcrumb a:hover { text-decoration: underline; }

.pd-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

.pd-price-block { display: flex; align-items: baseline; gap: 12px; }
.pd-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pd-price-retail { font-size: 1rem; color: var(--primary); }

.pd-actions { display: flex; gap: 12px; }
.pd-buy-now {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pd-buy-now:hover:not(:disabled) { background: var(--primary); color: #fff; }
.pd-add-cart {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pd-add-cart:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pd-buy-now:disabled, .pd-add-cart:disabled { opacity: 0.4; cursor: not-allowed; }

/* Spec sections — card boxes */
.pd-section {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.pd-section-title {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280 !important;
  background: #F9FAFB;
  padding: 9px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid #E5E7EB;
}

.pd-spec-table { display: flex; flex-direction: column; padding: 0 16px; }

.pd-spec-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.875rem;
  gap: 1rem;
}
.pd-spec-row:last-child { border-bottom: none; }

.pd-spec-label {
  font-weight: 600;
  color: #111827 !important;
  flex: 0 0 140px;
  min-width: 140px;
}
.pd-spec-value {
  color: #374151 !important;
  flex: 1;
}

.pd-description {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
.pd-description .pd-section-title { display: block; }
.pd-description-body {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: 0 var(--space-3);
    margin: var(--space-5) auto;
  }
  .pd-gallery { position: static; }
  .pd-thumb { width: 60px; height: 60px; }
  .pd-spec-label { flex: 0 0 110px; min-width: 110px; }
}
