:root {
  --green: #064b2d;
  --green-dark: #032d1c;
  --green-light: #0d6940;
  --gold: #d9ad45;
  --gold-light: #f1d58b;
  --ivory: #f7f5ec;
  --white: #ffffff;
  --text: #20352a;
  --muted: #7b887f;
  --border: #e4eae4;
  --shadow: 0 12px 30px rgba(0, 40, 20, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* NAVBAR */

.main-navbar {
  background: var(--green-dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(217, 173, 69, 0.25);
}

.site-logo {
  width: 48px;
  height: 48px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.brand-text {
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-navbar .nav-link {
  padding: 10px 12px !important;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--gold-light);
}

.nav-icon-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px !important;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: var(--green-dark);
  background: var(--gold);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
}

/* BANNER */

.shop-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=85")
    center 48% / cover no-repeat;
}

.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 45, 28, 0.97),
    rgba(6, 75, 45, 0.76)
  );
}

.banner-content {
  position: relative;
  z-index: 1;
  padding-top: 42px;
  padding-bottom: 42px;
}

.banner-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--gold-light);
  background: rgba(217, 173, 69, 0.1);
  border: 1px solid rgba(217, 173, 69, 0.5);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.shop-banner h1 {
  margin: 18px 0 10px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.3px;
}

.shop-banner h1 span {
  color: var(--gold);
}

.shop-banner p {
  max-width: 520px;
  margin-bottom: 19px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.banner-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  font-size: 12px;
}

.banner-breadcrumb a {
  color: var(--white);
}

.banner-breadcrumb a:hover {
  color: var(--gold);
}

.banner-breadcrumb i {
  font-size: 10px;
}

/* PRODUCTS SECTION */

.products-section {
  padding: 55px 0 80px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.section-subtitle {
  display: block;
  margin-bottom: 8px;
  color: #a78027;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.section-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
}

.section-heading h2 span {
  color: #b58a29;
}

.product-total {
  flex-shrink: 0;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.product-total span {
  color: var(--green);
  font-weight: 800;
}

/* SEARCH AND SORT */

.product-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.search-box,
.sort-box {
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.search-box {
  flex: 1;
  gap: 10px;
  padding: 0 14px;
}

.search-box:focus-within,
.sort-box:focus-within {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(13, 105, 64, 0.08);
}

.search-box > i,
.sort-box > i {
  color: var(--green);
  font-size: 17px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #9ba69e;
}

#clearSearch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #7d897f;
  background: transparent;
  border: none;
  cursor: pointer;
}

#clearSearch:hover {
  color: var(--green);
}

.sort-box {
  gap: 9px;
  padding: 0 12px;
}

.sort-box select {
  max-width: 190px;
  padding: 12px 0;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 12px;
}

/* CATEGORY FILTERS */

.category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d6ca transparent;
}

.filter-btn {
  flex-shrink: 0;
  padding: 10px 17px;
  color: #607066;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover {
  color: var(--green);
  border-color: var(--green);
}

.filter-btn.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(6, 75, 45, 0.15);
}

/* PRODUCT CARD */

.product-card {
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(6, 75, 45, 0.07);
  border-radius: 13px;
  box-shadow: 0 4px 15px rgba(0, 35, 19, 0.035);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #edf1eb;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 9px;
  color: var(--green-dark);
  background: var(--gold-light);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.discount-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 8px;
  color: var(--white);
  background: var(--green);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.wishlist-btn {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.96);
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.25s;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #c33d43;
  background: #fff0f0;
}

.wishlist-btn i {
  font-size: 17px;
}

/* PRODUCT DETAILS */

.product-card-body {
  display: flex;
  flex-direction: column;
  padding: 15px 14px 14px;
}

.product-category {
  min-height: 15px;
  margin-bottom: 7px;
  color: #a17c29;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.product-name {
  min-height: 42px;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 15px;
}

.product-price {
  color: var(--green);
  font-size: 17px;
  font-weight: 800;
}

.old-price {
  color: #9ba49d;
  font-size: 11px;
}

.add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 41px;
  padding: 9px 8px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.add-cart-btn i {
  font-size: 15px;
}

.add-cart-btn:hover {
  color: var(--green-dark);
  background: var(--gold);
  border-color: var(--gold);
}

/* EMPTY STATE */

.empty-state {
  padding: 55px 15px;
  text-align: center;
  background: var(--white);
  border: 1px dashed #cbd9ce;
  border-radius: 15px;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 17px;
  color: var(--green);
  background: #eef5ee;
  border-radius: 50%;
  font-size: 26px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 800;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.reset-btn {
  padding: 10px 18px;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 7px;
  font-size: 13px;
}

.reset-btn:hover {
  color: var(--green-dark);
  background: var(--gold);
}

/* TOAST */

.shop-toast {
  color: var(--white);
  background: var(--green-dark);
  border: 1px solid rgba(217, 173, 69, 0.5);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.shop-toast .toast-body {
  padding: 13px 16px;
  font-size: 13px;
}

.shop-toast .bi-check-circle-fill {
  color: var(--gold);
}

/* FOOTER */

.site-footer {
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.75);
  background: var(--green-dark);
  font-size: 12px;
  line-height: 1.8;
}

/* TABLET */

@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    padding-top: 12px;
  }

  .main-navbar .nav-link {
    padding: 10px 5px !important;
  }

  .shop-banner {
    min-height: 270px;
  }

  .products-section {
    padding: 45px 0 60px;
  }

  .product-image-wrap {
    height: 200px;
  }

  .product-card-body {
    padding: 13px 11px;
  }
}

/* MOBILE */

