/* =============================================
   Megha Store — Blinkit/Zepto Style Design System
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --green:        #22c55e;
  --green-dark:   #16a34a;
  --green-light:  #dcfce7;
  --green-xlight: #f0fdf4;
  --orange:       #f97316;
  --red:          #ef4444;
  --yellow:       #eab308;
  --blue:         #3b82f6;
  --text:         #111827;
  --text-2:       #374151;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --bg:           #f9fafb;
  --white:        #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.10);
  --shadow-green: 0 6px 20px rgba(34,197,94,0.22);
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --transition:   all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============ TYPOGRAPHY UTILITIES ============ */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }
.text-primary { color: var(--green) !important; }
.text-muted   { color: var(--text-muted) !important; }
.bg-light-subtle { background: var(--green-xlight) !important; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--green);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}
.btn-outline-primary {
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--green);
  color: white;
}
.btn-outline-success { border-color: var(--green); color: var(--green-dark); font-weight: 600; border-radius: 10px; }
.btn-outline-success:hover { background: var(--green); color: white; }
.badge.bg-primary { background: var(--green) !important; }
.border-primary { border-color: var(--green) !important; }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }

/* ============ LOGO ============ */
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 19px; flex-shrink: 0;
}
.no-caret::after { display: none !important; }

/* ============ HEADER ============ */
.header-main {
  position: sticky !important;
  top: 0;
  z-index: 1060 !important;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.navbar { padding: 0; }
.navbar-brand { text-decoration: none; }
.nav-link {
  font-weight: 600; font-size: 13px;
  color: var(--text-2) !important;
  padding: 12px 14px !important;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--green) !important;
  border-bottom-color: var(--green);
}

/* ============ SEARCH ============ */
.search-wrapper {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border) !important;
  border-radius: 50px !important;
  overflow: hidden;
  background: white;
  transition: var(--transition);
}
.search-wrapper:focus-within {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12) !important;
}
.search-wrapper input { border: none !important; box-shadow: none !important; background: transparent !important; font-size: 14px; }
.search-wrapper select { border: none !important; box-shadow: none !important; background: transparent !important; font-size: 13px; }
.search-wrapper .btn { border-radius: 0 50px 50px 0 !important; }
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 1055; max-height: 380px; overflow-y: auto; margin-top: 6px; border: 1px solid var(--border); }
.search-suggestion { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; transition: var(--transition); color: var(--text); }
.search-suggestion:hover { background: var(--green-xlight); }
.search-suggestion img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }

/* ============ NAV ICON BUTTONS ============ */
.nav-icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text-2); font-size: 18px;
  transition: var(--transition); position: relative;
  text-decoration: none;
}
.nav-icon-btn:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ============ MEGA MENU ============ */
.mega-menu { min-width: 240px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: 8px; }
.mega-menu .dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 500; transition: var(--transition); }
.mega-menu .dropdown-item:hover { background: var(--green-light); color: var(--green-dark); }

/* ============ HERO SECTION ============ */
.hero-section-new {
  background: url('../images/bg.jpg') center/cover no-repeat;
  padding: 32px 0 0;
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.hero-section-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.85); /* Light overlay for dark text */
  z-index: 1;
}
.hero-inner { display: flex; align-items: center; gap: 28px; min-height: 260px; position: relative; z-index: 2; }

