/* ==========================================================================
   SANbox - Apki Apni Stationery
   Modern Responsive E-Commerce Stylesheet
   ========================================================================== */

:root {
  --primary-navy: #0b2545;
  --primary-navy-dark: #07192f;
  --primary-navy-light: #163a66;
  --accent-orange: #f25c05;
  --accent-orange-hover: #d94f00;
  --accent-orange-light: #fff2ea;
  --accent-orange-glow: rgba(242, 92, 5, 0.25);
  
  --badge-red: #ff3b30;
  --badge-red-bg: #ffe5e5;
  --success-green: #10b981;
  --star-yellow: #ffb800;
  
  --bg-main: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbff;
  
  --text-dark: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 37, 69, 0.12);
  --shadow-hover: 0 12px 30px rgba(242, 92, 5, 0.15);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.5;
  overflow-x: clip;
  padding-bottom: 0;
}

/* Prevent scroll when modal open */
body.modal-open {
  overflow: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   1. TOP NOTIFICATION / UTILITY BAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 0;
  letter-spacing: 0.2px;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-left .notice-icon {
  font-size: 0.95rem;
  color: #ff9d5c;
}

.top-bar-divider {
  opacity: 0.35;
  font-weight: 300;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  opacity: 0.9;
}

.top-bar-link:hover {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
}

.top-bar-link i {
  font-size: 0.85rem;
  color: #ff9d5c;
}

/* ==========================================================================
   2. MAIN HEADER
   ========================================================================== */
.main-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: none !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Hamburger toggle for mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--primary-navy);
  padding: 6px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 58px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* Location Selector in Header (Blinkit / Zepto Style) - Disabled per user request */
.header-location {
  display: none !important;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 640px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: none !important;
}

.search-form:focus-within {
  border-color: #94a3b8;
  box-shadow: none !important;
  outline: none !important;
}

.search-icon-btn {
  padding: 0 12px 0 16px;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 8px 10px 0;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-submit-btn {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin: 3px;
  transition: var(--transition);
}

.search-submit-btn:hover {
  background-color: var(--accent-orange-hover);
}

/* Live Search Dropdown Suggestions (AJAX) */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  z-index: 950;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}

.search-results-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

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

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: #f8fafc;
}

.search-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
  object-fit: contain;
  padding: 4px;
}

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

.search-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-item-pricing {
  text-align: right;
  flex-shrink: 0;
}

