/* =========================================================
   BettoHerbs – Main Stylesheet
   Theme: Green (#2d6a4f) + Dark Gray (#212529)
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  --green-dark:   #1b4332;
  --green-main:   #2d6a4f;
  --green-mid:    #40916c;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --gray-dark:    #212529;
  --gray-mid:     #343a40;
  --gray-text:    #495057;
  --gray-muted:   #6c757d;
  --gray-border:  #dee2e6;
  --gray-bg:      #f8f9fa;
  --white:        #ffffff;
  --gold:         #d4a017;
  --red:          #e63946;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.18);
  --transition:   .25s ease;
  --font-head:    'Playfair Display', serif;
  --font-body:    'Poppins', sans-serif;
  --max-w:        1260px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }

/* ---------- Scroll Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* =========================================================
   TOP ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: .82rem;
  letter-spacing: .04em;
}
.announcement-bar a { color: var(--green-pale); text-decoration: underline; }

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.nav-logo-text { line-height: 1.1; }
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
}
.nav-logo-tag {
  font-size: .65rem;
  color: var(--green-mid);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green-main);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-main); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dark);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-icon-btn:hover { background: var(--green-pale); color: var(--green-main); }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--green-main);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 24px;
  overflow: hidden;
  width: 220px;
  transition: width var(--transition);
}
.nav-search input {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: .85rem;
  width: 100%;
  outline: none;
  color: var(--gray-dark);
}
.nav-search button {
  padding: 6px 14px;
  color: var(--green-main);
  font-size: 1rem;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 16px 20px 24px;
  gap: 4px;
}
.mobile-menu a {
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-border);
  display: block;
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--green-main); }
.mobile-menu.open { display: flex; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-main);
  color: var(--white);
  border-color: var(--green-main);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,106,79,.35);
}
.btn-outline {
  background: transparent;
  color: var(--green-main);
  border-color: var(--green-main);
}
.btn-outline:hover { background: var(--green-main); color: var(--white); }
.btn-dark {
  background: var(--gray-dark);
  color: var(--white);
  border-color: var(--gray-dark);
}
.btn-dark:hover { background: var(--gray-mid); }
.btn-sm   { padding: 6px 16px; font-size: .8rem; }
.btn-lg   { padding: 14px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* =========================================================
   HERO / PAGE HEADER
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, var(--green-mid) 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--green-pale);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
}
.breadcrumb a { color: var(--green-pale); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* =========================================================
   HERO CAROUSEL (Home)
   ========================================================= */
.hero-carousel { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  min-width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide-1 { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 55%, var(--green-mid) 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #1a3a2a 0%, var(--green-dark) 55%, var(--green-main) 100%); }
.hero-slide-3 { background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-mid) 55%, var(--green-dark) 100%); }
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
}
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--green-pale);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-content h1 .highlight {
  color: var(--green-pale);
  font-style: italic;
}
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-img-wrap img { height: 100%; width: 100%; object-fit: cover; opacity: .35; }

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.carousel-btn:hover { background: rgba(255,255,255,.35); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active { background: var(--white); width: 24px; border-radius: 4px; }

/* =========================================================
   FEATURE STRIP (marquee)
   ========================================================= */
.feature-strip {
  background: var(--gray-dark);
  padding: 0;
  overflow: hidden;
}
.feature-track-wrap { overflow: hidden; padding: 18px 0; }
.feature-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 500;
}
.feature-item i { color: var(--green-light); font-size: 1.1rem; }
.feature-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-main);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  font-size: .95rem;
  color: var(--gray-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
/* products-grid: flex wrap like reference */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 20px;
  column-gap: 2%;
  padding-top: 20px;
}

