/* ===================================================================
   Freshbutti — Main Stylesheet
   Version: 1.0.0
   Font: Poppins (Google Fonts)
   Primary: #22C55E | Secondary: #0F172A | Accent: #84CC16
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================================================
   CSS VARIABLES
=================================================================== */
:root {
  --primary: #22C55E;
  --primary-dark: #16A34A;
  --primary-light: #DCFCE7;
  --secondary: #14532D;
  --accent: #84CC16;
  --accent-dark: #65A30D;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --white: #FFFFFF;
  --light: #F8FAFC;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
  --shadow-green: 0 8px 24px rgba(34, 197, 94, .35);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all .2s ease;
  --font: 'Poppins', sans-serif;
  --header-h: 64px;
  --bottomnav-h: 70px;
}

/* ===================================================================
   RESET & BASE
=================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottomnav-h);
  width: 100%;
  max-width: 100%;
}

/* Prevent Bootstrap .row negative margins from causing horizontal scroll */
.row {
  --bs-gutter-x: 0;
  overflow: hidden;
}

.container,
.container-fluid {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

input,
select,
textarea,
button {
  font-family: var(--font);
}

/* ===================================================================
   SCROLLBAR
=================================================================== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* ===================================================================
   TOP HEADER
=================================================================== */
.bro-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--secondary);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  flex-wrap: wrap;
}

/* Logo */
.bro-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  order: 1;
}

.bro-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bro-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.bro-logo-text span {
  color: var(--primary);
}

/* Location Selector */
.bro-location {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
  max-width: 200px;
  flex: 1;
}

.bro-location:hover {
  background: rgba(255, 255, 255, .15);
}

.bro-location-pin {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bro-location-info {
  min-width: 0;
}

.bro-location-label {
  font-size: .65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.bro-location-area {
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bro-location-chevron {
  color: var(--gray-400);
  font-size: .7rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Header Actions */
.bro-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  order: 2;
}

.bro-header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.bro-header-btn:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.bro-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid white;
}

/* ===================================================================
   SEARCH BAR
=================================================================== */
.bro-search-wrap {
  width: 100%;
  order: 3;
  padding: 4px 0 8px 0;
}

.bro-search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  border: 2px solid var(--primary);
  height: 46px;
}

.bro-search-box .search-icon {
  padding: 0 14px;
  color: #16a34a;
  /* Matches logo green */
  font-size: 1.15rem;
  flex-shrink: 0;
}

.bro-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: transparent;
  padding: 0 8px;
}

.bro-search-input::placeholder {
  color: var(--gray-400);
}

.bro-search-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 18px;
  height: 100%;
  font-weight: 600;
  font-size: .85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.bro-search-btn:hover {
  background: var(--primary-dark);
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 16px;
  right: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.show {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.suggestion-item:hover {
  background: var(--primary-light);
}

.suggestion-item img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.suggestion-item-name {
  font-size: .87rem;
  font-weight: 500;
}

.suggestion-item-price {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===================================================================
   FLASH SALE BANNER
=================================================================== */
/* ===================================================================
   FLASH SALE SECTION — Premium Dark Design
=================================================================== */
.flash-sale-section {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #14532d 100%);
  padding: 16px 16px 20px;
  margin: 0 0 8px;
  position: relative;
  overflow: hidden;
}

.flash-sale-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(253, 224, 71, .35) 0%, transparent 70%);
  pointer-events: none;
}

.flash-sale-section::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 30%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-lightning {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, .8));
  animation: flash-pulse 1.5s ease-in-out infinite;
}

@keyframes flash-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 200, 0, .6));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(255, 200, 0, 1));
  }
}

.flash-main-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: .3px;
}

.flash-sub-title {
  font-size: .68rem;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  margin-top: 1px;
}

/* Timer */
.flash-timer-wrap {
  text-align: right;
}

.flash-timer-label {
  font-size: .6rem;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}

