/* ==========================================================================
   BLINKIT QUICK COMMERCE - DESIGN SYSTEM & MASTER STYLESHEET
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --primary: #0c831f;
  --primary-hover: #086b19;
  --primary-light: #e8f5e9;
  --primary-gradient: linear-gradient(135deg, #0c831f 0%, #15a02e 100%);
  
  --accent: #f8cb46;
  --accent-hover: #e5b937;
  --accent-light: #fef8e7;
  --accent-gradient: linear-gradient(135deg, #f8cb46 0%, #f7b731 100%);

  /* Neutrals & Surfaces */
  --bg-main: #f4f6f8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-dark: #111827;

  /* Typography Colors */
  --text-dark: #1c1c1c;
  --text-body: #333333;
  --text-muted: #667085;
  --text-light: #98a2b3;
  --text-white: #ffffff;

  /* Status Colors */
  --success: #0c831f;
  --danger: #e53935;
  --warning: #f59e0b;
  --info: #2563eb;
  
  /* Borders & Shadows */
  --border-color: #e4e7ec;
  --border-subtle: #f2f4f7;
  --border-focus: #0c831f;
  
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 4px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, 0.12);
  --shadow-xl: 0 20px 32px -8px rgba(16, 24, 40, 0.18);
  --shadow-glow: 0 0 20px rgba(12, 131, 31, 0.25);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Consts */
  --header-height: 76px;
  --bottom-nav-height: 64px;
  --max-width: 1280px;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-nav-height) + 50px);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

button {
  cursor: pointer;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-content {
  flex: 1;
  padding: 24px 0 60px 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px 0;
  gap: 20px;
}

/* Header Top Row (Logo + Location on desktop & mobile) */
.header-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: var(--text-dark);
  box-shadow: 0 4px 8px rgba(248, 203, 70, 0.35);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 0;
}

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

.logo-tagline {
  font-size: 9px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 1px;
  line-height: 1;
}

/* Location Bar */
.location-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  max-width: 260px;
}

.location-selector:hover {
  background: #f0fdf4;
  border-color: var(--primary-light);
}

.loc-badge {
  display: flex;
  flex-direction: column;
}

.loc-badge .eta-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.loc-badge .eta-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulseAnim 1.5s infinite;
}

.loc-badge .loc-address {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

/* Header Search Bar & Live Dropdown */
.header-search {
  flex: 1;
  position: relative;
  max-width: 600px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  height: 48px;
  transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.12);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 18px;
  display: flex;
}

.search-input {
  width: 100%;
  background: transparent;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Live Instant Search Dropdown */
.live-search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  max-height: 440px;
  overflow-y: auto;
  display: none;
}

.live-search-results-dropdown.open {
  display: block;
  animation: slideInToast 0.2s ease-out;
}

.dropdown-header-bar {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.search-dropdown-item:hover {
  background: #f0fdf4;
}

.dropdown-item-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  padding: 2px;
}

.dropdown-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.dropdown-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  gap: 8px;
}

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

.nav-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-action-btn:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.btn-header-cart {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(12, 131, 31, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-header-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 131, 31, 0.35);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
}

.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
}

/* Sub-Header Categories Pill Nav */
.subheader-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.subheader-nav::-webkit-scrollbar {
  display: none;
}

.categories-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  white-space: nowrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cat-pill:hover, .cat-pill.active {
  background: #f0fdf4;
  border-color: var(--primary);
  color: var(--primary);
}

.cat-pill.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

/* ==========================================================================
   HERO BANNER & PROMO CAROUSEL
   ========================================================================== */

.hero-banner-section {
  margin-bottom: 32px;
}

