/* ================================================================
   GreenMart - Fresh Grocery E-Commerce
   Main Stylesheet | Bootstrap 5 + Custom
================================================================ */

:root {
  --green-primary:   #2e7d32;
  --green-dark:      #1b5e20;
  --green-medium:    #388e3c;
  --green-light:     #66bb6a;
  --green-pale:      #e8f5e9;
  --green-bg:        #f1f8e9;
  --accent-orange:   #ff6f00;
  --accent-yellow:   #ffc107;
  --text-dark:       #1a1a2e;
  --text-medium:     #444;
  --text-light:      #777;
  --border-color:    #e0e0e0;
  --card-shadow:     0 2px 15px rgba(0,0,0,.07);
  --card-hover-shadow: 0 8px 30px rgba(46,125,50,.15);
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --transition:      all .3s ease;
  font-family: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #fff;
  padding-bottom: 70px; /* space for mobile bottom nav */
}

@media (min-width: 992px) { body { padding-bottom: 0; } }

a { color: var(--green-primary); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 3px; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--green-dark);
  color: #fff;
  font-size: .8rem;
  padding: 6px 0;
}
.topbar-link {
  color: #c8e6c9;
  text-decoration: none;
  font-size: .8rem;
  transition: var(--transition);
}
.topbar-link:hover { color: #fff; }

/* ── Navbar ──────────────────────────────────────────────────── */
.main-navbar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 0;
  z-index: 1040;
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 16px;
}

/* Brand */
.navbar-brand-link { text-decoration: none; flex-shrink: 0; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo-img { width: 250px; height: auto; max-height: 56px; object-fit: contain; }
.brand-icon { font-size: 2rem; color: var(--green-primary); filter: drop-shadow(0 2px 4px rgba(46,125,50,.3)); }
.brand-name { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.brand-highlight { color: var(--green-primary); }
.brand-tagline { font-size: .65rem; color: var(--text-light); font-weight: 400; letter-spacing: .5px; }
.footer-logo-img { width: 150px; height: auto; max-height: 52px; object-fit: contain; margin-right: 4px; }

/* Center */
.navbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Categories dropdown button */
.categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  background: #f5f7f5;
  border: 1px solid var(--border-color);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.categories-btn:hover,
.categories-btn.show { background: var(--green-pale); color: var(--green-primary); }
.categories-btn::after { margin-left: 4px; }

.categories-dropdown-menu {
  min-width: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: .875rem;
}
.categories-dropdown-menu .dropdown-item {
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-dark);
}
.categories-dropdown-menu .dropdown-item:hover { background: var(--green-pale); color: var(--green-primary); }

/* Search */
.search-form-wrap { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.search-form-wrap > div { display: flex; }
.search-main-input {
  flex: 1;
  height: 46px;
  border: 1px solid var(--border-color);
  border-right: 0;
  border-radius: 0;
  padding: 0 16px;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  width: 100%;
  color: var(--text-dark);
  transition: border-color .2s;
}
.search-main-input:focus { border-color: var(--green-primary); }
.search-main-input::placeholder { color: #aaa; }
.btn-search-main {
  height: 46px;
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 22px;
  font-size: .875rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-search-main:hover { background: var(--green-dark); }

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  z-index: 9999;
  max-height: 380px;
  overflow-y: auto;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-item:hover { background: var(--green-pale); }
.suggestion-img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.suggestion-img-placeholder { width: 40px; height: 40px; background: var(--green-pale); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--green-light); }
.suggestion-name { font-size: .9rem; font-weight: 500; }
.suggestion-cat  { font-size: .75rem; color: var(--text-light); }
.suggestion-price{ margin-left: auto; font-weight: 600; color: var(--green-primary); font-size: .9rem; }

/* Right nav pills */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-pill-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-pill-btn i { font-size: 1rem; }
.nav-pill-btn:hover { border-color: var(--green-primary); color: var(--green-primary); background: var(--green-pale); }
.nav-pill-cart {
  background: var(--green-primary);
  color: #fff !important;
  border-color: var(--green-primary) !important;
}
.nav-pill-cart:hover { background: var(--green-dark); border-color: var(--green-dark) !important; }
.nav-pill-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-orange);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  line-height: 1;
}

/* Mobile hamburger */
.mobile-hamburger {
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--green-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Keep cart-badge id working for JS updates */
#cartCount { /* handled by nav-pill-badge */ }

/* Category Nav */
.category-nav {
  border-top: 1px solid var(--border-color);
  background: #fff;
  padding: 0;
}
.category-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-list::-webkit-scrollbar { display: none; }
.category-nav-list li a {
  display: block;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-medium);
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.category-nav-list li a:hover,
.category-nav-list li a.active {
  color: var(--green-primary);
  border-bottom-color: var(--green-primary);
  background: var(--green-pale);
}
.offers-link { color: var(--accent-orange) !important; }

/* Mobile Offcanvas */
.mobile-menu .offcanvas-header { background: var(--green-pale); }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  color: var(--text-dark);
  font-size: .95rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.mobile-nav-list li a:hover { color: var(--green-primary); background: var(--green-pale); }
.mobile-nav-list li a i { width: 20px; color: var(--green-primary); }
.mobile-nav-list li.divider { border-top: 3px solid var(--green-pale); margin: 8px 0; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  z-index: 1050;
  box-shadow: 0 -4px 15px rgba(0,0,0,.08);
}
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--text-light);
  font-size: .65rem;
  font-weight: 500;
  gap: 3px;
  transition: var(--transition);
  position: relative;
}
.mobile-bottom-nav a i { font-size: 1.2rem; }
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--green-primary); }
.mobile-cart-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 18px);
  background: var(--accent-orange);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.page-breadcrumb {
  background: var(--green-pale);
  padding: 10px 0;
  border-bottom: 1px solid #dcedc8;
}
.page-breadcrumb .breadcrumb { margin: 0; font-size: .85rem; }
.page-breadcrumb .breadcrumb-item a { color: var(--green-primary); }
.page-breadcrumb .breadcrumb-item.active { color: var(--text-light); }