.flash-timer {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.timer-unit-label {
  font-size: .5rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 600;
  text-transform: uppercase;
}

.timer-box {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #FFFFFF;
  font-size: .82rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 7px;
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.timer-sep {
  color: rgba(255, 255, 255, .6);
  font-weight: 800;
  font-size: 1rem;
  margin-top: 4px;
}

/* Horizontal scroll strip */
.flash-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}

.flash-cards-scroll::-webkit-scrollbar {
  display: none;
}

/* Individual flash card */
.flash-card {
  flex: 0 0 130px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.flash-card:active {
  transform: scale(.97);
}

.flash-card-img-wrap {
  position: relative;
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.flash-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flash-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #FF4757, #FF6B35);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(255, 71, 87, .4);
}

.flash-card-body {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.flash-card-name {
  font-size: .72rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flash-card-unit {
  font-size: .6rem;
  color: rgba(255, 255, 255, .45);
}

.flash-card-prices {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.flash-card-price {
  font-size: .88rem;
  font-weight: 800;
  color: #22C55E;
}

.flash-card-mrp {
  font-size: .65rem;
  color: rgba(255, 255, 255, .35);
  text-decoration: line-through;
}

.flash-card-add {
  margin-top: 7px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 0;
  font-size: .72rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: opacity .2s;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .3);
}

.flash-card-add:active {
  opacity: .8;
}


/* ===================================================================
   HERO BANNER SLIDER
=================================================================== */
.hero-section {
  padding: 0;
  margin: 12px 0;
}

.hero-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 12px;
  position: relative;
}

.hero-slide {
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
}

.hero-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 83, 45, .8) 0%, transparent 60%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 6px;
}

.hero-slide-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.hero-slide-sub {
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
}

.hero-slide-cta {
  margin-top: 10px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  width: fit-content;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* Swiper dots */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, .6);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

/* ===================================================================
   CATEGORY SLIDER
=================================================================== */
.section {
  padding: 16px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.category-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .15s ease;
  background: var(--gray-100);
}

.category-chip:hover .category-icon-wrap {
  transform: translateY(-3px);
}

.category-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon-placeholder {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.category-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  max-width: 70px;
  line-height: 1.3;
}

/* ===================================================================
   PRODUCT CARDS
=================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px;
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Product Image */
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-50);
  overflow: hidden;
}

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

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

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: white;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  z-index: 1;
}

.product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  color: var(--gray-400);
  font-size: .9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-wishlist-btn.active,
.product-wishlist-btn:hover {
  color: var(--danger);
}

/* Product Info */
.product-info {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}

.product-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.product-unit {
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Variant Selector (mini) */
.product-variants {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.variant-chip {
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: white;
  color: var(--text-secondary);
}

.variant-chip:hover,
.variant-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Price */
.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-mrp {
  font-size: .75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-saving {
  font-size: .68rem;
  color: var(--primary);
  font-weight: 600;
}

/* Stars */
.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.product-rating .stars {
  font-size: .6rem;
  color: var(--warning);
}

.product-rating .count {
  font-size: .65rem;
  color: var(--text-muted);
}

/* Add to Cart Button */
.product-card-footer {
  padding: 0 10px 10px;
  margin-top: auto;
}

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  height: 36px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .25);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-green);
}

.btn-add-cart.loading {
  opacity: .7;
  cursor: not-allowed;
}

.btn-add-cart.out-of-stock {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
}

/* Quantity Stepper (replaces Add button when item in cart) */
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: var(--radius);
  height: 36px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.qty-btn:hover {
  background: rgba(0, 0, 0, .1);
}

.qty-value {
  color: white;
  font-size: .9rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

/* ===================================================================
   SECTION TABS (Featured / Popular / New Arrivals)
=================================================================== */
.section-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  margin-bottom: 14px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  width: fit-content;
}

.section-tab {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  font-family: var(--font);
}

.section-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .3);
}

/* ===================================================================
   BOTTOM NAVIGATION (Blinkit Style)
=================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: var(--white);
  border-top: 1px solid var(--border);
  height: var(--bottomnav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .10);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gray-400);
  flex: 1;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--primary);
  text-decoration: none;
}

.bottom-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  position: relative;
}

.bottom-nav-label {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--primary);
}

/* Center Floating Categories Button */
.bottom-nav-center {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  margin-top: -20px;
}

