/* ============================================================
   VIJAY SPORTS — Amazon-style mobile-first theme
   Inspired by the family shop in Nangal Raya, New Delhi
   ============================================================ */

:root {
  --primary: #0082c3;
  --primary-dark: #006ba1;
  --primary-light: #e6f3fa;
  --saffron: #ff8c00;
  --saffron-dark: #e67700;
  --accent: #ffba00;
  --success: #46a610;
  --danger: #cb2828;
  --dark: #131921;
  --gray-900: #1a2026;
  --gray-800: #2d343b;
  --gray-700: #4d555c;
  --gray-600: #6e767e;
  --gray-500: #9197a0;
  --gray-400: #c5cad0;
  --gray-300: #e1e4e8;
  --gray-200: #eef0f2;
  --gray-100: #f7f8fa;
  --white: #ffffff;
  --bg-page: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 6px 18px rgba(0,0,0,0.12);
  --header-h: 100px;
  --bottom-nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--gray-900);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ============================================================
   STICKY HEADER (App-like)
============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 8px 12px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.app-header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.app-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-back:hover { background: rgba(255,255,255,0.12); }
.app-title {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-title strong {
  font-size: 16px;
  font-weight: 900;
  display: block;
  letter-spacing: -0.3px;
}
.app-actions {
  display: flex;
  gap: 4px;
}
.app-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  position: relative;
}
.app-action:hover { background: rgba(255,255,255,0.12); }
.app-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--saffron);
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-dark);
}

.app-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  gap: 8px;
}
.app-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--gray-900);
}
.app-search-icon {
  color: var(--gray-500);
  font-size: 16px;
}
.app-mic {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  border-radius: 50%;
  background: var(--gray-100);
}

/* Delivery location bar */
.delivery-bar {
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  font-size: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px -12px -10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.delivery-bar strong { font-weight: 700; }

/* ============================================================
   CATEGORY CHIPS (Horizontal scroll)
============================================================ */
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 12px 12px;
  scroll-snap-type: x mandatory;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 70px;
  scroll-snap-align: start;
  cursor: pointer;
}
.chip-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
  transition: all 0.15s;
  border: 2px solid transparent;
}
.chip:hover .chip-icon, .chip.active .chip-icon { background: var(--primary); color: white; transform: scale(1.05); border-color: var(--saffron); }
.chip-icon img { width: 100%; height: 100%; object-fit: cover; }
.chip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  line-height: 1.2;
  max-width: 70px;
}

/* ============================================================
   HERO BANNER (Carousel-ready, compact)
============================================================ */
.hero-banner {
  margin: 12px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, #003b6e 100%);
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,186,0,0.25) 0%, transparent 50%);
}
.hero-banner-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255,186,0,0.25);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}
.hero-banner h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.hero-banner p { font-size: 13px; opacity: 0.9; margin-bottom: 10px; }
.hero-banner .btn-shop {
  background: var(--saffron);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(255,140,0,0.4);
}

/* ============================================================
   SECTIONS (App-style cards)
============================================================ */
.app-section {
  background: white;
  margin-top: 8px;
  padding: 12px;
}
.app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.app-section-head h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.app-section-head a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

/* Horizontal scroll carousel */
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -12px;
  padding: 4px 12px 16px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }

/* ============================================================
   PRODUCT CARDS — Amazon-style compact
============================================================ */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 140px;
  border: 1px solid var(--gray-200);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card-link { display: flex; flex-direction: column; height: 100%; }
.product-card-img {
  aspect-ratio: 1;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-info { padding: 8px; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--gray-600);
}
.product-card-rating .stars {
  background: var(--success);
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}
.product-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
}
.product-card-mrp {
  font-size: 11px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 4px;
}
.product-card-discount {
  font-size: 11px;
  color: var(--saffron);
  font-weight: 700;
  margin-left: 4px;
}
.product-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--saffron);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}
.product-card-tag.deal { background: var(--danger); }
.product-card-tag.lowstock { background: var(--accent); color: var(--dark); }

/* Grid version for product listing page */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--bg-page);
}
.product-grid .product-card { flex: none; }

/* ============================================================
   DEAL BANNER (Amazon "Today's Deals" style)
============================================================ */
.deal-banner {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--danger) 100%);
  color: white;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.deal-banner h3 { font-size: 18px; font-weight: 900; }
.deal-banner p { font-size: 12px; opacity: 0.95; margin-top: 2px; }
.deal-banner .deal-icon { font-size: 38px; opacity: 0.3; }

/* ============================================================
   BOTTOM NAV (App-like)
============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--bottom-nav-h);
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 4px;
  position: relative;
}
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
.bottom-nav-icon { font-size: 20px; }
.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  background: var(--saffron);
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PRODUCT DETAIL PAGE (App-style)
============================================================ */
.pd-gallery {
  background: white;
  padding: 12px;
  position: relative;
}
.pd-main-img {
  aspect-ratio: 1;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.pd-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid var(--gray-200);
  overflow: hidden;
  background: var(--gray-100);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--primary); }
.pd-fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 2;
}

