/* ============================================================
   NutriDry - Main Stylesheet
   ============================================================ */

:root {
  --primary:       #1b5e20;
  --primary-dark:  #0a3d0a;
  --primary-mid:   #2e7d32;
  --primary-light: #e8f5e9;
  --accent:        #f5a623;
  --accent-dark:   #d4891a;
  --accent-light:  #fff8e1;
  --text:          #2c2c2c;
  --text-light:    #666;
  --text-muted:    #999;
  --border:        #e0e0e0;
  --bg:            #f9f7f4;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.16);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all .25s ease;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text); }
.section-title { font-size: 2rem; color: var(--primary); position: relative; display: inline-block; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0;
  border-radius: 2px;
}
.section-subtitle { color: var(--text-light); font-size: 1rem; margin-top: .5rem; }

/* ── Promo Bar ────────────────────────────────────────────── */
.promo-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  padding: 7px 0;
  text-align: center;
  letter-spacing: .3px;
}
.promo-bar span { margin: 0 18px; }
.promo-bar i { color: var(--accent); margin-right: 5px; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 44px; }
.logo-text { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.logo-text span { color: var(--accent); }
.logo-sub { font-size: .7rem; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; margin-top: -4px; display: block; }

.search-form { position: relative; flex: 1; }
.search-form .form-control {
  border: 2px solid var(--border);
  border-radius: 50px 0 0 50px;
  padding: 10px 18px;
  font-size: .9rem;
  transition: var(--transition);
}
.search-form .form-control:focus { border-color: var(--primary); box-shadow: none; }
.search-form .btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition);
}
.search-form .btn-search:hover { background: var(--primary-dark); }

.header-icons { display: flex; align-items: center; gap: 18px; }
.header-icon { text-align: center; cursor: pointer; color: var(--text); font-size: .78rem; }
.header-icon i { font-size: 1.3rem; display: block; color: var(--primary); }
.header-icon:hover { color: var(--primary); }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Navigation ───────────────────────────────────────────── */
.main-nav {
  background: var(--primary);
  padding: 0;
}
.main-nav .nav-link {
  color: rgba(255,255,255,.9) !important;
  padding: 14px 18px !important;
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: .3px;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--accent) !important; background: rgba(255,255,255,.08); }
.main-nav .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  margin-top: 0;
}
.main-nav .dropdown-item { font-size: .88rem; padding: 8px 18px; }
.main-nav .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

.btn-category {
  background: var(--accent);
  color: #fff !important;
  border-radius: 0;
  padding: 14px 20px !important;
  font-weight: 700;
  letter-spacing: .3px;
}
.btn-category:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* ── Hero Banner ──────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #f0f9f0 0%, #fff8e1 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: .15;
  border-radius: 0 0 0 80px;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 3.2rem;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title span { color: var(--accent); }