/* ── Reference-style product card ── */
.pro {
  width: 23%;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #cce7d0;
  border-radius: 25px;
  transition: .2s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 20px 20px 30px rgba(0,0,0,.02);
  background: #fff;
}
.pro:hover {
  box-shadow: 20px 20px 30px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.pro > img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  height: 200px;
  display: block;
}
.pro .des {
  text-align: start;
  padding: 10px 0 36px 0;
}
.pro .des span {
  color: #606063;
  font-size: 12px;
}
.pro .des h5 {
  padding-top: 7px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: color .2s;
}
.pro:hover .des h5 { color: var(--green-main); }
.pro .des .star { margin: 5px 0 3px; }
.pro .des .star i { color: rgb(240,177,18); font-size: 12px; }
.pro .des h4 {
  padding-top: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pro .des h4 del {
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
}
.pro .des h4 .badge-pct {
  font-size: 11px;
  font-weight: 700;
  color: #e53935;
  background: #fff0f0;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Badges */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-new   { background: var(--green-main); color: #fff; }
.badge-sale  { background: #e53935;           color: #fff; }
.badge-out   { background: #9e9e9e;           color: #fff; }

/* Round cart button — absolute bottom-right */
.pro .pro-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f6ea;
  color: var(--green-main);
  border: 1px solid #cce7d0;
  transition: .2s;
  position: absolute;
  bottom: 20px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}
.pro .pro-cart:hover {
  background: var(--green-main);
  color: #fff;
}
.pro .pro-cart:disabled {
  background: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

/* Wishlist heart */
.product-wish {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cce7d0;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  font-size: .85rem;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.product-wish:hover { color: #e53935; border-color: #e53935; }
.product-wish.active { color: #e53935; border-color: #e53935; background: #fff5f5; }

/* Responsive */
@media (max-width:1100px) { .pro { width: 30%; } }
@media (max-width:760px)  { .pro { width: 46%; } }
@media (max-width:480px)  { .pro { width: 100%; } }

/* =========================================================
   PROMO BANNERS
   ========================================================= */
.promo-section { background: var(--gray-bg); }
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width:700px) { .promo-grid { grid-template-columns: 1fr; } }

.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex; align-items: center; padding: 40px;
}
.promo-card-1 { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); }
.promo-card-2 { background: linear-gradient(135deg, var(--gray-dark), var(--gray-mid)); }
.promo-card-full {
  grid-column: 1 / -1;
  min-height: 180px;
  background: linear-gradient(135deg, #0a2318, var(--green-dark));
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px;
  border-radius: var(--radius-lg);
}
.promo-content { color: var(--white); z-index: 2; }
.promo-content .promo-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-pale);
  margin-bottom: 8px;
}
.promo-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.promo-content p {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}

/* Seasonal banners */
.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width:760px) { .seasonal-grid { grid-template-columns: 1fr; } }

.seasonal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex; align-items: center;
  padding: 36px 32px;
  position: relative;
}
.seasonal-card-1 { background: linear-gradient(135deg, #1a472a, var(--green-main)); }
.seasonal-card-2 { background: linear-gradient(135deg, #2c1810, #8b4513); }
.seasonal-card-3 { background: linear-gradient(135deg, var(--gray-dark), #4a4a6a); }
.seasonal-card .promo-content h3 { font-size: 1.3rem; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section {
  background: var(--green-pale);
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-text h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.newsletter-text p { color: var(--gray-text); font-size: .9rem; }
.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--green-main);
  background: var(--white);
  min-width: 360px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: .9rem;
}
.newsletter-form button {
  padding: 12px 22px;
  background: var(--green-main);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--green-dark); }
@media (max-width:700px) {
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { min-width: 100%; flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; border-radius: 0; }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,.75);
}
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width:900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width:560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-brand .footer-logo-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--green-main); border-color: var(--green-main); color: var(--white); }

.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--green-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .875rem;
}
.footer-contact-item i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
}
.footer-payment { display: flex; align-items: center; gap: 8px; }
.payment-icon {
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--white);
}

/* =========================================================
   SHOP PAGE – FILTERS & LAYOUT
   ========================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width:900px) { .shop-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.shop-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}
.sidebar-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-border);
}
.filter-btn-group { display: flex; flex-direction: column; gap: 6px; }
.filter-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--gray-text);
  transition: all var(--transition);
  text-align: left;
}
.filter-btn:hover { background: var(--green-pale); color: var(--green-main); }
.filter-btn.active { background: var(--green-main); color: var(--white); }
.filter-btn .count {
  font-size: .72rem;
  background: rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 1px 7px;
}
.filter-btn.active .count { background: rgba(255,255,255,.25); }

/* Price range */
.price-range-wrap { padding: 4px 0; }
.price-range-wrap input[type=range] {
  width: 100%;
  accent-color: var(--green-main);
  margin: 8px 0;
}
.price-range-labels {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--gray-muted);
}

/* Shop main area */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
}
.shop-count { font-size: .875rem; color: var(--gray-muted); }
.shop-count strong { color: var(--gray-dark); }
.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--gray-dark);
  outline: none;
  cursor: pointer;
  background: var(--white);
}
.sort-select:focus { border-color: var(--green-main); }