/* ── Section Styles ──────────────────────────────────────────── */
.section-padding { padding: 50px 0; }
.bg-light-green { background: var(--green-bg); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.section-badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-primary);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-dark);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--green-primary);
  border-radius: 2px;
}

/* ── Hero Section — Full Banner ──────────────────────────────── */
.hero-section { overflow: hidden; line-height: 1; }
.hero-swiper  { width: 100%; }

.hero-slide {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay for image banners; subtle tint for colour-only */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
}
.hero-slide-overlay.has-image {
  background: linear-gradient(100deg,
    rgba(0,0,0,.62) 0%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.08) 100%);
}
.hero-slide-overlay.no-image {
  background: linear-gradient(135deg,
    rgba(27,94,32,.55) 0%,
    rgba(46,125,50,.25) 100%);
}

/* Content block */
.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
  max-width: 600px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}

/* Title & subtitle — always white on full banner */
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.hero-features span {
  font-size: .85rem;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-features .fa-check-circle { color: #a5d6a7; font-size: .9rem; }

/* Buttons */
.btn-hero-primary {
  background: var(--green-primary);
  color: #fff;
  border: 2px solid var(--green-primary);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
}
.btn-hero-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(46,125,50,.4); }
.btn-hero-outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover { background: #fff; color: var(--green-primary); border-color: #fff; transform: translateY(-2px); }

/* Default fallback hero (no banners in DB) */
.hero-default {
  background: linear-gradient(135deg, #1b5e20 0%, #388e3c 60%, #66bb6a 100%);
}

/* Swiper arrows & dots */
.hero-next, .hero-prev {
  color: #fff !important;
  background: rgba(0,0,0,.35) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero-next:hover, .hero-prev:hover { background: rgba(0,0,0,.6) !important; }
.hero-next::after, .hero-prev::after { display: none; }
.hero-pagination { bottom: 18px !important; }
.hero-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.6) !important; }
.hero-pagination .swiper-pagination-bullet-active { background: #fff !important; width: 22px !important; border-radius: 4px !important; }

/* ── Feature Strip ───────────────────────────────────────────── */
.feature-strip { background: #fff; border-bottom: 1px solid var(--border-color); }
.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  height: 100%;
}
.feature-strip-item i {
  font-size: 1.6rem;
  color: var(--green-primary);
  min-width: 35px;
}
.feature-strip-item strong { font-size: .9rem; display: block; line-height: 1.2; }
.feature-strip-item small  { color: var(--text-light); font-size: .75rem; }

/* ── Category Cards ──────────────────────────────────────────── */
.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--cat-bg, var(--green-pale));
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-dark);
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--green-light);
  color: var(--text-dark);
}
.category-icon-wrap {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green-primary);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.category-info h6 { font-size: .9rem; font-weight: 600; margin: 0 0 2px; }
.category-info small { color: var(--text-light); font-size: .75rem; }
.category-arrow { margin-left: auto; color: var(--green-light); font-size: .85rem; transition: var(--transition); }
.category-card:hover .category-arrow { transform: translateX(4px); color: var(--green-primary); }

