/* ──────────────────────────────────────────────────────
   EV Store — Main Stylesheet
   Theme: Inspired by Nexfranchising (warm minimalism)
   Colors: #EFEBE4 bg | #1A1A1A dark | #D19B9C accent
   ────────────────────────────────────────────────────── */

:root {
  --color-bg:       #EFEBE4;
  --color-bg-alt:   #E8E3DB;
  --color-dark:     #1A1A1A;
  --color-accent:   #D19B9C;
  --color-accent-d: #B87D7E;
  --color-muted:    #6B6560;
  --color-border:   rgba(26, 26, 26, 0.12);
  --color-white:    #FFFFFF;
  --font-display:   'Space Grotesk', system-ui, sans-serif;
  --font-body:      'Outfit', system-ui, sans-serif;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      24px;
  --radius-pill:    50px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
  --transition:     all 0.22s ease;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a { color: var(--color-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

/* ── Buttons ────────────────────────────────────────── */
.btn-ev {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.btn-ev-primary {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn-ev-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.btn-ev-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-ev-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-ev-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-ev-accent:hover {
  background: var(--color-accent-d);
  border-color: var(--color-accent-d);
}

.btn-ev-sm { padding: 0.4rem 1.1rem; font-size: 0.8rem; }
.btn-ev-lg { padding: 0.85rem 2.2rem; font-size: 1rem; }

/* ── Navbar ─────────────────────────────────────────── */
.ev-navbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.9rem 0;
}

.ev-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}
.ev-navbar .navbar-brand span { color: var(--color-accent); }

.ev-navbar .nav-link {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.ev-navbar .nav-link:hover,
.ev-navbar .nav-link.active { color: var(--color-accent); }

.cart-badge {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -8px;
}

/* ── Hero Section ───────────────────────────────────── */
.hero-section {
  background: var(--color-bg);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(209,155,156,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: rgba(209,155,156,0.15);
  color: var(--color-accent-d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title .accent { color: var(--color-accent); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Section Headers ────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

/* ── Product Card ───────────────────────────────────── */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }

.product-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.badge-featured {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.badge-sale {
  background: var(--color-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--color-muted);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--color-accent); }

.product-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-rating { color: var(--color-accent); font-size: 0.82rem; margin-bottom: 0.5rem; }

.product-price-wrap { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
}

.product-compare-price {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: line-through;
}

.product-card-footer { margin-top: auto; }

/* ── Category Cards ─────────────────────────────────── */
.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--color-dark);
}

.category-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--color-dark);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

/* ── Stats / Features Strip ─────────────────────────── */
.stats-strip {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3.5rem 0;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ── Newsletter ─────────────────────────────────────── */
.newsletter-section {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0;
  margin: 4rem 0 0;
}

/* ── Footer ─────────────────────────────────────────── */
.ev-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.ev-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.ev-footer .footer-brand span { color: var(--color-accent); }

.ev-footer h6 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.ev-footer ul { list-style: none; padding: 0; margin: 0; }
.ev-footer ul li { margin-bottom: 0.5rem; }
.ev-footer ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.ev-footer ul li a:hover { color: var(--color-accent); }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ── Product Detail ─────────────────────────────────── */
.product-detail-img-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.product-detail-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

.product-thumbnail {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.product-thumbnail.active,
.product-thumbnail:hover { border-color: var(--color-accent); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) { background: var(--color-bg-alt); }
.specs-table td { padding: 0.6rem 1rem; font-size: 0.9rem; border: none; }
.specs-table td:first-child { font-weight: 600; width: 40%; color: var(--color-muted); }

.stock-badge-ok   { color: #2a9d2a; font-weight: 600; font-size: 0.9rem; }
.stock-badge-low  { color: #d97706; font-weight: 600; font-size: 0.9rem; }
.stock-badge-none { color: #dc2626; font-weight: 600; font-size: 0.9rem; }

/* ── Cart ───────────────────────────────────────────── */
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-dark);
  transition: var(--transition);
}
.qty-btn:hover { background: var(--color-bg-alt); color: var(--color-accent); }
.qty-value { padding: 0.3rem 0.5rem; min-width: 2rem; text-align: center; font-weight: 600; }

.cart-summary-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* ── Forms ──────────────────────────────────────────── */
.ev-form-control {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  width: 100%;
  transition: var(--transition);
  outline: none;
}
.ev-form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(209,155,156,0.2);
}

.ev-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: 0.03em;
}

/* ── Auth Pages ─────────────────────────────────────── */
.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 440px;
  margin: 0 auto;
}

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.ev-breadcrumb { font-size: 0.85rem; color: var(--color-muted); }
.ev-breadcrumb a { color: var(--color-muted); }
.ev-breadcrumb a:hover { color: var(--color-accent); }
.ev-breadcrumb .separator { margin: 0 0.4rem; }

/* ── Order Tracking ─────────────────────────────────── */
.tracking-timeline { position: relative; padding-left: 2rem; }
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.tracking-step { position: relative; margin-bottom: 1.5rem; }
.tracking-step::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.tracking-step-time { font-size: 0.78rem; color: var(--color-muted); }
.tracking-step-msg  { font-size: 0.9rem; font-weight: 500; }

/* ── Stripe Card Element ────────────────────────────── */
#card-element {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: var(--transition);
}
#card-element.focused { border-color: var(--color-accent); }

/* ── Filters Sidebar ────────────────────────────────── */
.filters-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

/* ── Stars ──────────────────────────────────────────── */
.star-filled { color: var(--color-accent); }
.star-empty  { color: var(--color-border); }

/* ── Flash / Alert ──────────────────────────────────── */
.flash-container { position: fixed; top: 80px; right: 1rem; z-index: 9999; min-width: 280px; max-width: 360px; }
.flash-alert {
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}
.flash-success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.flash-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ── Empty States ───────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.empty-state p  { color: var(--color-muted); margin-bottom: 1.5rem; }

/* ── Review Card ────────────────────────────────────── */
.review-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* ── Page sections spacing ──────────────────────────── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* ── Utilities ──────────────────────────────────────── */
.text-accent  { color: var(--color-accent) !important; }
.text-muted-ev{ color: var(--color-muted)  !important; }
.bg-ev        { background: var(--color-bg) !important; }
.bg-dark-ev   { background: var(--color-dark) !important; }
.border-accent{ border-color: var(--color-accent) !important; }

/* ── Lazy Load ──────────────────────────────────────── */
img.lazy { opacity: 0; transition: opacity 0.4s ease; }
img.lazy.loaded { opacity: 1; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 4rem 0 3rem; }
  .hero-title   { font-size: 2.2rem; }
  .section-pad  { padding: 3rem 0; }
  .auth-card    { padding: 1.5rem; }
  .filters-card { position: static; }
}

/* ══════════════════════════════════════════════════════
   Payment Method Cards (Checkout)
   ══════════════════════════════════════════════════════ */
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  flex: 1;
  min-width: 180px;
  background: #FAFAFA;
  user-select: none;
}
.payment-method-card:hover {
  border-color: var(--color-accent);
  background: #fff;
}
.payment-method-card.active {
  border-color: var(--color-dark);
  background: #fff;
  box-shadow: 0 2px 12px rgba(26,26,26,0.10);
}
.payment-method-icon {
  width: 42px;
  height: 42px;
  background: #F3F4F6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #374151;
  flex-shrink: 0;
  transition: background 0.18s;
}
.payment-method-card.active .payment-method-icon {
  background: var(--color-dark);
  color: #fff;
}
.payment-method-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1A1A1A;
  line-height: 1.2;
}
.payment-method-sub {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════
   Order Tracking Page
   ══════════════════════════════════════════════════════ */

/* Progress bar */
.track-progress-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  z-index: 1;
}
.track-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 2px solid #E5E7EB;
  transition: all 0.25s;
}
.track-step.done .track-dot {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.track-step.active .track-dot {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(209,155,156,0.22);
}
.track-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9CA3AF;
  text-align: center;
  max-width: 65px;
  line-height: 1.3;
}
.track-step.done .track-label,
.track-step.active .track-label {
  color: #374151;
}
.track-step.active .track-label { color: var(--color-accent-d); font-weight: 700; }