/* Filter tags (mobile) */
.mobile-filter-toggle {
  display: none;
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width:900px) { .mobile-filter-toggle { display: flex; } }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--white);
}
.page-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.page-btn.active { background: var(--green-main); color: var(--white); border-color: var(--green-main); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* =========================================================
   QUICK VIEW MODAL
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 860px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .3s;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-border);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-bg); color: var(--gray-dark); }
.modal-body { padding: 24px; }
.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width:600px) { .modal-product-grid { grid-template-columns: 1fr; } }
.modal-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-bg);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.modal-info h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-price {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.modal-price .current { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); }
.modal-price .original { font-size: 1rem; color: var(--gray-muted); text-decoration: line-through; }
.modal-meta { font-size: .875rem; color: var(--gray-text); margin-bottom: 16px; line-height: 1.8; }
.modal-meta strong { color: var(--gray-dark); }

/* Variant selector */
.variant-label { font-size: .85rem; font-weight: 600; color: var(--gray-dark); margin-bottom: 8px; }
.variant-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.variant-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-dark);
  transition: all var(--transition);
  cursor: pointer;
  background: var(--white);
}
.variant-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.variant-btn.active { border-color: var(--green-main); background: var(--green-main); color: var(--white); }
.variant-btn.out-of-stock { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Qty stepper */
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gray-dark);
  background: var(--gray-bg);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--green-pale); color: var(--green-main); }
.qty-input {
  width: 46px;
  text-align: center;
  border: none; border-left: 1.5px solid var(--gray-border); border-right: 1.5px solid var(--gray-border);
  height: 36px;
  font-size: .9rem;
  font-weight: 600;
  outline: none;
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}
@media (max-width:900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--gray-border);
  font-size: .9rem;
}
.cart-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-muted); }
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--gray-bg);
  padding: 6px;
}
.cart-item-name { font-weight: 600; color: var(--gray-dark); margin-bottom: 4px; }
.cart-item-variant { font-size: .78rem; color: var(--gray-muted); }
.cart-remove {
  color: var(--gray-muted);
  font-size: .85rem;
  transition: color var(--transition);
}
.cart-remove:hover { color: var(--red); }

/* Cart summary card */
.cart-summary-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.cart-summary-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-border);
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: .9rem;
  padding: 8px 0;
  color: var(--gray-text);
}
.summary-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-dark);
  border-top: 1px solid var(--gray-border);
  padding-top: 14px;
  margin-top: 6px;
}
.coupon-form {
  display: flex; gap: 0;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}
.coupon-form input {
  flex: 1; padding: 10px 12px;
  border: none; outline: none;
  font-size: .875rem;
}
.coupon-form button {
  padding: 10px 16px;
  background: var(--green-main);
  color: var(--white);
  font-size: .82rem; font-weight: 600;
  transition: background var(--transition);
}
.coupon-form button:hover { background: var(--green-dark); }

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
@media (max-width:900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-border);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Form fields */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width:600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: .82rem; font-weight: 600;
  color: var(--gray-dark);
}
.form-label .required { color: var(--red); }
.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-dark);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
  width: 100%;
}
.form-control:focus { border-color: var(--green-main); }
.form-control.error { border-color: var(--red); }
.form-error { font-size: .78rem; color: var(--red); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-option:hover { border-color: var(--green-main); }
.payment-option.selected { border-color: var(--green-main); background: var(--green-pale); }
.payment-option input[type=radio] { accent-color: var(--green-main); }
.payment-option label { cursor: pointer; font-size: .9rem; font-weight: 500; }
.payment-option .pay-icon { font-size: 1.1rem; color: var(--green-main); }

/* Order summary in checkout */
.checkout-order-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: .9rem;
}
.checkout-order-item img {
  width: 52px; height: 52px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--gray-bg);
  padding: 4px;
  flex-shrink: 0;
}
.checkout-item-info { flex: 1; }
.checkout-item-info .name { font-weight: 600; color: var(--gray-dark); font-size: .875rem; line-height: 1.3; }
.checkout-item-info .variant { font-size: .75rem; color: var(--gray-muted); }
.checkout-item-price { font-weight: 700; color: var(--green-dark); }

