/* ========================================================
   Blinkit Quick Commerce & Admin - Master Stylesheet
   Pixel-perfect replica of the modern Quick-Commerce UI
   ======================================================== */

:root {
  --primary-yellow: #f8cb46;
  --primary-green: #0c831f;
  --primary-green-dark: #0a6f19;
  --green-light: #e8f5e9;
  --neutral-dark: #1e1e1e;
  --neutral-gray: #64748b;
  --bg-app: #f4f6f8;
  --card-bg: #ffffff;
  --border-light: #f1f5f9;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #f1f5f9;
  color: var(--neutral-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.site-global-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Responsive Master Container (Mobile: 100%, Tablet: max 860px, Desktop: max 1240px) */
.app-container {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background-color: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  body {
    background-color: #f8fafc;
  }
  .app-container {
    max-width: 860px;
    margin: 16px auto 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: calc(100vh - 44px);
  }
}

@media (min-width: 1024px) {
  .app-container {
    max-width: 1140px;
    margin: 20px auto 32px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  }
}

@media (min-width: 1280px) {
  .app-container {
    max-width: 1240px;
  }
}

/* ========================================================
   1. SPLASH SCREEN (3 SECONDS)
   ======================================================== */
.splash-overlay {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background-color: #fbbd08;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  user-select: none;
  cursor: pointer;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-skip-btn {
  background: rgba(0, 0, 0, 0.1);
  color: #222;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.splash-skip-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.splash-tagline {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #222;
}

.splash-pill {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.splash-progress-track {
  width: 180px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-green);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.splash-countdown-text {
  font-size: 11px;
  font-weight: 800;
  margin-top: 8px;
  background: rgba(255,255,255,0.4);
  padding: 2px 10px;
  border-radius: 999px;
}

.splash-footer {
  text-align: center;
}

.splash-footer-company {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #333;
  text-transform: uppercase;
}

.splash-footer-hint {
  font-size: 11px;
  color: rgba(40, 40, 40, 0.8);
  font-weight: 500;
  margin-top: 4px;
}

/* ========================================================
   2. TOP STOREFRONT HEADER (LOGO SYSTEM)
   ======================================================== */
.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.header-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.desktop-header-nav {
  display: none;
}

@media (min-width: 768px) {
  .store-header {
    padding: 12px 24px;
  }
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .header-top-row {
    width: auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .header-logo-area {
    align-items: flex-start !important;
    text-align: left !important;
    width: auto !important;
  }
  .header-location-btn {
    margin: 3px 0 0 0 !important;
  }
  .search-wrapper {
    flex: 1;
    max-width: 440px;
    margin-top: 0 !important;
  }
  .desktop-header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .desktop-nav-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    padding: 7px 12px;
    border-radius: 10px;
    transition: all 0.15s ease;
  }
  .desktop-nav-link:hover {
    color: var(--primary-green);
    background: #f1f5f9;
  }
  .desktop-nav-link.active {
    color: var(--primary-green);
    background: #e8f5e9;
  }
  .desktop-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-green);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(12, 131, 31, 0.25);
    transition: all 0.2s;
  }
  .desktop-cart-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.35);
  }
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.header-logo-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.logo-speed-pill {
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 900;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
  border-radius: 999px;
}

.header-location-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s;
  text-decoration: none;
}

.icon-btn:hover {
  background: #e2e8f0;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  margin-top: 10px;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.12);
}

.search-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 800;
}

/* ========================================================
   3. CATEGORIES HORIZONTAL PILLS
   ======================================================== */
.category-scroller {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #ffffff;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-chip:hover, .cat-chip.active {
  background: #ecfdf5;
  color: var(--primary-green);
  border-color: var(--primary-green);
  box-shadow: 0 1px 3px rgba(12, 131, 31, 0.15);
}

/* ========================================================
   3B. 3D VISUAL CATEGORY SCROLLER (EXACT BLINKIT MATCH)
   ======================================================== */
