.product-area-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
}

.search-bar-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8270;
  pointer-events: none;
}

#product-search {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #e0d8c8;
  border-radius: 8px;
  background: #fdfaf4;
  color: #5c3d1e;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s;
}

#product-search:focus {
  border-color: #4a7c3f;
  background: #fff;
  box-shadow: 0 4px 15px rgba(74, 124, 63, 0.08);
}

.filter-menu-btn {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  background: #fff;
  border: 1px solid #e0d8c8;
  padding: 10px 18px;
  border-radius: 8px;
  color: #5c3d1e;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.filter-menu-btn:hover {
  background: #fdfaf4;
  border-color: #4a7c3f;
  color: #4a7c3f;
}

.filter-menu-btn svg {
  width: 18px;
  height: 18px;
}

/* Filter Overlay */
.filter-overlay {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.filter-overlay.open {
  right: 0;
}

.filter-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.filter-overlay.open::before {
  opacity: 1;
  visibility: visible;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filter-panel-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-panel-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #5c3d1e;
  margin: 0;
}

/* Light Filter Backdrop */
.filter-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.filter-overlay.open::before {
  opacity: 1;
  visibility: visible;
}

.filter-overlay {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0d8c8;
}

.filter-overlay.open {
  right: 0;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filter-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-panel-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #5c3d1e;
  margin: 0;
}

.filter-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.filter-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: block;
  font-weight: 700;
  color: #5c3d1e;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0d8c8;
  border-radius: 8px;
  background: #fdfaf4;
  color: #5c3d1e;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c3d1e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s;
}

.filter-select:focus {
  border-color: #4a7c3f;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.05);
}

.filter-select option {
  padding: 8px;
  background: #fff;
}

/* Dual Price Slider Styling */
.price-dual-slider {
  margin-top: 10px;
}

.price-input-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.price-input-fields .field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-input-fields span {
  font-size: 9px;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-input-fields input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e0d8c8;
  border-radius: 6px;
  background: #fdfaf4;
  color: #5c3d1e;
  font-weight: 700;
  font-size: 12.5px;
  outline: none;
  transition: all 0.2s;
}

.price-input-fields input:focus {
  border-color: #4a7c3f;
  background: #fff;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: #e8f0e0;
  border-radius: 5px;
}

.slider-track {
  position: absolute;
  height: 100%;
  background: #4a7c3f;
  border-radius: 5px;
  z-index: 1;
}

.slider-container input[type="range"] {
  position: absolute;
  width: 100%;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #4a7c3f;
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider-container input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #4a7c3f;
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filter-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
}

.filter-tag {
  background: #e8f0e0;
  color: #4a7c3f;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tag span {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.cards-grid {
  display: grid;
  gap: clamp(15px, 0.38vw + 14px, 18px);
  margin-top: 30px;
}