/* =========================================================
   ABOUT PAGE SPECIFICS
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width:760px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-tag { margin-bottom: 10px; }
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.about-text p { font-size: .95rem; color: var(--gray-text); line-height: 1.8; margin-bottom: 14px; }
.about-checklist { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.about-check-item { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--gray-text); }
.about-check-item i { color: var(--green-main); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

/* Feature cards (why choose us) */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width:760px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--green-light); }
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--green-main);
}
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-dark); margin-bottom: 8px; }
.why-card p { font-size: .875rem; color: var(--gray-muted); line-height: 1.7; }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width:760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-avatar { height: 220px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar .avatar-placeholder { font-size: 3.5rem; color: var(--green-main); }
.team-info { padding: 18px; }
.team-info h4 { font-weight: 700; color: var(--gray-dark); margin-bottom: 4px; }
.team-info .role { font-size: .82rem; color: var(--green-main); font-weight: 600; margin-bottom: 10px; }
.team-info p { font-size: .82rem; color: var(--gray-muted); line-height: 1.6; }

/* Stats */
.stats-bar {
  background: var(--green-dark);
  padding: 50px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
@media (max-width:700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  text-align: center;
  padding: 24px;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
@media (max-width:800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-sm); border-color: var(--green-light); }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-main); font-size: 1.1rem;
}
.contact-info-text h4 { font-size: .9rem; font-weight: 700; color: var(--gray-dark); margin-bottom: 4px; }
.contact-info-text p { font-size: .875rem; color: var(--gray-muted); line-height: 1.6; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 22px;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  margin-top: 30px;
}
.map-wrap iframe { display: block; width: 100%; height: 300px; border: none; }

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px 14px 14px;
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 280px; max-width: 360px;
  border-left: 4px solid var(--green-main);
  animation: toast-in .3s ease forwards;
  pointer-events: all;
}
.toast.success { border-left-color: var(--green-main); }
.toast.error   { border-left-color: var(--red); }
.toast.info    { border-left-color: #0077cc; }
.toast-icon { font-size: 1.1rem; margin-top: 1px; }
.toast.success .toast-icon { color: var(--green-main); }
.toast.error   .toast-icon { color: var(--red); }
.toast.info    .toast-icon { color: #0077cc; }
.toast-body { flex: 1; }
.toast-title { font-size: .88rem; font-weight: 700; color: var(--gray-dark); margin-bottom: 2px; }
.toast-msg   { font-size: .8rem; color: var(--gray-muted); }
.toast-out { animation: toast-out .3s ease forwards; }

@keyframes toast-in  { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(30px); } }

/* =========================================================
   ORDER SUCCESS
   ========================================================= */
.order-success {
  text-align: center;
  padding: 80px 20px;
}
.success-icon {
  width: 82px; height: 82px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--green-main);
  margin: 0 auto 24px;
}
.order-success h2 {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: var(--gray-dark); margin-bottom: 10px;
}
.order-success p { font-size: .95rem; color: var(--gray-muted); margin-bottom: 30px; }

/* =========================================================
   PRODUCT IMAGE GALLERY (Quick View Modal)
   ========================================================= */
.gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-bg);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity .25s ease;
}
.gallery-main .gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--gray-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dark);
  font-size: .85rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition);
}
.gallery-main .gallery-arrow:hover { background: var(--green-main); color: var(--white); border-color: var(--green-main); }
.gallery-main .gallery-prev { left: 8px; }
.gallery-main .gallery-next { right: 8px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gray-border);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  background: var(--gray-bg);
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  padding: 4px;
  transition: transform .3s ease;
}
.gallery-thumb:hover { border-color: var(--green-light); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--green-main); box-shadow: 0 0 0 2px rgba(45,106,79,.25); }

/* Zoom badge overlay on main image */
.gallery-main .gallery-zoom-hint {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: .7rem;
  color: var(--gray-muted);
  background: rgba(255,255,255,.85);
  padding: 3px 8px;
  border-radius: 12px;
  pointer-events: none;
}

/* =========================================================
   LOADING SPINNER
   ========================================================= */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-border);
  border-top-color: var(--green-main);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-msg { text-align: center; padding: 40px; color: var(--gray-muted); font-size: .9rem; }
.empty-msg {
  text-align: center; padding: 60px 20px;
  color: var(--gray-muted); font-size: .95rem;
}
.empty-msg i { font-size: 2.5rem; color: var(--gray-border); display: block; margin-bottom: 14px; }

/* =========================================================
   RESPONSIVE NAVBAR
   ========================================================= */
@media (max-width:768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
}
@media (min-width:769px) { .mobile-menu { display: none !important; } }

/* =========================================================
   SCROLL BAR
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }
