@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-green: #0a6836;
  --dark-green: #054823;
  --accent-yellow: #f4a100;
  --accent-red: #e11d48;
  --text-main: #1f2937;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 1. Top Utility Header */
.top-bar {
  background: var(--dark-green);
  color: #e2e8f0;
  font-size: 12px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #fcd34d;
  text-decoration: none;
  font-weight: 600;
}

/* 2. Main Branding & Search Header */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-container img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.search-wrapper {
  flex: 1;
  max-width: 580px;
  display: flex;
  position: relative;
}
.search-wrapper input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 50px;
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}
.search-wrapper button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.action-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.action-box i {
  font-size: 22px;
  color: var(--primary-green);
}
.action-text span:first-child {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.action-text span:last-child {
  font-size: 13px;
  font-weight: 700;
}
.cart-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 16px;
  border-radius: 30px;
}

/* 3. Category Horizontal Navbar */
/* Category Navbar Container */
.category-navbar {
  background: var(--primary-green);
  position: relative;
}

/* Horizontal Scroll List */
.cat-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;            /* Enables horizontal scroll */
  overflow-y: hidden;          /* Prevents vertical scrollbars */
  white-space: nowrap;         /* Keeps all categories in one line */
  scroll-behavior: smooth;     /* Smooth scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth touch scroll for mobile */
}

/* Hide scrollbar visually while keeping scroll function active */
.cat-nav-list::-webkit-scrollbar {
  display: none;
}
.cat-nav-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Ensure navbar items do not shrink */
.cat-nav-list > li {
  flex-shrink: 0;
}

/* Main Navbar Links */
.cat-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.cat-nav-list > li > a:hover,
.cat-nav-list > li > a.active,
.cat-nav-list > li.has-dropdown:hover > a {
  background: var(--dark-green);
}

/* Subcategory Dropdown Styling */
.cat-nav-list .sub-dropdown {
  display: none;
  position: fixed; /* Bypasses overflow-x clipping */
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--dark-green);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 99999;
}

.cat-nav-list .sub-dropdown.show {
  display: block;
}

/* Dropdown Menu Item Links */
.cat-nav-list .sub-dropdown li a {
  display: block;
  padding: 9px 16px;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.cat-nav-list .sub-dropdown li a:hover {
  background-color: #f0fdf4;
  color: var(--primary-green) !important;
}
/* 4. Full Width Hero Slider */
.full-width-slider-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}
.slider-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-item {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.slide-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 72, 35, 0.92) 0%, rgba(5, 72, 35, 0.4) 65%, rgba(0, 0, 0, 0.1) 100%);
}
.slide-content-box {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.slide-content {
  color: #fff;
  max-width: 620px;
}
.slide-badge {
  background: var(--accent-yellow);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.slide-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.slide-content p {
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 24px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-yellow);
  color: #111;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #e09400;
}
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.slider-nav-btn:hover { 
  background: #fff; 
  transform: translateY(-50%) scale(1.08); 
}
.prev-btn { left: 25px; }
.next-btn { right: 25px; }

/* 5. Perks */
.perks-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 35px;
}
.perk-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.perk-box i {
  font-size: 30px;
  color: var(--primary-green);
}
.perk-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.perk-box p {
  font-size: 12px;
  color: var(--text-muted);
}

/* 6. Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-green);
  position: relative;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--primary-green);
}
.section-header a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
}

/* 7. Category Bubbles */
.category-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 35px;
}
.cat-bubble {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.cat-bubble:hover {
  border-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.cat-bubble img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  display: block;
}
.cat-bubble span {
  font-size: 12px;
  font-weight: 700;
  display: block;
}

/* 8. Product Cards & Quantity Steppers */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 35px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}
.product-img-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-brand {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin: 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title:hover {
  color: var(--primary-green);
}
.product-weight {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.price-block .price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-green);
}
.price-block .old-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Card Quantity Stepper Controls */
.card-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-stepper-mini {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
}
.qty-btn-mini {
  width: 26px;
  height: 32px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--dark-green);
  transition: background 0.15s;
}
.qty-btn-mini:hover {
  background: #e2e8f0;
}
.qty-val-mini {
  width: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  outline: none;
}
.btn-basket {
  flex: 1;
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-basket:hover {
  background: var(--dark-green);
}

/* Middle Banners */
.middle-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}
.middle-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 30px 24px;
  color: #fff;
  background-size: cover;
  background-position: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.middle-banner:hover {
  transform: translateY(-2px);
}
.middle-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 72, 35, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.banner-badge {
  background: var(--accent-yellow);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}
.banner-body {
  position: relative;
  z-index: 2;
}
.banner-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}
.banner-body p {
  font-size: 12px;
  margin-bottom: 14px;
  opacity: 0.95;
}
.btn-banner-link {
  display: inline-block;
  background: #fff;
  color: var(--dark-green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-banner-link:hover {
  background: var(--accent-yellow);
  color: #111;
}

/* Brands & Reviews */
.brands-section, .reviews-section {
  margin-bottom: 40px;
}
.brands-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}
.brand-logo-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.brand-logo-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.brand-logo-card img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
}
.brand-logo-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: var(--accent-yellow);
  font-size: 13px;
  margin-bottom: 12px;
}
.review-text {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  font-style: italic;
  margin-bottom: 16px;
}
.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}
.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-green);
  font-size: 14px;
  border: 2px solid #bbf7d0;
}
.reviewer-details h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.reviewer-details span {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}

/* Newsletter */
.newsletter-strip {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 450px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 14px;
}
.newsletter-form button {
  background: var(--accent-yellow);
  color: #111;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 50px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 35px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col p {
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.2s;
}
.footer-col ul li a:hover {
  color: var(--accent-yellow);
}
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact-item i {
  color: var(--accent-yellow);
  margin-top: 3px;
}
.footer-bottom {
  background: #020617;
  padding: 18px 0;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .middle-banners-grid { grid-template-columns: 1fr; }
  .newsletter-strip { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
}
@media (max-width: 768px) {
  .header-wrapper { flex-wrap: wrap; }
  .search-wrapper { order: 3; max-width: 100%; width: 100%; }
  .full-width-slider-wrap { height: 380px; }
  .slide-content h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}