.visual-categories-section {
  background: #ffffff;
  padding: 10px 0 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
  .visual-categories-section {
    padding: 18px 24px 14px 24px;
    border-radius: 16px 16px 0 0;
  }
  .cat-page-indicator-wrap {
    display: none !important;
  }
  .visual-category-scroll {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;
    overflow-x: visible !important;
    padding: 4px 0 !important;
  }
  .visual-cat-card {
    width: auto !important;
  }
  .visual-cat-box {
    width: 100% !important;
    height: 96px !important;
    border-radius: 18px !important;
  }
  .visual-cat-name {
    font-size: 13px !important;
    margin-top: 6px !important;
  }
}

.cat-page-indicator-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.cat-page-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.cat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.cat-badge-text {
  background: #1e293b;
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.visual-category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 14px 4px 14px;
}

.visual-category-scroll::-webkit-scrollbar {
  display: none;
}

.visual-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  width: 72px;
  transition: transform 0.15s ease;
}

.visual-cat-card:hover {
  transform: translateY(-2px);
}

.visual-cat-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #eef6fc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0edf7;
  transition: all 0.2s ease;
}

.visual-cat-card.active .visual-cat-box {
  border-color: #0c831f;
  box-shadow: 0 0 0 2px rgba(12, 131, 31, 0.2);
}

.visual-cat-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-cat-name {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.visual-cat-card.active .visual-cat-name {
  color: #0c831f;
  font-weight: 900;
}

/* ========================================================
   4. HERO PROMOTIONAL BANNER SLIDER
   ======================================================== */
.banner-container {
  padding: 8px 14px;
}

@media (min-width: 768px) {
  .banner-container {
    padding: 16px 24px;
  }
  .promo-banner {
    min-height: 180px !important;
    padding: 24px 32px !important;
    border-radius: 20px !important;
  }
  .banner-title {
    font-size: 22px !important;
  }
  .banner-subtitle {
    font-size: 13px !important;
  }
  .banner-img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 16px !important;
  }
}

@media (min-width: 1024px) {
  .promo-banner {
    min-height: 210px !important;
    padding: 28px 40px !important;
  }
  .banner-title {
    font-size: 26px !important;
  }
  .banner-img {
    width: 160px !important;
    height: 160px !important;
  }
}

.promo-banner {
  border-radius: 18px;
  padding: 16px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 130px;
}

.banner-content {
  max-width: 65%;
  z-index: 2;
}

.banner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.banner-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.banner-subtitle {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}

.banner-action-btn {
  margin-top: 10px;
  display: inline-block;
  background: #ffffff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.banner-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  z-index: 2;
}

/* ========================================================
   5. PRODUCTS GRID
   ======================================================== */
.products-section {
  padding: 12px 14px 80px;
}