@media (max-width: 575.98px) {
  .main-navbar {
    padding: 10px 0;
  }

  .site-logo {
    width: 41px;
    height: 41px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .shop-banner {
    min-height: 240px;
  }

  .banner-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .banner-label {
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .shop-banner h1 {
    margin: 15px 0 9px;
    font-size: 35px;
  }

  .shop-banner p {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .products-section {
    padding: 32px 0 45px;
  }

  .section-heading {
    align-items: flex-end;
    margin-bottom: 18px;
  }

  .section-subtitle {
    font-size: 8px;
    letter-spacing: 1.2px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .product-total {
    font-size: 11px;
  }

  .product-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 17px;
  }

  .search-box,
  .sort-box {
    width: 100%;
    min-height: 44px;
  }

  .sort-box select {
    width: 100%;
    max-width: none;
    font-size: 12px;
  }

  .category-filters {
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 8px;
  }

  .filter-btn {
    padding: 9px 13px;
    font-size: 11px;
  }

  .product-image-wrap {
    height: 145px;
  }

  .product-badge {
    top: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .discount-badge {
    bottom: 7px;
    left: 7px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .wishlist-btn {
    top: 7px;
    right: 7px;
    width: 29px;
    height: 29px;
  }

  .wishlist-btn i {
    font-size: 14px;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card-body {
    padding: 10px 9px;
  }

  .product-category {
    min-height: 13px;
    margin-bottom: 5px;
    font-size: 8px;
    line-height: 1.5;
  }

  .product-name {
    min-height: 38px;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.5;
  }

  .price-row {
    gap: 5px;
    margin-bottom: 10px;
  }

  .product-price {
    font-size: 14px;
  }

  .old-price {
    font-size: 9px;
  }

  .add-cart-btn {
    min-height: 36px;
    gap: 5px;
    padding: 7px 4px;
    font-size: 10px;
  }

  .add-cart-btn i {
    font-size: 13px;
  }

  .site-footer {
    padding: 17px 10px;
    font-size: 11px;
  }
}

/* EXTRA SMALL MOBILE */

@media (max-width: 360px) {
  .product-image-wrap {
    height: 120px;
  }

  .product-card-body {
    padding: 8px 7px;
  }

  .product-name {
    font-size: 11px;
  }

  .product-price {
    font-size: 13px;
  }

  .old-price {
    font-size: 8px;
  }

  .add-cart-btn {
    font-size: 9px;
  }
}

/* FINAL FIX: Categories above products */
.products-section > .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
}

.products-section .section-heading,
.products-section .product-toolbar,
.products-section .category-filters,
.products-section #productGrid,
.products-section #emptyState {
  position: relative !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.products-section .product-toolbar {
  display: flex !important;
  justify-content: flex-end !important;
  margin-bottom: 20px !important;
}

.products-section .category-filters {
  order: 3;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  overflow: visible !important;
}

.products-section .category-filters .filter-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.products-section #productGrid {
  order: 4;
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  clear: both !important;
}

.products-section #productGrid > div {
  flex: 0 0 25% !important;
  width: 25% !important;
  max-width: 25% !important;
  padding: 0 12px 24px !important;
}

.products-section #productGrid .product-card {
  width: 100% !important;
  height: 100%;
}

@media (max-width: 767px) {
  .products-section #productGrid > div {
    flex-basis: 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }

  .products-section .category-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 10px !important;
  }
}
.product-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 35px;
}

.sort-select {
  width: 175px;
  border: 1px solid #e4e9e2;
  border-radius: 10px;
  padding: 10px 14px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  box-shadow: none !important;
}

.product-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e6ebe4;
  border-radius: 13px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  height: 225px;
  position: relative;
  background: #eaf0e8;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 4px;
  background: #fff0bb;
  color: #795800;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 37px;
  height: 37px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.wishlist-btn.active {
  color: #e63946;
}

.discount-label {
  position: absolute;
  bottom: 0;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 5px 5px 0 0;
}

.product-info {
  padding: 17px 14px 14px;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  color: #247052;
  margin-bottom: 8px;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: #123c2b;
  margin-bottom: 12px;
  min-height: 36px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.current-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.add-cart-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.add-cart-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.add-cart-btn i {
  margin-right: 7px;
  font-size: 15px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  margin-left: 5px;
}

/* Tablet */
@media (max-width: 991px) {
  .products-section {
    padding: 30px 0;
  }

  .product-image {
    height: 200px;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .products-section {
    padding: 20px 0 35px;
  }

  .product-toolbar {
    margin-bottom: 20px;
  }

  .sort-select {
    width: 150px;
    font-size: 12px;
    padding: 9px 10px;
  }

  .product-image {
    height: 155px;
  }

  .product-info {
    padding: 12px 10px 11px;
  }

  .product-category {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .product-name {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .current-price {
    font-size: 15px;
  }

  .old-price {
    font-size: 10px;
  }

  .product-price {
    gap: 6px;
    margin-bottom: 12px;
  }

  .add-cart-btn {
    padding: 10px 5px;
    font-size: 11px;
  }

  .wishlist-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .product-tag {
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 4px 7px;
  }

  .discount-label {
    left: 8px;
    font-size: 9px;
    padding: 5px 7px;
  }
}

/* Very small mobile */
@media (max-width: 360px) {
  .product-image {
    height: 125px;
  }

  .product-name {
    font-size: 12px;
  }

  .add-cart-btn {
    font-size: 10px;
  }
}
.product-card {
    cursor: pointer;
    height: 100%;
    background: #fff;
    border: 1px solid #e6ebe4;
    border-radius: 13px;
    overflow: hidden;
    transition: all .3s ease;
    position: relative;
}

.add-cart-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    background: #155b3e;
    color: #fff !important;
    border: none;
    border-radius: 7px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}