.pd-info {
  background: white;
  padding: 14px;
  margin-top: 6px;
}
.pd-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.pd-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-600);
}
.pd-rating-row .stars {
  background: var(--success);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pd-discount-pct {
  color: var(--danger);
  font-weight: 800;
  font-size: 16px;
}
.pd-price-big {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-900);
  display: flex;
  align-items: baseline;
}
.pd-price-big span { font-size: 16px; margin-right: 2px; }
.pd-mrp-line {
  font-size: 13px;
  color: var(--gray-600);
}
.pd-mrp-line strike { color: var(--gray-500); }
.pd-tax {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
}
.pd-stock-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}
.pd-stock-msg.in { color: var(--success); }
.pd-stock-msg.low { color: var(--accent); }
.pd-stock-msg.out { color: var(--danger); }

.pd-divider {
  height: 6px;
  background: var(--gray-100);
}
.pd-section {
  background: white;
  padding: 14px;
}
.pd-section h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}
.pd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pd-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-700);
}
.pd-feat-icon { font-size: 22px; flex-shrink: 0; }

.pd-spec-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
}
.pd-spec-row:last-child { border-bottom: none; }
.pd-spec-row strong {
  width: 110px;
  color: var(--gray-600);
  font-weight: 500;
  flex-shrink: 0;
}

/* Sticky bottom CTA on product page */
.pd-sticky-cta {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 98;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.pd-sticky-cta .btn-cart {
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  padding: 12px;
  border-radius: 22px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pd-sticky-cta .btn-buy {
  background: var(--saffron);
  color: white;
  font-weight: 800;
  padding: 12px;
  border-radius: 22px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============================================================
   CART (Amazon-style)
============================================================ */
.cart-list {
  background: white;
  margin-top: 8px;
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-row img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: var(--gray-100);
  object-fit: cover;
}
.cart-row-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-row-price {
  font-size: 16px;
  font-weight: 800;
}
.cart-row-mrp {
  font-size: 12px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 4px;
}
.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  overflow: hidden;
}
.qty-stepper button {
  width: 28px;
  height: 28px;
  font-weight: 800;
  font-size: 14px;
  background: white;
  color: var(--gray-800);
}
.qty-stepper input {
  width: 32px;
  height: 28px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}
.cart-row-remove {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.cart-summary {
  background: white;
  margin-top: 8px;
  padding: 14px 12px;
}
.cart-summary h4 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--gray-200);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 900;
}
.summary-row.savings { color: var(--success); font-weight: 700; }
.cart-checkout-cta {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 10px 12px;
  z-index: 98;
}
.cart-checkout-cta .btn {
  background: var(--saffron);
  color: white;
  width: 100%;
  padding: 13px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 15px;
}

/* ============================================================
   FILTER BAR (Sticky chip-style)
============================================================ */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--gray-300);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.filter-chip .x { opacity: 0.7; font-size: 10px; }

/* ============================================================
   BREADCRUMB / PAGE HEADER
============================================================ */
.page-info {
  background: white;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
.page-info strong { color: var(--gray-900); font-weight: 700; }

/* ============================================================
   STORE BANNER (Nangal Raya pride)
============================================================ */
.store-banner {
  background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: white;
  padding: 14px 16px;
  margin: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.store-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.store-banner h3 { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.store-banner p { font-size: 12px; opacity: 0.95; line-height: 1.3; }

/* ============================================================
   LOADING & EMPTY STATES
============================================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
}
.empty-state .icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.empty-state p { color: var(--gray-600); font-size: 13px; margin-bottom: 16px; }
.empty-state .btn {
  background: var(--saffron);
  color: white;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 800;
  display: inline-block;
  font-size: 13px;
}

/* ============================================================
   TOAST
============================================================ */
#toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 12px 22px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s, bottom 0.2s;
  max-width: 80%;
  text-align: center;
}

/* ============================================================
   DESKTOP — keep app feel but center
============================================================ */
@media (min-width: 768px) {
  body { background: #ddd; }
  .app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-page);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
  }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .pd-sticky-cta, .cart-checkout-cta { max-width: 480px; left: 50%; transform: translateX(-50%); }
}

/* ============================================================
   BUNDLE CARDS (Home page combos)
============================================================ */
.bundle-card {
  flex: 0 0 240px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: start;
}
.bundle-card .b-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 1.6;
  background: var(--gray-100);
}
.bundle-card .b-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid white;
}
.bundle-card .b-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
}
.bundle-card .b-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bundle-card .b-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}
.bundle-card .b-desc {
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.bundle-card .b-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  margin-top: auto;
}
.bundle-card .b-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--success);
}
.bundle-card .b-was {
  font-size: 11px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.bundle-card .b-save {
  font-size: 11px;
  color: var(--saffron);
  font-weight: 800;
}
.bundle-card .b-add {
  background: var(--saffron);
  color: white;
  padding: 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
}
.bundle-card .b-add:hover { background: var(--saffron-dark); }

/* Bundle detail modal */
.bundle-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.bundle-modal.open { display: flex; }
.bundle-modal-inner {
  background: white;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 20px;
}

/* Image fallback when load fails */
img.img-failed {
  opacity: 0.3 !important;
  background: var(--gray-100);
  object-fit: contain !important;
  padding: 20% !important;
}
