:root {
  --dark-green: #2f6b3b;
  --leaf-green: #4fa64f;
  --light-green: #eaf5ea;
  --cream: #f6f3ea;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--cream);
  color: #333;
}

/* NAVBAR */
.logo-img {
  height: 42px;
}

.brand-text {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--dark-green);
  letter-spacing: 1px;
}

.navbar {
  background: #fff;
}

.navbar .nav-link {
  color: var(--dark-green);
  font-weight: 500;
}

/* BUTTONS */
.btn-success {
  background: var(--dark-green);
  border: none;
  border-radius: 12px;
}

.btn-success:hover {
  background: var(--leaf-green);
}

/* HERO */
.hero {
  background: linear-gradient(rgba(47, 107, 59, 0.7), rgba(47, 107, 59, 0.7)),
    url("images/hero-bg.jpg") center/cover no-repeat;
  min-height: 0;
  padding: 28px 0 4px;
  color: #fff;
}

.shop-hero {
  background: #fdfdfb;
}

.hero-title {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.98;
  max-width: 640px;
  margin: 0.75rem auto 1.5rem;
}

.hero-img {
  max-width: 360px;
}

/* TITLES */
.section-title {
  color: var(--dark-green);
  font-family: Georgia, serif;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

/* CATEGORY */
.categories-section {
  margin-top: 1.25rem;
}

.category-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid #e0eadf;
  transform: translateY(0) scale(1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card img {
  width: 56px;
  margin-bottom: 8px;
}

.category-card h5 {
  color: var(--dark-green);
  font-weight: 600;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  border-color: var(--leaf-green);
}

/* SHOP SIDEBAR CATEGORIES (POP-OUT STYLE) */
.shop-sidebar {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e0eadf;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.shop-category {
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--dark-green);
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  margin-bottom: 4px;
}

.shop-category:last-child {
  margin-bottom: 0;
}

.shop-category.active,
.shop-category:hover {
  background: var(--light-green);
  color: var(--dark-green);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* PRODUCTS */
.product-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e0eadf;
  background: #fff;
  transform: translateY(0) scale(1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card img {
  height: 180px;
  object-fit: cover;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  border-color: var(--leaf-green);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.price {
  color: var(--dark-green);
  font-weight: bold;
}

.product-card img.product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fdfdfb;
  border-bottom: 1px solid #e0eadf;
  margin-bottom: 10px;
  padding: 10px;
}

/* APP */
.app-section {
  background: var(--light-green);
  color: var(--dark-green);
  padding: 60px 0;
}

/* FOOTER */
.footer {
  background: var(--light-green);
  color: var(--dark-green);
  padding: 40px 0;
  border-top: 1px solid #e0eadf;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* LAYOUT HELPERS */
main {
  min-height: 60vh;
}

/* BREADCRUMBS */
.breadcrumb-item a {
  color: var(--leaf-green);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--dark-green);
  font-weight: 600;
}

/* PRODUCT DETAIL PAGE */
.product-detail-img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e0eadf;
  padding: 20px;
}

.detail-price {
  font-size: 2rem;
  color: var(--dark-green);
  font-weight: 700;
}

.detail-orig-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: #999;
  margin-left: 10px;
}

.detail-description {
  line-height: 1.7;
  color: #555;
}

/* MOBILE */
@media (max-width: 576px) {

  .hero {
    min-height: 0;
    padding: 22px 0 2px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-img {
    max-width: 260px;
    margin-top: 20px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .category-card {
    padding: 14px;
  }

  .category-card img {
    width: 44px;
  }

  .product-card img {
    height: 140px;
  }

  .btn {
    padding: 10px;
    font-size: 0.95rem;
  }
}

/* TABLET & SMALL DESKTOP */
@media (max-width: 768px) {
  .shop-hero .row {
    text-align: center;
  }

  .shop-hero .col-md-5 {
    margin-top: 1rem;
  }

  .qty-controls {
    justify-content: center !important;
    gap: 0.5rem;
  }
}

/* CART OFFCANVAS & CHECKOUT */
.cart-summary {
  border-radius: 12px;
  border: 1px solid #e0eadf;
  padding: 10px 12px;
  background: #fafdf9;
}

.checkout-form h6 {
  color: var(--dark-green);
}

.cart-item-title {
  font-weight: 600;
  color: var(--dark-green);
  font-size: 0.95rem;
}

.cart-item-meta {
  font-size: 0.8rem;
}

.cart-item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0eadf;
  margin-right: 10px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  line-height: 1;
}

/* ── Quantity +/- button colours (applied site-wide) ─────── */
.btn-qty-minus {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-qty-minus:hover,
.btn-qty-minus:focus {
  background: #b02a37;
  color: #fff;
}
.btn-qty-minus.btn-lg {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1.25rem;
}

.btn-qty-plus {
  background: #198754;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-qty-plus:hover,
.btn-qty-plus:focus {
  background: #146c43;
  color: #fff;
}
.btn-qty-plus.btn-lg {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1.25rem;
}

/* Weight variant selector on product cards */
.weight-select {
  font-size: 0.8rem;
  padding: 3px 6px;
  border-color: #d0e8d0;
  color: var(--dark-green);
  border-radius: 8px;
  cursor: pointer;
}
.weight-select:focus {
  border-color: var(--leaf-green);
  box-shadow: 0 0 0 2px rgba(79,166,79,0.2);
}

/* STAR RATINGS */
.star-rating {
  color: #ff9900;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

/* COMPACT CARDS (Recently Viewed) */
.compact-card {
  transition: transform 0.2s ease;
}

.compact-card:hover {
  transform: scale(1.02);
}

.compact-card h6 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
}

.img-compact {
  height: 80px !important;
  object-fit: contain !important;
  padding: 5px !important;
}

/* MISC IMPROVEMENTS */
.x-small {
  font-size: 0.75rem;
}

.bg-success-subtle {
  background-color: #e8f5e9 !important;
}

.bg-warning-subtle {
  background-color: #fff8e1 !important;
}

.bg-info-subtle {
  background-color: #e3f2fd !important;
}

/* PRODUCT MARQUEE */
.marquee-container {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  /* Soft fade edges on left/right for better visual integration */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: inline-block;
  animation: scrollMarquee 20s linear infinite;
  padding-bottom: 10px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  border: 1px solid #e0eadf;
}

.marquee-item:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 14px 28px rgba(47, 107, 59, 0.25);
  border-color: var(--leaf-green);
  z-index: 10;
}

.marquee-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.marquee-placeholder {
  font-size: 0.95rem;
  color: var(--dark-green);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 10px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 576px) {
  .marquee-item {
    width: 105px;
    height: 105px;
    margin: 0 10px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .marquee-placeholder {
    font-size: 0.75rem;
  }
  .marquee-container {
    margin: 1rem auto 2rem;
  }
}

/* FESTIVAL BANNER */
.festival-banner-wrapper {
  margin: 0.5rem auto 1.5rem;
  padding: 0 15px;
  max-width: 800px;
}

.festival-banner {
  background: linear-gradient(135deg, #d8f3d8 0%, #c1e9c1 100%);
  border-radius: 24px;
  padding: 24px 20px 0;
  box-shadow: 0 8px 24px rgba(47, 107, 59, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid #b3dfb3;
}

/* Specific theme overrides for festivals */
.festival-banner.theme-eid {
  background: linear-gradient(135deg, #dff2cb 0%, #caedab 100%);
}
.festival-banner.theme-holi {
  background: linear-gradient(135deg, #fbe3f6 0%, #fde4e4 100%);
  border-color: #f7c9e8;
}
.festival-banner.theme-diwali {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border-color: #ffe082;
}

/* Specific theme overrides for daily banners */
.festival-banner.theme-monday {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border-color: #80cbc4;
}
.festival-banner.theme-monday .fest-voucher { background: #00897b; }

.festival-banner.theme-tuesday {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ffcc80;
}
.festival-banner.theme-tuesday .fest-voucher { background: #f57c00; }

.festival-banner.theme-wednesday {
  background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
  border-color: #c5e1a5;
}
.festival-banner.theme-wednesday .fest-voucher { background: #7cb342; }

.festival-banner.theme-thursday {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border-color: #ce93d8;
}
.festival-banner.theme-thursday .fest-voucher { background: #8e24aa; }

.festival-banner.theme-friday {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #90caf9;
}
.festival-banner.theme-friday .fest-voucher { background: #1e88e5; }

.festival-banner.theme-weekend {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  border-color: #f48fb1;
}
.festival-banner.theme-weekend .fest-voucher { background: #d81b60; }

.festival-header {
  margin-bottom: 20px;
}

.festival-main-title {
  color: var(--dark-green);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.festival-subtitle {
  color: var(--dark-green);
  font-size: 0.95rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: -2px;
}

.fest-deco {
  color: #c9933b;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.theme-diwali .fest-deco { color: #f57f17; }
.theme-holi .fest-deco { color: #e91e63; }

.fest-deco-left { right: auto; left: 10%; }
.fest-deco-right { left: auto; right: 10%; }

.festival-categories-section {
  padding: 0 10px;
}

.fest-cat-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 40px 10px 15px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.fest-cat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.fest-cat-title {
  color: var(--dark-green);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  display: block;
  font-family: "Segoe UI", sans-serif;
}

.fest-voucher {
  background: var(--leaf-green);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 16px 16px 0 0;
  font-size: 0.95rem;
  margin: 0 -20px 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 576px) {
  .festival-main-title { font-size: 1.6rem; }
  .fest-cat-box { padding: 30px 5px 10px; }
  .fest-cat-title { font-size: 0.75rem; }
  .fest-voucher { font-size: 0.8rem; padding: 10px; }
}

/* SUGGESTIONS BANNER (NORMAL DAYS) */
.suggestions-banner {
  background: var(--light-green);
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px dashed #c1e9c1;
}

.suggestions-title {
  color: var(--dark-green);
}
.suggestion-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.suggestion-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

/* MOBILE BOTTOM NAVIGATION */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0eadf;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 10px; /* Reduced bottom padding */
  z-index: 1040;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
  transition: color 0.2s ease, transform 0.1s ease;
  position: relative;
}

.mobile-bottom-nav .nav-item svg {
  margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item:active {
  transform: scale(0.95);
}

.mobile-bottom-nav .nav-item.active {
  color: var(--dark-green);
}

.mobile-bottom-nav .nav-item.active svg {
  fill: rgba(0, 100, 0, 0.1); /* Subtle fill for active */
}

@media (max-width: 991px) {
  body {
    padding-bottom: 75px; /* Prevent overlap by footer/content */
  }
}

/* Hide navigation completely on desktop */
@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Login Button Decoration */
.btn-login {
  background: linear-gradient(135deg, var(--leaf-green), var(--dark-green));
  color: white !important;
  border: none !important;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(47, 107, 59, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(47, 107, 59, 0.35);
  color: white !important;
}

/* Smaller product cards */
.product-card {
  padding: 12px !important;
}
.product-card img.product-img {
  height: 130px !important;
  padding: 5px;
  margin-bottom: 5px;
}
.product-card h5 {
  font-size: 1rem !important;
}

/* Fix cart scroll issues */
#cartOffcanvas .offcanvas-body {
  overflow-y: hidden !important;
  padding-bottom: 0 !important;
}
#cart-items {
  overflow-y: auto !important;
  min-height: 0 !important;
}
/* This only hides things if the 'app-mode' class is active */
.app-mode .desktop-header, 
.app-mode .main-footer, 
.app-mode .sidebar-ads {
    display: none !important;
}

/* Make your 'Place Order' button huge for mobile users */
.app-mode .order-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    position: fixed;
    bottom: 0;
}