.hero-desc { color: var(--text-light); font-size: 1.05rem; margin-bottom: 24px; max-width: 480px; }
.hero-features { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-feature { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text); }
.hero-feature i { color: var(--primary); font-size: 1rem; }
.hero-img { position: relative; text-align: center; }
.hero-img img { max-height: 420px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.15)); }

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(27,94,32,.3);
}
.btn-hero-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
  margin-left: 12px;
}
.btn-hero-outline:hover { background: var(--primary); color: #fff; }

/* ── Trust Badges ─────────────────────────────────────────── */
.trust-section {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}
.trust-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon i { color: var(--primary); font-size: 1.1rem; }
.trust-text h6 { font-size: .88rem; font-weight: 700; margin: 0; color: var(--text); }
.trust-text p { font-size: .78rem; color: var(--text-light); margin: 0; }

/* ── Category Section ────────────────────────────────────── */
.section-pad { padding: 60px 0; }
.category-card {
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-5px); }
.cat-img-wrap {
  width: 200px; height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  transition: var(--transition);
  background: #fff;
}
.category-card:hover .cat-img-wrap { border-color: var(--primary); }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-desc  { font-size: .75rem; color: var(--text-light); }
.btn-shop-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  padding: 5px 16px;
  border-radius: 50px;
  margin-top: 8px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-shop-cat:hover { background: var(--accent); color: #fff; }

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.product-badge {
  position: absolute;
  top: 8px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 50px;
  z-index: 1;
  text-transform: uppercase;
}
.badge-new   { background: var(--primary); }
.badge-sale  { background: #e53935; }
.badge-best  { background: #f5a623; }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 70%;
  background: #f5f5f5;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  /* gap: 5px; */
  padding: 8px;
  transition: var(--transition);
}
.product-card:hover .product-actions { bottom: 0; }
.btn-wishlist, .btn-quick-view {
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text);
  transition: var(--transition);
}
.btn-wishlist:hover { background: #fce4ec; border-color: #e91e63; color: #e91e63; }
.btn-quick-view:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.product-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-category-tag { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 5px; font-size: .8rem; margin-bottom: 8px; }
.product-rating .stars { color: #f5a623; font-size: .8rem; }
.product-rating .count { color: var(--text-muted); font-size: .75rem; }
.product-weight { font-size: .78rem; color: var(--text-light); margin-bottom: 10px; }
.product-price { margin-top: auto; }
.price-current { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.price-discount { font-size: .78rem; color: #e53935; font-weight: 700; margin-left: 5px; }

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  letter-spacing: .3px;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-add-cart.added { background: var(--accent); }

/* ── Promo Banners ────────────────────────────────────────── */
.promo-banner-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 32px;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.promo-green { background: linear-gradient(135deg, #1b5e20 60%, #2e7d32 100%); color: #fff; }
.promo-orange { background: linear-gradient(135deg, #e65100 60%, #f57c00 100%); color: #fff; }
.promo-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.promo-subtitle { font-size: .88rem; opacity: .85; margin-bottom: 16px; }
.btn-promo {
  background: #fff;
  color: var(--primary);
  border-radius: 50px;
  padding: 9px 24px;
  font-size: .85rem;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
}
.promo-orange .btn-promo { color: #e65100; }
.btn-promo:hover { background: var(--accent); color: #fff; }
.promo-img {
  position: absolute;
  right: 20px; bottom: 0;
  height: 90%;
  opacity: .25;
}

/* ── Why NutriDry ─────────────────────────────────────────── */
.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}
.fi-green  { background: #e8f5e9; color: #2e7d32; }
.fi-orange { background: #fff3e0; color: #f57c00; }
.fi-blue   { background: #e3f2fd; color: #1976d2; }
.fi-red    { background: #fce4ec; color: #e91e63; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: .85rem; color: var(--text-light); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: #f5a623; margin-bottom: 10px; }
.testimonial-text { font-size: .9rem; color: var(--text-light); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .88rem; }
.testimonial-loc  { font-size: .78rem; color: var(--text-muted); }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 60px 0;
  color: #fff;
}
.newsletter-title { font-size: 2rem; color: #fff; margin-bottom: 8px; }
.newsletter-desc  { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 0; }
.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 50px 0 0 50px;
  padding: 13px 20px;
  font-size: .9rem;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 13px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #0a1f0a;
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-logo-text { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-logo-text span { color: var(--accent); }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.55); margin: 12px 0 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary-mid); color: #fff; }
.footer-heading { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .85rem; color: rgba(255,255,255,.6); align-items: flex-start; }
.footer-contact-item i { color: var(--accent); margin-top: 3px; min-width: 14px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.payment-icon {
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  margin-top: 40px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary-nd {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}
.btn-primary-nd:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-nd {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 8px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-nd:hover { background: var(--primary); color: #fff; }
.btn-accent-nd {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-accent-nd:hover { background: var(--accent-dark); color: #fff; }

/* ── Breadcrumb / Page Header ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg,rgba(27,27,27,.40) 0%,rgba(0,0,0,.20) 100%),
              url('../img/hero-all.png') center center / cover no-repeat;
  padding: 48px 0;
  color: #fff;
  position: relative;
  height:300px;
}
.page-header h1 { color: #fff; font-size: 2rem; margin-bottom: 6px; font-weight: 800; text-shadow:0 2px 8px rgba(0,0,0,.3); }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.breadcrumb-item a { color: rgba(255,255,255,.8); }

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider-swiper { width:100%; }
.hero-slide { position:relative; overflow:hidden; min-height:500px; display:flex; align-items:center; }
.hero-slide-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-slide-overlay { display:none; }
.hero-slide-content { position:relative; z-index:2; padding:60px 0; }
.hero-slide-content > div {
  /* background: rgba(0,0,0,.45); */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  padding: 36px 40px;
  /* box-shadow: 0 8px 40px rgba(0,0,0,.35); */
}
.hero-slide-content .hero-badge { text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-slide-content .hero-title { color:#fff !important; text-shadow: 0 3px 12px rgba(0,0,0,.6); }
.hero-slide-content .hero-title span { color: #a5d6a7 !important; }
.hero-slide-content .hero-desc { color: rgba(255,255,255,.9) !important; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-slide-content .hero-feature { color: rgba(255,255,255,.85) !important; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hero-slide-content .hero-feature i { color: #a5d6a7 !important; }
.hero-slider-swiper .swiper-pagination-bullet { background:var(--primary); opacity:.5; width:10px; height:10px; }
.hero-slider-swiper .swiper-pagination-bullet-active { opacity:1; width:28px; border-radius:5px; }
.hero-slider-swiper .swiper-button-next,
.hero-slider-swiper .swiper-button-prev { color:var(--primary); background:rgba(255,255,255,.8); width:42px; height:42px; border-radius:50%; }
.hero-slider-swiper .swiper-button-next::after,
.hero-slider-swiper .swiper-button-prev::after { font-size:16px; font-weight:900; }

/* ── Hero Slide Content Animations ───────────────────────── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Default state: hide content in non-active slides */
.swiper-slide .hero-badge,
.swiper-slide .hero-title,
.swiper-slide .hero-desc,
.swiper-slide .hero-features,
.swiper-slide .btn-hero-primary,
.swiper-slide .btn-hero-outline { opacity: 0; }

/* Animate each element when slide becomes active */
.swiper-slide-active .hero-badge {
  animation: heroSlideLeft .55s cubic-bezier(.22,.68,0,1.2) .15s both;
}
.swiper-slide-active .hero-title {
  animation: heroSlideUp .6s cubic-bezier(.22,.68,0,1.1) .3s both;
}
.swiper-slide-active .hero-desc {
  animation: heroSlideUp .6s ease .5s both;
}
.swiper-slide-active .hero-features {
  animation: heroSlideUp .55s ease .65s both;
}
.swiper-slide-active .btn-hero-primary {
  animation: heroScaleIn .5s cubic-bezier(.22,.68,0,1.3) .8s both;
}
.swiper-slide-active .btn-hero-outline {
  animation: heroScaleIn .5s cubic-bezier(.22,.68,0,1.3) .92s both;
}
.breadcrumb-item.active { color: var(--accent); }

/* ── Shop Page ────────────────────────────────────────────── */
.filter-sidebar { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.filter-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .88rem; cursor: pointer; }
.filter-item input[type=checkbox] { accent-color: var(--primary); cursor: pointer; width: 15px; height: 15px; }

.sort-bar { background: var(--white); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: .88rem; }
.sort-select { border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }

/* ── Product Detail Page ─────────────────────────────────── */
.product-detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.product-detail-img img { width: 100%; }
.product-thumb-list { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-name { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.product-detail-price .price-current { font-size: 1.8rem; }
.product-info-table td { padding: 8px 12px; font-size: .88rem; border-bottom: 1px solid var(--border); }
.product-info-table td:first-child { font-weight: 600; color: var(--text-light); min-width: 120px; }

.qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.qty-btn {
  background: var(--bg);
  border: none;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { border: none; width: 50px; text-align: center; font-size: .95rem; font-weight: 700; padding: 0 4px; outline: none; }

/* ── Cart Page ────────────────────────────────────────────── */
.cart-table th { background: var(--primary-light); font-weight: 700; font-size: .85rem; padding: 12px 16px; }
.cart-table td { vertical-align: middle; padding: 14px 16px; font-size: .9rem; }
.cart-product-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.cart-product-name { font-weight: 700; }
.cart-summary-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.summary-row.total { font-size: 1.05rem; font-weight: 800; border: none; color: var(--primary); }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-section { background: var(--bg); }
.checkout-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.checkout-step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); color: var(--primary); display: flex; align-items: center; gap: 10px; }
.checkout-step-title .step-num { background: var(--primary); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; }

.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.payment-option-label { font-weight: 700; font-size: .92rem; }
.payment-option-sub { font-size: .8rem; color: var(--text-light); }

.otp-section { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.otp-inputs { display: flex; gap: 10px; margin: 14px 0; }
.otp-digit { width: 48px; height: 52px; border: 2px solid var(--border); border-radius: 8px; text-align: center; font-size: 1.3rem; font-weight: 700; transition: var(--transition); }
.otp-digit:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(27,94,32,.15); }

/* ── Order Status ─────────────────────────────────────────── */
.order-timeline { position: relative; padding-left: 30px; }
.order-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot {
  position: absolute;
  left: -24px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition: var(--transition);
}
.timeline-item.done .timeline-dot { background: var(--primary); border-color: var(--primary); }
.timeline-item.active .timeline-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,166,35,.25); }
.timeline-title { font-size: .9rem; font-weight: 700; }
.timeline-date  { font-size: .8rem; color: var(--text-muted); }

/* ── Form Styles ──────────────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,32,.12);
  outline: none;
}
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-text { font-size: .78rem; color: var(--text-muted); }

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%); display: flex; align-items: center; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); max-width: 460px; width: 100%; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-light); font-size: .88rem; margin-bottom: 28px; }

/* ── Alert / Toasts ───────────────────────────────────────── */
.alert { border-radius: var(--radius); border: none; font-size: .9rem; padding: 12px 18px; }
.alert-success { background: #e8f5e9; color: #1b5e20; }
.alert-danger   { background: #fce4ec; color: #880e4f; }
.alert-warning  { background: #fff8e1; color: #f57f17; }
.alert-info     { background: #e3f2fd; color: #0d47a1; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-success   { background: #e8f5e9; color: #1b5e20; }
.badge-danger    { background: #fce4ec; color: #c62828; }
.badge-warning   { background: #fff3e0; color: #e65100; }
.badge-info      { background: #e3f2fd; color: #0d47a1; }
.badge-primary   { background: var(--primary-light); color: var(--primary); }
.badge-secondary { background: #f5f5f5; color: #757575; }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: .3; }
.empty-state h4 { color: var(--text); margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; margin-bottom: 20px; }

/* ── Account Page ─────────────────────────────────────────── */
.account-sidebar { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 4px;
}
.account-nav-link i { width: 18px; color: var(--text-light); font-size: .95rem; }
.account-nav-link:hover, .account-nav-link.active { background: var(--primary-light); color: var(--primary); }
.account-nav-link.active i { color: var(--primary); }

/* ── Success Page ─────────────────────────────────────────── */
.success-page { min-height: 70vh; display: flex; align-items: center; background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%); }
.success-card { background: #fff; border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; box-shadow: var(--shadow-lg); max-width: 540px; width: 100%; margin: auto; }
.success-icon { width: 80px; height: 80px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2.2rem; color: var(--primary); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination .page-link { color: var(--primary); border-color: var(--border); border-radius: 8px !important; margin: 0 2px; font-size: .85rem; padding: 7px 13px; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Utility ──────────────────────────────────────────────── */
.text-primary-nd { color: var(--primary) !important; }
.text-accent-nd  { color: var(--accent) !important; }
.bg-primary-nd   { background: var(--primary) !important; }
.rounded-nd      { border-radius: var(--radius) !important; }
.fw-800 { font-weight: 800 !important; }
.sticky-sidebar { position: sticky; top: 80px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .promo-bar { font-size: .7rem; }
  .promo-bar span { margin: 0 8px; }
  .header-icons .d-none-sm { display: none !important; }
  .hero-section { padding: 36px 0; }
  .hero-img { display: none; }
  .cat-img-wrap { width: 75px; height: 75px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: 50px; margin-bottom: 8px; }
  .newsletter-form button { border-radius: 50px; }
  .section-title { font-size: 1.5rem; }
}

/* ── Swiper overrides ─────────────────────────────────────── */
.swiper-button-next, .swiper-button-prev {
  background: var(--white);
  border-radius: 50%;
  width: 38px !important;
  height: 38px !important;
  box-shadow: var(--shadow-md);
  color: var(--primary) !important;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: .9rem !important; font-weight: 900; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ── Loading spinner ──────────────────────────────────────── */
.spinner-nd {
  width: 40px; height: 40px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── OTP Timer ────────────────────────────────────────────── */
#otp-timer { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

/* ── Search Suggestions ───────────────────────────────────── */
#search-suggestions {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 500;
  max-height: 360px;
  overflow-y: auto;
}
.search-sug-item { border-bottom: 1px solid var(--border); transition: var(--transition); }
.search-sug-item:last-child { border: none; }
.search-sug-item:hover { background: var(--primary-light); }

/* ── Stars ────────────────────────────────────────────────── */
.stars { color: #f5a623; }
.stars .fa-star, .stars .fa-star-half-alt { color: #f5a623; }
.stars .fa-star.far { color: #e0e0e0; }

/* ── Coupon Box ───────────────────────────────────────────── */
.coupon-box { background: var(--accent-light); border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 14px 18px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
