/* 1. Global Reset and Base Styles */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent; 
  touch-action: manipulation;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force Light Mode - Prevent Dark Mode Overrides */
:root {
  color-scheme: light;
  --brixo-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --brixo-fs-xs: 11px;
  --brixo-fs-sm: 13px;
  --brixo-fs-base: 14px;
  --brixo-fs-md: 16px;
  --brixo-fs-lg: 18px;
  --brixo-fw-normal: 400;
  --brixo-fw-medium: 500;
  --brixo-fw-semibold: 600;
  --brixo-fw-bold: 700;
}

html, body {
  width:100%;
  height:auto !important;
  min-height:100%;
  overflow-y:auto !important;
  overflow-x:hidden;
  font-family: var(--brixo-font);
  font-size: var(--brixo-fs-base);
  font-weight: var(--brixo-fw-normal);
  line-height: 1.45;
  background: #f8fafc !important;
  color: #1a1a1a !important;
  color-scheme: light;
  scroll-behavior: smooth;
}

button, input, textarea, select, .popup-box, .main-container {
  font-family: inherit;
}

/* Unified typography — products, sections, nav (same font, normal weights) */
.compact-title,
.section-title,
.section-heading,
#product-category-title,
.category-name,
.product-title,
.compact-card p,
.card h3,
.blinkit-card-name,
.search-product-name,
.item-name,
.order-id-text,
.topbar-brand-text,
#app-footer .nav-item span,
.address-text,
#currentAddress,
.home-search input,
.home-search-new .home-search-input {
  font-family: var(--brixo-font) !important;
  letter-spacing: normal !important;
}

.compact-title,
.section-title,
.section-heading,
#product-category-title {
  font-size: var(--brixo-fs-lg) !important;
  font-weight: var(--brixo-fw-semibold) !important;
  line-height: 1.35 !important;
}

.product-title,
.compact-card p,
.card h3,
.blinkit-card-name {
  font-size: var(--brixo-fs-sm) !important;
  font-weight: var(--brixo-fw-medium) !important;
  line-height: 1.35 !important;
}

.product-price,
.blinkit-card-price {
  font-size: var(--brixo-fs-base) !important;
  font-weight: var(--brixo-fw-semibold) !important;
}

.category-name,
.category span {
  font-size: var(--brixo-fs-xs) !important;
  font-weight: var(--brixo-fw-medium) !important;
}

.topbar-brand-text {
  font-family: var(--brixo-font) !important;
  font-size: var(--brixo-fs-lg) !important;
  font-weight: var(--brixo-fw-bold) !important;
  letter-spacing: normal !important;
}

/* Ensure all containers have explicit light backgrounds if they are meant to be white */
.main-container, .content, .orders-container, .order-detail-container, .cart-container, .wishlist-container, .popup-box {
  background-color: inherit;
}

#orders-page, #order-detail-page, #cart-page, #wishlist-page, #product-detail-page, #profile-page {
  background-color: #f9f9f9 !important;
}

.order-item, .payment-summary, .item, .category-section, .product-card, .popup-box, .menu {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}

.section-title, .order-id-text, .order-items-names, .item-name, .product-title {
  color: #1a1a1a !important;
}

.order-date-text, .order-items-count, .prod-subtitle, .bill-label {
  color: #757575 !important;
}

/* Grocery & Kitchen Section - Matching provided template */
.title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  line-height: 30px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.image-box {
  width: 100%;
  height: 95px;
  background: #eef9f0;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: 0.25s;
}

.image-box:hover {
  transform: translateY(-2px);
}

.image-box img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

.card h3 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  padding: 0 2px;
}

/* 2. Main Layout Structure */
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* Keep app in mobile style always, even on desktop! */
@media (min-width: 768px) {
  .main-container {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 0;
    min-height: 100vh;
    padding: 0;
  }
  
  #app-footer {
    display: flex !important;
    left: 50%;
    transform: translateX(-50%);
  }
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

#app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1800;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  width: 100%;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.1);
  height: 72px;
  padding: 8px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(20px)) {
  #app-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

#app-footer.is-hidden-by-scroll {
  transform: translateX(-50%) translateY(120%);
  opacity: 0.95;
}

#app-footer .nav-item {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-footer .nav-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-footer .nav-item.active {
  color: #16a34a;
  background: #f0fdf4;
}

#app-footer .nav-item.active .nav-icon-wrap {
  transform: scale(1.15);
}

#app-footer .nav-item.active svg {
  filter: drop-shadow(0 2px 8px rgba(22, 163, 74, 0.3));
}

#app-footer .nav-item span {
  font-size: 11px;
  letter-spacing: 0.3px;
  font-weight: 600;
}

#app-footer .nav-item[data-target="categories"] span {
  display: inline;
}

#app-footer .nav-item[data-target="categories-grid"] span,
#app-footer .nav-item[data-target="order-again"] span {
  display: inline-block;
}

#app-footer .nav-item[data-target="order-again"] .nav-icon-wrap {
  width: 36px;
  height: 36px;
}

#app-footer .nav-item[data-target="order-again"] svg {
  width: 22px;
  height: 22px;
}

#app-footer .nav-item[data-target="order-again"] span {
  font-size: 11px;
}

#app-footer .nav-item:hover {
  background: #f8fafc;
}

#app-footer .nav-item:hover svg {
  transform: scale(1.1);
}

/* Ensure proper order: Home, Categories, Order Again */
#app-footer .nav-item:nth-child(1) {
  order: 1;
}

#app-footer .nav-item:nth-child(2) {
  order: 2;
}

#app-footer .nav-item:nth-child(3) {
  order: 3;
}

/* 3. Header Styles */
.header-section {
  background: white;
}

.main-container {
  position: relative;
}

/* No padding-top: fixed topbar + spacer caused visible gap; topbar is sticky in normal flow */
#header-section {
  padding-top: 0;
}

.topbar {
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  gap: 12px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1700;
}
.left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hamburger {
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: #222;
  border-radius: 2px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
  line-height: 0; gap: 8px;
}