/* Left text */
.hero-left { flex: 1; padding-bottom: 30px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 12px; font-weight: 700; padding: 5px 14px;
  border-radius: 50px; margin-bottom: 14px; width: fit-content;
  border: 1px solid rgba(34,197,94,0.25);
}
.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.2;
  color: #1e40af; margin-bottom: 10px; /* Blue headline */
}
.hero-h1 .text-primary {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub { color: #000000; font-size: 14px; line-height: 1.65; margin-bottom: 20px; max-width: 460px; font-weight: 500; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-hero { padding: 11px 26px; font-weight: 700; font-size: 14px; border-radius: 50px; letter-spacing: 0.3px; }
.hero-stats-row {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 16px 24px; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.hero-stat { display: flex; flex-direction: column; flex-shrink: 0; min-width: max-content; }
.hstat-num {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  display: inline-block;
}
.hstat-label { font-size: 11px; color: rgba(0,0,0,0.6); font-weight: 600; margin-top: 2px; }

/* Right features card */
.hero-right { width: 270px; flex-shrink: 0; display: none; }
.hero-features-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.hf-item { display: flex; align-items: center; gap: 12px; }
.hf-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

/* Mobile strip */
.hero-mobile-strip { background: white; border-top: 1px solid var(--border); padding: 10px 0; }
.mobile-strip-row { display: flex; justify-content: space-around; align-items: center; }
.ms-feat { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.3px; }
.ms-feat i { font-size: 19px; }

/* Desktop: show hero right image */
@media (min-width: 992px) {
  .hero-right { display: flex; align-items: center; justify-content: flex-end; }
  .hero-image-wrap { width: 100%; max-width: 480px; position: relative; }
  .hero-image-wrap img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15)); transform: scale(1.1) translateX(-10px); transition: var(--transition); }
  .hero-image-wrap:hover img { transform: scale(1.15) translateX(-10px) translateY(-5px); }
}
@media (max-width: 991px) {
  .hero-inner { flex-direction: column; min-height: auto; gap: 0; }
  .hero-right { display: block !important; width: 100%; text-align: center; margin-top: -10px; padding-bottom: 20px; }
  .hero-image-wrap { width: 100%; max-width: 380px; margin: 0 auto; position: relative; }
  .hero-image-wrap img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3)); }
}
@media (max-width: 768px) {
  .hero-section-new { padding: 20px 0 0; }
  .hero-left { padding-bottom: 0; }
  .hero-h1 { font-size: 1.45rem; margin-bottom: 8px; }
  .hero-sub { font-size: 13px; margin-bottom: 14px; }
  .hero-btns { gap: 8px; margin-bottom: 16px; justify-content: flex-start; }
  .btn-hero { padding: 10px 20px; font-size: 13px; }
  .hero-stats-row { gap: 16px; padding-top: 12px; margin-bottom: 24px; border-bottom: none; }
  .hstat-num { font-size: 1.05rem; }
  .hero-right { margin-top: -15px; padding-bottom: 15px; }
  .hero-image-wrap { max-width: 95%; margin-top: 10px; }
}

/* ============ OFFER BANNERS ============ */
.offer-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 160px; background-size: cover; background-position: center;
  display: flex; align-items: center; cursor: pointer;
  transition: var(--transition);
}
.offer-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.offer-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.54) 0%, rgba(0,0,0,0.06) 100%);
  z-index: 1;
}
.offer-content { position: relative; z-index: 2; padding: 20px 24px; color: white; }
.offer-content h4 { font-weight: 800; margin-bottom: 4px; font-size: 1rem; }
.offer-content p { font-size: 12px; opacity: 0.88; margin-bottom: 8px; }
@media (max-width: 768px) { .offer-banner { height: 110px; } }

/* ============ SECTIONS ============ */
.section-padding { padding: 48px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px;
}
.section-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 3px;
}
.section-title { font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 800; line-height: 1.2; }
.section-title .text-primary { color: var(--green) !important; }
.bg-light-alt { background: #f8fafc; }
.cat-section { background: white; padding-bottom: 48px; }

/* ============ CATEGORY GRID ============ */
.cat-grid-wrapper { overflow-x: auto; padding-bottom: 8px; margin: 0 -12px; padding: 0 12px 12px; scrollbar-width: none; }
.cat-grid-wrapper::-webkit-scrollbar { display: none; }
.cat-grid {
  display: flex; gap: 14px;
}
.cat-grid-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 8px 12px; background: white; width: calc(16.666% - 12px); flex-shrink: 0;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  color: var(--text); transition: var(--transition); cursor: pointer;
}
@media (max-width: 1100px) { .cat-grid-item { width: calc(20% - 12px); } }
@media (max-width: 900px)  { .cat-grid-item { width: calc(25% - 12px); } }
@media (max-width: 600px)  { .cat-grid-item { width: calc(33.333% - 12px); gap: 10px; } }
@media (max-width: 480px)  { .cat-grid-item { width: clamp(100px, 28%, 130px); gap: 8px; padding: 14px 6px 10px; } }

