/* ============================================================
   PRODUCT-LIST.CSS — Lion King Naturals
   Fixed search bar below navbar. Fixed sidebar with own scroll.
   ============================================================ */

.page-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ──────────────────────────────────────────────────────────────
   FIXED SEARCH BAR — sits exactly below navbar (70px)
────────────────────────────────────────────────────────────── */
.shop-search-sticky {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 190;
  background: #fdf9f2;
  padding: 10px 28px;
  border-bottom: 1px solid #d8cbb6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.shop-search-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.shop-search-wrap>svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.shop-search {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1.5px solid #d8cbb6;
  border-radius: 10px;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  color: #573e19;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.shop-search:focus {
  border-color: #2d5a1b;
  box-shadow: 0 0 0 3px rgba(45, 90, 27, .1);
}

.shop-search::placeholder {
  color: #bbb;
}

/* Search dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #d8cbb6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 300;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown.show {
  display: block;
}

.search-dropdown-item {
  padding: 11px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f0e8dc;
  transition: background .15s;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: #f5efe4;
}

.sd-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #573e19;
}

.sd-meta {
  font-size: 11.5px;
  color: #888;
}

.sd-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* ── Spacer pushes content below fixed navbar(70) + search(54) = 124px ── */
.shop-body-spacer {
  height: 100px;
}

/* ──────────────────────────────────────────────────────────────
   ACTIVE FILTER CHIPS
────────────────────────────────────────────────────────────── */
.active-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Noto Sans", sans-serif;
}

.chip-cat {
  background: #dcf5e0;
  color: #166534;
}

.chip-sub {
  background: #e8f3ff;
  color: #1d4ed8;
}

.chip-weight {
  background: #f5efe4;
  color: #573e19;
  border: 1px solid #d8cbb6;
}

.chip-filter {
  background: #fff3cd;
  color: #b45309;
  border: 1px solid #fde68a;
}

.chip-clear {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ──────────────────────────────────────────────────────────────
   LAYOUT — sidebar is fixed, products-area has left margin
────────────────────────────────────────────────────────────── */
.shop-layout {
  display: flex;
  align-items: stretch;
  flex: 1;
}

/* ──────────────────────────────────────────────────────────────
   FIXED SIDEBAR — from top 124px, own scroll
────────────────────────────────────────────────────────────── */
.filter-sidebar {
  position: fixed;
  top: 132px;
  left: 0;
  width: 260px;
  height: calc(100vh - 124px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fdf9f2;
  border-right: 1px solid #d8cbb6;
  scrollbar-width: thin;
  scrollbar-color: #d8cbb6 transparent;
  z-index: 100;
}

.filter-sidebar::-webkit-scrollbar {
  width: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background: #d8cbb6;
  border-radius: 4px;
}

/* Sticky title inside sidebar's own scroll */
.filter-desktop-title {
  position: sticky;
  top: 0;
  background: #fdf9f2;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #d8cbb6;
}

.filter-desktop-title h2 {
  font-size: 15px;
  font-weight: 800;
  color: #573e19;
  font-family: "Noto Sans", sans-serif;
}

.filter-desktop-title svg {
  color: #2d5a1b;
  flex-shrink: 0;
}

/* Sort row */
.filter-sort-row {
  padding: 12px 18px;
  border-bottom: 1px solid #d8cbb6;
}

.filter-sort-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  margin-bottom: 6px;
  font-family: "Noto Sans", sans-serif;
}

.sort-select {
  width: 100%;
  padding: 8px 30px 8px 10px;
  border: 1.5px solid #d8cbb6;
  border-radius: 8px;
  font-family: "Noto Sans", sans-serif;
  font-size: 13px;
  color: #573e19;
  background: #ede8df;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Accordion sections */
.filter-section {
  border-bottom: 1px solid #d8cbb6;
}

.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  user-select: none;
}

.filter-section-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: #573e19;
  font-family: "Noto Sans", sans-serif;
}

.filter-chevron {
  color: #2d5a1b;
  font-size: 15px;
  transition: transform .25s;
  line-height: 1;
}

.filter-section.collapsed .filter-chevron {
  transform: rotate(180deg);
}

.filter-section-body {
  padding: 2px 18px 14px;
}

.filter-section.collapsed .filter-section-body {
  display: none;
}

/* Checkboxes */
.filter-check-list {
  list-style: none;
}

.filter-check-list li {
  margin-bottom: 6px;
}

.filter-check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #573e19;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
}

.filter-check-list input[type="checkbox"],
.filter-check-list input[type="radio"] {
  accent-color: #2d5a1b;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-sub-list {
  list-style: none;
  padding-left: 20px;
  margin-top: 5px;
}

.filter-sub-list li {
  margin-bottom: 5px;
}

.filter-sub-list label {
  font-size: 12.5px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
}

/* Filter actions */
.filter-actions {
  display: flex;
  gap: 8px;
  padding: 14px 18px 18px;
}