.brixo-site-logo {
  height: 36px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.brixo-site-logo--on-dark {
  height: 32px;
  max-width: 120px;
}

.topbar .logo.topbar-brand {
  line-height: 1.2;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
}

.topbar-brand-text {
  color: #0c831f;
  white-space: nowrap;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.icon-btn:active {
  background-color: transparent !important;
}
.icon-btn:hover {
  background: none;
}
.topbar-search-btn {
  display: flex;
  color: #666;
}
.topbar-search-btn.is-visible {
  display: flex;
}
svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* 4. Side Menu Styles */

  /* 4. Side Menu Styles */
.menu {
position: fixed;
top: 0;
left: -300px;
width: 280px;
height: 100%;
background: #fff;
box-shadow: 4px 0 20px rgba(0,0,0,0.1);
z-index: 1000;
transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
padding-top: 20px;
border-top-right-radius: 16px;
border-bottom-right-radius: 16px;
overflow-y: auto;
}

.menu.active {
left: 0;
}
.menu-header {
    padding: 12px 22px; /* top padding thoda kam kiya */
    margin-top: -15px;   /* thoda upar shift */
    border-bottom: none;
    font-size: 20px;
    font-weight: 800;
    color: #4CAF50; /* darker green for modern look */
    background: linear-gradient(90deg, #e8f5e9, #ffffff);
    border-radius: 0 16px 0 0;
}


.menu-item {
padding: 15px 22px;
border-bottom: none;
color: #444;
font-weight: 500;
display: flex;
align-items: center;
gap: 14px;
cursor: pointer;
transition: background 0.2s ease, transform 0.15s ease;
border-radius: 8px;
margin: 4px 12px;
}

.menu-item:hover {
background: #f1f8f4;
transform: translateX(4px);
}

.menu-item svg {
width: 20px;
height: 20px;
stroke: #388e3c;
}

.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.45);
z-index: 999;
display: none;
opacity: 0;
transition: opacity 0.3s ease;
}

.overlay.active {
display: block;
opacity: 1;
}


/* 5. Address Bar Styles */
.address-bar {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(to bottom, #A8E6CF, #fdf6f0);
  font-size: 14px;
  gap: 8px;
  cursor: pointer;
}
.address-bar svg { flex-shrink: 0; }
.address-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 6. Search Bar Styles */
.home-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid rgba(107,114,128,0.3);
  border-radius: 8px;
  overflow: hidden;
  max-width: 90%;
  margin: 10px auto;
  height: 46px;
  padding: 0 12px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.home-search svg { 
  flex-shrink: 0; 
  display: block; 
}
.home-search input { flex: 1; height: 100%; border: none; outline: none; padding: 0 4px; font-size: 14px; color: #6B7280; }

/* 7. Popup Overlay Styles */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* show via JS */
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 0 10px;
}

.popup {
  width: 90%;
  max-width: 420px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 8. Popup Box Styles */
.popup-box {
  position: relative; /* for close button */
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: fadeInPopup 0.3s ease-out;
}

/* Slide-up Animation */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Fade-in Animation */
@keyframes fadeInPopup {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Close Button inside popup */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #888;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
.popup-close:hover { color: #4CAF50; }

/* Popup Header */
.popup-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

/* Popup Search Bar */
.popup-search {
  display: flex;
  align-items: center;
  background: #fefefe;
  border: 1px solid rgba(107,114,128,0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  height: 46px;
  padding: 0 12px;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.popup-search svg { flex-shrink: 0; display: block; }
.popup-search input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 4px;
  font-size: 14px;
  color: #6B7280;
}

/* Suggestions List */
.suggestions {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}
.suggestions div {
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.suggestions div:hover,
.suggestions .active {
  background: #f0f0f0;
}

/* Location Button */
.use-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4CAF50;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s;
}
.use-location:hover { color: #388E3C; }

/* Confirm Button */
.confirm-btn {
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.confirm-btn:hover { background: #388E3C; }

/* 12. Slider/Carousel Styles */























/* ============================= */
/* 12. Slider/Carousel Styles    */
/* ============================= */

/* Swiper Container */
.swiper {
  width: 100%;
  margin-top: 0;
  padding: 8px 0;
  background: transparent;
}

/* Each Slide */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

/* Slide Inner Container - banner size same */
.slide-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 91%;
  max-width: 1100px;
  height: 190px;
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  margin: 0 auto;
}

/* Hide Left Side for full image */
.slide-left {
  display: none;
}

/* Right Side full for image */
.slide-right {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: none;
  position: relative;
}

/* Hide texts if not needed */
.slide-right h3,
.slide-right p,
.sale-badge {
  display: none;
}

/* Image full banner cover */
.slide-right img {
  width: 100% !important;             /* Forced full width */
  height: 100% !important;            /* Forced full height */
  max-width: none !important;         /* Override any max-width limits */
  object-fit: cover;                  /* Poora cover karega, crop if needed */
  object-position: center;            /* Center */
  border-radius: 10px;                /* Optional */
  display: block;
}

/* Swiper Pagination Dots */
.swiper-pagination {
  position: relative;
  margin-top: 8px;
  margin-bottom: 4px;
  text-align: center;
}

.swiper-pagination-bullet {
  background: #ddd !important;
  opacity: 0.7;
  width: 7px !important;
  height: 7px !important;
  margin: 0 6px;
}

.swiper-pagination-bullet-active {
  background: #4CAF50 !important;
  opacity: 1;
}















/* 14. Category Navigation Styles - Refined Version */
.category-container {
  margin: 6px 0; /* thoda upar shift */
  padding: 0 8px; /* halka padding */
  background: transparent;
}

.category-section {
  background: transparent;
  border-radius: 12px;
  margin: 8px 0; /* natural spacing */
  padding: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06); /* subtle shadow */
  transition: all 0.3s ease;
}

.section-title {
  font-size: var(--brixo-fs-lg);
  font-weight: var(--brixo-fw-semibold);
  color: #333;
  margin-bottom: 6px;
  padding: 0 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #4CAF50;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.category-name {
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-bar {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  background: transparent;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 0 0 auto;
  width: 70px;
  text-align: center;
  padding: 5px 0;
  margin: 0 5px;
  cursor: pointer;
  transition: transform 0.25s;
}

.category:hover {
  transform: scale(1.05);
}

.category-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  margin: 0 auto;
  border-radius: 12px;
  background: #ffffff; /* subtle icon background */
  transition: all 0.3s ease;
}

.category.active .category-icon {
  background-color: #e6f7e6;
  transform: scale(1.1);
}

.category img, .category svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.category span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.category.active span {
  color: #4CAF50;
  font-weight: 600;
}


/* 15. Section Heading Styles */
.section-heading {
  padding: 10px 18px 5px;
  font-size: var(--brixo-fs-lg);
  font-weight: var(--brixo-fw-semibold);
  color: #333;
}

/* ============================
  Modern Product & Category Listing
  Double white removed, Shadow + Hover optional
============================ */

/* ---------- Main Container ---------- */
.container {
  padding: 0 18px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent; /* no extra white */
}

/* ---------- Category Section ---------- */
.category-section {
  background: transparent;
  border-radius: 12px;
  margin: -6px 0 12px 0;
  padding: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-card {
  background: #fff; /* only card white */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #e8f5e9;
}

.category-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  min-height: 80px;
}

.category-image {
  width: 100%;
  height: 65px;
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-name {
  padding: 10px 4px;
  font-size: var(--brixo-fs-xs);
  font-weight: var(--brixo-fw-medium);
  color: #1f2937;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

/* ---------- GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 10px 0;
}

/* ---------- CARD ---------- */
.product-card {
  background: #fff;
  border-radius: 17px;
  border: 1px solid #e0e0e0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
  border-color: #bbf7d0;
  z-index: 10;
}

/* ---------- IMAGE ---------- */
.product-image-container {
  position: relative;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  max-height: 120px;
  background: #f9fafb;
}

.product-image {
  width: 100%;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #f8fafc;
}

.product-card:hover .product-image {
  transform: scale(1.12);
}

/* ---------- INFO ---------- */
.product-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-title {
  font-size: var(--brixo-fs-sm);
  font-weight: var(--brixo-fw-medium);
  color: #1f2937 !important;
  line-height: 1.35;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.product-price {
  font-size: var(--brixo-fs-base);
  font-weight: var(--brixo-fw-semibold);
  color: #16a34a;
}

.original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: #9ca3af;
}

.product-size {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.prod-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #16a34a;
  color: white;
  font-size: 10px;
  font-weight: var(--brixo-fw-semibold);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(22, 163, 74, 0.2);
}

/* ---------- ADD BUTTON ---------- */
.add-wrap {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
  padding: 0;
}

.wishlist:hover {
  transform: scale(1.2);
  box-shadow: none;
}

.wishlist:active {
  transform: scale(0.9);
}

.wishlist svg {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

.wishlist path {
  fill: transparent;
  stroke: #1a1a1a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

.wishlist.active {
  background: transparent;
}

.wishlist.active path {
  fill: #ff2d55;
  stroke: #ff2d55;
  filter: none;
  animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.add-btn {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  width: 70px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  position: relative;
  overflow: hidden;
}

.add-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.add-btn:hover::before {
  left: 100%;
}

.add-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.add-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* ---------- QTY BOX ---------- */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #16a34a;
  border: 1.5px solid #16a34a;
  border-radius: 8px;
  width: 70px;
  height: 32px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.qty-control button {
  background: transparent;
  border: none;
  color: #fff;
  width: 24px;
  height: 100%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-control button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-control span {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- PRICE ROW ---------- */
/* Removed redundant price-row styles */

/* Cleaned up redundant styles */

.prod-size {
  font-size: 10px;
  color: #888;
  margin-left: 6px;
  font-weight: 500;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.prod-subtitle {
  font-size: 10px;
  color: #777;
}

/* ---------- TAG ---------- */
.prod-tag {
  display: inline-block;
  margin-top: 4px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---------- See All Card ---------- */
.see-all-card {
  background: #f8fff9 !important;
  border: 1px solid #dceedd !important;
  cursor: pointer;
}

.see-all-card:hover {
  background: #e8f5e9 !important;
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.1);
}

.see-all-hero {
  background: linear-gradient(180deg, #f1fbf3 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.see-all-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f8f3a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(31, 143, 58, 0.22);
}

.see-all-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #1f8f3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.see-all-info .product-title {
  color: #1b5e20;
}

.see-all-info .prod-subtitle {
  color: #557a5d;
}

/* 18. Product Detail Page Styles */
#product-detail-page {
  background: white;
  min-height: 100vh;
  padding-top: 20px;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.product-detail {
  background: white;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 30px;
}

.product-detail-image-container {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-detail-price {
  font-size: 20px;
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-detail-description {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

.product-detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.product-detail-qty {
  display: flex;
  align-items: center;
}

.product-detail-qty button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-qty span {
  margin: 0 15px;
  font-size: 18px;
  font-weight: 600;
}

.add-to-cart-btn {
  background: #0c831f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #096a18;
}

/* 19. Related Products Section Styles */
.related-products {
  margin-top: 30px;
  padding: 0 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.related-products h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Home screen only: green grid product UI */
#categories-page.container {
  max-width: none;
  padding-top: 4px;
  padding-left: 0;
  padding-right: 0;
}

#categories-page .category-section {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(14, 45, 20, 0.06);
  margin: 6px 0 8px;
}

#categories-page .category-section:last-child {
  margin-bottom: 0;
}

#categories-page .category-section:first-child {
  margin-top: 0;
}

#categories-page .section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1b5e20;
  margin: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f1fbf3 0%, #ffffff 100%);
  border-bottom: none;
}

#categories-page .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 0 0 14px 14px;
}

/* Using global modern product-card styles */

@media (max-width: 520px) {
  #categories-page.container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 375px) {
  #categories-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 20. Professional Back Button Styles */
.back-button, .back-btn, .back-btn-auth, .login-back-btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 50%;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 8px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.back-button:hover, .back-btn:hover, .back-btn-auth:hover, .login-back-btn-auth:hover {
  background: #f8f8f8;
  border-color: #0c831f;
  color: #0c831f;
  box-shadow: 0 3px 10px rgba(12, 131, 31, 0.1);
  transform: translateX(-2px);
}

.back-button:active, .back-btn:active, .back-btn-auth:active, .login-back-btn-auth:active {
  transform: scale(0.94) translateX(-2px);
}

.back-button svg, .back-btn svg, .back-btn-auth svg, .login-back-btn-auth svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Specific overrides for certain layouts */
.wallet-header .back-btn, 
.wishlist-header .back-button, 
.cart-header .back-button,
#products-page .back-button,
#categories-grid-page .back-button,
.blinkit-topbar .back-button,
.otp-header-auth .back-btn-auth,
#product-detail-page .back-button,
#loginScreenAuth .login-back-btn-auth {
  margin-bottom: 0;
  margin-right: 12px;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

#categories-grid-page {
  background: white;
  min-height: 100vh;
  padding: 12px 16px 80px;
}

/* 21. Empty State Styles */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  grid-column: 1 / -1;
}

/* 22. Visibility Toggle Class */
.hidden {
  display: none;
}

/* 23. Full Screen Products Page Styles */
.full-screen-products {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 100;
  overflow-y: auto;
  padding: 0 0 75px;
}

/* Remove side gaps on products screen while keeping header spacing */
#products-page.container {
  max-width: none;
  padding: 0;
}

#products-page .back-button,
#products-page #product-category-title {
  margin-left: 14px;
  margin-right: 14px;
}

#products-page #products-grid {
  border-top: none;
  border-left: none;
}

/* 24. Products Page Open State Styles */
/* Keep .address-bar visible when hiding promo row (avoids empty strip under topbar) */
.products-page-open #header-section > *:not(.topbar):not(.address-bar),
.products-page-open .category-container {
  display: none;
}

/* 25. Wishlist Popup Styles */
.wishlist-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1002;
  display: none;
  align-items: center;
  gap: 8px;
  animation: fadeInOut 2.5s ease-in-out;
}

.wishlist-popup svg {
  width: 20px;
  height: 20px;
  fill: white;
}

@keyframes fadeInOut {
  0% { opacity: 0; bottom: 0; }
  10% { opacity: 1; bottom: 20px; }
  90% { opacity: 1; bottom: 20px; }
  100% { opacity: 0; bottom: 0; }
}

/* 26. Wishlist Page Styles */
#wishlist-page {
  background: white;
  min-height: 100vh;
  padding-top: 12px;
}

.wishlist-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.wishlist-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wishlist-header h2 {
  font-size: 20px;
  color: #333;
}

.wishlist-count {
  background: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 14px;
}

/* 27. Cart Page Styles */
#cart-page {
  background: white;
  min-height: 100vh;
  padding-top: 12px;
}

.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 110px;
}

#cart-page .cart-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

#cart-page .cart-footer .price {
  font-size: 20px;
  font-weight: 800;
  color: #0c831f;
  flex-shrink: 0;
}

#cart-page .cart-footer .place-order-btn,
#cart-page .cart-footer .checkout-btn {
  flex: 1;
  max-width: 220px;
  margin-bottom: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.cart-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
}

.cart-count {
  background: #2ea44f;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.cart-items {
  margin-bottom: 20px;
}

/* Enhanced Location UI */
.popup-box {
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.15) !important;
}

.popup-header {
  font-size: 20px !important;
  font-weight: 800 !important;
  text-align: center;
  margin-bottom: 20px !important;
}

.popup-search {
  background: #f3f4f6 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  border: 1.5px solid transparent !important;
  transition: all 0.2s ease !important;
}

.popup-search:focus-within {
  background: #fff !important;
  border-color: #2ea44f !important;
  box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.1) !important;
}

.confirm-btn {
  background: linear-gradient(135deg, #2ea44f, #22863a) !important;
  height: 54px !important;
  border-radius: 20px 20px 24px 24px !important;
  font-size: 17px !important;
  box-shadow: 0 8px 20px rgba(46, 164, 79, 0.3) !important;
  transition: all 0.3s ease !important;
  animation: pulse-green 2s infinite;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 164, 79, 0.4) !important;
}

.confirm-btn:active {
  transform: scale(0.98);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(46, 164, 79, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(46, 164, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 164, 79, 0); }
}

.saved-address-item {
  position: relative;
  border: 1px solid #eee !important;
  background: #fff !important;
  margin-bottom: 12px;
}

.saved-address-item:hover {
  border-color: #2ea44f !important;
  background: #f0faf2 !important;
}

.delete-addr-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-addr-btn:hover {
  background: #fecaca;
  transform: scale(1.1);
}


.cart-item {
  display: flex;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}

.cart-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
  line-height: 1.3;
}