.cat-grid-item:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.15);
  color: var(--green-dark);
}
.cat-grid-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--green); margin-bottom: 12px;
  transition: var(--transition); overflow: hidden;
  border: 1px solid rgba(34,197,94,0.15);
}
.cat-grid-item:hover .cat-grid-icon { box-shadow: 0 0 0 4px var(--green-light); transform: scale(1.05); }
.cat-grid-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-grid-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; line-height: 1.3; }
.cat-grid-count { font-size: 10px; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 20px; font-weight: 600; }
@media (max-width: 768px) {
  .cat-grid-icon { width: 64px; height: 64px; font-size: 24px; margin-bottom: 8px; }
  .cat-grid-name { font-size: 12px; }
}

/* ============ PRODUCT CARDS ============ */
.product-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  position: relative; transition: var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green);
}
.product-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 3px; z-index: 2; }
.badge-tag { padding: 2px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-tag.new  { background: var(--blue); color: white; }
.badge-tag.hot  { background: var(--orange); color: white; }
.badge-tag.exc  { background: #8b5cf6; color: white; }
.badge-discount {
  position: absolute; top: 8px; right: 8px;
  background: var(--red); color: white;
  border-radius: 6px; padding: 2px 7px;
  font-size: 10px; font-weight: 700; z-index: 2;
}
.wishlist-btn {
  position: absolute; top: 36px; right: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: var(--transition);
}
.wishlist-btn:hover, .wishlist-btn.active { background: #fee2e2; border-color: var(--red); color: var(--red); }
.product-img-wrap { display: block; overflow: hidden; background: #f9f9f9; aspect-ratio: 1/1; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img { transform: scale(1.07); }
.product-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.product-cat { font-size: 10px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.product-title { font-weight: 600; font-size: 13px; line-height: 1.35; margin-bottom: 5px; flex-grow: 1; }
.product-title a { color: var(--text); transition: var(--transition); }
.product-title a:hover { color: var(--green); }
.product-rating { font-size: 11px; margin-bottom: 3px; }
.product-weight { margin-bottom: 3px; }
.product-price-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.price-current { font-size: 16px; font-weight: 800; color: var(--green-dark); }
.price-original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.btn-add-cart {
  background: var(--green); color: white; border: none;
  border-radius: 8px; font-weight: 700; font-size: 12px;
  padding: 8px 10px; transition: var(--transition);
  width: 100%; margin-top: 6px;
}
.btn-add-cart:hover { background: var(--green-dark); color: white; transform: translateY(-1px); }

/* ============ WHY CHOOSE US ============ */
.why-section { background: var(--green-xlight); }
.why-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  border: 1px solid rgba(34,197,94,0.15);
  transition: var(--transition); height: 100%;
}
.why-card:hover { box-shadow: var(--shadow-green); transform: translateY(-4px); border-color: var(--green); }
.why-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--green); color: white; }
.why-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.why-text { font-size: 12px; color: var(--text-muted); line-height: 1.65; }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: white; border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--border);
  transition: var(--transition); height: 100%;
  position: relative;
}
.testimonial-card:hover { box-shadow: var(--shadow); border-color: var(--green); }
.testimonial-card::before {
  content: '"';
  position: absolute; top: 14px; right: 18px;
  font-size: 60px; color: var(--green-light);
  font-family: Georgia, serif; line-height: 1;
}
.test-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
}

/* ============ FEATURES STRIP ============ */
.features-strip { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.feature-item i { font-size: 22px; color: var(--green); }
.feature-item .fw-600 { font-size: 13px; }

/* ============ ANIMATIONS ============ */
.animate-fade-in { animation: fadeInUp 0.7s ease both; }
.animate-fade-in-delay { animation: fadeInUp 0.7s ease 0.15s both; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.35);} 50%{box-shadow:0 0 0 8px rgba(34,197,94,0);} }