.bottom-nav-center-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.bottom-nav-center-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(34, 197, 94, .5);
  color: white;
}

.bottom-nav-center-label {
  font-size: .58rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ===================================================================
   CART SIDEBAR / MINI CART
=================================================================== */
.cart-offcanvas {
  --bs-offcanvas-width: 380px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-variant {
  font-size: .72rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-mrp {
  font-size: .73rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item-save {
  font-size: .73rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

.cart-item-remove {
  font-size: .73rem;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* Cart Summary */
.cart-summary {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .85rem;
}

.cart-summary-row.total {
  font-weight: 700;
  font-size: .95rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.cart-summary-savings {
  color: var(--primary);
  font-weight: 600;
}

/* ===================================================================
   BUTTONS
=================================================================== */
.btn-primary-bro {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(34, 197, 94, .3);
}

.btn-primary-bro:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-outline-bro {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-bro:hover {
  background: var(--primary);
  color: white;
}

/* ===================================================================
   FORMS
=================================================================== */
.bro-form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
}

.bro-form-control {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.bro-form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}

.bro-form-control.error {
  border-color: var(--danger);
}

/* OTP Input */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  font-family: var(--font);
}

.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}

/* ===================================================================
   FLASH MESSAGES
=================================================================== */
.flash-alert {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9999;
  min-width: 280px;
  max-width: 360px;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.flash-alert.success {
  background: #ECFDF5;
  border-left: 4px solid var(--primary);
  color: #065F46;
}

.flash-alert.error {
  background: #FEF2F2;
  border-left: 4px solid var(--danger);
  color: #991B1B;
}

.flash-alert.warning {
  background: #FFFBEB;
  border-left: 4px solid var(--warning);
  color: #92400E;
}

.flash-alert.info {
  background: #EFF6FF;
  border-left: 4px solid var(--info);
  color: #1E40AF;
}

/* ===================================================================
   PAGE SECTIONS
=================================================================== */
/* Old scrollable strip — kept hidden for backward compat */
.offers-banner {
  display: none;
}

.offers-banner-grid {
  display: none;
}

/* ── Brands Slider ─────────────────────────────────────── */
.brand-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: 110px;
  background: transparent;
  padding: 4px;
}

.brand-img-wrap {
  width: 100px;
  height: 80px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand-card:hover .brand-img-wrap {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.05);
}

.brand-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-card:hover .brand-img-wrap img {
  transform: scale(1.08);
}

.brand-img-fallback {
  font-size: 1.8rem;
  font-weight: 800;
  color: #94a3b8;
}

.brand-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.brand-card:hover .brand-name {
  color: #0f172a;
}

/* ── Today's Offers Slider ─────────────────────────────────────── */
.offer-slider-wrap {
  position: relative;
  padding: 0 16px;
}

.offer-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.offer-slider-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.offer-slide {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  flex: 0 0 100%;
  aspect-ratio: 16 / 6;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  text-decoration: none;
  scroll-snap-align: center;
}

.offer-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dot indicators */
.offer-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.offer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}

.offer-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

.offer-dot:hover {
  background: var(--primary-light, #4caf82);
}



/* ===================================================================
   PRODUCT DETAIL PAGE
=================================================================== */
.product-detail-img-wrap {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--primary);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-detail-mrp {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-discount {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Variant Buttons (detail page) */
.variant-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font);
  background: white;
  transition: var(--transition);
  color: var(--text-primary);
}

.variant-btn:hover,
.variant-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* ===================================================================
   CHECKOUT PAGE
=================================================================== */
.checkout-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
}

.checkout-section-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-section-title .icon {
  color: var(--primary);
}

.address-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}

.address-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.address-card-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.address-card-name {
  font-size: .9rem;
  font-weight: 600;
}

.address-card-text {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.slot-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.slot-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.slot-card-time {
  font-size: .85rem;
  font-weight: 700;
}

.slot-card-avail {
  font-size: .7rem;
  color: var(--text-muted);
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  text-transform: uppercase;
}

.coupon-input:focus {
  border-color: var(--primary);
}

.coupon-btn {
  height: 44px;
  padding: 0 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}

/* ===================================================================
   ORDER TRACKING (Premium Horizontal)
=================================================================== */
.order-premium-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius-xl);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.order-premium-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 50%);
  pointer-events: none;
}

.order-timeline-wrapper {
  padding: 20px 10px;
}

.order-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 20px;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--border);
  z-index: 1;
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  background: var(--white);
  border: 4px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.timeline-step.done .timeline-icon {
  background: var(--primary);
  border-color: var(--primary-light);
  color: white;
  box-shadow: var(--shadow-green);
}