.cart-item-size {
  font-size: 10px;
  color: #888;
  margin-bottom: 4px;
  background: #f5f5f5;
  padding: 1px 4px;
  border-radius: 3px;
  display: inline-block;
  font-weight: 500;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: auto;
}

.cart-item-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 400;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.remove-item {
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  text-transform: uppercase;
}

.bill-details {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 24px;
  margin-bottom: 20px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.bill-details h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}

.bill-row.grand-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e0e0e0;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.bill-value.saved {
  color: #2ea44f;
  font-weight: 600;
}

.free-delivery-message {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid #c8e6c9;
}

.checkout-btn {
  background: #0c831f;
  color: #fff;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(12, 131, 31, 0.2);
  transition: all 0.2s;
  margin-bottom: 30px;
}

.checkout-btn:active {
  transform: scale(0.98);
}

.safety-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #f0f0f0;
}

.safety-info svg {
  color: #0c831f;
  flex-shrink: 0;
}

.safety-text {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.continue-shopping-btn {
  background: #0c831f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

/* 29. Empty Cart Styles */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state svg {
  opacity: 0.5;
}

.continue-shopping-btn {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

/* 30. Bill Details Styles */
.bill-details {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bill-label {
  color: #666;
}

.bill-value {
  font-weight: 600;
}

.saved {
  color: #4CAF50;
}

.grand-total {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 18px;
  font-weight: 700;
}

.grand-total .bill-value {
  color: #2e7d32;
}

.original-total {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-left: 5px;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.checkout-btn:hover {
  background: #3e8e41;
}




/* 32. Categories Page Styles */
.categories-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 14px 15px;
  font-size: 20px;
  font-weight: 600;
  background: #fff; /* solid background */
  color: #27ae60;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 500; /* enough to stay on top, but not block overlays */
}
.categories-header .search-icon {
  font-size: 20px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}
.categories-header .search-icon:hover {
  color: #27ae60;
}

/* 33. Categories Section Title Styles */
.categories-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #27ae60;
  margin: 20px 15px 10px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.categories-section-title::before {
  content: "◆";
  margin-right: 8px;
  color: #2ecc71;
}
.categories-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
  margin-left: 10px;
}

/* 34. Categories Grid Styles */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 15px 20px;
}
.categories-card {
  background: #fff;
  border-radius: 16px;
  text-align: center;
  padding: 16px 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.categories-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  border-color: #27ae60;
}
.categories-card img {
  width: 100%;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f9f9f9;
  transition: transform 0.3s ease;
  padding: 8px;
}
.categories-card:hover img {
  transform: scale(1.05);
}
.categories-card p {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin: 0;
  transition: color 0.3s ease;
}
.categories-card:hover p {
  color: #27ae60;
}

/* Drinks page: <a> styled like cards (works without JS) */
a.categories-card,
a.categories-card-link {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
  color: inherit;
  display: block;
}
a.daily-uses-drinks-link {
  display: block;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
  color: inherit;
}
a.category-card-link {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
  color: inherit;
}
a.compact-card-link {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* 35. Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: none;
  flex-direction: column;
  z-index: 20000 !important; /* overlay always above everything */
  overflow-y: auto;
  padding-bottom: 100px; /* Make room for cart bar */
}
.search-overlay.active {
  display: flex;
}
.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: none;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2001;
}
/* 36. Styled Search Bar Styles */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(107,114,128,0.3);
  padding-left: 12px;
  height: 46px;
  border-radius: 8px;
  flex: 1;
  transition: border-color .15s, box-shadow .15s;
}
.search-bar:focus-within {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,.18);
}
.search-bar svg {
  width: 20px;
  height: 20px;
  fill: #6B7280;
  transition: fill 0.3s ease;
}
.search-bar:focus-within svg {
  fill: #27ae60;
}
.search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #333;
  outline: none;
}
.search-bar input::placeholder {
  color: #6B7280;
  transition: color 0.3s ease;
}
.search-bar input:focus::placeholder {
  color: transparent;
}