.hero-slider {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-card-main {
  background: linear-gradient(135deg, #0c831f 0%, #064e13 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-card-main::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(248, 203, 70, 0.15);
  filter: blur(60px);
  border-radius: 50%;
  top: -50px;
  right: 50px;
}

.hero-content {
  max-width: 60%;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.hero-title {
  color: var(--text-white);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-image-wrap {
  z-index: 2;
  position: relative;
}

.hero-img {
  width: 280px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  transition: transform var(--transition-normal);
}

.hero-img:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-side-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-mini-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.promo-mini-card.card-accent {
  background: linear-gradient(135deg, #fef8e7 0%, #fffbf0 100%);
  border-color: #fce8a6;
}

.promo-mini-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.promo-mini-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.promo-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   PROMOTIONAL DOUBLE BANNERS
   ========================================================================== */

.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.promo-banner-card {
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 180px;
}

.promo-banner-content {
  flex: 1;
  max-width: 65%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo-banner-badge {
  background: var(--accent);
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
}

.promo-banner-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 6px 0;
  line-height: 1.2;
}

.promo-banner-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
  line-height: 1.4;
}

.promo-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.promo-banner-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.promo-banner-img-wrap {
  z-index: 2;
  flex-shrink: 0;
  margin-left: 14px;
}

.promo-banner-img-wrap img {
  width: 135px;
  height: 135px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ==========================================================================
   CATEGORY EXPLORE & DIRECTORY GRID
   ========================================================================== */

/* Categories Directory Page (.category-page-grid) */
.category-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-page-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
  position: relative;
}

.category-page-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.category-page-banner {
  height: 140px;
  overflow: hidden;
  position: relative;
  display: block;
}

.category-page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-page-card:hover .category-page-banner img {
  transform: scale(1.06);
}

.category-page-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.category-page-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.category-page-icon {
  font-size: 22px;
}

.category-page-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

.category-subchips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cat-subchip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.15s ease;
}

.cat-subchip:hover {
  background: #f0fdf4;
  color: var(--primary);
  border-color: var(--primary);
}

.category-page-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.category-page-footer-link:hover {
  text-decoration: underline;
}

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

.section-title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.cat-img-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 2px solid #e8f5e9;
  transition: transform var(--transition-fast);
}

.category-card:hover .cat-img-box {
  transform: scale(1.08);
}

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

.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ==========================================================================
   FLASH DEALS & LIVE COUNTDOWN TIMER
   ========================================================================== */

.flash-deals-box {
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  border: 2px solid #fecdd3;
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #fda4af;
}

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

.flash-badge-pulse {
  background: #e11d48;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseAnim 1.2s infinite;
}

.flash-timer-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #9f1239;
}

.timer-digit-box {
  background: #be123c;
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  min-width: 30px;
  text-align: center;
  font-family: 'Poppins', monospace;
  font-weight: 800;
}

/* ==========================================================================
   STANDARDIZED PRODUCT CARD
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.product-card.out-of-stock-card {
  opacity: 0.85;
}

/* Card Top Badges */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.badge-discount-ribbon {
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.4px;
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.3);
}

.btn-wishlist-toggle {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
  border: 1px solid rgba(0,0,0,0.06);
}

.btn-wishlist-toggle:hover {
  transform: scale(1.15);
  color: #e11d48;
}

.btn-wishlist-toggle.active {
  color: #e11d48;
  transform: scale(1.1);
}

/* Product Image & Multi-Image Gallery */
.card-img-container {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.card-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

/* Multi-Image Dots */
.card-img-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 5;
}

.img-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.img-dot.active, .img-dot:hover {
  background: var(--primary);
  transform: scale(1.3);
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.out-of-stock-overlay span {
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.time-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dark);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
  width: fit-content;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}

.rating-star-pill {
  background: #fef8e7;
  color: #b45309;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.reviews-count-text {
  color: var(--text-muted);
  font-size: 11px;
}

.product-unit-text {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Bottom: Pricing & Action */
.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-current {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-dark);
}