.timeline-step.current .timeline-icon {
  background: var(--primary);
  border-color: var(--primary-light);
  color: white;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.timeline-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
  color: var(--text-primary);
}

.timeline-time {
  font-size: .7rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.timeline-step.step-cancelled .timeline-icon {
  background: var(--danger, #ef4444);
  border-color: rgba(239, 68, 68, 0.2);
  color: white;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
  animation: none;
}

.timeline-step.step-cancelled .timeline-label {
  color: var(--danger, #ef4444);
}

@media (max-width: 768px) {
  .order-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
  }

  .order-timeline::before {
    top: 20px;
    bottom: 40px;
    left: 18px;
    width: 4px;
    height: auto;
    right: auto;
  }

  .timeline-step {
    text-align: left;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
  }

  .timeline-icon {
    margin: 0 15px 0 0;
    position: absolute;
    left: -40px;
  }

  .timeline-content {
    padding-top: 4px;
  }
}

.timeline-step.done .timeline-label {
  color: var(--primary);
}

/* ===================================================================
   ADMIN PANEL (separated in admin.css, but base overrides here)
=================================================================== */
.admin-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ===================================================================
   SKELETON LOADERS
=================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-load {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-product-card {
  height: 280px;
  border-radius: var(--radius);
}

.skeleton-banner {
  height: 180px;
  border-radius: var(--radius-lg);
}

/* ===================================================================
   FOOTER
=================================================================== */
.bro-footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, .7);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.footer-logo-text span {
  color: var(--primary);
}

.footer-tagline {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  margin-top: 4px;
}

.footer-title {
  font-size: .85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 576px) {
  .bro-logo-text {
    font-size: 1.2rem;
  }

  .hero-slide {
    height: 155px;
  }

  .hero-slide-title {
    font-size: 1.05rem;
  }

  .product-detail-title {
    font-size: 1.05rem;
  }

  .product-detail-price {
    font-size: 1.35rem;
  }

  .cart-offcanvas {
    --bs-offcanvas-width: 100%;
  }
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

  .bro-header {
    padding: 0 24px;
  }

  .bro-search-wrap {
    padding: 10px 24px 12px;
  }
}

/* ===================================================================
   UTILITY
=================================================================== */
.text-primary-bro {
  color: var(--primary) !important;
}

.text-secondary-bro {
  color: var(--text-secondary) !important;
}

.bg-primary-bro {
  background: var(--primary) !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.rounded-bro {
  border-radius: var(--radius) !important;
}

.rounded-full {
  border-radius: var(--radius-full) !important;
}

.shadow-bro {
  box-shadow: var(--shadow) !important;
}

.d-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gap-10 {
  gap: 10px;
}

/* ===================================================================
   PREMIUM PRODUCT CARD (Zepto/Blinkit Style)
===================================================================== */
.product-card {
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--card, #FFFFFF);
  border: 1px solid var(--border, #E5E7EB);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-img-wrap {
  padding: 0;
  background: #F9FAFB;
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  color: #9CA3AF;
  /* For broken image alt text */
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 10px;
}

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

.product-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3B82F6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.product-info {
  padding: 12px 16px 8px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.product-weight {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-mrp {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-footer {
  padding: 0 16px 16px 16px;
}

/* Add / Select Button */
.btn-premium-add,
.btn-premium-select {
  width: 100%;
  background: var(--primary, #16A34A);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-premium-select {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.btn-premium-add:active,
.btn-premium-select:active {
  transform: scale(0.97);
}

/* In-Card Stepper */
.in-card-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-variant-switch {
  flex: 1;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--text-primary);
  border-radius: 12px;
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.in-card-stepper {
  display: flex;
  align-items: center;
  background: var(--primary, #16A34A);
  color: white;
  border-radius: 12px;
  padding: 4px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.in-card-stepper button {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.in-card-stepper span {
  min-width: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===================================================================
   BOTTOM SHEET FOR VARIANT SELECTION
===================================================================== */
.bro-bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.5);
  z-index: 1070;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.bro-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 1075;
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.bro-bottom-sheet.show {
  transform: translateY(0);
}

.bro-bottom-sheet-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sheet-drag-handle {
  width: 40px;
  height: 5px;
  background: #E5E7EB;
  border-radius: 5px;
  margin: 12px auto;
}

.sheet-header {
  padding: 10px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #F3F4F6;
}

.sheet-close-btn {
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6B7280;
  cursor: pointer;
}

.sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

/* Variant Row */
.variant-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  position: relative;
}

.variant-row.selected {
  border-color: var(--primary, #16A34A);
  background: #F0FDF4;
}

.variant-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-row.selected .variant-radio {
  border-color: var(--primary);
}

.variant-row.selected .variant-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.variant-info {
  flex: 1;
}

.variant-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.variant-mrp {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-left: 6px;
}

.variant-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.best-value-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #FF6B35;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.sheet-footer {
  padding: 16px 20px;
  border-top: 1px solid #F3F4F6;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-footer-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sheet-btn-add {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* ===================================================================
   HOME PAGE REDESIGN — v1.1
=================================================================== */

/* Delivery Promise Strip */
.delivery-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  padding: 10px 16px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.delivery-strip::-webkit-scrollbar {
  display: none;
}

.delivery-strip-item {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}

.delivery-strip-icon {
  font-size: .95rem;
}

.delivery-strip-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .15);
  flex-shrink: 0;
}

/* Hero Improvements */
.hero-section {
  padding: 12px 12px 4px;
  margin: 0;
}

.heroSwiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

.hero-slide {
  /* Override default aspect-ratio on mobile if needed, or just let it be height: auto */
  height: auto;
}

.hero-slide img {
  transition: transform 8s ease;
}

.swiper-slide-active .hero-slide img {
  transform: scale(1.06);
}

.hero-slide-overlay {
  background: linear-gradient(100deg, rgba(20, 83, 45, .82) 0%, rgba(20, 83, 45, .3) 55%, transparent 100%);
}

.hero-slide-cta {
  margin-top: 10px;
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, .45);
  transition: all .2s ease;
}

.hero-slide-cta:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .hero-slide {
    height: auto;
  }
}

@media (min-width: 1024px) {
  .hero-slide {
    height: auto;
  }

  .hero-section {
    padding: 16px 24px 8px;
  }
}

/* Section Improvements */
.section {
  padding: 20px 0 8px;
}

.section-header {
  padding: 0 16px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  padding: 4px 10px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.section-link:hover {
  background: var(--primary);
  color: white;
}

/* Category Chips */
.categories-scroll {
  gap: 12px;
  padding: 4px 16px 12px;
}

.category-chip {
  gap: 7px;
  transition: transform .2s ease;
}

.category-chip:active {
  transform: scale(.95);
}

.category-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: all .2s ease;
}

.category-chip:hover .category-icon-wrap {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.category-name {
  font-size: .73rem;
  font-weight: 700;
  max-width: 76px;
}

/* Products Grid */
.products-grid {
  gap: 10px;
  padding: 0 10px;
}

/* Product Card Redesign */
.product-card {
  border-radius: 16px;
  border: 1px solid #F0F0F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  border-color: var(--primary);
}

.product-img-wrap {
  border-radius: 16px 16px 0 0;
  background: #FAFAFA;
}

.product-discount-badge {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .3);
}

.product-info {
  padding: 8px 10px 4px;
}

.product-name {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.product-weight {
  font-size: .68rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
}

.product-price {
  font-size: .95rem;
  font-weight: 800;
  color: #0F172A;
}

.product-mrp {
  font-size: .72rem;
  color: #9CA3AF;
}

.product-price-row {
  margin-bottom: 0;
  gap: 4px;
}

.product-card-footer {
  padding: 8px 10px 10px;
}

/* Premium Buttons */
.btn-premium-add {
  width: 100%;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(34, 197, 94, .25);
}

.btn-premium-add:hover {
  background: linear-gradient(135deg, var(--primary-dark), #14532D);
  box-shadow: 0 5px 16px rgba(34, 197, 94, .4);
  transform: translateY(-1px);
}

.btn-premium-add:active {
  transform: scale(.97);
}

.btn-premium-add.out-of-stock {
  background: var(--gray-200);
  color: var(--gray-500);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-premium-select {
  width: 100%;
  height: 34px;
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-premium-select:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, .3);
}

/* Product Tabs */
.section-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 20px;
  outline: none;
}

.section-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(34, 197, 94, .3);
}

/* Offers Banner */
.offer-card {
  width: 240px;
  height: 110px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
  transition: transform .2s ease;
}

.offer-card:hover {
  transform: scale(1.02);
}

/* Footer Light Premium */
.bro-footer {
  background: white !important;
  padding: 32px 20px 24px !important;
  border-radius: 24px 24px 0 0 !important;
  border-top: 1px solid #f1f5f9 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02) !important;
  margin-top: 16px;
}

.bro-footer>div:first-child {
  color: var(--text-primary) !important;
}

.bro-footer p {
  color: var(--text-muted) !important;
}

.bro-footer>div:last-child {
  color: var(--text-muted) !important;
}

.bro-footer strong {
  color: var(--text-primary) !important;
}

.bro-footer .payment-logos span {
  background: white !important;
  border-color: #f1f5f9 !important;
  color: var(--text-muted) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Horizontal Scroll */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.h-scroll>* {
  scroll-snap-align: start;
}

/* Review Cards */
.review-card {
  flex-shrink: 0;
  width: 260px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  scroll-snap-align: start;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

/* Blog Cards */
.blog-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  scroll-snap-align: start;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  border-color: var(--primary);
}

/* Responsive */
@media (min-width: 768px) {
  .delivery-strip {
    justify-content: center;
    gap: 28px;
    padding: 12px 24px;
  }

  .delivery-strip-item {
    font-size: .82rem;
  }

  .delivery-strip-icon {
    font-size: 1.1rem;
  }

  .section {
    padding: 24px 0 10px;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .category-icon-wrap {
    width: 80px;
    height: 80px;
  }

  .category-name {
    font-size: .78rem;
    max-width: 84px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    gap: 14px;
    padding: 0 16px;
  }

  .product-card {
    border-radius: 18px;
  }
}

/* ========================================
   Blinkit / Zepto Style Product Card
   ======================================== */

/* Card shell — transparent background, no shadow by default */
.product-card.blinkit-style {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  transition: none;
  padding: 0;
  overflow: visible;
}

/* ── Image + ADD button wrapper ── */
.product-img-add-wrap {
  position: relative;
  margin-bottom: 10px;
}

/* Image box */
.product-img-wrap {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f0efea;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

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

/* Heart button — sits inside image, top-right */
.product-wishlist-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.product-wishlist-btn i {
  font-size: 0.72rem;
  color: #9CA3AF;
  display: block;
  line-height: 0;
  padding-top: 1px;
}

.product-wishlist-btn.active i {
  color: #f43f5e;
}

/* ADD button — pinned to bottom-right of the image (inside) */
.add-btn-wrapper {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
}

/* ADD button — always white bg + green border + green text (Blinkit style) */
.btn-blinkit-add {
  background: #ffffff !important;
  border: 1.5px solid #1a9e3a !important;
  color: #1a9e3a !important;
  border-radius: 8px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-blinkit-add:hover {
  background: #f0fdf4 !important;
}

.btn-blinkit-add:active {
  transform: scale(0.93);
}

.btn-blinkit-add.has-options {
  padding: 2px 10px;
}

.btn-blinkit-add .add-text {
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  font-weight: 800;
  color: #1a9e3a !important;
}

.btn-blinkit-add .options-text {
  font-size: 0.56rem;
  font-weight: 600;
  color: #1a9e3a !important;
  opacity: 0.9;
}

.btn-blinkit-add.out-of-stock {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  font-size: 0.62rem;
  padding: 4px 6px;
  min-width: 54px;
}

/* ── Info area below the image ── */
.product-info-b {
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Weight label in blue */
.product-weight-b {
  font-size: 0.7rem;
  color: #3b82f6;
  font-weight: 700;
  line-height: 1.2;
}

/* Product name */
.product-name-b {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  margin: 2px 0;
}

.product-name-b:hover {
  color: #1a9e3a;
  text-decoration: none;
}

/* Delivery time row */
.product-delivery-b {
  font-size: 0.62rem;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 1px 0 3px;
}

/* Discount text */
.product-discount-b {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

/* Price row */
.product-price-row-b {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.price-mrp-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.product-price-b {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
}

.product-mrp-b {
  font-size: 0.68rem;
  color: #9ca3af;
  text-decoration: line-through;
}

/* ─── Category Listing Grid ─── */
#productsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 cols on mobile */
  gap: 10px;
}

@media (min-width: 540px) {
  #productsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 768px) {
  #productsGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  #productsGrid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  #productsGrid {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }
}

/* ─── Flash Sale overrides ─── */
.flash-sale-section .product-card.blinkit-style {
  background: transparent;
}

.flash-sale-section .product-name-b {
  color: #fff;
}

.flash-sale-section .product-price-b {
  color: #fff;
}

.flash-sale-section .product-weight-b {
  color: #ffffff;
}

.flash-sale-section .product-delivery-b {
  color: rgba(255, 255, 255, 0.9);
}

.flash-sale-section .product-mrp-b {
  color: rgba(255, 255, 255, 0.65);
}

.flash-sale-section .product-discount-b {
  color: #fde047;
}

/* ====== NEW CATEGORIES GRID UI ====== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  background-color: #f0fdf4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.cat-card:active {
  transform: scale(0.97);
}

/* TOP image area */
.cat-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.cat-card-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  -webkit-text-stroke: 0.4px;
  z-index: 3;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: darken;
  filter: contrast(1.05) brightness(1.02);
}

/* BOTTOM text + arrow area */
.cat-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 12px 12px 12px;
  background: inherit;
}

.cat-card-text {
  flex: 1;
  padding-right: 8px;
}

.cat-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.cat-card-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.cat-card-action {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
  flex-shrink: 0;
}

/* ====== UI FIXES FOR HEADER AND CATEGORIES ====== */
.bro-header {
  background: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Responsive Grid Adjustments */
@media (min-width: 576px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  /* Desktop Header Layout */
  .bro-header {
    flex-wrap: nowrap;
    padding: 0 24px;
  }

  .bro-logo {
    flex: 1;
  }

  .bro-search-wrap {
    order: 2;
    flex: 0 1 700px;
    margin: 0 20px !important;
    padding: 0;
  }

  .bro-header-actions {
    order: 3;
    flex: 1;
    justify-content: flex-end;
    margin-left: 0;
  }
}

/* ── Custom Modals ─────────────────────────────────────── */
.modal-bro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-bro.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-bro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-bro-content {
  position: relative;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.modal-bro.active .modal-bro-content {
  transform: translateY(0);
}
.cat-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  opacity: 0.95;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-card-img-fallback {
  transform: scale(1.1);
}