/* ── Product Cards ───────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--green-light);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge-discount  { background: #e53935; color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-organic   { background: var(--green-primary); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 4px; }
.badge-bestseller{ background: var(--accent-orange); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 4px; }
.badge-stock     { background: #ff7043; color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 4px; }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--text-light);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: var(--transition);
  opacity: 0;
}
.product-card:hover .wishlist-btn,
.wishlist-btn.active { opacity: 1; }
.wishlist-btn.active,
.wishlist-btn:hover  { color: #e53935; background: #ffeef0; }

.product-image-link { display: block; }
.product-image-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--green-pale), #dcedc8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-size: 2.5rem;
}

.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .72rem; color: var(--green-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: .9rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.product-name a { color: var(--text-dark); }
.product-name a:hover { color: var(--green-primary); }
.product-desc { font-size: .78rem; color: var(--text-light); margin: 0 0 6px; flex: 1; }
.product-rating { font-size: .75rem; }
.product-price-row { margin-top: auto; }
.price-current  { font-size: 1.05rem; font-weight: 700; color: var(--green-primary); }
.price-original { font-size: .82rem; color: var(--text-light); text-decoration: line-through; margin-left: 4px; }

.btn-add-cart {
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add-cart:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-out-of-stock {
  background: #f5f5f5;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .82rem;
  cursor: not-allowed;
}

/* Products Swiper */
.products-swiper { padding: 10px 5px 20px !important; }
.products-swiper .swiper-slide { height: auto; }
.products-next, .products-prev,
.products-next-2, .products-prev-2 {
  color: var(--green-primary) !important;
  background: #fff !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  top: 40% !important;
}
.products-next::after, .products-prev::after,
.products-next-2::after, .products-prev-2::after { display: none; }

/* ── Offer Banner ─────────────────────────────────────────────── */
.offer-banner-section { padding: 30px 0; }
.offer-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
}
.offer-card-content { position: relative; z-index: 2; }
.offer-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.offer-card p  { font-size: .85rem; opacity: .9; margin-bottom: 0; }
.offer-tag {
  display: inline-block;
  background: rgba(255,255,255,.25);
  font-size: .7rem;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.offer-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 7rem;
  opacity: .12;
  z-index: 1;
}

/* ── Why Section ──────────────────────────────────────────────── */
.why-card {
  padding: 30px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--card-hover-shadow); }