.price-mrp {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Add to Cart / Quantity Controller Button */
.btn-add-cart {
  background: #f0fdf4;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.btn-add-cart:hover {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(12, 131, 31, 0.3);
}

.btn-out-stock {
  background: #f1f5f9;
  color: #94a3b8;
  font-weight: 800;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  cursor: not-allowed;
  border: 1px solid #e2e8f0;
}

.qty-counter-btn {
  display: flex;
  align-items: center;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: var(--text-white);
  padding: 2px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(12, 131, 31, 0.3);
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 900;
  font-size: 16px;
  transition: background var(--transition-fast);
  border-radius: var(--radius-xs);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.qty-value {
  padding: 0 8px;
  min-width: 22px;
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   ADVANCED FILTER & SEARCH SIDEBAR STYLES
   ========================================================================== */

.filter-sidebar-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-chip-btn:hover, .filter-chip-btn.active {
  background: #f0fdf4;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   MOBILE STICKY FILTER / SORT BAR & BOTTOM SHEETS
   ========================================================================== */

.mobile-filter-sort-bar {
  display: none;
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  z-index: 850;
  padding: 8px 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  justify-content: space-around;
  align-items: center;
}

.mobile-action-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  flex: 1;
  padding: 6px 0;
}

.mobile-bottom-sheet-content {
  background: var(--bg-white);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  max-height: 80vh;
  overflow-y: auto;
  align-self: flex-end;
  animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 768px) {
  .mobile-filter-sort-bar {
    display: flex;
  }
}

/* ==========================================================================
   PRODUCT DETAILS PAGE (SECTION 7 COMPLETE STYLES)
   ========================================================================== */

.detail-gallery-container {
  display: flex;
  gap: 16px;
}

.gallery-thumbnails-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
}

.gallery-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  padding: 4px;
  background: var(--bg-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-thumb-btn.active, .gallery-thumb-btn:hover {
  border-color: var(--primary);
  transform: scale(1.04);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-main-view {
  flex: 1;
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  min-height: 380px;
}

.gallery-main-view img {
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-main-view:hover img {
  transform: scale(1.05);
}

/* Size Chips */
.size-selector-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px 0;
}

.size-chip-btn {
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.size-chip-btn.active, .size-chip-btn:hover {
  border-color: var(--primary);
  background: #f0fdf4;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(12, 131, 31, 0.15);
}

/* Quantity Selector on Details */
.detail-qty-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-qty-counter {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4px 8px;
}

.detail-qty-counter button {
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.detail-qty-counter button:hover {
  background: #e2e8f0;
}

.detail-qty-counter span {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

/* CTA Buttons */
.detail-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-detail-add {
  background: #f0fdf4;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-detail-add:hover {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(12, 131, 31, 0.25);
}

.btn-detail-buy {
  background: var(--accent-gradient);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(248, 203, 70, 0.4);
  cursor: pointer;
}

.btn-detail-buy:hover {
  background: #ffffff;
  border: 2px solid var(--accent);
  transform: translateY(-2px);
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: 12px 14px;
  font-size: 13px;
}

.specs-table td:first-child {
  width: 35%;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.specs-table td:last-child {
  color: var(--text-dark);
  font-weight: 600;
}

/* Rating Progress Breakdown */
.rating-overview-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.rating-score-big {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.rating-progress-wrap {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.rating-progress-bar {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-pill);
}

/* Review Cards */
.review-item-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   SLIDE-OUT CART DRAWER
   ========================================================================== */

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-backdrop.open .cart-drawer {
  right: 0;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-main);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-slow);
}

.drawer-header {
  background: var(--bg-white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-drawer {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-dark);
  font-size: 18px;
}

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

/* Free Delivery Meter */
.free-delivery-meter {
  background: #f0fdf4;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.free-del-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.progress-bar-wrap {
  height: 6px;
  background: #dcfce7;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width var(--transition-normal);
}

/* Drawer Cart Items */
.cart-items-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 14px;
}

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

.cart-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 2px;
}

.cart-item-unit {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

/* Bill Breakdown Card */
.bill-details-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
}

.bill-card-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bill-row.free-tag span:last-child {
  color: var(--primary);
  font-weight: 700;
}

.bill-row.total-row {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.savings-badge-box {
  background: #f0fdf4;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.drawer-footer {
  background: var(--bg-white);
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.btn-proceed-checkout {
  width: 100%;
  background: var(--primary-gradient);
  color: var(--text-white);
  font-weight: 800;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(12, 131, 31, 0.3);
  transition: all var(--transition-fast);
}

.btn-proceed-checkout:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN MANAGEMENT DASHBOARD STYLES
   ========================================================================== */

.admin-dashboard-layout {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-nav-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.admin-tab-btn {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES: CHECKOUT, TRACKING, ACCOUNT
   ========================================================================== */

/* Multi-Step Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.checkout-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
}

.checkout-step-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.address-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.address-box-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Live Order Tracking */
.tracking-container {
  max-width: 760px;
  margin: 0 auto;
}

.tracking-map-sim {
  height: 240px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-md);
}

.tracking-pulse-rider {
  position: absolute;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(12, 131, 31, 0.4);
  animation: riderMove 6s infinite alternate ease-in-out;
}

@keyframes riderMove {
  0% { transform: translate(-80px, 20px); }
  100% { transform: translate(80px, -20px); }
}

.tracking-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 36px;
}

.tracking-steps::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--border-color);
}

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

.step-circle {
  position: absolute;
  left: -36px;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.track-step-item.done .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.track-step-item.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  animation: pulseAnim 1.5s infinite;
}

/* ==========================================================================
   MODALS, TOASTS & UTILITIES
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 16px;
}

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

.modal-dialog {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.3s ease-out;
}

.toast.toast-success {
  background: var(--primary);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   ACCOUNT DASHBOARD & NAVIGATION
   ========================================================================== */

.account-dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.account-sidebar-menu {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.account-menu-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.account-menu-item.active {
  background: #f0fdf4;
  color: var(--primary);
  font-weight: 800;
  border-left: 3px solid var(--primary);
}

.account-content-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 900;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 6px 12px;
}

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

.bottom-nav-icon {
  font-size: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px 0;
  margin-top: auto;
}

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

.footer-brand h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-dark);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-slider {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-actions .nav-action-btn:not(.btn-header-cart) {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .location-selector {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .detail-gallery-container {
    flex-direction: column-reverse;
  }
  .gallery-thumbnails-col {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  .product-detail-layout, .checkout-layout, .rating-overview-card {
    grid-template-columns: 1fr;
  }
  #desktop-filter-sidebar {
    display: none;
  }
  div[style*="grid-template-columns: 260px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .hero-card-main {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-img {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   SECTIONS 25, 26, 27, 28 ADDITIONS: NOTIFICATIONS, REVIEWS & SETTINGS
   ========================================================================== */

/* Notification Dropdown Menu */
.notif-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 1000;
  display: none;
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out;
}

.notif-dropdown-menu.open {
  display: block;
}

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

/* Star Rating Selector */
.star-rating-selector .star-btn {
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.star-rating-selector .star-btn:hover {
  transform: scale(1.2);
}

.star-rating-selector .star-btn.active {
  color: #f59e0b;
}

/* Vertical Visual Timeline (Section 15) */
.vertical-visual-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
}

.timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.timeline-row.completed .timeline-node {
  background: #f0fdf4;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.timeline-row.active .timeline-node {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(12, 131, 31, 0.2);
  animation: pulseAnim 1.4s infinite;
}

.timeline-row.pending .timeline-node {
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
}

.timeline-label-wrap {
  padding-top: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.timeline-row.completed .timeline-title {
  color: var(--text-dark);
}

.timeline-row.active .timeline-title {
  color: var(--primary);
  font-size: 16px;
}

.timeline-row.pending .timeline-title {
  color: var(--text-muted);
}

.timeline-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.timeline-sub-done {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

.timeline-arrow-row {
  padding-left: 10px;
  margin: 4px 0;
}

.timeline-arrow {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

/* ==========================================================================
   MOBILE RESPONSIVE SYSTEM (SCREENS <= 768px & <= 480px)
   ========================================================================== */

/* Universal Responsive Layout Utilities */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.layout-sidebar-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.layout-cart-grid,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
}

.layout-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.layout-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

@media (max-width: 1024px) {
  .layout-sidebar-grid {
    grid-template-columns: 220px 1fr;
    gap: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .layout-4col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  body {
    padding-bottom: 80px;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-content {
    padding: 10px 0 40px 0;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .layout-sidebar-grid,
  .layout-cart-grid,
  .checkout-layout,
  .layout-2col-grid,
  .layout-3col-grid,
  .account-dashboard-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .account-sidebar-menu {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    white-space: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg) !important;
  }

  .account-sidebar-menu::-webkit-scrollbar {
    display: none;
  }

  .account-menu-item {
    padding: 8px 14px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 12.5px !important;
    flex-shrink: 0 !important;
    width: auto !important;
    background: #f8fafc !important;
    border: 1px solid var(--border-color) !important;
    justify-content: center !important;
    border-left: 1px solid var(--border-color) !important;
  }

  .account-menu-item.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    border-left: 1px solid var(--primary) !important;
  }

  .account-content-card {
    padding: 18px 14px !important;
    border-radius: var(--radius-lg) !important;
  }

  .layout-4col-grid,
  .category-page-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .category-page-banner {
    height: 110px !important;
  }

  .category-page-body {
    padding: 10px 8px !important;
  }

  .category-page-title {
    font-size: 13px !important;
  }

  .cat-subchip {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }

  .category-page-footer-link {
    font-size: 11px !important;
  }

  .filter-sidebar-box {
    display: none !important;
  }

  /* 1. Header Mobile Layout */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .header-wrapper {
    flex-direction: column;
    height: auto;
    padding: 8px 0 6px 0;
    gap: 8px;
  }

  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .brand-logo {
    gap: 6px;
  }

  .brand-logo .logo-title {
    font-size: 19px;
  }

  .brand-logo .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 8px;
  }

  .location-selector {
    padding: 4px 8px;
    max-width: 160px;
    border-radius: var(--radius-sm);
    flex: 1;
  }

  .location-selector .loc-badge .eta-badge {
    font-size: 11px;
  }

  .location-selector .loc-badge .loc-address {
    font-size: 10px;
    max-width: 100px;
  }

  .btn-mobile-quick-cart {
    display: flex !important;
  }

  .header-search {
    width: 100%;
    max-width: 100%;
  }

  .search-input-wrapper {
    height: 40px;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    padding: 0 14px;
  }

  .search-input {
    font-size: 13px;
  }

  .header-actions {
    display: none; /* Accessible via bottom nav & drawer */
  }

  /* Subheader Categories Horizontal Pills */
  .subheader-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-color);
  }

  .subheader-nav::-webkit-scrollbar {
    display: none;
  }

  .categories-pills {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 0;
    min-width: max-content;
  }

  .cat-pill {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  /* 2. Hero Banners on Mobile */
  .hero-banner-section {
    margin-bottom: 20px;
  }

  .hero-slider {
    flex-direction: column;
    gap: 10px;
  }

  .hero-card-main {
    flex-direction: column;
    padding: 16px 14px;
    min-height: auto;
    border-radius: var(--radius-lg);
  }

  .hero-card-main .hero-title {
    font-size: 22px;
  }

  .hero-card-main .hero-desc {
    font-size: 12px;
  }

  .hero-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .promo-mini-card {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .promo-mini-card h4 {
    font-size: 13px;
  }

  .promo-mini-card p {
    font-size: 11px;
  }

  /* 3. Category Grid on Mobile (4 Columns or Horizontal Scroll) */
  .category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px 8px !important;
  }

  .category-card {
    padding: 8px 4px;
  }

  .cat-img-box {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-bottom: 6px;
  }

  .cat-name {
    font-size: 11px;
    font-weight: 700;
  }

  /* 4. Product Cards 2-Column Mobile Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 8px !important;
  }

  .product-card {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-img-container {
    height: 125px;
    margin-bottom: 6px;
  }

  .card-img-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-img-wrap img {
    max-height: 115px;
    object-fit: contain;
  }

  .time-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .product-title {
    font-size: 12px;
    height: 32px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0;
  }

  .card-rating-row {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .price-current {
    font-size: 14px;
    font-weight: 900;
  }

  .price-mrp {
    font-size: 11px;
  }

  .btn-add-cart {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 6px;
    min-width: 60px;
  }

  .cart-stepper {
    height: 28px;
  }

  .cart-stepper button {
    width: 24px;
    font-size: 14px;
  }

  .cart-stepper span {
    font-size: 12px;
    min-width: 18px;
  }

  /* 5. Product Details Layout on Mobile */
  .product-detail-layout {
    flex-direction: column;
    gap: 20px;
  }

  .detail-gallery-container {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .gallery-thumbnails-col {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 4px;
  }

  .gallery-thumb-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .gallery-main-view {
    min-height: 260px;
    max-height: 320px;
  }

  .detail-action-buttons {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 16px;
    border-top: 1px solid #e2e8f0;
    z-index: 995;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    display: flex;
    gap: 10px;
  }

  .btn-detail-add, .btn-detail-buy {
    flex: 1;
    padding: 12px;
    font-size: 13px;
  }

  /* 6. Mobile Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    gap: 3px;
    flex: 1;
    height: 100%;
    transition: color 0.15s ease;
  }

  .bottom-nav-item .bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
  }

  .bottom-nav-item.active {
    color: var(--primary);
    font-weight: 800;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
  }

  /* 7. Mobile Sticky Floating Cart Strip */
  .mobile-sticky-cart-bar {
    position: fixed;
    bottom: 68px;
    left: 12px;
    right: 12px;
    background: #0c831f;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(12, 131, 31, 0.45);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Cart Drawer on Mobile */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
  }

  /* Modals on Mobile */
  .modal-dialog {
    width: 92% !important;
    max-width: 92% !important;
    margin: 20px auto;
    border-radius: 16px;
    padding: 18px;
  }

  /* Footer on Mobile */
  .site-footer {
    display: none; /* Hide heavy desktop footer on mobile */
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .mobile-sticky-cart-bar {
    display: none !important;
  }
}