/* 37. Footer Styles */
.footer {
  background: linear-gradient(to bottom, #43a047, #2e7d32);
  color: #fff;
  padding: 50px 20px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

/* 38. Brand Section Styles */
.brand h2 {
  color: #caffca;
  margin-bottom: 15px;
  font-size: 28px;
  font-weight: bold;
}
.brand p {
  color: #f0fff0;
  font-size: 15px;
  line-height: 1.8;
  max-width: 650px;
  margin: auto;
}

/* 39. App Badge Styles */
.app-badge {
  margin-top: 25px;
}
.app-badge img {
  width: 160px;
  transition: transform 0.3s;
}
.app-badge img:hover {
  transform: scale(1.05);
}

/* 40. Footer Links Styles */
.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 50px;
  flex-wrap: wrap;
  padding: 0 40px;
}

/* 41. Contact & Support Styles */
.contact, .support {
  font-size: 14px;
}
.contact h3, .support h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}
.contact {
  text-align: left;
}
.support {
  text-align: right;
}
.support a {
  color: #d0ffd6;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px;
  transition: color 0.3s;
}
.support a:hover {
  color: #ffffff;
}

/* 42. Copyright Styles */
.copy {
  margin-top: 45px;
  font-size: 13px;
  color: #d9f9dc;
}