/* ============ SECTION PADDING / RESPONSIVE ============ */
main { padding-top: 0; }
@media (max-width: 991px) { .header-main { position: sticky; top: 0; z-index: 1040; } }
@media (max-width: 768px) {
  .section-padding { padding: 32px 0; }
  .section-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .header-main { padding: 6px 0 !important; }
  .logo-icon { width: 32px; height: 32px; font-size: 16px; }
  .nav-icon-btn { width: 38px; height: 38px; font-size: 17px; }
  .offer-banner { height: 110px; }
  .auth-card { padding: 24px; }
  .chat-box { width: 288px; }
  .back-to-top { bottom: 74px; right: 14px; }
  .chat-widget { bottom: 14px; right: 14px; }
}

/* =============================================
   MOBILE BOTTOM NAVIGATION BAR — Floating Cutout Style
   ============================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  z-index: 1060;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  border-radius: 24px 24px 0 0;
}

.mbn-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 68px;
  position: relative;
}

/* --- Regular nav item --- */
.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8; /* Flat grey color matching image */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  position: relative;
}

.mbn-item .mbn-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.mbn-item i {
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s;
}

/* Hover/Active states */
.mbn-item:not(.mbn-cart-center):hover,
.mbn-item:not(.mbn-cart-center).active {
  color: var(--text-2); /* Darker grey when active */
}
.mbn-item:not(.mbn-cart-center).active i {
  color: var(--text-2);
}

/* Active dot under icon removed for a cleaner look matching image */
.mbn-item.active::after { display: none; }

/* --- Cart (center) — Floating Cutout Circle --- */
.mbn-item.mbn-cart-center {
  flex: 1;
  color: var(--green);
  text-decoration: none;
}

.mbn-cart-bubble {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(34,197,94,0.3);
  transition: all 0.2s;
  /* Cutout illusion using thick white border overlapping the white bar */
  border: 6px solid #ffffff;
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}

.mbn-item.mbn-cart-center span.cart-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
}

.mbn-item.mbn-cart-center:hover .mbn-cart-bubble {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 24px rgba(34,197,94,0.4);
}

/* Cart count badge (Red dot top-right) */
.mbn-cart-bubble .mbn-badge {
  position: absolute;
  top: 0; right: -2px;
  background: var(--red); color: white;
  border-radius: 50%; width: 22px; height: 22px;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #ffffff;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Show on mobile only */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 74px; }
  /* Hide chat widget on mobile completely as requested */
  .chat-widget { display: none !important; }
  .back-to-top { bottom: 154px !important; right: 14px; }
}

/* ============ FOOTER ============ */
.footer { background: #0a1a12; color: white; border-top: none; position: relative; }
.footer-top { padding: 52px 0 40px; }
.footer-title {
  color: white; font-weight: 700; font-size: 13px;
  margin-bottom: 18px; position: relative; padding-bottom: 9px;
  text-transform: uppercase; letter-spacing: 0.7px;
}
.footer-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 2px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer-links li a {
  color: rgba(255,255,255,0.5); transition: var(--transition);
  display: inline-flex; align-items: center; gap: 2px;
}
.footer-links li a i { font-size: 12px; opacity: 0.7; }
.footer-links li a:hover { color: var(--green); padding-left: 3px; }
.footer-contact-list li { color: rgba(255,255,255,0.5); font-size: 12.5px; margin-bottom: 10px; }
.footer-contact-list li a { color: rgba(255,255,255,0.5); }
.footer-contact-list li a:hover { color: var(--green); }

.text-muted-light { color: rgba(255,255,255,0.5); }

/* Footer logo icon (green gradient) */
.footer-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}

/* Newsletter */
.footer-newsletter { background: rgba(255,255,255,0.04); border-radius: 14px; padding: 14px; border: 1px solid rgba(255,255,255,0.06); }
.footer-email-input {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important; border-radius: 9px !important;
}
.footer-email-input::placeholder { color: rgba(255,255,255,0.35) !important; }
.footer-email-input:focus { background: rgba(255,255,255,0.12) !important; border-color: var(--green) !important; box-shadow: none !important; }