/* Mobile: 2 items per row */
@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Tablet: 3 items per row */
@media (min-width: 641px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Laptop: 4 items per row */
@media (min-width: 1025px) and (max-width: 1440px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Desktop: 5 items per row */
@media (min-width: 1441px) {
  .cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Responsive Product Area Header */
@media (max-width: 640px) {
  .product-area-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .search-bar-wrap {
    max-width: none;
    order: 2;
  }
  .filter-menu-btn {
    order: 1;
    justify-content: center;
  }
}

/* Pagination Styles */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(40px, 1vw + 40px, 60px);
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #e0d8c8;
  background: #fff;
  color: #5c3d1e;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-btn:hover:not(:disabled) {
  border-color: #4a7c3f;
  color: #4a7c3f;
  background: #fdfaf4;
  transform: translateY(-2px);
}

.page-btn.active {
  background: #4a7c3f;
  color: #fff;
  border-color: #4a7c3f;
  box-shadow: 0 4px 12px rgba(74, 124, 63, 0.2);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.page-nav-btn {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 16px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.modal.open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-box {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  max-height: 90vh;
  overflow: auto;
  margin: 5vh auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(15px, 0.38vw + 14px, 18px) clamp(15px, 0.38vw + 14px, 18px) clamp(34px, 0.85vw + 31px, 40px);
  z-index: 100;
}

.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--color-subtext);
  cursor: pointer;
}

/* E-commerce Card Styles */
.product-ecommerce-card {
  background: #fff;
  border: 1px solid #e0d8c8;
  border-radius: clamp(13px, 0.34vw + 12px, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.product-ecommerce-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(74, 124, 63, 0.12);
  border-color: #c8bdab;
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fdfaf4;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-ecommerce-card:hover .product-card-media img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 40%);
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: clamp(10px, 0.26vw + 9px, 12px);
  left: clamp(10px, 0.26vw + 9px, 12px);
  padding: clamp(4px, 0.11vw + 4px, 5px) clamp(10px, 0.26vw + 9px, 12px);
  border-radius: clamp(6px, 0.17vw + 6px, 8px);
  font-size: clamp(8px, 0.21vw + 8px, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-new {
  background: #2c7a45;
  color: #fff;
}

.card-category-badge {
  position: absolute;
  top: clamp(10px, 0.26vw + 9px, 12px);
  right: clamp(10px, 0.26vw + 9px, 12px);
  padding: clamp(4px, 0.11vw + 4px, 5px) clamp(10px, 0.26vw + 9px, 12px);
  border-radius: clamp(6px, 0.17vw + 6px, 8px);
  font-size: clamp(8px, 0.21vw + 8px, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #4a7c3f;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card-content {
  padding: clamp(13px, 0.34vw + 12px, 16px) clamp(13px, 0.34vw + 12px, 16px) clamp(10px, 0.26vw + 9px, 12px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: clamp(9px, 0.23vw + 9px, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(5px, 0.13vw + 5px, 6px);
  display: block;
  opacity: 0.9;
}

.product-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(17px, 0.45vw + 16px, 21px);
  font-weight: 800;
  color: #5c3d1e;
  margin-bottom: clamp(5px, 0.13vw + 5px, 6px);
  line-height: 1.25;
}

.product-tagline-text {
  font-size: clamp(10px, 0.26vw + 9px, 12px);
  color: #8a8270;
  line-height: 1.5;
  margin-bottom: clamp(3px, 0.09vw + 3px, 4px);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features {
  font-size: clamp(9px, 0.23vw + 9px, 11px);
  font-weight: 500;
  color: #6d665a;
  margin-bottom: clamp(8px, 0.21vw + 8px, 10px);
  display: block;
}

.pack-selector {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(5px, 0.13vw + 5px, 6px);
  margin-bottom: clamp(10px, 0.26vw + 9px, 12px);
}

.pack-chip {
  padding: clamp(4px, 0.11vw + 4px, 5px) clamp(8px, 0.21vw + 8px, 10px);
  border: 1px solid #e0d8c8;
  border-radius: clamp(6px, 0.17vw + 6px, 8px);
  font-size: clamp(8px, 0.21vw + 8px, 10px);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: #fdfaf4;
  color: #5c3d1e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pack-chip:hover {
  border-color: #4a7c3f;
  color: #4a7c3f;
}

.pack-chip.active {
  background: #4a7c3f;
  color: #fff;
  border-color: #4a7c3f;
  box-shadow: 0 4px 12px rgba(74, 124, 63, 0.2);
}

.product-card-info {
  margin-top: auto;
  padding-top: clamp(8px, 0.21vw + 8px, 10px);
  border-top: 1px dashed rgba(224, 216, 200, 0.7);
}

.product-price-box {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.17vw + 6px, 8px);
}

.price-from {
  font-size: clamp(10px, 0.26vw + 9px, 12px);
  font-weight: 500;
  color: #9c9482;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-value {
  font-size: clamp(18px, 0.47vw + 17px, 22px);
  font-weight: 800;
  color: #4a7c3f;
  letter-spacing: -0.01em;
}

.price-contact {
  font-size: clamp(11px, 0.28vw + 10px, 13px);
  color: #8a8270;
  font-style: italic;
  font-weight: 500;
}

.product-card-actions {
  margin-top: clamp(10px, 0.26vw + 9px, 12px);
  display: flex;
  gap: clamp(8px, 0.21vw + 8px, 10px);
}

.product-card-actions button {
  flex: 1;
  padding: clamp(6px, 0.17vw + 6px, 8px) clamp(8px, 0.21vw + 8px, 10px);
  font-size: clamp(11px, 0.28vw + 10px, 13px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
}

.card-action-btn:hover {
  box-shadow: 0 8px 20px rgba(74, 124, 63, 0.3);
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .product-ecommerce-card {
    border-radius: clamp(10px, 0.26vw + 9px, 12px);
  }
  .product-title {
    font-size: clamp(14px, 0.36vw + 13px, 17px);
  }
  .product-card-actions {
    flex-direction: column;
  }
  .product-card-actions button {
    width: 100%;
  }
}

.info-icon-trigger {
  position: absolute;
  bottom: clamp(10px, 0.26vw + 9px, 12px);
  right: clamp(10px, 0.26vw + 9px, 12px);
  width: clamp(20px, 0.51vw + 19px, 24px);
  height: clamp(20px, 0.51vw + 19px, 24px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: #4a7c3f;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(11px, 0.3vw + 11px, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.info-icon-trigger:hover {
  background: #4a7c3f;
  color: #fff;
  transform: scale(1.1);
}

.p-desc {
  font-size: clamp(11px, 0.3vw + 11px, 14px);
  line-height: 1.7;
  color: #666;
  white-space: pre-line;
}

.order-summary-card {
  background: #fdfaf4;
  border: 1px solid #e0d8c8;
  border-radius: clamp(10px, 0.26vw + 9px, 12px);
  padding: clamp(13px, 0.34vw + 12px, 16px);
  margin-bottom: clamp(17px, 0.43vw + 16px, 20px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(11px, 0.3vw + 11px, 14px);
}

.summary-label {
  color: #8a8270;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(9px, 0.23vw + 9px, 11px);
  letter-spacing: 0.05em;
}

.summary-value {
  color: #5c3d1e;
  font-weight: 700;
}