.track-line {
  flex: 1;
  height: 2px;
  background: #E5E7EB;
  margin-top: 17px;
  transition: background 0.25s;
}
.track-line.done { background: var(--color-dark); }

/* Tracking timeline */
.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid #E5E7EB;
  padding-left: 1.25rem;
  margin-left: 0.5rem;
}
.timeline-step {
  position: relative;
  padding-bottom: 1.25rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.55rem;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #D1D5DB;
  border-radius: 50%;
  border: 2px solid #fff;
}
.timeline-step-active .timeline-dot {
  background: var(--color-accent);
  width: 12px;
  height: 12px;
  left: -1.6rem;
  box-shadow: 0 0 0 3px rgba(209,155,156,0.2);
}
.timeline-status {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1A1A1A;
  text-transform: capitalize;
}
.timeline-msg  { font-size: 0.82rem; color: #6B7280; margin-top: 0.15rem; line-height: 1.5; }
.timeline-time { font-size: 0.73rem; color: #9CA3AF; margin-top: 0.2rem; }

@media (max-width: 600px) {
  .track-label { font-size: 0.62rem; max-width: 50px; }
  .track-dot   { width: 28px; height: 28px; font-size: 0.8rem; }
  .track-line  { margin-top: 13px; }
}

/* ══════════════════════════════════════════════════════════
   AI Recommendation Engine — Styles
   ══════════════════════════════════════════════════════════ */

/* Section wrapper */
.rec-section { padding-bottom: 0.5rem; }

.rec-section-head {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   1.5rem;
  flex-wrap:       wrap;
  gap:             0.75rem;
}

.rec-section-title {
  font-family:  var(--font-display);
  font-size:    1.5rem;
  font-weight:  800;
  margin:       0;
  color:        var(--color-dark);
}

/* Horizontal scrollable track */
.rec-carousel {
  display:              grid;
  grid-auto-flow:       column;
  grid-auto-columns:    220px;
  gap:                  1rem;
  overflow-x:           auto;
  overflow-y:           visible;
  padding-bottom:       1rem;
  scroll-snap-type:     x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:      thin;
  scrollbar-color:      var(--color-accent) transparent;
}
.rec-carousel::-webkit-scrollbar        { height: 4px; }
.rec-carousel::-webkit-scrollbar-track  { background: transparent; }
.rec-carousel::-webkit-scrollbar-thumb  { background: var(--color-accent); border-radius: 2px; }

/* Individual product card */
.rec-card {
  scroll-snap-align:   start;
  background:          #fff;
  border-radius:       var(--radius-lg);
  box-shadow:          0 2px 12px rgba(26,26,26,.07);
  overflow:            hidden;
  display:             flex;
  flex-direction:      column;
  transition:          transform 0.2s ease, box-shadow 0.2s ease;
  position:            relative;
}
.rec-card:hover {
  transform:   translateY(-4px);
  box-shadow:  0 8px 28px rgba(26,26,26,.13);
}

.rec-card-img-wrap {
  display:          block;
  position:         relative;
  aspect-ratio:     4/3;
  overflow:         hidden;
  background:       var(--color-bg-alt);
}
.rec-card-img-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.rec-card:hover .rec-card-img-wrap img { transform: scale(1.06); }

.rec-disc-badge {
  position:      absolute;
  top:           0.5rem;
  left:          0.5rem;
  background:    var(--color-accent);
  color:         #fff;
  font-size:     0.7rem;
  font-weight:   700;
  padding:       0.15rem 0.45rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.rec-card-body {
  padding:        0.85rem;
  display:        flex;
  flex-direction: column;
  gap:            0.3rem;
  flex:           1;
}

.rec-card-brand {
  font-size:      0.68rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--color-accent);
}

.rec-card-name {
  font-size:      0.88rem;
  font-weight:    600;
  color:          var(--color-dark);
  text-decoration: none;
  line-height:    1.35;
  display:        -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:       hidden;
}
.rec-card-name:hover { color: var(--color-accent); }

.rec-card-stars {
  display:     flex;
  align-items: center;
  gap:         0.2rem;
  font-size:   0.7rem;
  color:       #F59E0B;
}
.rec-review-count { color: var(--color-muted); font-size: 0.68rem; }

.rec-card-pricing {
  display:     flex;
  align-items: baseline;
  gap:         0.4rem;
  flex-wrap:   wrap;
  margin-top:  0.1rem;
}

.rec-price {
  font-size:   0.92rem;
  font-weight: 800;
  color:       var(--color-dark);
}
.rec-compare {
  font-size:           0.75rem;
  color:               var(--color-muted);
  text-decoration:     line-through;
}

.rec-add-btn {
  margin-top:     auto;
  padding:        0.45rem 0.75rem;
  background:     var(--color-dark);
  color:          #fff;
  border:         none;
  border-radius:  var(--radius-pill);
  font-size:      0.78rem;
  font-weight:    600;
  cursor:         pointer;
  transition:     background 0.2s ease, transform 0.1s ease;
  display:        flex;
  align-items:    center;
  justify-content: center;
  gap:            0.35rem;
  width:          100%;
}
.rec-add-btn:hover    { background: var(--color-accent); }
.rec-add-btn:active   { transform: scale(0.97); }
.rec-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Responsive — full-width cards on very small screens */
@media (max-width: 480px) {
  .rec-carousel { grid-auto-columns: 175px; gap: 0.75rem; }
  .rec-section-title { font-size: 1.2rem; }
}