/* 43. Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  position: relative;
}
.modal-content h2 {
  margin-bottom: 10px;
  color: #2e7d32;
}
.modal-content p {
  line-height: 1.6;
  font-size: 14px;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #2e7d32;
}

/* 44. Desktop Styles (768px and up) - DISABLED TO STAY MOBILE */
@media (min-width: 768px) {
  .topbar {
    padding: 10px 12px !important;
  }

  .logo {
    font-size: 22px !important;
  }

  .hamburger {
    display: flex !important;
  }

  .menu {
    width: 280px !important;
  }

  .menu-header {
    padding: 16px 16px !important;
    font-size: 18px !important;
  }

  .menu-item {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .home-search {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .slide-container {
    height: auto !important;
  }

  .slide-left h2 {
    font-size: 18px !important;
  }

  .slide-left .price {
    font-size: 16px !important;
  }

  .slide-right h3 {
    font-size: 28px !important;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }

  .category-bar {
    justify-content: flex-start !important;
    padding: 10px 0 !important;
  }

  .category {
    width: auto !important;
    margin: 0 !important;
  }

  .category-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .category img, .category svg {
    width: 24px !important;
    height: 24px !important;
  }

  .category span {
    font-size: 12px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-detail {
    display: block !important;
    gap: 0 !important;
  }

  .product-detail-image-container {
    width: 100% !important;
  }

  .product-detail-info {
    flex: 1;
  }

  .related-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cart-item {
    padding: 20px 0;
  }

  .cart-item-image {
    width: 120px;
    height: 120px;
  }

  .footer {
    padding: 60px 40px;
  }

  .footer-links {
    padding: 0 40px;
  }

  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0 40px 40px;
  }

  .categories-card {
    padding: 16px 8px;
  }

  .categories-card img {
    height: 90px;
  }

  .categories-card p {
    font-size: 14px;
  }
}

/* 45. Large Desktop Styles (1200px and up) - DISABLED TO STAY MOBILE */
@media (min-width: 1200px) {
  /* Keep everything mobile-style */
  .topbar {
    padding: 10px 12px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .slide-container {
    max-width: 480px !important;
    height: auto !important;
  }

  .slide-left {
    padding: 16px !important;
  }

  .slide-left h2 {
    font-size: 18px !important;
  }

  .slide-left .price {
    font-size: 16px !important;
  }

  .slide-right h3 {
    font-size: 48px;
  }
}

/* 46. Extra Large Desktop Styles (1600px and up) - DISABLED TO STAY MOBILE */
@media (min-width: 1600px) {
  .container,
  .product-detail-container,
  .wishlist-container,
  .cart-container {
    max-width: 480px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 47. Mobile Tap Highlight Removal */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 48. Focus Outline Removal */
:focus {
  outline: none;
}

/* 49. Small Mobile Adjustments */
@media (max-width: 480px) {
  .main-container {
    max-width: 480px;
  }
  
  .topbar {
    padding: 10px 12px;
  }
  
  .topbar-brand-text {
    font-size: 20px !important;
  }
  
  .compact-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }
}

@media (max-width: 420px) {
  .logo{font-size:22px}
  .hamburger{width:26px;height:26px}
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  
  .compact-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 8px !important;
  }
  
  .compact-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Free Delivery Progress UI (Blinkit Style) */
.free-delivery-container {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin: 10px 0 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
}

.free-delivery-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.free-delivery-text .amount {
  color: #0c831f;
  font-size: 15px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0c831f, #27ae60);
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.free-delivery-success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}

.free-delivery-success svg {
  color: #2e7d32;
}

/* Float Bar Free Delivery Message */
#free-delivery-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #0c831f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  z-index: 1500;
  box-shadow: 0 10px 25px rgba(12, 131, 31, 0.3);
  display: none;
  white-space: nowrap;
  animation: slideUpFloat 0.4s ease-out;
}

@keyframes slideUpFloat {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (min-width: 768px) {
  .free-delivery-container {
    padding: 20px;
    margin-bottom: 30px;
  }
}

/* Orders Page Styles - Modern Redesign */
#orders-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding-top: 10px;
}

.orders-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 0;
}

.orders-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
}

.orders-count {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #c8e6c9;
}

.order-item {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #e0e0e0;
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eee;
}

.order-id-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-id-text {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
}

.order-date-text {
  font-size: 12px;
  color: #757575;
}

.order-status-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: #fff3e0; color: #ef6c00; }
.status-placed { background: #e3f2fd; color: #1565c0; }
.status-packed { background: #f3e5f5; color: #7b1fa2; }
.status-on_the_way, .status-way { background: #e1f5fe; color: #0277bd; }
.status-delivered, .status-completed { background: #e8f5e9; color: #2e7d32; }

.order-card-content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-img-preview {
  width: 50px;
  height: 50px;
  background: #f5f5f5;
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid #f0f0f0;
}

.order-items-summary {
  flex: 1;
}

.order-items-names {
  font-size: 14px;
  font-weight: 600;
  color: #424242;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.order-items-count {
  font-size: 12px;
  color: #757575;
}

.order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.order-price-text {
  font-size: 16px;
  font-weight: 800;
  color: #2e7d32;
}

.view-details-btn {
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-details-btn svg {
  width: 14px;
  height: 14px;
}
*{margin:0;padding:0;box-sizing:border-box;font-family:var(--brixo-font, 'Nunito', sans-serif);}
body{background:#f9f9f9;display:flex;flex-direction:column;min-height:100vh;position:relative;padding-bottom:80px;}

.header{background:#28a745;color:#fff;padding:15px;font-size:18px;font-weight:600;display:flex;align-items:center;gap:10px;} .payment-options{margin:20px;display:flex;flex-direction:column;gap:15px;flex:1;} .option{border:1px solid #ddd;padding:15px;border-radius:12px;cursor:pointer;background:#fff;transition:all 0.3s ease;display:flex;align-items:center;gap:12px;} .option:hover{transform:translateY(-3px);border-color:#28a745;} .option.selected{border:2px solid #28a745;background:#f3fff7;} .logo{width:55px;height:auto;object-fit:contain;} .option-title{font-size:16px;font-weight:600;} .option-desc{font-size:14px;color:#666;} .footer{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;align-items:center;background:#fff;border-top:1px solid #ddd;padding:15px;z-index:10;} .price{font-size:18px;font-weight:600;color:#28a745;} .btn{background:#28a745;color:#fff;border:none;padding:12px 24px;font-size:16px;font-weight:600;border-radius:8px;cursor:pointer;} .btn:hover{background:#218838;} .btn:disabled{background:#ccc;cursor:not-allowed;}

/* Location logo style - IMPROVED */ .location-logo{width: 26px; height: 26px; margin-right: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;} .location-logo svg{ width:100%; height:100%; display:block; } .location-icon-fg{ fill: #28a745; } .location-icon-hole{ fill: white; }

/* Popup */ .popup-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:none;align-items:center;justify-content:center;z-index:999;} .popup-box{background:#fff;width:90%;max-width:420px;border-radius:16px;padding:20px;animation:fadeInPopup 0.3s ease-out;max-height:90vh;overflow-y:auto;} @keyframes fadeInPopup{from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}} .popup-header{font-size:18px;font-weight:bold;margin-bottom:15px;color:#333;} .input-field{width:100%;padding:12px;margin-bottom:10px;border:1px solid #ccc;border-radius:8px;font-size:14px;font-family:inherit;} .input-field:focus{outline:none;border-color:#28a745;} .use-location{display:flex;align-items:center;gap:10px;color:#28a745;font-weight:600;cursor:pointer;padding:10px 0;font-size:16px;} #map{width:100%;height:200px;border-radius:10px;margin:10px 0;display:none;} #paymentMap{width:100%;height:200px;border-radius:10px;margin:10px 0;display:none;} .suggestions{border:1px solid #ccc;border-radius:6px;max-height:120px;overflow-y:auto;margin-top:-8px;margin-bottom:8px;display:none;background:white;z-index:1000;position:relative;} .suggestions div{padding:8px;cursor:pointer;font-size:14px;} .suggestions div:hover,.suggestions div.active{background:#f0f8f1;} .confirm-btn{width:100%;padding:12px;background:#28a745;color:white;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;} .confirm-btn:disabled{background:#ccc;cursor:not-allowed;}

/* Toast */
.toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: #16a34a;
}

#toastMessage {
  font-size: 14px;
  font-weight: 600;
}

/* Order success — green circle + animated tick */
@keyframes orderSuccessFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999;
  animation: orderSuccessFadeIn 0.3s ease-out;
  overflow: hidden;
}

.success-page .circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #28a745;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.success-page .circle svg {
  width: 56px;
  height: 56px;
  stroke: white;
  stroke-width: 3.5;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: orderTickDraw 0.8s forwards 0.35s;
}

@keyframes orderTickDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-page .success-text {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 800;
  color: #28a745;
  text-align: center;
  animation: slideUp 0.5s ease-out 0.5s both;
  padding: 0 24px;
  z-index: 1;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.success-page .confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f2d74e;
  top: -20px;
  border-radius: 2px;
  animation: confetti-fall 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@media (min-width: 481px) {
  .success-page .circle {
    width: 132px;
    height: 132px;
  }
  .success-page .circle svg {
    width: 62px;
    height: 62px;
  }
  .success-page .success-text {
    font-size: 19px;
  }
}

/* Loading indicator */ .loading{display: none; text-align: center; padding: 10px; color: #28a745;} .loading::after{content: ""; display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(40, 167, 69, 0.3); border-radius: 50%; border-top-color: #28a745; animation: spin 1s ease-in-out infinite;} @keyframes spin{to {transform: rotate(360deg);}}

 /* Location detection message */ .location-message{text-align: center; padding: 10px; color: #28a745; font-weight: 550; display: none; font-size: 16px;}

/* Map error message */ .map-error{color: #e74c3c; text-align: center; padding: 10px; display: none;}

/* Close button for popup */ .close-popup{position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; cursor: pointer; opacity: 0.7; background: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;} .close-popup:hover{opacity: 1; background: #e0e0e0; transform: scale(1.1);} .close-popup:before,.close-popup:after {position: absolute; content: ' '; height: 18px; width: 2px; background-color: #333;} .close-popup:before{transform: rotate(45deg);} .close-popup:after{transform: rotate(-45deg);}

/* Pincode input container */ .pincode-container{position: relative;}

/* Address summary */ .address-summary{background: #f9f9f9; padding: 15px; border-radius: 8px; margin: 15px 20px; display: none;} .address-summary h3{margin-bottom: 10px; font-size: 16px; color: #333;} .address-details{font-size: 14px; line-height: 1.5; color: #555;}

.saved-address-item:hover {
    background: #f1f8f4 !important;
    border-color: #2ea44f !important;
}
.saved-address-item:active {
    transform: scale(0.98);
}

/* Order button */ .order-btn{background: #ff6b00; width: calc(100% - 40px); padding: 15px; font-size: 16px; font-weight: 600; border-radius: 8px; border: none; color: white; cursor: pointer; margin: 15px 20px; display: none;} .order-btn:hover{background: #e65c00;}

/* Edit address button */ .edit-address{background: transparent; border: none; color: #28a745; text-decoration: underline; cursor: pointer; font-size: 14px; margin-top: 10px;}

/* Place Order Button in Footer */ .place-order-btn{background: #ff6b00; color: #fff; border: none; padding: 12px 24px; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer;} .place-order-btn:hover{background: #e65c00;} .place-order-btn:disabled{background: #ccc; cursor: not-allowed;}

:root{
  --green:#2ecc71;
  --green-dark:#27ae60;
}
*{box-sizing:border-box;margin:0;padding:0}
body{background:#f9f9f9;padding-bottom:90px; /* space for fixed bar */}

/* main pill */
.cart-bar{
  position:fixed;
  bottom:calc(80px + env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 24px);
  max-width:500px;

  background:#0c831f;
  color:#fff;
  border-radius:8px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  cursor:pointer;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:20001;
  display: none; /* Initially hidden */
}
.cart-bar:active{
  transform:translateX(-50%) scale(0.98);
}

.left{display:flex;align-items:center;gap:12px}

/* icon square */
.icon-square{
  width:40px;height:40px;
  background:rgba(255,255,255,0.15);
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.icon-square svg{
  width:24px; height:24px;
  stroke:#fff;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* text */
.info{display:flex;flex-direction:column;line-height:1.2}
.info .items{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;opacity:0.9}
.info .price{font-size:16px;font-weight:800}

/* right side */
.view{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;background:rgba(255,255,255,0.1);padding:8px 12px;border-radius:8px}
.chev{width:16px;height:16px}

@media (max-width:420px){
  .cart-bar{width:calc(100% - 20px);bottom:calc(70px + env(safe-area-inset-bottom))}
}

    /* Profile Page Styles - Removed old styles, new styles in profile-page inline CSS */

    /* NEW:  Add to existing styles for login popup */
    #phoneInput, #otpInput {
        width: 100%;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 14px;
    }
    .logo {
  white-space: nowrap;   /* ek hi line mein rakhega */
  display: inline-block; /* apni jagah par rahe */
}

/* Order Detail Page Styles */
#order-detail-page {
  background: #f9f9f9;
  min-height: 100vh;
  padding: 10px 16px 20px;
}

.order-detail-container {
  max-width: 600px;
  margin: 0 auto;
}

.order-time {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

/* Order Status Styles */
.order-status-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 20px 10px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.status-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.status-icon svg {
  width: 18px;
  height: 18px;
}

.status-step.active .status-icon {
  background: #2e7d32;
  color: white;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.status-label {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-step.active .status-label {
  color: #2e7d32;
}

.status-line {
  flex: 1;
  height: 3px;
  background: #f0f0f0;
  margin: 0 -15px;
  position: relative;
  top: -10px;
  z-index: 1;
}

.status-line.active {
  background: #2e7d32;
}

/* Pay on Delivery Modern Styles */
.pay-on-delivery-modern {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #a5d6a7;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.08);
}

.pod-icon-wrap {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e7d32;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pod-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.pod-details {
  flex: 1;
}

.pod-label {
  font-size: 14px;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pod-text {
  font-size: 15px;
  color: #2e7d32;
  line-height: 1.4;
  font-weight: 600;
}

.pod-text span {
  font-weight: 800;
  font-size: 18px;
  color: #1b5e20;
}

.icon {
  font-size: 20px;
  margin-right: 5px;
}

.items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.item {
  display: flex;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.item-image {
  width: 60px;
  height: 60px;
  margin-right: 10px;
  object-fit: contain;
}

.item-details {
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 14px;
}

.item-price {
  color: #2e7d32;
  font-weight: 600;
}

.payment-summary {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.payment-summary h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.discount span:last-child {
  color: #f44336;
}

.customer-support {
  width: 100%;
  background: #4CAF50;
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Improved for icon */
  transition: background 0.3s;
}

.customer-support:hover {
  background: #3e8e41;
}

.customer-support svg {
  width: 20px;
  height: 20px;
}

/* Map Container and Full-Screen Styling */
.map-container {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

#map {
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.map-fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.map-fullscreen-btn:hover {
  background: #218838;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Full-screen map modal */
.map-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f9f9f9;
  display: none;
  z-index: 10000;
  flex-direction: column;
}

.map-fullscreen-overlay.active {
  display: flex;
}

.map-fullscreen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.map-fullscreen-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.map-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.map-close-btn:hover {
  color: #333;
}

.map-fullscreen-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#mapFullscreen {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.map-fullscreen-footer {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.free-delivery-message {
  background: #f5f5f5;
  padding: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #000;
  border-radius: 8px;
  font-size: 14px;
}
/* ... (Your existing CSS remains the same, add these at the end) */

.search-suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: #f0f7f1;
}

.search-suggestion-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.search-suggestion-info {
  flex: 1;
  overflow: hidden;
}

.search-suggestion-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-meta {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.results-header {
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  font-weight: 600;
  border-bottom: none;
}

#search-results {
  background: #fff;
  padding-bottom: 20px;
}

.search-product-card {
  display: flex;
  padding: 16px;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: #fff;
}

.search-product-card:active {
  background: #fafafa;
}

.search-product-img-container {
  width: 90px;
  height: 90px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.search-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-product-meta {
  font-size: 12px;
  color: #757575;
  margin-bottom: 8px;
}

.search-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.search-product-price {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.search-product-original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.search-product-action {
  align-self: flex-start;
}

.search-add-btn {
  background: #fff;
  color: #2e7d32;
  border: 1.5px solid #2e7d32;
  padding: 6px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.search-add-btn:active {
  background: #2e7d32;
  color: #fff;
}

.search-qty-control {
  display: flex;
  align-items: center;
  background: #2e7d32;
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
  box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

.search-qty-control button {
  background: none;
  border: none;
  color: #fff;
  width: 30px;
  height: 100%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.search-qty-control span {
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* Search Results Styles */
#search-results {
  min-height: calc(100vh - 60px); /* Adjust for header */
}

#search-results .empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Keep location confirm button slightly higher */
#confirmAddressBtn {
  margin-bottom: 28px;
}

/* Final popup fix: centered popup behavior */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5000;
  padding: 0 10px;
}

.popup-box {
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  will-change: transform, opacity;
}

/* Works with existing JS that sets element.style.display = "flex" */
.popup-overlay[style*="display: flex"] .popup-box {
  transform: scale(1);
  opacity: 1;
}

/* Specific fix for location popup */
#locationPopup .popup-box {
  border-radius: 16px !important;
  padding-bottom: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.15) !important;
}

/* Location popup overlay dark background */
#locationPopup {
  background: rgba(0,0,0,0.5) !important;
}

/* Location popup header styling */
#locationPopup .popup-header {
  color: #1a1a1a !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 15px !important;
}

/* Location popup search bar */
#locationPopup .popup-search {
  background: #f8f9fa !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}

/* Use current location button */
#locationPopup .use-location {
  color: #2ea44f !important;
  font-weight: 600 !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

/* Blinkit-style Product Detail Page */
#product-detail-page {
  background: #f2f2f2;
  min-height: 100vh;
  padding: 0;
}

#product-detail-page .blinkit-detail-page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #f2f2f2;
  position: relative;
  padding-bottom: 96px;
}

@media (min-width: 768px) {
  #product-detail-page .blinkit-detail-page {
    max-width: 480px !important;
    display: block !important;
    padding: 16px !important;
    background: #fff;
  }

  #product-detail-page .blinkit-img-section {
    width: 100% !important;
    min-width: auto !important;
    background: #fff;
    padding: 16px !important;
    border-radius: 12px !important;
    border: 1px solid #f0f0f0;
  }

  #product-detail-page .blinkit-product-info {
    width: 100% !important;
    min-width: auto !important;
    padding: 0 !important;
  }

  #product-detail-page .blinkit-section {
    width: 100%;
  }

  #product-detail-page .blinkit-product-img-wrap {
    min-height: 300px !important;
  }

  #product-detail-page .blinkit-product-img-inner {
    width: 100% !important;
    height: 300px !important;
  }

  #product-detail-page .blinkit-bottom-bar {
    max-width: 480px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
  }
}

#product-detail-page .blinkit-img-section,
#product-detail-page .blinkit-product-info,
#product-detail-page .blinkit-card-row,
#product-detail-page .blinkit-section {
  background: #fff;
}

/* Hide old location popup permanently - use new select-location.html instead */
#locationPopup {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Also hide the fullscreen map overlay */
#mapFullscreenOverlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

#product-detail-page .blinkit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 4px;
}

#product-detail-page .blinkit-topbar button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

#product-detail-page .blinkit-topbar-right {
  display: flex;
  gap: 18px;
}

#product-detail-page .blinkit-product-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  min-height: 260px;
}

#product-detail-page .blinkit-product-img-inner {
  width: 160px;
  height: 260px;
  overflow: hidden;
  position: relative;
}

#product-detail-page .blinkit-product-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product-detail-page .blinkit-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding-bottom: 16px;
}

#product-detail-page .blinkit-dot {
  border-radius: 50%;
  background: #ccc;
  width: 6px;
  height: 6px;
}

#product-detail-page .blinkit-dot.active {
  width: 10px;
  height: 10px;
  background: #2ea44f;
}

#product-detail-page .blinkit-product-info {
  padding: 14px 14px 16px;
  margin-bottom: 8px;
}

#product-detail-page .blinkit-product-info h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 5px;
}

#product-detail-page .blinkit-product-qty { font-size: 11px; color: #888; margin-bottom: 8px; background: #f5f5f5; padding: 2px 6px; border-radius: 4px; display: inline-block; font-weight: 500; }
#product-detail-page .blinkit-price-main { font-size: 22px; font-weight: 700; color: #1a1a1a; }
#product-detail-page .blinkit-price-mrp { font-size: 14px; color: #888; text-decoration: line-through; margin-left: 4px; }
#product-detail-page .blinkit-price-off { font-size: 13px; font-weight: 600; color: #0c831f; margin-bottom: 3px; }
#product-detail-page .blinkit-price-unit { font-size: 12px; color: #999; }

#product-detail-page .blinkit-card-row { margin-bottom: 8px; }
#product-detail-page .blinkit-card-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

#product-detail-page .blinkit-card-row-left { display: flex; align-items: center; gap: 12px; }
#product-detail-page .blinkit-brand-icon {
  width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #1a3a8c 0%, #0d1f5e 100%);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff;
}