/* Social buttons */
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); transition: var(--transition);
  font-size: 15px; border: 1px solid rgba(255,255,255,0.08);
}
.social-btn:hover { background: var(--green); color: white; transform: translateY(-3px); border-color: transparent; box-shadow: 0 4px 12px rgba(34,197,94,0.4); }

/* Payment badges */
.footer-pay-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 4px 8px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6);
}

/* Trust Strip */
.footer-trust-strip { background: #0d1f18; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.04); padding: 14px 0; }
.fts-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.fts-item i { font-size: 22px; color: var(--green); flex-shrink: 0; }
.fts-title { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.85); }
.fts-sub { font-size: 10.5px; color: rgba(255,255,255,0.4); }

/* Footer bottom */
.footer-bottom { background: #06110d; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom-link {
  font-size: 11.5px; color: rgba(255,255,255,0.38);
  text-decoration: none; transition: color 0.18s;
}
.footer-bottom-link:hover { color: var(--green); }

/* App buttons (legacy) */
.app-btn { transition: var(--transition); border: 1px solid rgba(255,255,255,0.12) !important; }
.app-btn:hover { background: #1c3326 !important; border-color: var(--green) !important; transform: translateY(-2px); }

/* Mobile footer: stack trust strip to 2 columns */
@media (max-width: 768px) {
  .footer-top { padding: 36px 0 28px; }
  .fts-item { padding: 6px 8px; }
  .fts-item i { font-size: 18px; }
  .fts-title { font-size: 11.5px; }
  .fts-sub { font-size: 9.5px; }
}


/* ============ CHAT WIDGET ============ */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.chat-toggle {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; border: none; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-green);
  transition: var(--transition);
  animation: pulse-green 2.2s infinite;
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-box { width: 318px; background: white; border-radius: 16px; box-shadow: var(--shadow-md); margin-bottom: 12px; overflow: hidden; }
.chat-header {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; padding: 13px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.chat-messages { height: 240px; overflow-y: auto; padding: 12px; background: #f9f9f9; }
.chat-msg { margin-bottom: 9px; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble { background: white; border-radius: 12px; padding: 7px 12px; font-size: 13px; box-shadow: var(--shadow-sm); max-width: 82%; }
.chat-msg.user .chat-bubble { background: var(--green); color: white; }
.chat-input { padding: 10px 12px; display: flex; gap: 8px; border-top: 1px solid var(--border); }
.chat-badge { position: absolute; top: 0; right: 0; background: var(--red); width: 17px; height: 17px; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); display: inline-block; animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2){animation-delay:0.2s;} .typing-dot:nth-child(3){animation-delay:0.4s;}
@keyframes typingBounce { 0%,60%,100%{opacity:0.3;transform:translateY(0);} 30%{opacity:1;transform:translateY(-5px);} }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 90px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--text); color: white; border: none;
  font-size: 17px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(12px);
  transition: var(--transition); z-index: 999;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green); }

/* ============ AUTH ============ */
.auth-card { background: white; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); max-width: 460px; margin: 0 auto; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 13px; }

/* ============ FILTER SIDEBAR ============ */
.filter-sidebar { background: white; border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); position: sticky; top: 80px; }
.filter-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 9px; }

