/* ── Hero Carousel ───────────────────────────────────────────────────────── */
.hero-carousel {
  position: relative; overflow: hidden; height: 420px; background: #111;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 400ms ease; pointer-events: none;
  color: #fff; z-index: 1;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }

/* Full-bleed background image with dark gradient overlay */
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.05) 100%);
}

/* Slide content sits above the overlay */
.hero-slide-content {
  position: relative; z-index: 1;
  max-width: var(--container-max); margin: 0 auto; padding: 0 72px;
  width: 100%; display: flex; align-items: center; gap: var(--space-12);
}
.hero-text { flex: 1; max-width: 540px; }

.hero-eyebrow {
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--font-size-sm); font-weight: 600; margin-bottom: var(--space-4);
  letter-spacing: .3px;
}
.hero-title {
  font-size: var(--font-size-4xl); font-weight: 900; line-height: 1.1;
  margin-bottom: var(--space-4); text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-title span { color: var(--color-accent); }
.hero-sub {
  font-size: var(--font-size-lg); opacity: .9; margin-bottom: var(--space-8);
  line-height: 1.5; text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--color-primary); font-weight: 700; }
.hero-actions .btn-primary:hover { background: rgba(255,255,255,.92); }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.65); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Right side: product image panel (grocery & electronics slides) */
.hero-product-panel {
  flex: 0 0 auto; width: 280px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
}
.hero-product-panel img {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.hero-product-panel-body {
  padding: var(--space-4);
}
.hero-product-name { font-weight: 700; font-size: var(--font-size-base); margin-bottom: var(--space-1); }
.hero-product-unit { font-size: var(--font-size-xs); opacity: .7; margin-bottom: var(--space-3); }
.hero-product-prices { display: flex; flex-direction: column; gap: 2px; }
.hero-product-price-regular { font-size: var(--font-size-sm); opacity: .6; text-decoration: line-through; }
.hero-product-price-member { font-size: var(--font-size-xl); font-weight: 900; color: var(--color-accent); }
.hero-product-price-label  { font-size: var(--font-size-xs); opacity: .8; }

/* Seasonal slide: mini product grid */
.hero-seasonal-grid {
  flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); width: 280px;
}
.hero-seasonal-item {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-seasonal-item img { width: 100%; height: 90px; object-fit: cover; display: block; }
.hero-seasonal-item-name { font-size: var(--font-size-xs); font-weight: 600; padding: var(--space-2); }

/* Deal badge */
.hero-deal-badge {
  display: inline-block; background: var(--color-accent); color: #333;
  font-weight: 900; font-size: var(--font-size-xl); padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-lg); margin-bottom: var(--space-4); letter-spacing: -0.5px;
}

/* Membership CTA slide uses brand gradient instead of image */
.hero-slide.slide-membership .hero-slide-bg {
  background: linear-gradient(135deg, #3F51B5 0%, #303F9F 50%, #FF7043 100%) !important;
}
.hero-slide.slide-membership .hero-slide-bg::after {
  background: rgba(0,0,0,.15);
}
.hero-membership-benefits {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--space-3);
}
.hero-benefit-row {
  display: flex; align-items: center; gap: var(--space-3);
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); font-size: var(--font-size-sm); font-weight: 600;
}
.hero-benefit-icon { font-size: 1.4rem; flex-shrink: 0; }

/* Nav arrows */
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition-fast);
  padding-bottom: 2px;
}
.hero-prev { left: var(--space-5); }
.hero-next { right: var(--space-5); }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.28); }

/* Dot indicators */
.hero-dots {
  position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: var(--space-2);
}
.hero-dot {
  width: 8px; height: 8px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: all var(--transition-fast); border: none;
}
.hero-dot.active { background: #fff; width: 24px; }

/* ── Featured strip ──────────────────────────────────────────────────────── */
.featured-section { padding: var(--space-10) 0 var(--space-6); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.section-title { font-size: var(--font-size-2xl); font-weight: 800; color: var(--color-text); }
.section-title span { color: var(--color-primary); }
.featured-scroll {
  display: flex; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.featured-scroll::-webkit-scrollbar { height: 4px; }
.featured-scroll::-webkit-scrollbar-track { background: var(--color-border); border-radius: 2px; }
.featured-scroll::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 2px; }
.featured-card {
  flex: 0 0 220px; scroll-snap-align: start;
  background: var(--color-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}
.featured-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-card img { width: 100%; height: 140px; object-fit: cover; }
.featured-card-body { padding: var(--space-3); }
.featured-card-name { font-size: var(--font-size-sm); font-weight: 600; margin-bottom: var(--space-1); }
.featured-card-price { font-size: var(--font-size-base); font-weight: 700; color: var(--color-primary); }

/* ── Catalog section ─────────────────────────────────────────────────────── */
.catalog-section { padding: var(--space-6) 0 var(--space-16); }
.catalog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); flex-wrap: wrap; gap: var(--space-4); }
.product-count { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* ── Savings banner (logged-in) ──────────────────────────────────────────── */
.savings-banner {
  background: var(--color-savings-light); border: 1px solid #A5D6A7;
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--font-size-sm); color: var(--color-savings);
  margin-bottom: var(--space-5);
}
.savings-banner strong { font-weight: 700; }

/* ── Membership upsell (guest) ───────────────────────────────────────────── */
.member-upsell {
  background: linear-gradient(135deg, var(--color-basic-light), var(--color-premium-light));
  border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); text-align: center; margin-bottom: var(--space-8);
}
.member-upsell h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-2); }
.member-upsell p  { color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.member-upsell-btns { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ── Membership modal ────────────────────────────────────────────────────── */
.membership-modal-tiers { display: flex; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap; }
.tier-option {
  flex: 1; min-width: 160px; border: 2px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-4); text-align: center;
  transition: all var(--transition-fast); cursor: pointer;
}
.tier-option.basic   { border-color: var(--color-basic); }
.tier-option.premium { border-color: var(--color-primary); background: var(--color-premium-light); }
.tier-option-price { font-size: var(--font-size-2xl); font-weight: 900; }
.tier-option-name  { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.tier-option .btn  { width: 100%; margin-top: var(--space-3); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-carousel { height: 360px; }
  .hero-product-panel, .hero-seasonal-grid, .hero-membership-benefits { display: none; }
  .hero-title { font-size: var(--font-size-3xl); }
}
@media (max-width: 480px) {
  .hero-carousel { height: 320px; }
  .hero-title { font-size: var(--font-size-2xl); }
  .hero-sub { font-size: var(--font-size-base); }
  .hero-prev, .hero-next { width: 36px; height: 36px; font-size: 1.4rem; }
}