#product-detail-page .blinkit-replace-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #edfbf0; display: flex; align-items: center; justify-content: center;
}

#product-detail-page .blinkit-card-row-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
#product-detail-page .blinkit-card-row-sub { font-size: 12px; color: #999; }

#product-detail-page .blinkit-section {
  padding-top: 16px;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

#product-detail-page .blinkit-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 12px;
}

#product-detail-page .blinkit-section-title { font-size: 18px; font-weight: 700; color: #1a1a1a; }
#product-detail-page .blinkit-see-all { font-size: 12px; font-weight: 600; color: #0c831f; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight: 700; font-size: 26px; color: #4CAF50; letter-spacing: 0.5px; }

#product-detail-page .blinkit-cards-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 0 14px 12px;
  scrollbar-width: none;
}

#product-detail-page .blinkit-cards-scroll::-webkit-scrollbar { display: none; }

#product-detail-page .blinkit-product-card {
  min-width: 152px;
  max-width: 152px;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 10px 10px 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
}

#product-detail-page .blinkit-card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110px;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

#product-detail-page .blinkit-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
#product-detail-page .blinkit-card-qty { font-size: 9px; color: #888; margin-bottom: 2px; background: #f5f5f5; padding: 1px 4px; border-radius: 3px; display: inline-block; }
#product-detail-page .blinkit-card-name { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.3; margin-bottom: 6px; min-height: 34px; }
#product-detail-page .blinkit-card-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
#product-detail-page .blinkit-card-price { font-size: 14px; font-weight: 700; color: #1a1a1a; }
#product-detail-page .blinkit-card-mrp { font-size: 11px; color: #bbb; text-decoration: line-through; }