.why-icon {
  width: 70px;
  height: 70px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--green-primary);
  margin: 0 auto 15px;
}
.why-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p  { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--card-shadow);
  height: 100%;
}
.testimonial-text {
  font-size: .9rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px;
  height: 46px;
  background: var(--green-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author small  { color: var(--text-light); font-size: .78rem; }
.testimonial-pagination .swiper-pagination-bullet-active { background: var(--green-primary) !important; }
.testimonials-swiper { padding-bottom: 40px !important; }

/* ── Newsletter ───────────────────────────────────────────────── */
.newsletter-section { padding: 40px 0; background: var(--green-dark); }
.newsletter-box {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  border: 1px solid rgba(255,255,255,.15);
}
.newsletter-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.newsletter-icon { font-size: 2.5rem; color: #a5d6a7; flex-shrink: 0; }
.newsletter-text h4 { font-size: 1.1rem; color: #fff; }
.newsletter-text p  { color: #a5d6a7; }
.newsletter-form .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; border: none; padding: 12px 16px; }
.newsletter-form .form-control:focus { box-shadow: none; }

/* ── Footer ───────────────────────────────────────────────────── */
.main-footer { background: #1a1a2e; color: #ccc; }
.footer-brand { font-size: 1.3rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-brand i { color: var(--green-light); }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.footer-contact p { font-size: .83rem; margin-bottom: 5px; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact i { color: var(--green-light); margin-top: 3px; }

.footer-heading { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li a { font-size: .83rem; color: #aaa; display: block; padding: 3px 0; transition: var(--transition); }
.footer-links li a:hover { color: var(--green-light); padding-left: 5px; }

.social-links { display: flex; gap: 8px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
  color: #fff;
}
.social-btn.facebook  { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.twitter   { background: #1da1f2; }
.social-btn.youtube   { background: #ff0000; }
.social-btn.whatsapp  { background: #25d366; }
.social-btn:hover     { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,.3); }

.footer-features { display: flex; flex-direction: column; gap: 12px; }
.footer-feature-item { display: flex; align-items: center; gap: 12px; }
.footer-feature-item i { font-size: 1.2rem; width: 25px; }
.footer-feature-item strong { display: block; font-size: .85rem; color: #fff; }
.footer-feature-item small  { color: #aaa; font-size: .78rem; }

.whatsapp-footer-btn { background: #25d366; border-color: #25d366; }
.whatsapp-footer-btn:hover { background: #128c7e; border-color: #128c7e; color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,.3);
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom p { font-size: .82rem; color: #aaa; }
.payment-icons { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.payment-icons span {
  background: rgba(255,255,255,.1);
  color: #ccc;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── WhatsApp Float ───────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  z-index: 9999;
  transition: var(--transition);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); background: #128c7e; }
@media (min-width: 992px) { .whatsapp-float { bottom: 30px; } }

/* ── Toast ────────────────────────────────────────────────────── */
.toast { font-size: .9rem; }

/* ── Variant Modal ───────────────────────────────────────────── */
.modal-variant { max-width: 580px; width: calc(100% - 20px); }

.variant-modal-product { display: flex; flex-direction: column; }

/* ── Top section: image + info ── */
.vmp-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.vmp-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,.10);
}
.vmp-img-placeholder {
  width: 180px;
  height: 180px;
  background: var(--green-pale);
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-size: 2.8rem;
}

.vmp-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}
.vmp-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}
.vmp-desc {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0 0 14px;
  line-height: 1.6;
}
.vmp-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vmp-price-now   { font-size: 1.4rem; font-weight: 800; color: var(--green-primary); }
.vmp-price-old   { font-size: .88rem; color: #bbb; text-decoration: line-through; }
.vmp-price-badge { background: #e53935; color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }

/* ── Sections: variants + qty ── */
.vmp-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}
.vmp-section:last-of-type { border-bottom: none; }
.vmp-label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* Quantity inline inside info col */
.vmp-qty-inline { display: flex; align-items: center; gap: 12px; }
.vmp-qty-label  { font-size: .85rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; }

/* ── Selected variant price info ── */
.vmp-selected-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--green-pale);
  border-radius: 8px;
  border-left: 3px solid var(--green-primary);
  font-size: .85rem;
}
#vmpSelectedPrice { font-weight: 700; color: var(--green-primary); font-size: 1rem; }
#vmpSelectedOld   { color: #aaa; text-decoration: line-through; font-size: .82rem; }
#vmpSelectedBadge { background: #e53935; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
#vmpSelectedStock { color: var(--text-light); font-size: .8rem; margin-left: 4px; }

/* Success overlay shown after adding to cart */
.vmp-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 12px 12px;
  z-index: 10;
  animation: fadeInOverlay .3s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
.vmp-success-box { text-align: center; }
.vmp-success-icon {
  width: 70px;
  height: 70px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: popIn .4s cubic-bezier(.175,.885,.32,1.275);
}
.vmp-success-icon i { font-size: 2rem; color: var(--green-primary); }
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.vmp-success-text { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0; }

/* Add to Cart button — added state */
#modalAddToCartBtn.btn-added {
  background: #1b5e20 !important;
  border-color: #1b5e20 !important;
}

/* Shake animation when no variant selected */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.shake-error { animation: shake .5s ease; border: 1px solid #e53935 !important; border-radius: 8px; }

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.variant-tile {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: #fff;
}
.variant-tile:hover:not(.disabled) { border-color: var(--green-primary); background: var(--green-pale); }
.variant-tile.selected { border-color: var(--green-primary); background: var(--green-pale); box-shadow: 0 0 0 3px rgba(46,125,50,.15); }
.variant-tile.disabled { opacity: .5; cursor: not-allowed; }
.variant-tile-name  { display: block; font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.variant-tile-price { display: block; font-size: .8rem; color: var(--green-primary); font-weight: 700; margin-top: 3px; }
.variant-tile-discount { display: block; font-size: .65rem; background: #e53935; color: #fff; border-radius: 3px; margin-top: 3px; padding: 1px 4px; }
.variant-tile-sold-out {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--text-light);
  border-radius: 6px;
  font-weight: 600;
}
.variant-selected-info { background: var(--green-pale); border-radius: var(--radius-sm); padding: 8px 12px; }

/* ── Quantity Control ─────────────────────────────────────────── */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  background: #f5f5f5;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--green-pale); color: var(--green-primary); }
.qty-input {
  width: 46px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar-sticky { position: sticky; top: 90px; }
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.sidebar-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
  position: relative;
}
.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--green-primary);
}

.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text-medium);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-cat-list li a:hover,
.sidebar-cat-list li a.active { background: var(--green-pale); color: var(--green-primary); font-weight: 600; }
.sidebar-cat-list li a i { color: var(--green-light); }

.quick-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  background: #f5f5f5;
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
}
.quick-filter-btn:hover,
.quick-filter-btn.active { background: var(--green-pale); color: var(--green-primary); border-color: var(--green-primary); }

/* ── Products Toolbar ─────────────────────────────────────────── */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}
.toolbar-title { font-size: 1rem; font-weight: 700; margin: 0; }
.toolbar-count { font-size: .8rem; color: var(--text-light); }

/* ── Cart Page ────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.cart-item-image { width: 80px; height: 80px; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.cart-img-placeholder { width: 80px; height: 80px; background: var(--green-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--green-light); font-size: 1.5rem; }
.cart-item-name a { font-size: .9rem; font-weight: 600; color: var(--text-dark); }
.cart-item-name a:hover { color: var(--green-primary); }
.cart-item-variant { font-size: .78rem; color: var(--text-light); background: #f5f5f5; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-top: 3px; }
.cart-item-price { font-size: .82rem; color: var(--text-light); }
.cart-qty-btn { background: #f5f5f5; border: none; width: 28px; height: 28px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: var(--transition); }
.cart-qty-btn:hover { background: var(--green-pale); color: var(--green-primary); }
.qty-display { min-width: 30px; text-align: center; font-weight: 700; }
.cart-item-total { min-width: 80px; text-align: right; font-weight: 700; color: var(--green-primary); }
.cart-item-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: .9rem; padding: 5px; transition: var(--transition); border-radius: 4px; }
.cart-item-remove:hover { color: #e53935; background: #ffeef0; }

/* Cart Summary */
.cart-summary-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.price-breakdown { border-top: 1px solid var(--border-color); padding-top: 15px; }
.price-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.price-row.total-row { font-size: 1.05rem; font-weight: 700; border-top: 2px solid var(--border-color); margin-top: 8px; padding-top: 12px; color: var(--green-primary); }
.shipping-alert { font-size: .78rem; background: #fff3e0; color: #e65100; padding: 6px 10px; border-radius: 6px; margin: 8px 0; }

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout-steps { background: var(--green-pale); padding: 18px 0; border-bottom: 1px solid #dcedc8; }
.steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--text-light); }
.step.active  { color: var(--green-primary); }
.step.completed { color: var(--green-primary); }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ddd;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.step.active .step-num    { background: var(--green-primary); color: #fff; }
.step.completed .step-num { background: var(--green-primary); color: #fff; }
.step-line { height: 2px; width: 60px; background: #ddd; margin: -18px 0 0; }
.step-line.completed { background: var(--green-primary); }

.checkout-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.checkout-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }

.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method-option.active,
.payment-method-option:hover { border-color: var(--green-primary); background: var(--green-pale); }
.payment-method-option input { display: none; }
.payment-method-content { display: flex; align-items: center; gap: 14px; pointer-events: none; }
.payment-method-content i { font-size: 1.4rem; color: var(--green-primary); width: 25px; }
.payment-method-content strong { display: block; font-size: .9rem; }
.payment-method-content small  { color: var(--text-light); font-size: .78rem; }

.checkout-items-list { max-height: 250px; overflow-y: auto; }
.checkout-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--border-color); gap: 10px; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-name    { font-size: .85rem; font-weight: 600; }
.checkout-item-variant { font-size: .75rem; color: var(--text-light); }
.checkout-item-qty     { font-size: .85rem; color: var(--text-light); white-space: nowrap; }
.checkout-item-price   { font-size: .85rem; font-weight: 700; color: var(--green-primary); white-space: nowrap; }

/* ── Order Success ────────────────────────────────────────────── */
.order-success-wrap { max-width: 680px; margin: 0 auto; }
.success-circle {
  width: 90px;
  height: 90px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto;
  animation: popIn .5s ease;
  box-shadow: 0 10px 30px rgba(46,125,50,.35);
}
@keyframes popIn { 0%{transform:scale(0);opacity:0} 70%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
.order-success-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--card-shadow);
  text-align: left;
}
.order-info-item { text-align: center; }
.order-info-item i { font-size: 1.5rem; color: var(--green-primary); display: block; margin-bottom: 5px; }
.order-info-item small { font-size: .75rem; color: var(--text-light); display: block; }
.order-info-item strong { font-size: .9rem; }
.order-items-table { border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.order-item-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border-color); font-size: .85rem; gap: 10px; }
.order-item-row:last-child { border-bottom: none; }
.order-item-row.total-row { background: var(--green-pale); font-weight: 700; }

/* ── Auth Pages ───────────────────────────────────────────────── */
.auth-section { background: var(--green-bg); min-height: 70vh; display: flex; align-items: center; }
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
}
.auth-header h3 { color: var(--text-dark); }
.auth-logo i { color: var(--green-primary); }
.auth-divider { text-align: center; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-color); }
.auth-divider span { background: #fff; padding: 0 12px; color: var(--text-light); font-size: .85rem; position: relative; }

/* ── Product Detail ───────────────────────────────────────────── */
.gallery-main-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--green-bg);
  position: relative;
  aspect-ratio: 1/1;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.gallery-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e53935;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.gallery-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 1/1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--green-primary); }
.gallery-thumb-swiper { padding: 5px !important; }

.product-detail-title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 8px; }
.cat-badge { background: var(--green-pale); color: var(--green-primary); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid #c8e6c9; }
.price-detail-current { font-size: 1.6rem; font-weight: 800; color: var(--green-primary); }
.price-detail-original { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }
.price-detail-save { font-size: .85rem; background: #e8f5e9; color: var(--green-primary); padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.price-detail-note { font-size: .9rem; color: var(--text-medium); }
.product-detail-short-desc { font-size: .9rem; color: var(--text-medium); line-height: 1.7; }

.product-variants-section label { font-size: .9rem; color: var(--text-medium); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  min-width: 80px;
}
.variant-option:hover:not(.out-of-stock) { border-color: var(--green-primary); background: var(--green-pale); }
.variant-option.selected { border-color: var(--green-primary); background: var(--green-pale); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.variant-option.out-of-stock { opacity: .5; cursor: not-allowed; }
.variant-name  { display: block; font-weight: 600; font-size: .85rem; }
.variant-price { display: block; color: var(--green-primary); font-size: .8rem; font-weight: 700; }
.variant-sold-out { position: absolute; inset: 0; background: rgba(255,255,255,.7); font-size: .65rem; color: var(--text-light); display: flex; align-items: center; justify-content: center; border-radius: 5px; font-weight: 600; }

.product-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quantity-wrap { display: flex; align-items: center; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.btn-add-cart-detail {
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.btn-add-cart-detail:hover { background: var(--green-dark); color: #fff; }
.btn-wishlist-detail {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #fff;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.btn-wishlist-detail:hover,
.btn-wishlist-detail.active { border-color: #e53935; color: #e53935; background: #ffeef0; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; border-radius: var(--radius-sm); padding: 10px 20px; font-weight: 600; }
.btn-whatsapp:hover { background: #128c7e; border-color: #128c7e; color: #fff; }

.product-meta-info { border-top: 1px solid var(--border-color); padding-top: 15px; }
.meta-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: .85rem; }
.meta-label { min-width: 100px; color: var(--text-light); font-weight: 500; }
.product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.product-tag { background: var(--green-pale); color: var(--green-primary); padding: 2px 10px; border-radius: 4px; font-size: .75rem; }

.product-delivery-info { border: 1px dashed var(--green-light); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.delivery-feature { display: flex; align-items: center; gap: 10px; font-size: .83rem; color: var(--text-medium); }

/* Product Tabs */
.product-tabs { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); }
.product-nav-tabs .nav-link {
  color: var(--text-medium);
  font-weight: 600;
  font-size: .88rem;
  border: none;
  padding: 10px 20px;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.product-nav-tabs .nav-link:hover { color: var(--green-primary); }
.product-nav-tabs .nav-link.active { color: var(--green-primary); border-bottom-color: var(--green-primary); background: none; }
.product-tab-content { padding-top: 20px; }
.product-full-desc { font-size: .9rem; line-height: 1.8; color: var(--text-medium); }

/* Reviews */
.rating-big { font-size: 4rem; font-weight: 800; color: var(--green-primary); line-height: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .83rem; }
.rating-bar-row .progress { height: 8px; border-radius: 4px; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; background: var(--green-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.review-text { font-size: .88rem; color: var(--text-medium); line-height: 1.7; }

.star-rating-input i { font-size: 1.4rem; cursor: pointer; color: #ddd; transition: var(--transition); }
.star-rating-input i.text-warning { color: #ffc107 !important; }

/* Variants Table */
.variants-table th  { font-size: .82rem; }
.variants-table td  { font-size: .85rem; vertical-align: middle; }

/* ── My Account ───────────────────────────────────────────────── */
.account-sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.avatar-circle {
  width: 70px;
  height: 70px;
  background: var(--green-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(46,125,50,.3);
}
.account-nav { list-style: none; padding: 0; margin: 0; }
.account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text-medium);
  transition: var(--transition);
  margin-bottom: 3px;
  font-weight: 500;
}
.account-nav li a:hover,
.account-nav li a.active { background: var(--green-pale); color: var(--green-primary); }
.account-nav li a i { width: 20px; color: var(--green-primary); }

.account-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.account-stat-card i { font-size: 2rem; }
.account-stat-card h4 { color: var(--green-primary); }

.order-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.status-pending    { background: #fff3e0; color: #e65100; }
.status-confirmed  { background: #e3f2fd; color: #1565c0; }
.status-processing { background: #f3e5f5; color: #7b1fa2; }
.status-shipped    { background: #e8eaf6; color: #283593; }
.status-delivered  { background: #e8f5e9; color: var(--green-dark); }
.status-cancelled  { background: #fce4ec; color: #c62828; }

/* Order Timeline */
.order-timeline-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.order-status-timeline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-light); min-width: 70px; }
.timeline-step.done .timeline-icon,
.timeline-step.current .timeline-icon { background: var(--green-primary); color: #fff; }
.timeline-step.current .timeline-icon { box-shadow: 0 0 0 4px rgba(46,125,50,.2); }
.timeline-icon { width: 36px; height: 36px; background: #f0f0f0; color: #aaa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.timeline-line { height: 2px; flex: 1; min-width: 30px; background: #e0e0e0; margin-bottom: 22px; }
.timeline-line.done { background: var(--green-primary); }

.address-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--card-shadow);
  border: 1.5px solid var(--border-color);
  position: relative;
}
.address-card.default { border-color: var(--green-primary); background: var(--green-pale); }
.default-badge { position: absolute; top: 10px; right: 10px; background: var(--green-primary); color: #fff; font-size: .7rem; padding: 2px 10px; border-radius: 4px; }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination .page-link { color: var(--green-primary); border-color: var(--border-color); }
.pagination .page-item.active .page-link { background: var(--green-primary); border-color: var(--green-primary); color: #fff; }
.pagination .page-link:hover { background: var(--green-pale); color: var(--green-dark); }

/* ── Empty States ─────────────────────────────────────────────── */
.empty-products { padding: 40px 20px; }
.empty-cart { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-padding { padding: 30px 0; }
  /* Mobile navbar: hamburger left | logo center | cart right */
  .navbar-inner {
    position: relative;
    justify-content: space-between;
  }
  .navbar-brand-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
  }
  .brand-logo-img { width: 165px; max-height: 42px; }
  .hero-slide {
    min-height: 420px;
    background-position: 65% center;
  }
  .hero-slide-overlay.has-image {
    background: linear-gradient(100deg,
      rgba(0,0,0,.70) 0%,
      rgba(0,0,0,.45) 55%,
      rgba(0,0,0,.15) 100%);
  }
  .hero-slide-content { padding: 36px 0; max-width: 100%; }
  .hero-badge { font-size: .72rem; padding: 4px 12px; margin-bottom: 12px; }
  .hero-title { font-size: 1.65rem; margin-bottom: 10px; }
  .hero-subtitle { font-size: .88rem; margin-bottom: 16px; }
  .hero-features { gap: 10px !important; margin-bottom: 18px !important; }
  .hero-features span { font-size: .78rem; }
  .hero-buttons { display: flex; flex-direction: column; gap: 10px; }
  .hero-buttons .btn-hero-primary,
  .hero-buttons .btn-hero-outline { width: 100%; max-width: 260px; text-align: center; padding: 11px 20px; font-size: .9rem; }
  .hero-next, .hero-prev { display: none !important; }
  .hero-pagination { bottom: 12px !important; }
  .section-title { font-size: 1.2rem; }
  .auth-card { padding: 25px 18px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-total { min-width: auto; }
  .steps-bar { gap: 2px; }
  .step-line { width: 20px; }
  .product-detail-title { font-size: 1.2rem; }
  .checkout-card { padding: 16px; }
  .newsletter-box { padding: 20px 16px; }
}
@media (max-width: 576px) {
  .category-card { padding: 12px; }
  .category-icon-wrap { width: 44px; height: 44px; font-size: 1.2rem; }
  .offer-card { min-height: 130px; padding: 18px; }
}

@media (max-width: 400px) {
  .hero-slide { min-height: 380px; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: .82rem; }
  .hero-features { display: none !important; }
  .hero-buttons .btn-hero-primary,
  .hero-buttons .btn-hero-outline { max-width: 100%; }
}