@media (min-width: 768px) {
  .products-section {
    padding: 20px 24px 40px;
  }
  .section-heading {
    font-size: 20px !important;
  }
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

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

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

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

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

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

.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.eta-pill {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.discount-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.product-details {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-unit {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.product-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.selling-price {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.mrp-price {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Smart BUY NOW Button / Counter */
.add-btn, .buy-now-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--primary-green);
  background: #ffffff;
  color: var(--primary-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(12, 131, 31, 0.12);
}

.add-btn:hover, .buy-now-btn:hover {
  background: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(12, 131, 31, 0.25);
  transform: translateY(-1px);
}

.qty-counter {
  display: flex;
  align-items: center;
  background: var(--primary-green);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  color: #ffffff;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

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

.qty-value {
  padding: 0 6px;
}

/* ========================================================
   6. FLOATING BOTTOM CART BAR
   ======================================================== */
.cart-floating-bar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  background: linear-gradient(135deg, #0c831f, #075e14);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(12, 131, 31, 0.5);
  z-index: 50;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

@media (min-width: 768px) {
  .cart-floating-bar {
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    transform: none !important;
    width: 340px !important;
    max-width: 340px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(12, 131, 31, 0.35) !important;
  }
  .cart-floating-bar.hidden {
    transform: translateY(100px) !important;
    opacity: 0;
  }
}

.cart-floating-bar.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.cart-float-left {
  display: flex;
  flex-direction: column;
}

.cart-float-count {
  font-size: 14px;
  font-weight: 900;
}

.cart-float-savings {
  font-size: 10px;
  font-weight: 700;
  color: #bbf7d0;
}

.cart-float-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

/* ========================================================
   7. BOTTOM NAVIGATION BAR
   ======================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none !important;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  transition: color 0.15s;
}

.nav-item.active, .nav-item:hover {
  color: var(--primary-green);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

/* ========================================================
   8. CART DRAWER / MODAL
   ======================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .drawer-backdrop {
    justify-content: flex-end !important;
    align-items: stretch !important;
  }
  .cart-drawer {
    width: 440px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 24px 0 0 24px !important;
    transform: translateX(100%) !important;
  }
  .drawer-backdrop.open .cart-drawer {
    transform: translateX(0) !important;
  }
}

.drawer-backdrop.open .cart-drawer {
  transform: translateY(0);
}

.drawer-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

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

.drawer-footer {
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-btn:hover {
  background: var(--primary-green-dark);
}

/* Detail View Cart Button & Badges */
.detail-view-cart-btn {
  padding: 10px 18px;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(12, 131, 31, 0.25);
  transition: all 0.2s;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-view-cart-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-1px);
}

.top-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================
   9. DELIVERY ADDRESS SELECTION & ADD ADDRESS MODAL
   ======================================================== */
.cart-address-card {
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.cart-address-card:hover {
  border-color: #cbd5e1;
  background: #fafafa;
}

.cart-addr-pin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #0c831f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-addr-change-btn {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #0c831f;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.cart-addr-change-btn:hover {
  background: #0c831f;
  color: #ffffff;
}

/* Address Modal / Bottom Sheet */
.address-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.address-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.address-modal-box {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.address-modal-backdrop.open .address-modal-box {
  transform: translateY(0);
}

.address-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.address-modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.saved-address-item {
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s;
}

.saved-address-item:hover {
  border-color: #cbd5e1;
}

.saved-address-item.active {
  border-color: #0c831f;
  background: #f0fdf4;
}

.address-tag-pill {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}

.add-address-trigger-btn {
  width: 100%;
  padding: 12px;
  border: 2px dashed #0c831f;
  background: #f0fdf4;
  color: #0c831f;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  transition: all 0.15s;
}

.add-address-trigger-btn:hover {
  background: #dcfce7;
}

.tag-selector-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tag-selector-btn.selected {
  border-color: #0c831f;
  background: #ecfdf5;
  color: #0c831f;
}

/* Toast */
.toast-msg {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  z-index: 99999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

/* ========================================================
   9. RESPONSIVE EXTENSIONS (DESKTOP & TABLET ADAPTATIONS)
   ======================================================== */

/* Product Detail Page Responsive */
.detail-desktop-buy-row {
  display: none;
}

@media (min-width: 768px) {
  .product-detail-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
    padding: 24px 32px !important;
    align-items: start !important;
  }
  .detail-gallery {
    height: 440px !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
  }
  .detail-info {
    padding: 0 !important;
  }
  .detail-bottom-bar {
    display: none !important;
  }
  .detail-desktop-buy-row {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
  }
}

/* Orders Page Responsive */
@media (min-width: 768px) {
  .orders-list-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 20px !important;
  }
  .orders-screen {
    padding-bottom: 40px !important;
  }
}
@media (min-width: 1024px) {
  .orders-list-grid {
    gap: 20px !important;
    padding: 0 24px !important;
  }
}

/* Categories Page Responsive */
@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}
@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    padding: 0 24px !important;
  }
  .all-products-banner {
    margin: 0 24px 18px !important;
  }
  .cat-search-bar {
    margin: 16px 24px 18px !important;
  }
}
@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 18px !important;
  }
}

/* Checkout Page Responsive */
@media (min-width: 768px) {
  .checkout-grid-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 0 20px !important;
    align-items: start !important;
  }
  .checkout-screen {
    padding-bottom: 40px !important;
  }
}