.filter-actions .btn-apply {
  flex: 1;
  padding: 9px 0;
  background: #2d5a1b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}

.filter-actions .btn-apply:hover {
  background: #3d7a1a;
}

.filter-actions .btn-clear {
  flex: 1;
  padding: 9px 0;
  background: #fdf9f2;
  color: #573e19;
  border: 1.5px solid #d8cbb6;
  border-radius: 8px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s;
}

.filter-actions .btn-clear:hover {
  border-color: #2d5a1b;
  color: #2d5a1b;
}

/* ──────────────────────────────────────────────────────────────
   PRODUCTS AREA — offset by sidebar width
────────────────────────────────────────────────────────────── */
.products-area {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  padding: 20px 28px 60px;
  min-height: calc(100vh - 124px);
}

/* Results row */
.results-row {
  margin-bottom: 14px;
}

.results-count {
  font-size: 13px;
  color: #888;
  font-family: "Noto Sans", sans-serif;
}

.results-count strong {
  color: #2d5a1b;
}

.results-count em {
  font-style: normal;
  font-weight: 700;
  color: #573e19;
}

/* ──────────────────────────────────────────────────────────────
   PRODUCT GRID & CARD
────────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.product-card {
  background: #fdf9f2;
  border: 1px solid #d8cbb6;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(45, 90, 27, .12);
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 0.75;
  overflow: hidden;
  background: #ede8df;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}

.card-badge-offer,
.card-badge-out {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  font-family: "Noto Sans", sans-serif;
}

.card-badge-offer {
  background: #2d5a1b;
  color: #fff;
}

.card-badge-out {
  background: #fee2e2;
  color: #b91c1c;
}

.card-wishlist-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  background: rgba(253, 249, 242, .88);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s;
  z-index: 2;
}

.card-wishlist-btn:hover {
  background: #fdf9f2;
}

.card-wishlist-btn svg {
  color: #2d5a1b;
}

.card-wishlist-btn.wished svg {
  fill: #2d5a1b;
}

.product-card-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.product-card-sub {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  font-family: "Noto Sans", sans-serif;
}

.product-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #573e19;
  line-height: 1.4;
  font-family: "Noto Sans", sans-serif;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card-name:hover {
  color: #2d5a1b;
}

.product-card-weight {
  font-size: 12px;
  color: #888;
  font-family: "Noto Sans", sans-serif;
}

.product-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
}

.price-offer {
  font-size: 15px;
  font-weight: 800;
  color: #2d5a1b;
  font-family: "Noto Sans", sans-serif;
}

.price-original {
  font-size: 12.5px;
  color: #bbb;
  text-decoration: line-through;
  font-family: "Noto Sans", sans-serif;
}

.product-card-add {
  /* margin-top: 8px; */
  margin-top: auto;
  width: 100%;
  display: block;
  text-align: center;
  padding: 9px 0;
  background: #2d5a1b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.product-card-add:hover {
  background: #3d7a1a;
  transform: translateY(-1px);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 14px;
}

.empty-title {
  font-size: 20px;
  font-weight: 800;
  color: #573e19;
  margin-bottom: 8px;
  font-family: "Noto Sans", sans-serif;
}

.empty-sub {
  font-size: 14px;
  color: #888;
  font-family: "Noto Sans", sans-serif;
}

.empty-sub a {
  color: #2d5a1b;
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────
   PAGINATION
────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 0 20px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  gap: 4px;
  border: 1.5px solid #d8cbb6;
  border-radius: 8px;
  background: #fdf9f2;
  font-family: "Noto Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #573e19;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.page-btn:hover:not(.active):not(.page-disabled) {
  border-color: #2d5a1b;
  color: #2d5a1b;
}

.page-btn.active {
  background: #2d5a1b;
  border-color: #2d5a1b;
  color: #fff;
  cursor: default;
}

.page-btn.page-disabled {
  cursor: default;
  opacity: .4;
  pointer-events: none;
}

.page-ellipsis {
  font-size: 14px;
  color: #888;
  padding: 0 2px;
  line-height: 36px;
}

/* ──────────────────────────────────────────────────────────────
   MOBILE FILTER BAR
────────────────────────────────────────────────────────────── */
.mobile-filter-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fdf9f2;
  border-top: 1.5px solid #d8cbb6;
  padding: 10px 16px;
  gap: 10px;
  z-index: 998;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .1);
}

.btn-filter-open {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 0;
  background: #2d5a1b;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
}

.btn-filter-open:hover {
  background: #3d7a1a;
}

.drawer-sort-row {
  padding: 14px 18px;
  border-bottom: 1px solid #d8cbb6;
  background: #fdf9f2;
}

.drawer-sort-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  margin-bottom: 8px;
  font-family: "Noto Sans", sans-serif;
}

.drawer-sort-select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1.5px solid #d8cbb6;
  border-radius: 9px;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  color: #573e19;
  background: #ede8df;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Hide old mob-sort-select fully */
.mob-sort-select {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────────
   MOBILE FILTER DRAWER
────────────────────────────────────────────────────────────── */
.mobile-filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 86vh;
  background: #fdf9f2;
  border-radius: 18px 18px 0 0;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
  transform: translateY(110%);
  transition: transform .35s ease;
  pointer-events: none;
}

.mobile-filter-drawer.open {
  transform: translateY(0);
  pointer-events: all;
}

.drawer-handle {
  width: 44px;
  height: 4px;
  background: #d8cbb6;
  border-radius: 4px;
  margin: 10px auto 0;
}

.drawer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 10px;
  border-bottom: 1px solid #d8cbb6;
}

.drawer-title h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #573e19;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  transition: color .2s;
}

.drawer-close:hover {
  color: #573e19;
}

.mobile-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 999;
}

.mobile-filter-overlay.open {
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────────── */
/* @media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} */
@media (min-width: 1800px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1024px) {
  .shop-search-sticky {
    top: 62px !important;
  }
  .filter-sidebar {
    width: 230px;
  }

  .products-area {
    margin-left: 230px;
    padding: 18px 20px 60px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .filter-sidebar {
    display: none;
  }

  .products-area {
    margin-left: 0;
    padding: 14px 14px 100px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .mobile-filter-bar {
    display: flex;
  }

  .shop-search-sticky {
    padding: 8px 14px;
  }

  .shop-body-spacer {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.filter-group-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2d5a1b;
  margin-top: 10px;
  margin-bottom: 4px;
  font-family: "Noto Sans", sans-serif;
  cursor: default;
}

.filter-check-list > li:first-child .filter-group-label {
  margin-top: 0;
}