#product-detail-page .blinkit-add-btn {
  width: 100%;
  border: 1.5px solid #0c831f;
  background: #fff;
  color: #0c831f;
  border-radius: 8px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#product-detail-page .blinkit-qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #0c831f;
  border-radius: 8px;
  overflow: hidden;
}

#product-detail-page .blinkit-qty-btn {
  background: none;
  border: none;
  color: #0c831f;
  font-size: 18px;
  cursor: pointer;
  width: 38px;
  height: 32px;
}

#product-detail-page .blinkit-qty-num {
  font-size: 14px;
  font-weight: 700;
  color: #0c831f;
}

#product-detail-page .blinkit-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid #ebebeb;
  padding: 10px 14px 22px;
  z-index: 100;
}

#product-detail-page .blinkit-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#product-detail-page .blinkit-bottom-price { font-size: 18px; font-weight: 700; color: #1a1a1a; }
#product-detail-page .blinkit-bottom-mrp { font-size: 13px; color: #999; text-decoration: line-through; margin-left: 4px; }
#product-detail-page .blinkit-bottom-tax { font-size: 11px; color: #aaa; margin-top: 1px; }

#product-detail-page .blinkit-add-cart-btn {
  background: #0c831f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#product-detail-page .blinkit-main-qty-ctrl {
  display: flex;
  align-items: center;
  background: #0c831f;
  border-radius: 10px;
  overflow: hidden;
}

