/* =============================================================================
   ZipZapZoom — Modern Website Design Layer
   Vibrant futuristic red. Layered ON TOP of Tailwind CDN + custom.css to give
   the storefront a modern, animated, cohesive feel without rewriting views.
   Kept in sync with the mobile app design tokens (src/theme/tokens.js).
   ============================================================================= */

:root {
  /* Brand ramp */
  --zzz-red-50: #FFF1F2;
  --zzz-red-100: #FFE1E3;
  --zzz-red-400: #FF5C68;
  --zzz-red-500: #F5223A;
  --zzz-red-600: #E00B27;
  --zzz-red-700: #BC0620;

  --zzz-primary: var(--zzz-red-500);
  --zzz-primary-strong: var(--zzz-red-600);
  --zzz-accent-lime: #3DD68C;
  --zzz-accent-amber: #FFB020;

  --zzz-ink: #141821;
  --zzz-muted: #6B7280;
  --zzz-line: #E2E5EC;
  --zzz-surface: #FFFFFF;
  --zzz-bg: #F7F8FA;

  --zzz-radius: 14px;
  --zzz-radius-lg: 18px;
  --zzz-shadow-sm: 0 2px 10px rgba(20, 24, 33, 0.06);
  --zzz-shadow-md: 0 8px 24px rgba(20, 24, 33, 0.10);
  --zzz-glow: 0 8px 22px rgba(245, 34, 58, 0.35);

  --zzz-grad-brand: linear-gradient(135deg, #FF5C68 0%, #F5223A 55%, #BC0620 100%);
  --zzz-grad-savings: linear-gradient(135deg, #3DD68C 0%, #10B981 100%);
}

/* ---- Base polish ---------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { background: var(--zzz-bg); -webkit-font-smoothing: antialiased; }

::selection { background: var(--zzz-red-100); color: var(--zzz-red-700); }

/* Modern slim scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: #d7dbe3; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #c2c7d2; }

/* ---- Brand gradient / glow utilities -------------------------------------- */
.zzz-grad-brand { background-image: var(--zzz-grad-brand) !important; color: #fff !important; }
.zzz-grad-savings { background-image: var(--zzz-grad-savings) !important; color: #fff !important; }
.zzz-glow { box-shadow: var(--zzz-glow) !important; }

/* Make existing red CTAs feel premium: gradient + glow + hover lift.
   Scoped to common button patterns used across the storefront views. */
button.bg-red-600, a.bg-red-600, .btn-primary,
button.bg-red-700, a.bg-red-700,
input[type="submit"].bg-red-600 {
  background-image: var(--zzz-grad-brand) !important;
  border: none !important;
  box-shadow: var(--zzz-shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
button.bg-red-600:hover, a.bg-red-600:hover, .btn-primary:hover,
button.bg-red-700:hover, a.bg-red-700:hover {
  transform: translateY(-1px);
  box-shadow: var(--zzz-glow);
  filter: saturate(1.05);
}
button.bg-red-600:active, a.bg-red-600:active, .btn-primary:active { transform: translateY(0) scale(.98); }

/* Gradient-to-lime bars (loader, promos) -> brand gradient */
.bg-gradient-to-r.from-red-600.to-lime-500,
.bg-gradient-to-r.from-red-600.to-lime-400 {
  background-image: var(--zzz-grad-brand) !important;
}

/* ---- Cards / surfaces ----------------------------------------------------- */
.zzz-card,
.product-card, .category-card {
  background: var(--zzz-surface);
  border-radius: var(--zzz-radius-lg);
  box-shadow: var(--zzz-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover, .category-card:hover, .zzz-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--zzz-shadow-md);
}

/* Soften generic bordered boxes into modern rounded cards */
.rounded-lg { border-radius: var(--zzz-radius) !important; }
.shadow, .shadow-sm, .shadow-md { box-shadow: var(--zzz-shadow-sm) !important; }

/* ---- Inputs --------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--zzz-primary) !important;
  box-shadow: 0 0 0 3px rgba(245, 34, 58, 0.15) !important;
}

/* ---- Links / accents ------------------------------------------------------ */
.text-red-600, .text-red-500, .text-red-700 { color: var(--zzz-primary) !important; }
.border-red-600, .border-red-500, .border-red-700 { border-color: var(--zzz-primary) !important; }

/* Cart count / badges */
#cartCount {
  background-image: var(--zzz-grad-brand) !important;
  box-shadow: 0 2px 6px rgba(245, 34, 58, 0.4);
}

/* ---- Discount / deal pills ------------------------------------------------ */
.zzz-pill-deal {
  background-image: var(--zzz-grad-savings);
  color: #fff; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; display: inline-block;
}

/* ---- Micro-animations ----------------------------------------------------- */
@keyframes zzzFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zzzPop { 0% { transform: scale(.85); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes zzzShimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.zzz-fade-up { animation: zzzFadeUp .45s ease both; }
.zzz-pop { animation: zzzPop .3s ease both; }

/* Skeleton shimmer for loading states */
.zzz-skeleton {
  background: #eceef2;
  background-image: linear-gradient(90deg, #eceef2 0px, #f6f7f9 200px, #eceef2 400px);
  background-size: 800px 100%;
  animation: zzzShimmer 1.2s infinite linear;
  border-radius: 10px;
}

/* ---- Loader: brand the produce dots + cart stroke ------------------------- */
#pageLoader svg path[stroke="#4CAF50"] { stroke: var(--zzz-primary) !important; }
#pageLoader .progress-bar { background-image: var(--zzz-grad-brand) !important; }

/* ---- Bottom mobile nav active state --------------------------------------- */
.zzz-bottom-nav .active, .zzz-bottom-nav [aria-current="page"] { color: var(--zzz-primary) !important; }

/* ---- Dark mode (respects OS preference) ----------------------------------- */
@media (prefers-color-scheme: dark) {
  :root.zzz-dark {
    --zzz-ink: #F4F6FA;
    --zzz-muted: #9AA1B2;
    --zzz-line: rgba(255,255,255,0.10);
    --zzz-surface: #20242E;
    --zzz-bg: #0B0E14;
  }
}

/* =============================================================================
   STOREFRONT LAYOUT REDESIGN (homepage + listings)
   A genuine visual rework of the storefront layered onto the existing markup:
   modern section cards, elevated product tiles, pill category rail, refined
   price hierarchy, hover motion. Keeps all PHP data loops intact.
   ============================================================================= */

/* Page rhythm: softer app-like background + comfortable section spacing */
body.bg-gray-100 { background: var(--zzz-bg) !important; }

main > section { margin-top: 18px !important; }

/* --- Section cards: unify the white "rounded-t-lg + rounded-b-lg" blocks into
   one cohesive elevated card with a modern header. --- */
main section .bg-white.rounded-t-lg {
  border-top-left-radius: var(--zzz-radius-lg) !important;
  border-top-right-radius: var(--zzz-radius-lg) !important;
  box-shadow: var(--zzz-shadow-sm);
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--zzz-line);
}
main section .rounded-b-lg.bg-white {
  border-bottom-left-radius: var(--zzz-radius-lg) !important;
  border-bottom-right-radius: var(--zzz-radius-lg) !important;
  box-shadow: var(--zzz-shadow-sm);
}

/* Section title: add a brand accent bar + stronger type */
main section .bg-white.rounded-t-lg h2 {
  position: relative;
  padding-left: 12px;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  font-size: 1.15rem !important;
}
main section .bg-white.rounded-t-lg h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 999px;
  background-image: var(--zzz-grad-brand);
}
[dir="rtl"] main section .bg-white.rounded-t-lg h2 { padding-left: 0; padding-right: 12px; }
[dir="rtl"] main section .bg-white.rounded-t-lg h2::before { left: auto; right: 0; }

/* "View all" link -> pill */
main section .bg-white.rounded-t-lg a {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--zzz-red-50); color: var(--zzz-primary) !important;
  padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 12px;
  transition: background .15s ease;
}
main section .bg-white.rounded-t-lg a:hover { background: var(--zzz-red-100); }

/* --- Hero banner: bigger radius + soft shadow --- */
.swiper-container.swiper img.rounded-lg { border-radius: var(--zzz-radius-lg) !important; }
main > section:first-of-type .swiper-slide img { box-shadow: var(--zzz-shadow-sm); }

/* --- Category rail: round "pill" tiles with gradient ring on hover --- */
main section .swiper-slide .flex.flex-col.justify-center.items-center img {
  width: 68px !important; height: 68px !important;
  border-radius: 20px !important;
  background: var(--zzz-red-50) !important;
  padding: 6px; object-fit: contain !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
main section .swiper-slide a:hover .flex.flex-col.justify-center.items-center img {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(245,34,58,.18);
}
main section .swiper-slide h6 { font-weight: 600 !important; }

/* --- Product cards: elevate, round, hover-lift, cleaner border --- */
main section .swiper-slide.rounded-lg.bg-white {
  border: 1px solid var(--zzz-line) !important;
  border-radius: var(--zzz-radius-lg) !important;
  box-shadow: var(--zzz-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
main section .swiper-slide.rounded-lg.bg-white:hover {
  transform: translateY(-4px);
  box-shadow: var(--zzz-shadow-md);
  border-color: var(--zzz-red-200) !important;
}
/* product image zone gets a soft tinted backdrop */
main section .swiper-slide.rounded-lg.bg-white .text-center.relative.flex.justify-center {
  background: linear-gradient(180deg, #fff 0%, var(--zzz-bg) 100%);
  border-radius: var(--zzz-radius);
  padding: 10px 0;
}
/* price: stronger current price, muted strikethrough */
main section .swiper-slide.rounded-lg.bg-white .text-gray-900.font-bold { font-size: 15px !important; color: var(--zzz-ink) !important; }

/* --- Best-seller category tiles --- */
main section .swiper-slide a.block.bg-gray-100 {
  background: var(--zzz-surface) !important;
  border: 1px solid var(--zzz-line);
  border-radius: var(--zzz-radius-lg) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
main section .swiper-slide a.block.bg-gray-100:hover {
  transform: translateY(-3px); box-shadow: var(--zzz-shadow-md);
}

/* --- The in-card +/qty stepper (bg-red-700) -> brand gradient pill --- */
.inline-flex.items-center.gap-1.p-1.rounded-lg.bg-red-700 {
  background-image: var(--zzz-grad-brand) !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(245,34,58,.3) !important;
  border-radius: 999px !important;
}

/* --- Subscribe & Save banner: richer gradient + glow --- */
section a .bg-gradient-to-r.from-red-500.to-red-600 {
  background-image: var(--zzz-grad-brand) !important;
}
section a.block.rounded-2xl { box-shadow: var(--zzz-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
section a.block.rounded-2xl:hover { transform: translateY(-2px); box-shadow: var(--zzz-glow); }

/* --- Swiper nav buttons -> brand circular --- */
.swiper-button-next, .swiper-button-prev {
  background: var(--zzz-surface) !important;
  box-shadow: var(--zzz-shadow-sm);
  width: 34px !important; height: 34px !important; border-radius: 999px !important;
  color: var(--zzz-primary) !important;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; font-weight: 700; }
.swiper-pagination-bullet-active { background: var(--zzz-primary) !important; }

/* --- Section entrance animation --- */
main > section { animation: zzzFadeUp .5s ease both; }

/* --- Mobile bottom nav polish (storefront) --- */
.zzz-bottom-nav { box-shadow: 0 -2px 16px rgba(20,24,33,.08); border-top: none !important; }

/* =============================================================================
   HEADER REBUILD (sticky, Blinkit/Swiggy-style)
   ============================================================================= */
.zzz-header { box-shadow: 0 2px 14px rgba(20,24,33,.06); }
.zzz-header-inner { border-bottom: 1px solid var(--zzz-line); }

/* Delivery-location pill */
.zzz-loc-pill {
  display: flex; flex-direction: column; gap: 1px;
  padding: 4px 8px; border-radius: 12px; cursor: pointer;
  transition: background .15s ease; max-width: 230px;
}
.zzz-loc-pill:hover { background: var(--zzz-red-50); }
.zzz-loc-top { display: flex; align-items: center; gap: 5px; }
.zzz-loc-bolt { color: var(--zzz-primary); font-size: 12px; }
.zzz-loc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--zzz-primary); text-transform: uppercase; }
.zzz-loc-value { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--zzz-ink); }
.zzz-loc-value span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zzz-loc-value i { color: var(--zzz-muted); font-size: 12px; }

/* Big rounded search bar */
.zzz-searchbar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  background: var(--zzz-bg); border: 1.5px solid var(--zzz-line);
  border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.zzz-searchbar:hover { border-color: var(--zzz-red-200); box-shadow: 0 0 0 3px rgba(245,34,58,.08); }
.zzz-search-ico { color: var(--zzz-primary); font-size: 18px; }
.zzz-search-ph { color: var(--zzz-muted); font-size: 14px; }

/* Icon action buttons (cart / profile / search) */
.zzz-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--zzz-bg); color: var(--zzz-ink);
  transition: background .15s ease, transform .1s ease;
}
.zzz-icon-btn:hover { background: var(--zzz-red-50); color: var(--zzz-primary); }
.zzz-icon-btn:active { transform: scale(.94); }

/* Cart count badge */
.zzz-cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  background-image: var(--zzz-grad-brand) !important;
  box-shadow: 0 2px 6px rgba(245,34,58,.4);
  border: 2px solid #fff;
}

/* =============================================================================
   PRODUCT CARD UPGRADE (Blinkit/Swiggy-style) — pure CSS over existing markup
   Targets the homepage/listing product slide: id="{slug}-{variant}" structure.
   JS hooks (addToCart/removeFromCart/openProductVariantPopup, qty spans) untouched.
   ============================================================================= */

/* Card shell */
main section .swiper-slide.rounded-lg.bg-white,
.zzz-product-grid .product-slide {
  position: relative;
  background: var(--zzz-surface) !important;
  border: 1px solid var(--zzz-line) !important;
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: visible !important;
}
main section .swiper-slide.rounded-lg.bg-white > .p-3 { padding: 10px !important; }

/* Image zone: soft tinted panel, consistent height */
main section .swiper-slide.rounded-lg.bg-white .text-center.relative.flex.justify-center {
  background: linear-gradient(180deg,#fff,var(--zzz-bg));
  border-radius: 14px;
  padding: 14px 8px 18px !important;
  margin-bottom: 6px;
}
main section .swiper-slide.rounded-lg.bg-white .text-center.relative.flex.justify-center img {
  height: 120px !important; object-fit: contain !important;
  transition: transform .25s ease;
}
main section .swiper-slide.rounded-lg.bg-white:hover .text-center.relative.flex.justify-center img {
  transform: scale(1.06);
}

/* Floating circular ADD button overlapping the image bottom-right (Blinkit look) */
main section .swiper-slide.rounded-lg.bg-white [class*="-mainbtndiv-"],
main section .swiper-slide.rounded-lg.bg-white .flex.justify-between.items-center > div:last-child {
  position: relative;
}
main section .swiper-slide.rounded-lg.bg-white button[onclick*="openProductVariantPopup"],
main section .swiper-slide.rounded-lg.bg-white button[onclick*="addToCart"].text-xs {
  background: var(--zzz-surface) !important;
  color: var(--zzz-primary) !important;
  border: 1.5px solid var(--zzz-primary) !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 7px 16px !important;
  box-shadow: var(--zzz-shadow-sm);
  transition: transform .1s ease, box-shadow .2s ease;
}
main section .swiper-slide.rounded-lg.bg-white button[onclick*="openProductVariantPopup"]:hover,
main section .swiper-slide.rounded-lg.bg-white button[onclick*="addToCart"].text-xs:hover {
  box-shadow: 0 6px 16px rgba(245,34,58,.25); transform: translateY(-1px);
}
main section .swiper-slide.rounded-lg.bg-white button[onclick*="openProductVariantPopup"]:active { transform: scale(.95); }

/* qty stepper pill (the add/minus row) */
main section .swiper-slide.rounded-lg.bg-white .flex.items-center.gap-1.p-1.rounded-lg.bg-red-700 {
  background-image: var(--zzz-grad-brand) !important;
  border: none !important; border-radius: 12px !important;
  box-shadow: 0 4px 10px rgba(245,34,58,.3);
}

/* Product name: 2-line clamp, firm weight */
main section .swiper-slide.rounded-lg.bg-white h3 {
  font-weight: 700 !important; font-size: 13.5px !important; line-height: 1.3;
  color: var(--zzz-ink) !important; min-height: 2.6em;
}
/* variant/unit label */
main section .swiper-slide.rounded-lg.bg-white .text-gray-500 { font-size: 11.5px !important; }

/* Discount ribbon: modern green pill instead of the SVG flag */
main section .swiper-slide.rounded-lg.bg-white .absolute.-top-2.left-0 { display: none !important; }
main section .swiper-slide.rounded-lg.bg-white .absolute.text-xs.text-white.font-bold {
  top: 8px !important; left: 8px !important;
  background-image: var(--zzz-grad-savings);
  padding: 3px 8px; border-radius: 999px; line-height: 1;
  box-shadow: 0 2px 6px rgba(16,185,129,.35);
}
main section .swiper-slide.rounded-lg.bg-white .absolute.text-xs.text-white.font-bold::after { content: " OFF"; }

/* Subscribe & Save button inside card -> soft brand pill */
main section .swiper-slide.rounded-lg.bg-white button[onclick*="product-subscription"] {
  background: var(--zzz-red-50) !important; color: var(--zzz-primary) !important;
  border: 1px solid var(--zzz-primary) !important; font-weight: 700 !important;
  border-radius: 10px !important;
}

/* Remove the harsh red border the cards had */
main section .swiper-slide.rounded-lg.bg-white.border-red-500 { border-color: var(--zzz-line) !important; }

/* =============================================================================
   MINI CART DRAWER — modern slide-out (JS-populated lists untouched)
   ============================================================================= */
.mini-shopping-cart {
  background: var(--zzz-surface) !important;
  box-shadow: -8px 0 30px rgba(20,24,33,.18) !important;
  border-top-left-radius: 20px; border-bottom-left-radius: 20px;
}
[dir="rtl"] .mini-shopping-cart {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
  border-top-right-radius: 20px; border-bottom-right-radius: 20px;
  box-shadow: 8px 0 30px rgba(20,24,33,.18) !important;
}
.mini-shopping-cart .cartsHeading { font-weight: 800 !important; }
.mini-shopping-cart > .flex.justify-between.py-2.px-4.border-b {
  padding: 16px 18px !important; border-bottom: 1px solid var(--zzz-line) !important;
}
.mini-shopping-cart .btn-close {
  width: 34px; height: 34px; border-radius: 999px; background: var(--zzz-bg);
  display: inline-flex; align-items: center; justify-content: center; color: var(--zzz-muted);
}
.mini-shopping-cart .btn-close:hover { background: var(--zzz-red-50); color: var(--zzz-primary); }

/* Footer sits as a clean elevated bar */
.mini-shopping-cart-footer {
  border-top: 1px solid var(--zzz-line); padding: 12px 16px;
  background: var(--zzz-surface);
}
/* Checkout/primary buttons rendered into the footer by JS */
.mini-shopping-cart-footer a, .mini-shopping-cart-footer button {
  border-radius: 14px !important;
}
.mini-shopping-cart-footer a.bg-red-600, .mini-shopping-cart-footer button.bg-red-600,
.mini-shopping-cart-footer a.bg-red-700, .mini-shopping-cart-footer button.bg-red-700 {
  background-image: var(--zzz-grad-brand) !important; box-shadow: var(--zzz-glow);
}

/* Cart item rows (JS-injected) get card-like separation */
#mini-shop-cart-item-list > li, #mini-seller-list > li {
  border: 1px solid var(--zzz-line); border-radius: 14px; padding: 10px;
  margin-bottom: 10px; background: var(--zzz-surface);
}

/* =============================================================================
   PRODUCT DETAIL PAGE — modern panels, variant selector, add-to-cart
   (switchVarient / addToCart hooks + {slug}-mainbtndiv ids untouched)
   ============================================================================= */
.image-wrapper.bg-white {
  border-radius: 18px !important; border: 1px solid var(--zzz-line);
  background: linear-gradient(180deg,#fff,var(--zzz-bg)) !important;
  box-shadow: var(--zzz-shadow-sm);
}
.thumbnails-img { border-radius: 12px !important; }
.thumbnails-img.active-thumbnail { border-color: var(--zzz-primary) !important; box-shadow: 0 0 0 2px rgba(245,34,58,.2); }

/* Info panel */
.px-4.bg-white.rounded-lg {
  border-radius: 18px !important; box-shadow: var(--zzz-shadow-sm);
  border: 1px solid var(--zzz-line);
}

/* Variant selector cards */
[id^="variant-"] {
  border-radius: 14px !important; transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
[id^="variant-"].active, [id^="variant-"].border-red-700 {
  border: 1.5px solid var(--zzz-primary) !important;
  background: var(--zzz-red-50) !important;
  box-shadow: 0 0 0 3px rgba(245,34,58,.12) !important;
}
[id^="variant-"]:hover { transform: translateY(-1px); }

/* Add-to-cart / stepper on detail page -> brand gradient */
[class*="-mainbtndiv"] .inline-flex.items-center.gap-1.p-1.rounded-lg.bg-red-700,
[class*="-mainbtndiv"] .bg-red-700 {
  background-image: var(--zzz-grad-brand) !important; border: none !important;
  border-radius: 14px !important; box-shadow: var(--zzz-glow);
}

/* Similar products / tabs below reuse the product-card + section styles already defined. */
.nav-link.active-tab { color: var(--zzz-primary) !important; border-bottom: 2px solid var(--zzz-primary) !important; }

/* =============================================================================
   CHECKOUT PAGE — modern summary cards + sticky pay
   ============================================================================= */
.website-checkout .bg-white, main .bg-white.rounded-lg {
  border-radius: 16px !important; box-shadow: var(--zzz-shadow-sm);
}
/* Primary place-order / pay buttons */
button.place-order, a.place-order, .checkout-pay, button#placeOrderBtn {
  background-image: var(--zzz-grad-brand) !important; border: none !important;
  border-radius: 14px !important; box-shadow: var(--zzz-glow); font-weight: 800 !important;
}

/* =============================================================================
   GRID LISTING PRODUCT CARDS (category / subcategory / search results)
   These pages use `.grid ... > .rounded-lg.bg-white.border.border-red-500`
   instead of swiper slides — extend the same Blinkit-style card treatment.
   JS hooks (addToCart/removeFromCart/openProductVariantPopup, {slug}-mainbtndiv)
   are untouched.
   ============================================================================= */
.grid > .rounded-lg.bg-white.border,
.grid .rounded-lg.bg-white.border.border-red-500 {
  position: relative;
  border: 1px solid var(--zzz-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--zzz-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.grid > .rounded-lg.bg-white.border:hover,
.grid .rounded-lg.bg-white.border.border-red-500:hover {
  transform: translateY(-4px);
  box-shadow: var(--zzz-shadow-md);
  border-color: var(--zzz-red-200) !important;
}

/* image gets the tinted zone + hover zoom */
.grid .rounded-lg.bg-white.border img[alt] {
  transition: transform .25s ease;
}
.grid .rounded-lg.bg-white.border:hover img[alt] { transform: scale(1.05); }

/* ADD button + qty stepper inside grid cards -> brand treatment */
.grid .rounded-lg.bg-white.border button[onclick*="openProductVariantPopup"],
.grid .rounded-lg.bg-white.border button[onclick*="addToCart"] {
  background: var(--zzz-surface) !important;
  color: var(--zzz-primary) !important;
  border: 1.5px solid var(--zzz-primary) !important;
  font-weight: 800 !important; border-radius: 12px !important;
  box-shadow: var(--zzz-shadow-sm);
}
.grid .rounded-lg.bg-white.border .flex.items-center.gap-1.p-1.rounded-lg.bg-red-700,
.grid .rounded-lg.bg-white.border .bg-red-700 {
  background-image: var(--zzz-grad-brand) !important; border: none !important;
  border-radius: 12px !important;
}
.grid .rounded-lg.bg-white.border h3 { font-weight: 700 !important; }

/* Category/subcategory chips at the top of listings */
.grid.grid-cols-9 > a, .grid.grid-cols-9 > div,
.grid.grid-cols-4.md\:grid-cols-5 > a {
  transition: transform .15s ease;
}
.grid.grid-cols-9 img, .grid.grid-cols-4.md\:grid-cols-5 img { border-radius: 16px !important; }

/* View-mode toggle (grid/list icons) accent */
.fi.fi-rr-grid, .fi.fi-rr-list { color: var(--zzz-muted); }
.fi.fi-rr-grid.active, .fi.fi-rr-list.active { color: var(--zzz-primary) !important; }