/* ============ PRODUCT DETAIL ============ */
.main-product-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 420px; }
.product-thumb { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid var(--border); transition: var(--transition); }
.product-thumb.active, .product-thumb:hover { border-color: var(--green); }
.product-detail-title { font-size: 1.55rem; font-weight: 800; margin-bottom: 10px; }
.detail-price { font-size: 1.9rem; font-weight: 800; color: var(--green-dark); }
.detail-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.product-meta { background: var(--bg); border-radius: 10px; padding: 12px 16px; }
.product-meta > div { padding: 4px 0; font-size: 13px; }
.meta-label { font-weight: 700; color: var(--text-muted); margin-right: 6px; }
.qty-selector { display: flex; align-items: center; background: var(--bg); border-radius: 10px; border: 1.5px solid var(--border); overflow: hidden; }
.qty-btn { width: 36px; height: 40px; background: none; border: none; font-size: 18px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--green-light); color: var(--green-dark); }
.qty-input { width: 56px; height: 40px; border: none; background: none; text-align: center; font-weight: 700; font-size: 15px; }
.review-card { background: var(--bg); border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.star-rating-input i { font-size: 22px; cursor: pointer; color: #d1d5db; margin-right: 4px; transition: var(--transition); }
.star-rating-input i:hover, .star-rating-input i.active { color: var(--yellow); }

/* ============ CART ============ */
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: white; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 10px; }
.cart-img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.cart-item-title a { font-weight: 600; color: var(--text); }
.cart-item-title a:hover { color: var(--green); }
.cart-item-price { font-weight: 700; color: var(--green-dark); font-size: 15px; margin-top: 3px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qty-selector-sm { display: flex; align-items: center; gap: 3px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); padding: 2px; }
.qty-btn-sm { width: 26px; height: 26px; background: none; border: none; font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 6px; transition: var(--transition); }
.qty-btn-sm:hover { background: var(--green); color: white; }
.order-summary-card { background: white; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }

/* ============ CHECKOUT ============ */
.checkout-card { background: white; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.saved-address-item { padding: 12px; border: 2px solid var(--border); border-radius: 10px; margin-bottom: 10px; transition: var(--transition); }
.saved-address-item:has(input:checked) { border-color: var(--green); background: var(--green-xlight); }
.slot-card { padding: 10px; border: 2px solid var(--border); border-radius: 10px; transition: var(--transition); }
.slot-card:has(input:checked) { border-color: var(--green); background: var(--green-xlight); }
.payment-method-card { padding: 14px; border: 2px solid var(--border); border-radius: 10px; transition: var(--transition); }
.payment-method-card:has(input:checked) { border-color: var(--green); background: var(--green-xlight); }

/* ============ ORDER TRACKING ============ */
.order-timeline { position: relative; padding-left: 26px; }
.order-timeline::before { content:''; position:absolute; left:9px; top:0; bottom:0; width:2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -26px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--border); border: 3px solid white; box-shadow: 0 0 0 2px var(--border); transition: var(--transition); }
.timeline-item.done .timeline-dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.timeline-item.active .timeline-dot { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); animation: pulse-green 1.5s infinite; }

/* ============ PROFILE ============ */
.profile-sidebar { background: white; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.profile-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,var(--green),var(--green-dark)); display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; font-weight: 800; }

/* ============ BLOG ============ */
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); height: 100%; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-img { width: 100%; height: 190px; object-fit: cover; }
.blog-body { padding: 18px; }
.blog-cat { font-size: 11px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============ WISHLIST / EMPTY ============ */
.empty-state { padding: 56px 20px; }
.wishlist-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 14px; display: flex; gap: 14px; align-items: center; transition: var(--transition); }
.wishlist-card:hover { box-shadow: var(--shadow); }
.variant-btn.active { background: var(--green); color: white; border-color: var(--green); }

/* ============ RESPONSIVE: TABLET/MOBILE PINCH ============ */
@media (max-width: 576px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item-actions { flex-direction: row; }
  .product-gallery .thumb-gallery { justify-content: center; }
}

/* ============ MOBILE SEARCH BAR ============ */
.mobile-search-bar {
  border-radius: 50px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.mobile-search-bar:focus-within {
  box-shadow: 0 4px 15px rgba(34,197,94,0.15);
  border-color: var(--green);
}
.mobile-search-bar input {
  font-size: 13.5px;
  font-weight: 500;
  height: 42px;
}
.mobile-search-bar input::placeholder {
  color: #9ca3af;
}
.mobile-search-bar .input-group-text,
.mobile-search-bar .form-control {
  border-color: #f3f4f6;
  background: #f9fafb;
}
.mobile-search-bar .btn {
  height: 42px;
  padding: 0 22px;
  border-color: var(--green) !important;
}