#product-detail-page .blinkit-main-qty-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 48px;
  height: 48px;
}

#product-detail-page .blinkit-main-qty-num {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

/* Full-screen Login Styles */
/* ── NEW AUTHENTICATION STYLES (FROM PHONE NO AUT.HTML) ── */
.login-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
}

.auth-app-container {
  width: 100%;
  height: 100%;
  background: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── SCREEN TRANSITION ── */
.auth-screen { width: 100%; height: 100%; display: none; flex-direction: column; }
.auth-screen.active { display: flex; }

/* ══════════════════════════════════════
   LOGIN SCREEN
  ══════════════════════════════════════ */
#loginScreen { position: relative; flex: 1; display: flex; flex-direction: column; }

.products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: #eaf6f0;
}

.products-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-up   { animation: scrollUp   22s linear infinite; }
.col-down { animation: scrollDown 22s linear infinite; }

@keyframes scrollUp   { 0%{transform:translateY(0)}   100%{transform:translateY(-50%)} }
@keyframes scrollDown { 0%{transform:translateY(-50%)} 100%{transform:translateY(0)}   }

.product-card-auth {
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 14%;
}

.product-card-auth svg { width: 100%; height: 100%; display: block; }

.login-bottom {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 22px 18px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  z-index: 2;
  margin-top: -20px;
}

.login-card-auth { display: flex; flex-direction: column; align-items: center; }

.app-icon-auth {
  background: #fff;
  border-radius: 16px;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.app-title-auth    { font-size: 21px; font-weight: 700; color: #1a1a1a; text-align: center; letter-spacing: -.3px; margin-bottom: 2px; }
.app-subtitle-auth { font-size: 14px; color: #888; margin-bottom: 16px; }

.phone-wrap-auth {
  width: 100%;
  display: flex; align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 0 14px; height: 52px;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.phone-wrap-auth:focus-within { border-color: #bbb; }
.phone-wrap-auth.err          { border-color: #e53935; }

.phone-prefix-auth { font-size: 15px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.divider-v-auth    { width: 1.5px; height: 22px; background: #ddd; margin: 0 12px; flex-shrink: 0; }

#phoneInputAuth {
  flex: 1; border: none !important; outline: none !important;
  font-size: 15px; color: #1a1a1a; background: transparent !important; font-family: inherit;
  box-shadow: none !important; padding: 0 !important;
}
#phoneInputAuth::placeholder { color: #bbb; }

.input-error-auth { font-size: 12px; color: #e53935; width: 100%; margin-bottom: 4px; display: none; }

.continue-btn-auth {
  width: 100%; height: 52px; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  background: #aaa; color: #fff;
  margin-top: 6px; margin-bottom: 14px;
  transition: background .2s, transform .1s; font-family: inherit;
}
.continue-btn-auth.ready { background: #2ea44f; }
.continue-btn-auth:active { transform: scale(.98); }

.terms-text-auth { font-size: 11.5px; color: #999; text-align: center; line-height: 1.5; }
.terms-link-auth { color: #555; text-decoration: underline; cursor: pointer; }

/* ══════════════════════════════════════
   OTP SCREEN
  ══════════════════════════════════════ */
#otpScreenAuth { background: #fff; }

.otp-header-auth {
  display: flex; align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.otp-title-auth       { flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: #1a1a1a; }
.header-spacer-auth   { width: 36px; }

.otp-body-auth {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 24px 24px;
}

.otp-desc-auth  { font-size: 14px; color: #888; text-align: center; margin-bottom: 4px; }
.otp-phone-auth { font-size: 16px; font-weight: 700; color: #1a1a1a; text-align: center; margin-bottom: 36px; }

.otp-boxes-auth { display: flex; gap: 14px; margin-bottom: 28px; }

.otp-box-auth {
  width: 66px; height: 66px;
  border: 1.5px solid #ddd;
  border-radius: 14px;
  font-size: 26px; font-weight: 600; text-align: center;
  color: #1a1a1a; outline: none; background: #fff;
  font-family: inherit; caret-color: transparent;
  transition: border-color .15s, box-shadow .15s;
}
.otp-box-auth:focus          { border-color: #999; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.otp-box-auth.filled         { border-color: #bbb; }
.otp-box-auth.box-err        { border-color: #e53935; color: #e53935; background: #fff5f5; animation: shake .35s ease; }
.otp-box-auth.box-ok         { border-color: #43a047; color: #43a047; background: #f1f8e9; }

@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

.resend-btn-auth {
  font-size: 13.5px; color: #bbb;
  background: none; border: none; cursor: default;
  font-family: inherit; transition: color .2s; margin-bottom: 24px;
}
.resend-btn-auth.can-resend { color: #e53935; cursor: pointer; font-weight: 600; }
.resend-btn-auth.can-resend:hover { text-decoration: underline; }

.verify-btn-auth {
  width: 100%; max-width: 320px; height: 52px;
  border: none; border-radius: 12px;
  background: #2ea44f; color: #fff;
  font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: none;
  transition: transform .1s;
}
.verify-btn-auth:active { transform: scale(.98); }
.verify-btn-auth.show   { display: block; }

.status-bar-auth {
  display: none; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; padding: 12px 20px;
}
.status-bar-auth.show     { display: flex; }
.status-bar-auth.err-bar  { background: #fff5f5; color: #e53935; }
.status-bar-auth.ok-bar   { background: #f1f8e9; color: #43a047; }

.otp-hint-auth { font-size: 12px; color: #bbb; text-align: center; padding: 10px 20px 0; }

/* Payment Options Styles */
.payment-option:hover {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

.payment-option:active {
  transform: scale(0.98);
}

/* FORCE MOBILE STYLE ALWAYS */
.main-container,
.container,
.cart-container,
.orders-container,
.order-detail-container,
.wishlist-container,
.profile-container,
#categories-page.container,
#products-page.container,
#product-detail-page.container,
#cart-page.container,
#wishlist-page.container,
#orders-page.container,
#profile-page.container,
#order-detail-page.container {
  max-width: 480px !important;
  margin: 0 auto !important;
  width: 100% !important;
}