.search-item-price {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.search-item-mrp {
  font-size: 0.75rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Header Actions: Login & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-login-btn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.header-login-btn:hover {
  background-color: #f1f5f9;
  color: var(--accent-orange);
}

.header-cart-btn {
  background: var(--accent-orange);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
  transition: var(--transition);
}

.header-cart-btn:hover {
  background: var(--accent-orange-hover);
}

.header-cart-btn .action-icon-wrap {
  position: relative;
  font-size: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.action-badge {
  display: none;
}

.action-badge.has-items {
  display: flex !important;
}

.header-cart-btn .action-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ffffff;
  color: var(--accent-orange);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cart-btn-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   4. HERO BANNER SECTION (Laptop & Phone Images)
   ========================================================================== */
.hero-section {
  padding: 20px 0 16px;
}

.hero-banner-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none !important;
  border: none !important;
  transition: var(--transition);
  background: transparent;
}

.hero-banner-link:hover {
  transform: none; /* No hover lift/movement on banner */
}

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

/* Laptop / Desktop Banner */
.hero-banner-desktop {
  display: block;
}

/* Phone / Mobile Banner */
.hero-banner-mobile {
  display: none;
}

/* ==========================================================================
   5. SECTION HEADERS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-accent-bar {
  width: 5px;
  height: 24px;
  background-color: var(--accent-orange);
  border-radius: 4px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.3px;
}

.view-all-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--accent-orange);
  transform: none;
}

/* ==========================================================================
   6. SHOP BY CATEGORY SECTION
   ========================================================================== */
.categories-section {
  padding: 24px 0 32px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 6px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #edf2f7;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.category-card:hover {
  transform: none; /* No hover movement on category */
  box-shadow: none;
  border-color: #edf2f7;
}

.category-card:focus,
.category-card:focus-visible,
.category-card:active,
.category-card.active-cat {
  outline: none !important;
  border-color: #edf2f7 !important;
  box-shadow: none !important;
}

.category-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.category-card:hover .category-icon-box {
  transform: none; /* No icon zoom on hover */
}

.category-icon-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Category card soft pastel colors matching mockup */
.cat-bg-pens { background-color: #edf5ff; }
.cat-bg-notebooks { background-color: #f2edff; }
.cat-bg-folders { background-color: #e6faf4; }
.cat-bg-art { background-color: #fff3e8; }
.cat-bg-school { background-color: #eaf4ff; }
.cat-bg-office { background-color: #f0f2ff; }
.cat-bg-geometry { background-color: #fffbe6; }
.cat-bg-adhesives { background-color: #fff8e7; }
.cat-bg-packaging { background-color: #fdf3e7; }
.cat-bg-accessories { background-color: #e8f7fa; }

.category-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.25;
}

/* ==========================================================================
   7. TOP DEALS FOR YOU / PRODUCT CARDS
   ========================================================================== */
.deals-section {
  padding: 16px 0 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.product-card:hover {
  transform: none; /* No movement on hover */
  border-color: transparent;
}

/* Blue Ribbon Bookmark Badge (Top-Left) */
.ribbon-badge {
  position: absolute;
  top: 0;
  left: 10px;
  background: #2563eb;
  color: #ffffff;
  padding: 5px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%);
  z-index: 5;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.ribbon-pct {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.ribbon-off {
  font-size: 0.58rem;
  font-weight: 800;
  margin-top: 1px;
}

/* Product Image Box */
.product-img-wrap {
  height: 170px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 2px 0 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: none;
}

.product-card:hover .product-img {
  transform: none; /* No image shake on hover */
}

/* Quick view overlay removed as requested */
.quick-view-btn-overlay {
  display: none !important;
}

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

.product-brand {
  display: none !important; /* Hidden on product card; only visible when clicked inside quick view modal */
}

.product-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 3px;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
}

.product-title:hover {
  color: #1e293b;
}

.product-unit {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 400;
  margin-bottom: 6px;
}

/* Bottom Row: Price on Left & ADD Button on Right */
.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.product-price-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.product-price-stack .current-price {
  font-size: 0.92rem;
  font-weight: 400;
  color: #18181b;
}

.product-price-stack .original-price {
  font-size: 0.76rem;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 2px;
}

/* Theme Matching Orange ADD Button */
.blinkit-add-btn {
  background: #ffffff;
  color: var(--accent-orange);
  border: 1.5px solid var(--accent-orange);
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 18px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blinkit-add-btn:hover {
  background: #fff7ed;
  border-color: var(--accent-orange-hover);
  color: var(--accent-orange-hover);
}

/* Theme Matching Solid Orange Stepper Button */
.blinkit-qty-btn {
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  min-width: 76px;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.b-qty-minus, .b-qty-plus {
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  width: 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.b-qty-val {
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  padding: 0 2px;
}

/* ==========================================================================
   7. HORIZONTAL PRODUCT SLIDERS (Blinkit / Zepto Style Swiper Rows)
   ========================================================================== */
.slider-section {
  padding: 16px 0 22px;
}

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

.slider-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.3px;
  margin: 0;
}

.slider-see-all {
  color: var(--accent-orange);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 8px;
}

.slider-see-all:hover {
  color: var(--accent-orange-hover);
  text-decoration: underline;
}

.slider-container-wrap {
  position: relative;
}

.products-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 16px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.products-slider::-webkit-scrollbar {
  display: none;
}

.products-slider.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.products-slider .product-card {
  flex: 0 0 190px;
  width: 190px;
  scroll-snap-align: start;
  user-select: none;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  opacity: 0.92;
}

.slider-nav-btn:hover {
  background: #ffffff;
  color: var(--accent-orange);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn.prev {
  left: -16px;
}

.slider-nav-btn.next {
  right: -16px;
}

/* ==========================================================================
   8. FILTER TABS & BEST SELLERS SECTION
   ========================================================================== */
.catalog-section {
  padding: 20px 0 40px;
}

.filter-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.filter-tabs-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.filter-tab {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.2);
}

/* ==========================================================================
   9. PROMO / BULK ORDERS BANNER
   ========================================================================== */
.bulk-promo-section {
  padding: 10px 0 40px;
}

.promo-banner {
  background: linear-gradient(135deg, #0b2545 0%, #173d6b 100%);
  border-radius: 20px;
  padding: 32px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.promo-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(242, 92, 5, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.promo-text-wrap h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-text-wrap p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 580px;
}

.promo-action-btn {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(242, 92, 5, 0.4);
  transition: var(--transition);
}

.promo-action-btn:hover {
  background-color: var(--accent-orange-hover);
  transform: none;
}

/* ==========================================================================
   10. TRUST BADGES ROW
   ========================================================================== */
.trust-badges-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  margin-bottom: 40px;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff4ec;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.trust-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.trust-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col-brand .footer-logo-img {
  height: 44px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #94a3b8;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}

.footer-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-orange);
  margin-top: 6px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-link-item a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.85rem;
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-btn {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.newsletter-btn:hover {
  background: var(--accent-orange-hover);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
}

.payment-gateways {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: #ffffff;
}

/* ==========================================================================
   12. SLIDE-OUT CART DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1010;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}

/* Cart Free Delivery Meter */
.free-delivery-meter {
  background: #fff8f3;
  padding: 10px 20px;
  border-bottom: 1px solid #ffe8d9;
}

.free-del-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meter-track {
  height: 5px;
  background: #fed7aa;
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  background: var(--accent-orange);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Cart Items Body */
.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.stepper-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  padding: 2px 0;
  margin-left: auto;
  flex-shrink: 0;
  min-height: 58px;
}

.cart-item-total {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-navy);
  line-height: 1.2;
}

.cart-item-remove-btn {
  color: #94a3b8;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove-btn:hover {
  color: var(--badge-red);
  background-color: #fee2e2;
}

/* Empty Cart State */
.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.cart-empty-icon {
  font-size: 3.5rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.cart-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.cart-empty-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Cart Footer / Checkout */
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.coupon-section {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-input {
  flex: 1;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.coupon-apply-btn {
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.coupon-apply-btn:hover {
  background: var(--accent-orange);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-row.total-row {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(90deg, #f25c05, #ff7a1a);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(242, 92, 5, 0.35);
}

.checkout-btn:hover {
  background: linear-gradient(90deg, #d94f00, #f25c05);
}

/* ==========================================================================
   13. MODALS (Quick View, Track Order, Auth, Checkout)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-content-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.modal-overlay.active .modal-content-card {
  transform: translateY(0) scale(1);
}

.modal-close-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.3rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.modal-close-corner:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* Quick View Specific */
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.qv-img-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}

.qv-img-box img {
  max-height: 200px;
  object-fit: contain;
}

.qv-badge {
  display: inline-block;
  background: var(--badge-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.qv-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.qv-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.original-price,
.qv-price-row .original-price {
  font-size: 0.92rem;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

.qv-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.qv-specs-table {
  width: 100%;
  font-size: 0.8rem;
  margin-bottom: 18px;
  border-collapse: collapse;
}

.qv-specs-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
}

.qv-specs-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 40%;
}

/* Tracking Timeline */
.tracking-stepper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 28px;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 9px;
  width: 2px;
  background: #cbd5e1;
}

.track-step-node {
  position: relative;
}

.track-step-node::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 3px solid #ffffff;
}

.track-step-node.completed::before {
  background: var(--success-green);
}

.track-step-node.current::before {
  background: var(--accent-orange);
  box-shadow: 0 0 0 4px var(--accent-orange-glow);
}

.track-step-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.track-step-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tabbed Auth Modal */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab-btn.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.form-input:focus {
  border-color: var(--accent-orange);
}

/* ==========================================================================
   Location Selector Modal (Blinkit / Zepto Style)
   ========================================================================== */
.detect-location-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background-color: #f0fdf4;
  border: 1.5px solid #16a34a;
  border-radius: var(--radius-md);
  color: #15803d;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.detect-location-btn:hover {
  background-color: #dcfce7;
  border-color: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.detect-location-btn i {
  font-size: 1.15rem;
  color: #16a34a;
}

.city-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-chip {
  padding: 8px 14px;
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.city-chip:hover {
  background-color: #fff7ed;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* Pincode Auto Lookup Input & Result Box */
.pincode-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pincode-field-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.pincode-icon {
  position: absolute;
  left: 12px;
  color: var(--accent-orange);
  font-size: 0.95rem;
  pointer-events: none;
}

.pincode-input {
  padding-left: 36px !important;
  padding-right: 36px !important;
  font-weight: 700;
  letter-spacing: 1px;
}

.pincode-spinner {
  position: absolute;
  right: 12px;
  color: #16a34a;
  font-size: 0.95rem;
}

.pincode-result-box {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInDown 0.2s ease;
}

.pincode-result-box.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

.pincode-result-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ==========================================================================
   14. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  min-width: 260px;
  border-left: 4px solid var(--accent-orange);
}

.toast.toast-success {
  border-left-color: var(--success-green);
}

/* ==========================================================================
   15. MOBILE BOTTOM NAVIGATION (Matching Screenshot 2)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.08) !important;
  z-index: 999999 !important;
  height: 60px !important;
  padding: 4px 8px;
  touch-action: manipulation;
}

.mobile-nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  padding: 4px 0;
  transition: var(--transition);
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

.mobile-bottom-nav .action-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.mobile-bottom-nav .action-badge.has-items {
  display: flex !important;
}

.mobile-nav-item.active {
  color: var(--accent-orange);
}

/* Mobile Slide-Out Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #ffffff;
  z-index: 1020;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-links {
  list-style: none;
  padding: 12px 0;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-link:hover {
  background: #f8fafc;
  color: var(--accent-orange);
}

/* ==========================================================================
   16. RESPONSIVE MEDIA QUERIES (Mobile and Tablet adaptation)
   ========================================================================== */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Screens (max 768px) - Matching Screenshot 2 Exactly */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* Clearance for fixed bottom nav */
  }

  .top-bar-left {
    font-size: 0.72rem;
  }
  .top-bar-right {
    display: none; /* Hidden on mobile to save top bar space */
  }

  .top-bar {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .main-header {
    padding: 8px 12px;
    border-bottom: none !important;
  }

  .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    padding: 0 4px;
  }

  /* Logo positioned on the left */
  .logo-container {
    order: 1;
    margin-right: auto;
  }

  .logo-img {
    height: 44px;
    max-width: 165px;
  }

  /* Actions (Login & Cart) positioned on the right */
  .header-actions {
    order: 2;
    gap: 8px;
    margin-left: auto;
  }

  .header-login-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
    gap: 4px;
  }

  .header-cart-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 8px !important;
    min-width: auto;
  }

  .header-cart-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px;
  }

  .header-cart-btn .action-icon-wrap {
    color: var(--text-dark) !important;
  }

  .header-cart-btn .action-icon-wrap i {
    color: var(--text-dark) !important; /* Black/dark icon on phone matching login */
    font-size: 1.4rem !important;
  }

  .header-cart-btn .cart-btn-label {
    display: none !important;
  }

  .header-cart-btn .action-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  }

  /* Search bar spans full width on row 2 */
  .search-wrapper {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  .search-submit-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .sub-nav {
    display: none; /* Nav items moved to mobile drawer */
  }

  /* Hero Section in Mobile: Shows Phone Banner Image */
  .hero-section {
    padding: 10px 0 6px;
  }

  .hero-banner-link {
    border-radius: 12px;
    box-shadow: none !important;
    border: none !important;
  }

  .hero-banner-desktop {
    display: none !important;
  }

  .hero-banner-mobile {
    display: block !important;
  }

  /* Section Headers on Mobile */
  .section-header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .section-title {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px;
  }

  .section-accent-bar {
    height: 16px;
    width: 3.5px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .view-all-link {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    gap: 4px !important;
    flex-shrink: 0;
    color: var(--primary-navy);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
  }

  .view-all-link i {
    font-size: 0.7rem;
  }

  /* Categories Grid in Mobile: Clean Quick-Commerce Style (Blinkit / Zepto) */
  .categories-section {
    padding: 10px 0 16px;
  }

  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 4px;
  }

  .category-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
  }

  .category-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }

  .category-icon-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .category-name {
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    min-height: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    word-break: break-word;
  }

  /* Products Grid in Mobile: 3 columns as requested */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Horizontal Product Sliders in Mobile: Smooth Finger Swipe */
  .slider-section {
    padding: 10px 0 16px;
  }

  .slider-title {
    font-size: 1.05rem;
  }

  .slider-see-all {
    font-size: 0.84rem;
  }

  .slider-nav-btn {
    display: none !important;
  }

  .products-slider {
    gap: 10px;
    padding: 4px 2px 14px 2px;
  }

  .products-slider .product-card {
    flex: 0 0 144px !important;
    width: 144px !important;
    scroll-snap-align: start;
  }

  .product-card {
    padding: 6px 4px;
    border-radius: 10px;
    border: none;
    box-shadow: none;
  }

  .ribbon-badge {
    left: 6px;
    padding: 3px 4px 6px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%);
  }

  .ribbon-pct {
    font-size: 0.56rem;
  }

  .ribbon-off {
    font-size: 0.48rem;
  }

  .product-img-wrap {
    height: 115px;
    margin: 0 0 6px;
    padding: 0;
  }

  .product-title {
    font-size: 0.68rem;
    font-weight: 400;
    height: 2.6em;
    margin-bottom: 2px;
  }

  .product-unit {
    font-size: 0.62rem;
    font-weight: 400;
    margin-bottom: 4px;
  }

  .product-bottom-row {
    padding-top: 2px;
  }

  .product-price-stack .current-price {
    font-size: 0.82rem;
    font-weight: 400;
  }

  .product-price-stack .original-price {
    font-size: 0.64rem;
    font-weight: 400;
  }

  .blinkit-add-btn {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 5px;
  }

  .blinkit-qty-btn {
    height: 26px;
    min-width: 58px;
    padding: 0 2px;
    border-radius: 5px;
  }

  .b-qty-minus, .b-qty-plus {
    font-size: 0.95rem;
    width: 18px;
  }

  .b-qty-val {
    font-size: 0.75rem;
  }

  /* Bulk Orders Promo Banner on Mobile - Prevent Overflow */
  .bulk-promo-section {
    padding: 10px 0 24px;
  }

  .promo-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 22px 18px !important;
    gap: 16px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .promo-banner::after {
    right: -30px;
    bottom: -30px;
    width: 160px;
    height: 160px;
  }

  .promo-text-wrap {
    width: 100% !important;
  }

  .promo-text-wrap h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }

  .promo-text-wrap p {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
  }

  .promo-action-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Trust Badges in Mobile */
  .trust-badges-bar {
    padding: 18px 0;
    margin-bottom: 24px;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
  }

  .trust-item {
    gap: 10px;
  }

  .trust-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .trust-info h5 {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .trust-info p {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  /* Footer in Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  body {
    padding-bottom: 60px !important;
  }

  .mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.1) !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .qv-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    bottom: 74px;
    right: 16px;
    left: 16px;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   Account Modal & OTP Experience Styles (E-Commerce Standard)
   ========================================================================== */
.modal-content-card.account-modal-dialog {
  max-width: 860px;
  width: 95%;
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(11, 37, 69, 0.25);
}

.account-modal-dialog .modal-close-corner {
  top: 18px;
  right: 18px;
  color: var(--primary-navy);
  background: #f1f5f9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.account-modal-dialog .modal-close-corner:hover {
  background: #e2e8f0;
  color: #000000;
  transform: rotate(90deg);
}

/* User Profile Header Hero - Clean White Background */
.account-header-hero {
  background: #ffffff;
  padding: 20px 24px;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.account-user-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f25c05 0%, #ff8038 100%);
  box-shadow: 0 4px 12px rgba(242, 92, 5, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-avatar-text {
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.account-badge-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.account-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-user-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  letter-spacing: -0.2px;
}

.account-member-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(242, 92, 5, 0.12);
  color: #ea580c;
  border: 1px solid rgba(242, 92, 5, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-user-phone {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-tag-otp {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.account-logout-btn {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.account-logout-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Dashboard Body: 2 Columns */
.account-dashboard-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 480px;
}

/* Sidebar Navigation */
.account-sidebar-nav {
  width: 215px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acc-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.acc-nav-link:hover {
  background: #f1f5f9;
}

.acc-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.acc-nav-text {
  flex: 1;
  min-width: 0;
}

.acc-nav-title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-navy);
  line-height: 1.2;
}

.acc-nav-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.acc-nav-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: auto;
  transition: transform 0.15s ease;
}

.acc-nav-link.active {
  background: #fff7ed;
  border-left: 3px solid #f25c05;
}

.acc-nav-link.active .acc-nav-icon {
  background: #f25c05;
  color: #ffffff;
}

.acc-nav-link.active .acc-nav-title {
  color: #ea580c;
}

.acc-nav-link.active .acc-nav-chevron {
  color: #ea580c;
  transform: translateX(2px);
}

/* Main Content Pane */
.account-main-content {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  background: #ffffff;
}

.acc-pane-header {
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.acc-pane-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0 0 4px 0;
}

.acc-pane-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Orders Cards Stream */
.account-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.account-order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.order-badge.placed {
  background: #fef3c7;
  color: #d97706;
}

.order-badge.processing {
  background: #e0e7ff;
  color: #4338ca;
}

.order-badge.out-for-delivery,
.order-badge.out_for_delivery {
  background: #ffedd5;
  color: #ea580c;
}

.order-badge.delivered {
  background: #dcfce7;
  color: #15803d;
}

.order-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.order-items-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}

.order-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #f8fafc;
  padding: 2px;
  flex-shrink: 0;
}

.order-track-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.order-track-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.order-reorder-btn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.order-reorder-btn:hover {
  background: #ea580c;
  color: #ffffff;
}

/* Addresses Tab */
.add-address-pill-btn {
  background: #fff7ed;
  color: var(--accent-orange);
  border: 1.5px solid var(--accent-orange);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.add-address-pill-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
}

.acc-new-address-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.address-type-chips-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.address-type-chip {
  padding: 6px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.15s ease;
}

.address-type-chip.active {
  background: #fff7ed;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-cancel-addr {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}

.acc-addresses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.address-card-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  transition: all 0.2s ease;
  background: #ffffff;
}

.address-card-item:hover {
  border-color: var(--accent-orange);
}

.address-card-item.is-default {
  border-color: var(--accent-orange);
  background: #fffbf8;
}

.address-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.address-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--primary-navy);
  text-transform: uppercase;
}

/* Profile Form styling */
.acc-form-card {
  max-width: 520px;
}

.form-input-icon-wrap {
  position: relative;
}

.form-field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
}

.form-input.with-icon {
  padding-left: 36px;
}

.field-verified-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Coupons & Vouchers Ticket Styling */
.acc-coupons-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-ticket-card {
  display: flex;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.coupon-ticket-card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(242, 92, 5, 0.08);
}

.coupon-ticket-left {
  background: #fff7ed;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1.5px dashed #fed7aa;
  min-width: 110px;
  text-align: center;
  position: relative;
}

.coupon-pct-badge {
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.coupon-code-text {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
}

.coupon-ticket-right {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coupon-desc-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.coupon-min-order {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.coupon-apply-btn {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.coupon-apply-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

/* 24x7 Help & Support Styling */
.support-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.support-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.support-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.support-channel-card.whatsapp {
  border-color: #86efac;
  background: #f0fdf4;
}

.support-channel-card.whatsapp .support-channel-icon {
  background: #22c55e;
  color: #ffffff;
}

.support-channel-card.whatsapp .support-channel-action {
  color: #15803d;
}

.support-channel-card.phone {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.support-channel-card.phone .support-channel-icon {
  background: #3b82f6;
  color: #ffffff;
}

.support-channel-card.phone .support-channel-action {
  color: #1d4ed8;
}

.support-channel-card.email {
  border-color: #e9d5ff;
  background: #faf5ff;
}

.support-channel-card.email .support-channel-icon {
  background: #a855f7;
  color: #ffffff;
}

.support-channel-card.email .support-channel-action {
  color: #7e22ce;
}

.support-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.support-channel-info {
  flex: 1;
}

.support-channel-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.support-channel-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.support-channel-action {
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.acc-guarantee-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.acc-guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dark);
}

.acc-guarantee-item i {
  font-size: 1.25rem;
}

.acc-guarantee-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ========================================================================
   UNIFIED PHONE INPUT (IN +91 together) & STATIC BUTTONS
   ======================================================================== */
.unified-phone-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.unified-phone-box:focus-within {
  border-color: #f25c05;
  box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.15);
}
.phone-code-tag {
  background: #f1f5f9;
  color: #0b2545;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-right: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  flex-shrink: 0;
}
.phone-digits-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b2545;
  letter-spacing: 1.5px;
  background: transparent;
  font-family: inherit;
  width: 100%;
}
.phone-digits-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.9rem;
}

/* Static Order Now button (zero hover effect) */
.btn-static-order-now {
  background: #f25c05 !important;
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  padding: 12px 36px !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
.btn-static-order-now:hover,
.btn-static-order-now:focus,
.btn-static-order-now:active {
  background: #f25c05 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Desktop defaults for mobile profile helpers */
.account-mobile-topbar {
  display: none;
}
.mobile-quick-row {
  display: none;
}
.mobile-nav-arrow {
  display: none;
}
.mobile-logout-link {
  display: none;
}

/* ========================================================================
   MOBILE APP FULL SCREEN & PROFILE EXPERIENCE (@media <= 768px)
   ======================================================================== */
.auth-brand-logo-wrap {
  text-align: center;
  margin-bottom: 16px;
  padding: 4px 0;
}
.auth-brand-logo-img {
  height: 48px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  filter: none !important;
  box-shadow: none !important;
}

/* Hide bottom navigation on Login / OTP page as requested */
#authModal.modal-overlay.active ~ .mobile-bottom-nav,
body.auth-modal-open .mobile-bottom-nav {
  display: none !important;
}

/* Hide native scrollbars on all modals & app views (removes gray slider track) */
.modal-overlay,
.modal-content-card,
.account-modal-dialog,
.account-dashboard-body,
.account-main-content,
.cart-drawer,
.cart-items-body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.modal-overlay::-webkit-scrollbar,
.modal-content-card::-webkit-scrollbar,
.account-modal-dialog::-webkit-scrollbar,
.account-dashboard-body::-webkit-scrollbar,
.account-main-content::-webkit-scrollbar,
.cart-drawer::-webkit-scrollbar,
.cart-items-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (max-width: 768px) {
  /* Full Screen Modal Behavior on Phone: stops at bottom 60px so nav bar is permanently visible */
  .modal-overlay {
    padding: 0;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    z-index: 99990 !important;
  }

  /* Cart Drawer and Backdrop: stops at bottom 60px */
  .cart-drawer {
    top: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    z-index: 99995 !important;
  }
  .drawer-backdrop {
    top: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
    z-index: 99992 !important;
  }

  /* Mobile Slide-Out Menu Drawer */
  .mobile-drawer {
    top: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
    z-index: 99995 !important;
  }

  /* Auth / Login / OTP Modal: 100% Full Screen without bottom nav */
  #authModal.modal-overlay {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 9999999 !important;
    padding: 0 !important;
  }
  #authModal.modal-overlay .modal-content-card {
    width: 100vw !important;
    max-width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 24px 20px 20px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: stretch;
    position: fixed;
    box-sizing: border-box;
    overflow-y: auto;
    background: #ffffff;
  }

  /* Policy Modal: Stops at bottom 60px */
  #policyModal.modal-overlay .modal-content-card {
    width: 100vw !important;
    max-width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: fixed;
    box-sizing: border-box;
  }

  /* Account Modal: Stops at bottom 60px */
  .modal-content-card.account-modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    border-radius: 0 !important;
    position: fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow-y: auto;
  }

  /* Mobile Top App Bar: Clean White, Navy Text & Rounded Buttons */
  .account-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    color: #0b2545;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
  }
  .mobile-profile-back-btn,
  .mobile-profile-close-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0b2545;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .mobile-profile-top-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #0b2545;
  }
  .desktop-close-btn {
    display: none !important;
  }
  .desktop-logout-btn {
    display: none !important;
  }

  /* User Profile Header: White Background, Circle at Top-Left, Big Name */
  .account-header-hero {
    background: #ffffff;
    padding: 18px 20px 16px 20px;
    text-align: left;
    flex-shrink: 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .account-user-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
  }
  .account-avatar-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f25c05 0%, #ff8038 100%);
    box-shadow: 0 4px 12px rgba(242, 92, 5, 0.25);
    border: 2px solid #ffffff;
    flex-shrink: 0;
  }
  .account-avatar-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
  }
  .account-user-info {
    text-align: left;
    flex: 1;
  }
  .account-user-name {
    font-size: 1.45rem; /* Big Name */
    font-weight: 800;
    margin-bottom: 3px;
    color: #0b2545;
    line-height: 1.25;
  }
  .account-user-phone {
    font-size: 0.88rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
  }

  /* Remove redundant quick cards on mobile */
  .mobile-quick-row {
    display: none !important;
  }
  .mobile-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 6px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .mobile-quick-card i {
    font-size: 1.25rem;
    color: #f25c05;
  }
  .mobile-quick-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0b2545;
  }

  /* Mobile Menu List (Full vertical cards like screenshot) */
  .account-dashboard-body {
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
  }
  .account-sidebar-nav {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 16px 24px 16px !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .account-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
  }
  .acc-nav-link {
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .acc-nav-link:last-child {
    border-bottom: none !important;
  }
  .acc-nav-link.active {
    background: #fff7ed !important;
    border-left: none !important;
  }
  .acc-nav-link .acc-nav-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #0b2545 !important;
    box-shadow: none !important;
  }
  .acc-nav-link .acc-nav-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
  }
  .mobile-nav-arrow {
    display: block !important;
    margin-left: auto;
    font-size: 0.82rem;
    color: #94a3b8;
  }
  .mobile-logout-link {
    display: flex !important;
    border-top: 1px solid #fee2e2 !important;
    margin-top: 4px;
  }
  .mobile-logout-link .acc-nav-icon {
    background: #fef2f2 !important;
  }

  /* Content area on phone */
  .account-main-content {
    padding: 16px !important;
    background: #ffffff;
    flex: 1;
  }
}

/* ========================================================================
   AUTHENTICATION MODAL STYLES (Password Login & Email OTP)
   ======================================================================== */
.auth-tab-switch {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.auth-tab-btn.active {
  background: #ffffff;
  color: #0b2545;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrap .form-input {
  width: 100%;
  padding-right: 44px;
}
.password-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-eye-btn:hover {
  color: #0b2545;
}

/* ========================================================================
   PWA APP EXPERIENCE & INSTALL BANNER
   ======================================================================== */
@media all and (display-mode: standalone) {
  body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
  }
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.pwa-install-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 78px;
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0b2545 0%, #163a66 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 1050;
  animation: pwaSlideUp 0.3s ease;
}

.pwa-install-banner.active {
  display: flex;
}

@media (min-width: 769px) {
  .pwa-install-banner {
    bottom: 20px;
    left: auto;
    right: 20px;
    width: 390px;
  }
}

.pwa-install-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pwa-install-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
  flex-shrink: 0;
  padding: 2px;
}

.pwa-install-text {
  min-width: 0;
}

.pwa-install-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.pwa-install-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.25;
  margin-top: 2px;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-install-btn {
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  background: var(--accent-orange-hover);
}

.pwa-install-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
