/* =======================================================================
   PRODUCTS.CSS - COMPLETE REDESIGN
   Fully responsive, enhanced visuals, maintains theme
   ======================================================================= */

/* ===================== TABLE OF CONTENTS ===================== */
/* 01. CSS Variables & Base */
/* 02. Products Hero - Enhanced */
/* 03. Advanced Filters - Premium Design */
/* 04. Category Circles - Redesigned */
/* 05. Products Grid - Fluid & Responsive */
/* 06. Product Cards - Premium Design */
/* 07. Provider Info in Cards */
/* 08. Popular Categories - Modern Grid */
/* 09. Top Providers Strip - Enhanced Cards */
/* 10. Pagination - Polished */
/* 11. Product Modal - Premium Experience */
/* 12. Loading States & Skeletons */
/* 13. Empty States - Beautiful */
/* 14. Toast Notifications */
/* 15. Responsive Breakpoints - Fine-tuned */
/* ============================================================ */

/* ========================================================================
   01. CSS VARIABLES & BASE
   ======================================================================== */
:root {
  --filter-bar-height: 70px;
  --filter-bar-height-mobile: 60px;
  --card-gap: clamp(0.5rem, 2vw, 1.5rem);
  --container-padding: clamp(1rem, 4vw, 2rem);
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  --card-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 25px 40px -15px rgba(183, 140, 90, 0.2);
}

/* ========================================================================
   02. PRODUCTS HERO — replaced by .ad-banner-slider in styles.css
   ======================================================================== */

/* ========================================================================
   03. ADVANCED FILTERS - Premium Design with Glassmorphism
   ======================================================================== */
.filters-section {
  padding: clamp(1rem, 3vw, 2rem) 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: static;
  top: 70px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .filters-section {
    top: 60px;
    padding: clamp(0.75rem, 2vw, 1rem) 0;
  }
}

.filters-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* Main Search - Premium */
.filter-row.main-search {
  width: 100%;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-wrapper-large {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 60px;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 56px;
  box-shadow: var(--card-shadow);
}

.search-wrapper-large:focus-within {
  border-color: var(--accent);
  box-shadow: 0 10px 25px -8px rgba(183, 140, 90, 0.2);
  transform: scale(1.01);
}

.search-wrapper-large i {
  color: var(--accent);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-right: clamp(0.75rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.search-wrapper-large:focus-within i {
  transform: scale(1.1);
}

.search-wrapper-large input {
  flex: 1;
  border: none;
  padding: clamp(0.75rem, 2vw, 1.25rem) 0;
  font-size: clamp(0.9rem, 3vw, 1rem);
  background: transparent;
  outline: none;
  min-height: 48px;
  width: 100%;
}

.search-wrapper-large input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.search-wrapper-large input:focus::placeholder {
  opacity: 0.3;
}

/* Filter Grid - Responsive & Beautiful */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  animation: fadeIn 0.5s ease 0.1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1vw, 0.5rem);
  min-width: 0;
  position: relative;
}

.filter-group label {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0.25rem;
}

.filter-group label i {
  color: var(--accent);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  flex-shrink: 0;
}

/* Filter Select - Enhanced Dropdowns */
.filter-select {
  width: 100%;
  padding: clamp(0.75rem, 2.5vw, 1rem) clamp(2rem, 4vw, 2.5rem)
    clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  cursor: pointer;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  box-shadow: var(--card-shadow);
}

.filter-select:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px -10px rgba(183, 140, 90, 0.15);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.1),
    0 12px 25px -10px rgba(183, 140, 90, 0.2);
  transform: translateY(-1px);
}

.filter-select:disabled {
  background-color: #f9f9f9;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: var(--border-light);
}

/* Price Range - Special Treatment */
.price-range {
  grid-column: span 2;
}

@media (min-width: 640px) {
  .price-range {
    grid-column: auto;
  }
}

.price-range .price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-inputs input {
  flex: 1;
  min-width: 0;
  padding: clamp(0.75rem, 2.5vw, 1rem);
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  min-height: 48px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: var(--card-shadow);
}

.price-inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.price-inputs input::placeholder {
  color: var(--text-soft);
  opacity: 0.5;
}

.price-inputs span {
  color: var(--accent);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 500;
  flex-shrink: 0;
}

/* Stock Filter - Beautiful Checkbox */
.stock-filter-row {
  display: flex;
  justify-content: flex-start;
  padding: clamp(0.75rem, 2vw, 1rem) 0;
  border-top: 2px solid var(--border-light);
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  animation: fadeIn 0.5s ease 0.2s both;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--text-dark);
  min-height: 48px;
  padding: 0.25rem 0;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  color: var(--accent);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--accent);
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 2px solid var(--border-light);
  animation: fadeIn 0.5s ease 0.3s both;
}

#clearFiltersBtn {
  min-width: min(160px, 100%);
  min-height: 48px;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  padding: 0 clamp(1.5rem, 3vw, 2rem);
  flex-shrink: 0;
  border-radius: 40px;
  background: white;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

#clearFiltersBtn:hover {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.2);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  min-width: min(200px, 100%);
}

.active-filter-tag {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border: 2px solid var(--accent-light);
  border-radius: 40px;
  padding: 0.5rem 1.25rem 0.5rem 1.5rem;
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: 0 4px 10px -5px rgba(183, 140, 90, 0.2);
  animation: tagPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes tagPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.active-filter-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.active-filter-tag i {
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0.25rem;
  border-radius: 50%;
}

.active-filter-tag i:hover {
  color: #dc2626;
  transform: scale(1.2);
  background: rgba(220, 38, 38, 0.1);
}

/* ========================================================================
   04. CATEGORY CIRCLES - Redesigned with Premium Feel
   ======================================================================== */
.category-circles-section {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light, #ede8e0);
  overflow: hidden;
  position: relative;
}

.category-circles {
  display: flex;
  gap: clamp(0.2rem, 0.8vw, 0.5rem);
  overflow-x: auto;
  padding: 1rem var(--container-padding) 1.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  scroll-padding: 0 var(--container-padding);
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
}

.category-circle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.45rem 0.4rem 0.6rem;
  border-radius: 14px;
  position: relative;
  width: clamp(62px, 7.5vw, 82px);
}

.category-circle:hover {
  background: rgba(183, 140, 90, 0.05);
}

.category-circle:active {
  transform: scale(0.96);
}

.circle-image {
  width: clamp(46px, 5.2vw, 60px);
  height: clamp(46px, 5.2vw, 60px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  outline: 3px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  aspect-ratio: 1 / 1;
  background: var(--bg, #f5f0e8);
}

.category-circle:hover .circle-image {
  border-color: rgba(183, 140, 90, 0.45);
  outline-color: rgba(183, 140, 90, 0.12);
  box-shadow: 0 6px 18px rgba(183, 140, 90, 0.2);
  transform: translateY(-2px);
}

.category-circle.active .circle-image {
  border-color: var(--accent, #b78c5a);
  outline-color: rgba(183, 140, 90, 0.2);
  box-shadow:
    0 0 0 1px rgba(183, 140, 90, 0.15),
    0 8px 20px rgba(183, 140, 90, 0.22);
  transform: translateY(-2px);
}

.category-circle span {
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  color: var(--text-soft, #888);
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  font-weight: 500;
  max-width: 88px;
  transition: color 0.2s ease;
}

.category-circle:hover span {
  color: var(--text-dark, #1f1f1f);
}

.category-circle.active span {
  color: var(--accent, #b78c5a);
  font-weight: 600;
}

/* ========================================================================
   05. PRODUCTS GRID - Fluid & Beautiful
   ======================================================================== */
.products-section {
  padding: clamp(0.75rem, 2vw, 1.25rem) 0 clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  position: relative;
  min-height: 50vh;
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0 var(--container-padding);
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeIn 0.5s ease;
}

.grid-header .section-title-serif {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.grid-header .section-title-serif::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.results-count {
  color: var(--text-primary);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  background: white;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  border: 2px solid var(--border-light);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  padding: 0 var(--container-padding);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Smart breakpoints for optimal card display */
@media (min-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
  }
}

/* ========================================================================
   06. PRODUCT CARDS - Premium Design with Hover Effects
   ======================================================================== */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-light);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
  flex-shrink: 0;
}

.product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

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

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  backdrop-filter: blur(4px);
  box-shadow: 0 5px 15px -5px rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info {
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
  position: relative;
  z-index: 1;
}

/* ========================================================================
   07. PROVIDER INFO IN CARDS - Enhanced
   ======================================================================== */
.product-provider-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.provider-mini-avatar {
  width: clamp(24px, 6vw, 32px);
  height: clamp(24px, 6vw, 32px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.1);
}

.provider-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-mini-avatar i {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  color: white;
}

.product-provider {
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  color: var(--text-soft);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-weight: 500;
}

.product-title {
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0.1rem 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.product-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-soft);
  font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  margin: 0.1rem 0;
}

.product-location i {
  color: var(--accent);
  font-size: 0.7rem;
}

.product-price {
  font-size: clamp(0.8rem, 2.8vw, 1.1rem);
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Stock Status in Cards - Enhanced */
.product-stock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  margin-top: 0.25rem;
  padding: 0.25rem 0;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.product-stock i {
  font-size: clamp(0.5rem, 1.8vw, 0.65rem);
}

.product-stock.in-stock {
  color: #10b981;
}

.product-stock.low-stock {
  color: #f59e0b;
}

.product-stock.out-of-stock {
  color: #ef4444;
}

/* ========================================================================
   08. POPULAR CATEGORIES - Modern Grid with Hover Effects
   ======================================================================== */
.popular-categories {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.popular-categories::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.popular-category {
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.popular-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.popular-category img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.popular-category:hover img {
  transform: scale(1.05);
}

.popular-category span {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.popular-category:hover span {
  color: var(--accent);
}

.popular-category small {
  display: block;
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  color: var(--text-soft);
  margin-top: 0.25rem;
}

/* ── Popular categories mobile slider ── */
@media (max-width: 767px) {
  .popular-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding: 0 0.25rem 1.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .popular-grid::-webkit-scrollbar {
    display: none;
  }

  .popular-category {
    flex: 0 0 calc(50% - 0.5rem);
    scroll-snap-align: start;
    min-width: 0;
  }
}

/* ========================================================================
   CART DROPDOWN STYLES
   ======================================================================== */

.cart-toggle-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 8px;
}

.cart-toggle-container:hover {
  background: var(--bg);
}

.cart-toggle-container i {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: white;
  font-size: 0.55rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(183, 140, 90, 0.3);
}

.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 20px;
  width: 380px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  z-index: 1000;
  display: none;
  overflow: hidden;
  margin-top: 10px;
}

.cart-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.cart-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.cart-dropdown-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.cart-item-count {
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
}

.cart-dropdown-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.cart-dropdown-item:hover {
  background: var(--bg);
}

.cart-item-image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.cart-item-quantity {
  color: var(--text-soft);
}

.cart-item-price {
  font-weight: 600;
  color: var(--accent);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.cart-dropdown-item:hover .cart-item-remove {
  opacity: 1;
}

.cart-item-remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

.cart-dropdown-more {
  text-align: center;
  padding: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  border-top: 1px dashed var(--border-light);
}

.cart-dropdown-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

.cart-dropdown-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-total-amount {
  font-size: 1.1rem;
  color: var(--accent);
}

.cart-dropdown-actions {
  display: flex;
  gap: 10px;
}

.cart-dropdown-actions .btn-outline,
.cart-dropdown-actions .btn-primary {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
  text-align: center;
}

.cart-dropdown-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
}

.cart-dropdown-empty i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.cart-dropdown-empty p {
  margin-bottom: 20px;
}

/* Mobile cart */
@media (max-width: 768px) {
  .cart-dropdown {
    width: 320px;
    right: 10px;
  }

  .cart-dropdown-items {
    max-height: 250px;
  }

  .cart-item-remove {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .cart-dropdown {
    width: 90%;
    right: 5%;
  }

  .cart-dropdown-actions {
    flex-direction: column;
  }
}
/* Add to your existing header styles */
.main-header {
  position: relative;
  z-index: 100;
}

.header-flex {
  position: relative;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
} /* Force proper positioning */
.cart-toggle-container {
  position: relative !important;
}

.cart-dropdown {
  position: absolute !important;
  top: 120px !important; /* Adjust based on your cart icon height */
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}

/* For the cart page specifically, you might need this in cart.css */
.cart-page .cart-dropdown {
  top: 60px !important;
}
/* ========================================================================
   09. TOP PROVIDERS STRIP - Enhanced Horizontal Scroll
   ======================================================================== */
.top-providers-strip {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: white;
  overflow: hidden;
  position: relative;
}

.top-providers-strip::before,
.top-providers-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}

.top-providers-strip::before {
  left: 0;
  background: linear-gradient(90deg, white, transparent);
}

.top-providers-strip::after {
  right: 0;
  background: linear-gradient(-90deg, white, transparent);
}

.providers-strip {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2rem);
  overflow-x: auto;
  padding: 0 var(--container-padding) clamp(1rem, 3vw, 1.5rem);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 var(--container-padding);
  scroll-behavior: smooth;
}

.providers-strip::-webkit-scrollbar {
  height: 4px;
}

.providers-strip::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.providers-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.providers-strip::-webkit-scrollbar-thumb:hover {
  background: #9a7a4e;
}

.providers-strip-item {
  flex: 0 0 min(200px, 60vw);
  background: white;
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.providers-strip-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.providers-strip-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.providers-strip-item:hover::before {
  transform: scaleX(1);
}

@media (min-width: 768px) {
  .providers-strip-item {
    flex: 0 0 240px;
  }
}

.provider-avatar-wrapper {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 15px 30px -8px rgba(183, 140, 90, 0.3);
  background: var(--accent-gradient);
  border: 3px solid white;
}

.provider-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.providers-strip-item:hover .provider-avatar {
  transform: scale(1.1);
}

.provider-avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 600;
  border-radius: 50%;
}

.provider-name {
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.providers-strip-item:hover .provider-name {
  color: var(--accent);
}

.provider-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.65rem, 2.2vw, 0.8rem);
}

.provider-rating {
  color: #ffb800;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.provider-jobs {
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.provider-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 40px;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  border: 2px solid white;
  box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.1);
}

.provider-badge.bronze {
  background: linear-gradient(135deg, #e6ccb2 0%, #d4b594 100%);
  color: #7b4e2d;
}

.provider-badge.silver {
  background: linear-gradient(135deg, #e3e4e8 0%, #c0c4cc 100%);
  color: #3a3d44;
}

.provider-badge.gold {
  background: linear-gradient(135deg, #f7e3b4 0%, #e5c990 100%);
  color: #7d5f2a;
}

.provider-badge.platinum {
  background: linear-gradient(135deg, #e0e7ff 0%, #b8c7ff 100%);
  color: #1e3a8a;
}

.provider-listings-count {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  color: var(--text-soft);
  margin-top: 0.25rem;
}

.provider-reviews-count {
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* ========================================================================
   10. PAGINATION - Polished
   ======================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 var(--container-padding);
  margin-top: 2rem;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: white;
  color: var(--text-dark);
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0 0.5rem;
  font-weight: 500;
  box-shadow: var(--card-shadow);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

.page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.4);
}

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

.page-btn i {
  font-size: 0.8rem;
}

/* ========================================================================
   11. PRODUCT MODAL - Premium Experience
   ======================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: white;
  border-radius: 32px;
  max-width: min(1200px, 95vw);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
  animation: modalZoom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10;
  border: 2px solid var(--border-light);
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg) scale(1.1);
  border-color: var(--accent);
}

.modal-content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.product-modal-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .product-modal-enhanced {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Modal Gallery - Enhanced */
.modal-gallery-section {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.gallery-main-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: white;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-main-container:hover .gallery-main-image {
  transform: scale(1.02);
}

.product-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  font-size: clamp(0.7rem, 2.2vw, 0.8rem);
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  z-index: 3;
  /* Prevent overlap with wishlist button on small screens */
  max-width: calc(100% - 72px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-stock-badge.out {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  font-size: clamp(0.7rem, 2.2vw, 0.8rem);
  font-weight: 600;
  box-shadow: 0 5px 15px -5px rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  z-index: 3;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(60px, 100%), 1fr));
  gap: 0.75rem;
}

.thumbnail-item {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
  box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.thumbnail-item.active {
  border-color: var(--accent);
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Info Section - Enhanced */
.modal-info-section {
  padding: clamp(0.5rem, 2vw, 1rem);
  overflow-y: auto;
  max-height: 80vh;
}

@media (min-width: 768px) {
  .modal-info-section {
    max-height: 90vh;
  }
}

.product-header {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  position: relative;
}

.product-header::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.product-price-large {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
  position: relative;
}

/* Stock Status Card - Enhanced */
.stock-status-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border-left: 5px solid;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
}

.stock-status-card.in-stock {
  border-left-color: #10b981;
}

.stock-status-card.low-stock {
  border-left-color: #f59e0b;
}

.stock-status-card.out-of-stock {
  border-left-color: #ef4444;
}

.stock-status-card i {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.stock-status-card.in-stock i {
  color: #10b981;
}

.stock-status-card.low-stock i {
  color: #f59e0b;
}

.stock-status-card.out-of-stock i {
  color: #ef4444;
}

.stock-details {
  flex: 1;
  min-width: 120px;
}

.stock-label {
  display: block;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.stock-value {
  display: block;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-light);
  color: var(--text-soft);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.delivery-info i {
  color: var(--accent);
  font-size: 1rem;
}

/* Provider Card - Enhanced */
.provider-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
  border-radius: 20px;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.provider-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.provider-card:hover {
  background: white;
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--card-shadow-hover);
}

.provider-card:hover::before {
  transform: scaleX(1);
}

.provider-avatar-large {
  width: clamp(50px, 12vw, 70px);
  height: clamp(50px, 12vw, 70px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-gradient);
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 10px 20px -5px rgba(183, 140, 90, 0.3);
}

.provider-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.provider-card:hover .provider-avatar-large img {
  transform: scale(1.1);
}

.provider-avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 600;
}

.provider-details {
  flex: 1;
  min-width: 0;
}

.provider-name {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.provider-card:hover .provider-name {
  color: var(--accent);
}

.provider-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-soft);
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  flex-wrap: wrap;
}

.provider-meta i {
  color: var(--accent);
  margin-right: 0.2rem;
}

.provider-card .fa-chevron-right {
  color: var(--accent);
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  opacity: 0.5;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1);
}

.provider-card:hover .fa-chevron-right {
  opacity: 1;
  transform: translateX(6px);
  background: var(--accent);
  color: white;
}

/* Sections */
.section-title {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.description-section,
.specs-section,
.order-section {
  margin-bottom: 2rem;
}

.product-description {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  word-break: break-word;
  background: var(--bg);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.05);
}

.spec-label {
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Order Form - Enhanced */
.order-form-enhanced {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.quantity-control {
  margin-bottom: 2rem;
}

.quantity-control label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-dark);
}

.quantity-selector-enhanced {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.quantity-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: 16px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
}

.quantity-btn:hover:not(:disabled) {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(183, 140, 90, 0.4);
}

.quantity-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f5f5f5;
}

.quantity-input {
  width: 80px;
  height: 48px;
  text-align: center;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  box-shadow: var(--card-shadow);
}

.quantity-input:focus {
  outline: none;
  border-color: var(--accent);
}

.stock-remaining {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.btn-large {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  min-height: 56px;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-large i {
  margin-right: 0.5rem;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(183, 140, 90, 0.4);
}

/* Out of Stock Section */
.out-of-stock-section {
  text-align: center;
  padding: 2rem 0;
}

.out-of-stock-message {
  max-width: 350px;
  margin: 0 auto;
}

.out-of-stock-message i {
  font-size: 3.5rem;
  color: #ef4444;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.out-of-stock-message h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.out-of-stock-message p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========================================================================
   12. LOADING STATES & SKELETONS
   ======================================================================== */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  min-height: 200px;
  border-radius: 24px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Modal Loading */
.modal-loading {
  text-align: center;
  padding: 3rem;
}

.modal-loading .loading-spinner {
  margin: 0 auto 1rem;
}

.modal-loading p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ========================================================================
   13. EMPTY STATES - Beautiful
   ======================================================================== */
.empty-state-enhanced {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.empty-state-enhanced i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: 1.5rem;
}

.empty-state-enhanced h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

.empty-state-enhanced p {
  color: var(--text-soft);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

.empty-state-enhanced .btn-primary {
  min-width: 200px;
  min-height: 48px;
  font-size: 0.95rem;
}

/* Error State */
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
  border: 1px solid #ef4444;
}

.error-state i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-state h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.error-state p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

/* ========================================================================
   14. TOAST NOTIFICATIONS
   ======================================================================== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(350px, 90vw);
  width: 100%;
}

@media (max-width: 480px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    max-width: 100%;
  }
}

.toast {
  background: white;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-left: 5px solid;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.info {
  border-left-color: var(--accent);
}

.toast-icon {
  flex-shrink: 0;
}

.toast i {
  font-size: 1.2rem;
}

.toast.success i {
  color: #10b981;
}

.toast.error i {
  color: #ef4444;
}

.toast.info i {
  color: var(--accent);
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-dark);
  word-break: break-word;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-soft);
  flex-shrink: 0;
  padding: 0 0.25rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.toast-close:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ========================================================================
   15. RESPONSIVE BREAKPOINTS - Fine-tuned for all devices
   ======================================================================== */

/* Extra Small Devices (320px - 359px) */
@media (max-width: 359px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .price-range .price-inputs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .price-inputs span {
    display: none;
  }

  .category-circle {
    min-width: 55px;
  }

  .circle-image {
    width: 45px;
    height: 45px;
  }

  .product-title {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .active-filters {
    justify-content: center;
  }

  .providers-strip-item {
    flex: 0 0 150px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .page-btn {
    min-width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }
}

/* Small Devices (360px - 389px) */
@media (min-width: 360px) and (max-width: 389px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-range .price-inputs {
    flex-direction: row;
  }

  .category-circle {
    min-width: 60px;
  }

  .circle-image {
    width: 50px;
    height: 50px;
  }

  .product-title {
    font-size: 0.7rem;
  }

  .product-price {
    font-size: 0.75rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }
}

/* Medium Small Devices (390px - 413px) */
@media (min-width: 390px) and (max-width: 413px) {
  .products-grid {
    gap: 0.75rem;
  }

  .circle-image {
    width: 52px;
    height: 52px;
  }

  .product-title {
    font-size: 0.72rem;
  }

  .product-price {
    font-size: 0.8rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

/* Small Tablets (414px - 479px) */
@media (min-width: 414px) and (max-width: 479px) {
  .products-grid {
    gap: 1rem;
  }

  .circle-image {
    width: 55px;
    height: 55px;
  }

  .product-title {
    font-size: 0.75rem;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }
}

/* Large Phones (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
  .products-grid {
    gap: 1.25rem;
  }

  .circle-image {
    width: 60px;
    height: 60px;
  }

  .product-title {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .modal-title {
    font-size: 1.7rem;
  }

  .providers-strip-item {
    flex: 0 0 180px;
  }
}

/* Tablets (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .circle-image {
    width: 65px;
    height: 65px;
  }

  .product-title {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-gallery-section,
  .modal-info-section {
    padding: 1.25rem;
  }
}

/* Large Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .circle-image {
    width: 70px;
    height: 70px;
  }

  .product-title {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .modal-title {
    font-size: 2rem;
  }
}

/* Small Desktops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .circle-image {
    width: 75px;
    height: 75px;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .modal-title {
    font-size: 2.2rem;
  }
}

/* Large Desktops (1280px+) */
@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }

  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .circle-image {
    width: 80px;
    height: 80px;
  }

  .product-title {
    font-size: 1rem;
  }

  .modal-title {
    font-size: 2.4rem;
  }
}

/* Extra Large Desktops (1600px+) */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }

  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .filters-section {
    position: relative;
    top: 0;
  }

  .modal-container {
    max-height: 95vh;
  }

  .modal-info-section {
    max-height: 85vh;
  }

  .modal-gallery-section {
    max-height: 85vh;
    overflow-y: auto;
  }

  .providers-strip-item {
    flex: 0 0 180px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .circle-image,
  .provider-avatar,
  .product-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .filters-section,
  .category-circles-section,
  .top-providers-strip,
  .pagination,
  .modal-close,
  .order-section,
  .toast-container {
    display: none !important;
  }

  .modal-overlay {
    position: relative;
    background: white;
    padding: 0;
  }

  .modal-container {
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .product-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .products-grid {
    gap: 1rem;
  }

  .popular-category,
  .providers-strip-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
/* ========================================================================
   WISHLIST BUTTON STYLES - FONT AWESOME 6
   ======================================================================== */

.wishlist-btn {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  color: #2e2a28 !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
}

/* Inactive state - black */
.wishlist-btn i,
.wishlist-btn .far,
.wishlist-btn .fas {
  color: #2e2a28 !important;
}

.wishlist-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.wishlist-btn:hover i,
.wishlist-btn:hover .far,
.wishlist-btn:hover .fas {
  color: #ef4444 !important;
}

/* Active state - red */
.wishlist-btn.active {
  color: #ef4444 !important;
  animation: heartPop 0.3s ease !important;
}

.wishlist-btn.active i,
.wishlist-btn.active .fas {
  color: #ef4444 !important;
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* ========================================================================
   03. ADVANCED FILTERS - Premium Design with Glassmorphism
   ======================================================================== */
.filters-section {
  padding: clamp(1rem, 3vw, 2rem) 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: static;
  top: 70px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .filters-section {
    top: 60px;
    padding: clamp(0.75rem, 2vw, 1rem) 0;
  }
}

.filters-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* Main Search - Premium */
.filter-row.main-search {
  width: 100%;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-wrapper-large {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 60px;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 56px;
  box-shadow: var(--card-shadow);
}

.search-wrapper-large:focus-within {
  border-color: var(--accent);
  box-shadow: 0 10px 25px -8px rgba(183, 140, 90, 0.2);
  transform: scale(1.01);
}

.search-wrapper-large i {
  color: var(--accent);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-right: clamp(0.75rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.search-wrapper-large:focus-within i {
  transform: scale(1.1);
}

.search-wrapper-large input {
  flex: 1;
  border: none;
  padding: clamp(0.75rem, 2vw, 1.25rem) 0;
  font-size: clamp(0.9rem, 3vw, 1rem);
  background: transparent;
  outline: none;
  min-height: 48px;
  width: 100%;
}

.search-wrapper-large input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.search-wrapper-large input:focus::placeholder {
  opacity: 0.3;
}

/* Filter Grid - Responsive & Beautiful */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  animation: fadeIn 0.5s ease 0.1s both;
}

/* Desktop layout - 5 columns to accommodate all filters */
@media (min-width: 1024px) {
  .filter-grid {
    grid-template-columns: 1.5fr 1.5fr 2fr 1fr 1fr;
  }

  /* Ensure proper sizing for each filter type */
  .filter-group.country-filter {
    min-width: 0;
  }

  .filter-group.city-filter {
    min-width: 0;
  }

  .filter-group.price-range {
    min-width: 0;
    grid-column: auto; /* Override the span 2 from mobile */
  }

  .filter-group.sort-filter {
    min-width: 0;
  }

  .filter-group.category-filter {
    min-width: 0;
  }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-range {
    grid-column: span 2;
  }
}

/* Mobile layout */
@media (max-width: 767px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-range {
    grid-column: span 2;
  }

  .filter-group.sort-filter,
  .filter-group.category-filter {
    grid-column: span 1;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .price-range {
    grid-column: auto;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1vw, 0.5rem);
  min-width: 0;
  position: relative;
}

.filter-group label {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0.25rem;
}

.filter-group label i {
  color: var(--accent);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  flex-shrink: 0;
}

/* Filter Select - Enhanced Dropdowns */
.filter-select {
  width: 100%;
  padding: clamp(0.75rem, 2.5vw, 1rem) clamp(2rem, 4vw, 2.5rem)
    clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  cursor: pointer;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  box-shadow: var(--card-shadow);
}

.filter-select:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px -10px rgba(183, 140, 90, 0.15);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.1),
    0 12px 25px -10px rgba(183, 140, 90, 0.2);
  transform: translateY(-1px);
}

.filter-select:disabled {
  background-color: #f9f9f9;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: var(--border-light);
}

/* Price Range - Special Treatment */
.price-range .price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-inputs input {
  flex: 1;
  min-width: 0;
  padding: clamp(0.75rem, 2.5vw, 1rem);
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  min-height: 48px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: var(--card-shadow);
}

.price-inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.price-inputs input::placeholder {
  color: var(--text-soft);
  opacity: 0.5;
}

.price-inputs span {
  color: var(--accent);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 500;
  flex-shrink: 0;
}

/* Stock Filter - Beautiful Checkbox */
.stock-filter-row {
  display: flex;
  justify-content: flex-start;
  padding: clamp(0.75rem, 2vw, 1rem) 0;
  border-top: 2px solid var(--border-light);
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  animation: fadeIn 0.5s ease 0.2s both;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--text-dark);
  min-height: 48px;
  padding: 0.25rem 0;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  color: var(--accent);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--accent);
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 2px solid var(--border-light);
  animation: fadeIn 0.5s ease 0.3s both;
}

#clearFiltersBtn {
  min-width: min(160px, 100%);
  min-height: 48px;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  padding: 0 clamp(1.5rem, 3vw, 2rem);
  flex-shrink: 0;
  border-radius: 40px;
  background: white;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

#clearFiltersBtn:hover {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.2);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  min-width: min(200px, 100%);
}

.active-filter-tag {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border: 2px solid var(--accent-light);
  border-radius: 40px;
  padding: 0.5rem 1.25rem 0.5rem 1.5rem;
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: 0 4px 10px -5px rgba(183, 140, 90, 0.2);
  animation: tagPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes tagPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.active-filter-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.active-filter-tag i {
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0.25rem;
  border-radius: 50%;
}

.active-filter-tag i:hover {
  color: #dc2626;
  transform: scale(1.2);
  background: rgba(220, 38, 38, 0.1);
}
/* ========================================================================
   04. CATEGORY CIRCLES - Redesigned with Full Text Visibility
   ======================================================================== */
.category-circles-section {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light, #ede8e0);
  overflow: hidden;
  position: relative;
}

.category-circles-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-light),
    transparent
  );
}

.category-circles {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  padding: 0 var(--container-padding) clamp(0.75rem, 2vw, 1.25rem);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border-light);
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  scroll-padding: 0 var(--container-padding);
  scroll-behavior: smooth;
}

.category-circles::-webkit-scrollbar {
  height: 4px;
}

.category-circles::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.category-circles::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.category-circles::-webkit-scrollbar-thumb:hover {
  background: #9a7a4e;
}

.category-circle {
  flex: 0 0 calc((100% - (9 * var(--category-gap))) / 10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: 0;
  max-width: none;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.category-circle:hover {
  transform: translateY(-5px);
}

.category-circle:hover .circle-image {
  box-shadow: 0 15px 30px -8px rgba(183, 140, 90, 0.4);
}

.category-circle:active {
  transform: translateY(-2px);
}

.circle-image {
  width: clamp(70px, 15vw, 90px); /* Increased from 55-80px to 70-90px */
  height: clamp(70px, 15vw, 90px); /* Increased from 55-80px to 70-90px */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  aspect-ratio: 1/1;
  background: var(--bg);
}

.category-circle.active .circle-image {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.2),
    0 15px 30px -8px rgba(183, 140, 90, 0.4);
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 30px;
    opacity: 1;
  }
}

.category-circle span {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  color: var(--text-soft);
  text-align: center;
  max-width: 120px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  width: 100%;
  padding: 0 0.25rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
  transition: color 0.3s ease;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .category-circle {
    min-width: 90px; /* Ensure minimum width for text */
  }

  .circle-image {
    width: 80px; /* Fixed larger size for mobile */
    height: 80px;
  }

  .category-circle span {
    max-width: 90px; /* Match the circle width */
    font-size: 0.75rem;
    white-space: normal;
    line-height: 1.2;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .category-circle {
    min-width: 80px;
  }

  .circle-image {
    width: 70px; /* Still larger than original */
    height: 70px;
  }

  .category-circle span {
    max-width: 80px;
    font-size: 0.7rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .category-circle {
    min-width: 70px;
  }

  .circle-image {
    width: 60px;
    height: 60px;
  }

  .category-circle span {
    max-width: 70px;
    font-size: 0.65rem;
  }
}

.category-circle.active span {
  color: var(--accent);
  font-weight: 600;
}
/* Filter Grid - Horizontal Scroll on Mobile */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  animation: fadeIn 0.5s ease 0.1s both;
}

/* Mobile - Horizontal Scroll Strip */
@media (max-width: 767px) {
  .filter-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 0 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--border-light);
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 var(--container-padding);
    scroll-behavior: smooth;
    white-space: nowrap;
    grid-template-columns: none; /* Reset grid */
  }

  .filter-grid::-webkit-scrollbar {
    height: 4px;
  }

  .filter-grid::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
  }

  .filter-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
  }

  .filter-grid::-webkit-scrollbar-thumb:hover {
    background: #9a7a4e;
  }

  .filter-group {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 200px;
  }

  .price-range {
    flex: 0 0 auto;
    min-width: 240px;
    max-width: 280px;
    grid-column: auto; /* Override any grid column */
  }

  .price-range .price-inputs {
    flex-wrap: nowrap;
  }

  .price-inputs input {
    min-width: 80px;
  }
}

/* Small mobile - adjust widths */
@media (max-width: 480px) {
  .filter-group {
    min-width: 140px;
  }

  .price-range {
    min-width: 220px;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .filter-group {
    min-width: 130px;
  }

  .price-range {
    min-width: 200px;
  }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-range {
    grid-column: span 2;
  }
}

/* Desktop layout - 5 columns */
@media (min-width: 1024px) {
  .filter-grid {
    grid-template-columns: 1.5fr 1.5fr 2fr 1fr 1fr;
  }

  .filter-group.country-filter {
    min-width: 0;
  }

  .filter-group.city-filter {
    min-width: 0;
  }

  .filter-group.price-range {
    min-width: 0;
    grid-column: auto;
  }

  .filter-group.sort-filter {
    min-width: 0;
  }

  .filter-group.category-filter {
    min-width: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ========================================================================
   11. PRODUCT MODAL - Premium Experience
   ======================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: white;
  border-radius: 32px;
  max-width: min(1200px, 95vw);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
  animation: modalZoom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Mobile - Smaller modal */
@media (max-width: 767px) {
  .modal-container {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 24px;
  }

  .product-modal-enhanced {
    grid-template-columns: 1fr !important; /* Force single column */
    gap: 0;
  }

  .modal-gallery-section {
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .modal-info-section {
    padding: 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
  }

  .gallery-main-container {
    aspect-ratio: 1/1;
    max-height: 200px;
    width: auto;
    margin: 0 auto 1rem auto;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(min(40px, 100%), 1fr));
    gap: 0.5rem;
  }

  .thumbnail-item {
    width: 40px;
    height: 40px;
  }

  .product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .product-price-large {
    font-size: 1.5rem;
  }

  .stock-status-card {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .stock-status-card i {
    font-size: 1.2rem;
  }

  .stock-value {
    font-size: 0.9rem;
  }

  .delivery-info {
    padding-left: 1rem;
    font-size: 0.8rem;
  }

  .provider-card {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .provider-avatar-large {
    width: 45px;
    height: 45px;
  }

  .provider-name {
    font-size: 0.9rem;
  }

  .provider-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .product-description {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
  }

  .specs-grid {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .spec-item {
    padding: 0.5rem;
  }

  .spec-label {
    font-size: 0.55rem;
  }

  .spec-value {
    font-size: 0.7rem;
  }

  .order-form-enhanced {
    padding: 1rem;
  }

  .quantity-control {
    margin-bottom: 1rem;
  }

  .quantity-selector-enhanced {
    gap: 0.5rem;
  }

  .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .quantity-input {
    width: 60px;
    height: 40px;
    font-size: 0.9rem;
  }

  .stock-remaining {
    font-size: 0.7rem;
  }

  .btn-large {
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .out-of-stock-message i {
    font-size: 2.5rem;
  }

  .out-of-stock-message h3 {
    font-size: 1.1rem;
  }

  .out-of-stock-message p {
    font-size: 0.8rem;
  }

  /* Wishlist button adjustment */
  .wishlist-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
  }
}

/* Duplicate modal breakpoint blocks removed — consolidated into bottom-sheet sections above */

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* =========================================================
   MOBILE BOTTOM-SHEET MODAL — ≤ 767px
   ========================================================= */
@media (max-width: 767px) {
  /* Convert overlay to bottom-sheet container */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  /* Bottom-sheet: full-width, slides up from bottom */
  .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh;
    border-radius: 28px 28px 0 0 !important;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    /* Reset the centered-card zoom animation */
  }

  @keyframes modalSlideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Drag handle indicator */
  .modal-container::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0.75rem auto 0;
    flex-shrink: 0;
  }

  /* Close button inside the sheet */
  .modal-close {
    top: 1rem !important;
    right: 1rem !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.4rem !important;
  }

  /* Reduce modal padding on small screens */
  .modal-content {
    padding: 1.25rem !important;
  }

  .product-modal-enhanced {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .modal-gallery-section {
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  /* Image fills available width nicely */
  .gallery-main-container {
    aspect-ratio: 4/3;
    max-height: none;
    width: 100%;
    margin: 0 auto 1rem auto;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(min(50px, 100%), 1fr));
    gap: 0.5rem;
  }

  .thumbnail-item {
    width: 50px;
    height: 50px;
  }

  /* Info section: no inner scroll — the container scrolls */
  .modal-info-section {
    padding: 1.25rem;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .product-price-large {
    font-size: 1.5rem;
  }

  .stock-status-card {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .stock-status-card i {
    font-size: 1.2rem;
  }

  .stock-value {
    font-size: 0.9rem;
  }

  .delivery-info {
    padding-left: 1rem;
    font-size: 0.8rem;
  }

  .provider-card {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .provider-avatar-large {
    width: 45px;
    height: 45px;
  }

  .provider-name {
    font-size: 0.9rem;
  }

  .provider-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .product-description {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    max-height: 80px;
    overflow-y: auto;
  }

  .specs-grid {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .spec-item {
    padding: 0.5rem;
  }

  .spec-label {
    font-size: 0.55rem;
  }

  .spec-value {
    font-size: 0.7rem;
  }

  .order-form-enhanced {
    padding: 1rem;
  }

  .quantity-control {
    margin-bottom: 1rem;
  }

  .quantity-selector-enhanced {
    gap: 0.5rem;
  }

  .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .quantity-input {
    width: 60px;
    height: 40px;
    font-size: 0.9rem;
  }

  .stock-remaining {
    font-size: 0.7rem;
  }

  .btn-large {
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .out-of-stock-message i {
    font-size: 2.5rem;
  }

  .out-of-stock-message h3 {
    font-size: 1.1rem;
  }

  .out-of-stock-message p {
    font-size: 0.8rem;
  }

  /* Wishlist button adjustment */
  .wishlist-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
  }
}

/* Small mobile devices ≤ 480px */
@media (max-width: 480px) {
  .modal-container {
    max-height: 93vh;
  }

  /* Image keeps 4:3 ratio — no artificial max-height cap */
  .gallery-main-container {
    aspect-ratio: 4/3;
    max-height: none;
  }

  .modal-info-section {
    padding: 1rem;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-price-large {
    font-size: 1.3rem;
  }

  .provider-avatar-large {
    width: 40px;
    height: 40px;
  }

  .provider-name {
    font-size: 0.8rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .quantity-selector-enhanced {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-description {
    max-height: 70px;
  }
}

/* Extra small devices ≤ 360px */
@media (max-width: 360px) {
  .modal-container {
    max-height: 94vh;
    /* Keep bottom-sheet top radius from parent */
    border-radius: 24px 24px 0 0 !important;
  }

  .gallery-main-container {
    aspect-ratio: 4/3;
    max-height: none;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(min(40px, 100%), 1fr));
  }

  .thumbnail-item {
    width: 40px;
    height: 40px;
  }

  .modal-info-section {
    padding: 0.75rem;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price-large {
    font-size: 1.1rem;
  }

  .provider-card {
    padding: 0.5rem 0.75rem;
  }

  .provider-avatar-large {
    width: 35px;
    height: 35px;
  }

  .quantity-btn {
    width: 35px;
    height: 35px;
  }

  .quantity-input {
    width: 50px;
    height: 35px;
  }

  .btn-large {
    padding: 0.6rem;
    min-height: 40px;
    font-size: 0.8rem;
  }

  .wishlist-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }
}
/* ========================================================================
   05. PRODUCTS GRID - Fluid & Beautiful
   ======================================================================== */
.products-section {
  padding: clamp(0.75rem, 2vw, 1.25rem) 0 clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  position: relative;
  min-height: 50vh;
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0 var(--container-padding);
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeIn 0.5s ease;
}

.grid-header .section-title-serif {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.grid-header .section-title-serif::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.results-count {
  color: var(--text-primary);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  background: white;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  border: 2px solid var(--border-light);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  padding: 0 var(--container-padding);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Mobile - 2 cards per row with equal gaps on all sides */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 0.5rem; /* Gap between cards - 8px */
    padding: 0 0.5rem; /* Side gaps - 8px on left and right */
    margin: 0;
    width: 100%;
  }

  .product-card {
    width: 100%;
    margin: 0;
    border-radius: 12px;
  }

  .product-info {
    padding: 0.75rem;
  }

  .product-provider-info {
    gap: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .provider-mini-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .product-provider {
    font-size: 0.7rem;
  }

  .product-title {
    font-size: 0.85rem;
    margin: 0.1rem 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-location {
    font-size: 0.65rem;
    gap: 0.2rem;
    margin: 0.1rem 0;
  }

  .product-location i {
    font-size: 0.55rem;
  }

  .product-price {
    font-size: 0.8rem;
    padding-top: 0.35rem;
  }

  .product-stock {
    font-size: 0.6rem;
    gap: 0.3rem;
    margin-top: 0.2rem;
  }

  .product-stock i {
    font-size: 0.55rem;
  }

  .product-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.55rem;
  }
}

/* Small mobile devices - smaller equal gaps */
@media (max-width: 480px) {
  .products-grid {
    gap: 0.4rem; /* 6-7px gaps between cards */
    padding: 0 0.4rem; /* 6-7px side gaps */
  }

  .product-info {
    padding: 0.6rem;
  }

  .product-title {
    font-size: 0.8rem;
  }

  .product-provider {
    font-size: 0.65rem;
  }

  .product-location {
    font-size: 0.6rem;
  }

  .product-price {
    font-size: 0.75rem;
  }

  .product-stock {
    font-size: 0.55rem;
  }

  .provider-mini-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
}

/* Extra small devices - minimal equal gaps */
@media (max-width: 360px) {
  .products-grid {
    gap: 0.3rem; /* 5px gaps between cards */
    padding: 0 0.3rem; /* 5px side gaps */
  }

  .product-info {
    padding: 0.5rem;
  }

  .product-title {
    font-size: 0.75rem;
  }

  .product-provider {
    font-size: 0.6rem;
  }

  .product-location {
    font-size: 0.55rem;
  }

  .product-price {
    font-size: 0.7rem;
    padding-top: 0.3rem;
  }

  .product-stock {
    font-size: 0.5rem;
  }

  .provider-mini-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }

  .product-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.5rem;
  }
}

/* Smart breakpoints for optimal card display */
@media (min-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
  }
}
/* ========================================================================
   04. CATEGORY CIRCLES - Redesigned with Full Text Visibility
   ======================================================================== */
.category-circles-section {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light, #ede8e0);
  overflow: hidden;
  position: relative;
}

.category-circles {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  padding: 0 var(--container-padding) clamp(0.75rem, 2vw, 1.25rem);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent; /* Brown thumb, transparent track */
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  scroll-padding: 0 var(--container-padding);
  scroll-behavior: smooth;
}

/* Webkit scrollbar styles */
.category-circles::-webkit-scrollbar {
  height: 3px; /* Thinner */
}

.category-circles::-webkit-scrollbar-track {
  background: transparent; /* Remove gray track */
}

.category-circles::-webkit-scrollbar-thumb {
  background: var(--accent); /* Brown thumb */
  border-radius: 3px;
}

.category-circles::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

.category-circle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: auto;
  max-width: none;
  padding: 0.5rem 0.25rem;
  position: relative;
}
/* ========================================================================
   11. PRODUCT MODAL - Premium Experience with Unified Scroll
   ======================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: white;
  border-radius: 32px;
  max-width: min(1200px, 95vw);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto; /* Single scroll on the modal container */
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
  animation: modalZoom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-overflow-scrolling: touch;
}

.product-modal-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .product-modal-enhanced {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Remove individual scrolling */
.modal-info-section {
  padding: clamp(0.5rem, 2vw, 1rem);
  overflow-y: visible; /* Changed from auto */
  max-height: none; /* Removed max-height */
}

@media (min-width: 768px) {
  .modal-info-section {
    overflow-y: visible;
    max-height: none;
  }
}

/* Mobile bottom-sheet reinforcement (duplicate removed — consolidated above) */
@media (max-width: 767px) {
  /* Re-assert bottom-sheet rules here in case earlier duplicates overrode them */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 28px 28px 0 0 !important;
  }

  .gallery-main-container {
    aspect-ratio: 4/3;
    max-height: none;
    width: 100%;
  }

  .modal-info-section {
    max-height: none !important;
    overflow-y: visible !important;
  }
}
/* ========================================================================
   FILTER TOGGLE - Centered, Disappears When Clicked (Search Always Visible)
   ======================================================================== */
.filters-section .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

/* Search Bar - Always visible */
.filter-row.main-search {
  width: 100%;
  animation: none;
}

.search-wrapper-large {
  min-height: 56px;
  border-radius: 60px;
}

/* Filter toggle wrapper */
.filter-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  position: relative;
  width: 100%;
}

/* Centered filter toggle */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 40px;
  background: transparent;
  white-space: nowrap;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.filter-toggle:hover {
  background: var(--bg);
  border-color: var(--accent-light);
}

.filter-toggle-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-toggle-icon {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Hidden state - when filters are visible */
.filter-toggle.hidden {
  display: none;
}

/* All filters container */
.all-filters-container {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.all-filters-container.visible {
  display: block;
}

/* Horizontal scrollable filters strip */
.filters-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border-light);
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  align-items: center;
}

.filters-strip::-webkit-scrollbar {
  height: 4px;
}

.filters-strip::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.filters-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* Filter grid strip - horizontal layout */
.filter-grid-strip {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.filter-grid-strip .filter-group {
  flex: 0 0 auto;
  min-width: 130px;
}

/* Consistent select styling for all dropdowns */
.filter-select-strip,
.filter-group select,
#countryFilter,
#cityFilter,
#categoryFilter,
#sortFilter {
  width: 130px !important; /* Fixed width for all selects */
  padding: 0.6rem 1.8rem 0.6rem 1rem !important;
  border: 2px solid var(--border-light) !important;
  border-radius: 40px !important;
  background: white !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  min-height: 44px !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px !important;
  transition: all 0.2s ease !important;
  color: var(--text-dark) !important;
  box-sizing: border-box;
}

.filter-select-strip:hover,
.filter-group select:hover {
  border-color: var(--accent-light) !important;
}

.filter-select-strip:focus,
.filter-group select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
}

.filter-select-strip option,
.filter-group select option {
  color: var(--text-dark);
  background: white;
}

/* Price range strip - same size as selects */
.price-range-strip {
  flex: 0 0 auto;
  min-width: 200px;
}

.price-inputs-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
}

.price-inputs-strip input {
  width: 70px;
  height: 44px;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-dark);
  box-sizing: border-box;
}

.price-inputs-strip input:focus {
  outline: none;
  border-color: var(--accent);
}

.price-inputs-strip input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
  font-size: 0.8rem;
}

.price-inputs-strip span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  min-width: 12px;
  text-align: center;
}

/* Filter actions strip - same size as selects */
.filter-actions-strip {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 1rem;
  border-left: 2px solid var(--border-light);
  height: 44px;
}

.checkbox-label-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap;
  height: 44px;
  padding: 0 0.25rem;
}

.checkbox-label-strip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  margin: 0;
}

.checkbox-label-strip span {
  font-size: 0.85rem;
  line-height: 1;
}

.btn-outline-strip {
  height: 44px;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  border-radius: 40px;
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.btn-outline-strip i {
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

.btn-outline-strip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-outline-strip:hover i {
  color: white;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 120px !important;
    padding: 0.5rem 1.5rem 0.5rem 0.8rem !important;
    font-size: 0.8rem !important;
    min-height: 42px !important;
  }

  .price-range-strip {
    min-width: 190px;
  }

  .price-inputs-strip input {
    width: 65px;
    height: 42px;
    font-size: 0.8rem;
  }

  .filter-actions-strip {
    height: 42px;
  }

  .checkbox-label-strip {
    height: 42px;
    font-size: 0.8rem;
  }

  .btn-outline-strip {
    height: 42px;
    padding: 0 1.25rem;
    font-size: 0.8rem;
    min-width: 85px;
  }
}

/* Mobile adjustments - with smaller gaps */
@media (max-width: 767px) {
  .filter-toggle {
    padding: 0.6rem 1.5rem;
    min-width: 150px;
  }

  .filter-toggle-text {
    font-size: 0.9rem;
  }

  .filters-strip {
    gap: 0.5rem; /* Reduced from 0.75rem to 0.5rem */
    padding: 0.25rem 0 0.75rem 0;
  }

  .filter-grid-strip {
    gap: 0.5rem; /* Reduced from 0.75rem to 0.5rem */
  }

  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 105px !important; /* Slightly smaller */
    padding: 0.45rem 1.2rem 0.45rem 0.6rem !important;
    font-size: 0.73rem !important;
    min-height: 38px !important;
    background-position: right 0.6rem center !important;
  }

  .price-range-strip {
    min-width: 165px; /* Slightly smaller */
  }

  .price-inputs-strip {
    gap: 0.25rem; /* Reduced from 0.35rem to 0.25rem */
    height: 38px;
  }

  .price-inputs-strip input {
    width: 55px;
    height: 38px;
    padding: 0.35rem 0.25rem;
    font-size: 0.73rem;
  }

  .price-inputs-strip input::placeholder {
    font-size: 0.68rem;
  }

  .filter-actions-strip {
    gap: 0.5rem; /* Reduced from 0.75rem to 0.5rem */
    padding-left: 0.5rem; /* Reduced from 0.75rem to 0.5rem */
    height: 38px;
  }

  .checkbox-label-strip {
    height: 38px;
    font-size: 0.73rem;
    gap: 0.3rem; /* Reduced from 0.4rem to 0.3rem */
    padding: 0 0.15rem;
  }

  .checkbox-label-strip input[type="checkbox"] {
    width: 15px;
    height: 15px;
  }

  .btn-outline-strip {
    height: 38px;
    padding: 0 0.8rem;
    font-size: 0.73rem;
    min-width: 70px;
  }

  .btn-outline-strip i {
    font-size: 0.68rem;
    margin-right: 0.25rem; /* Reduced from 0.3rem to 0.25rem */
  }
}

/* Small mobile - even smaller gaps */
@media (max-width: 480px) {
  .filter-toggle {
    padding: 0.5rem 1.25rem;
    min-width: 130px;
  }

  .filter-toggle-text {
    font-size: 0.8rem;
  }

  .filters-strip {
    gap: 0.4rem; /* Reduced from 0.6rem to 0.4rem */
  }

  .filter-grid-strip {
    gap: 0.4rem; /* Reduced from 0.6rem to 0.4rem */
  }

  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 95px !important;
    padding: 0.4rem 1.1rem 0.4rem 0.5rem !important;
    font-size: 0.68rem !important;
    min-height: 36px !important;
    background-position: right 0.5rem center !important;
  }

  .price-range-strip {
    min-width: 150px;
  }

  .price-inputs-strip {
    gap: 0.2rem; /* Reduced from 0.25rem to 0.2rem */
    height: 36px;
  }

  .price-inputs-strip input {
    width: 50px;
    height: 36px;
    padding: 0.3rem 0.2rem;
    font-size: 0.68rem;
  }

  .price-inputs-strip input::placeholder {
    font-size: 0.63rem;
  }

  .filter-actions-strip {
    gap: 0.4rem; /* Reduced from 0.6rem to 0.4rem */
    padding-left: 0.4rem; /* Reduced from 0.6rem to 0.4rem */
    height: 36px;
  }

  .checkbox-label-strip {
    height: 36px;
    font-size: 0.68rem;
    gap: 0.25rem; /* Reduced from 0.3rem to 0.25rem */
  }

  .checkbox-label-strip input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .btn-outline-strip {
    height: 36px;
    padding: 0 0.7rem;
    font-size: 0.68rem;
    min-width: 65px;
  }

  .btn-outline-strip i {
    font-size: 0.63rem;
    margin-right: 0.2rem; /* Reduced from 0.25rem to 0.2rem */
  }
}

/* Extra small devices - minimal gaps */
@media (max-width: 360px) {
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 90px !important;
    padding: 0.35rem 1rem 0.35rem 0.4rem !important;
    font-size: 0.63rem !important;
    min-height: 34px !important;
    background-position: right 0.45rem center !important;
    background-size: 12px !important;
  }

  .filters-strip {
    gap: 0.3rem; /* Minimal gap */
  }

  .filter-grid-strip {
    gap: 0.3rem; /* Minimal gap */
  }

  .price-range-strip {
    min-width: 140px;
  }

  .price-inputs-strip {
    gap: 0.15rem; /* Minimal gap */
    height: 34px;
  }

  .price-inputs-strip input {
    width: 45px;
    height: 34px;
    padding: 0.25rem 0.15rem;
    font-size: 0.63rem;
  }

  .price-inputs-strip span {
    font-size: 0.8rem;
    min-width: 8px;
  }

  .filter-actions-strip {
    gap: 0.3rem; /* Minimal gap */
    padding-left: 0.3rem; /* Minimal gap */
    height: 34px;
  }

  .checkbox-label-strip {
    height: 34px;
    font-size: 0.63rem;
    gap: 0.2rem;
  }

  .checkbox-label-strip input[type="checkbox"] {
    width: 13px;
    height: 13px;
  }

  .btn-outline-strip {
    height: 34px;
    padding: 0 0.5rem;
    font-size: 0.63rem;
    min-width: 60px;
  }

  .btn-outline-strip i {
    font-size: 0.6rem;
    margin-right: 0.15rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================================================================
   EXPANDABLE CATEGORIES - Premium Design with Subcategories Below
   ======================================================================== */

.category-circles-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: visible;
  position: relative;
}

.category-circles-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-light),
    transparent
  );
}

.category-circles-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-light),
    transparent
  );
}

.category-circles-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.category-circles {
  display: flex;
  gap: clamp(0.2rem, 0.8vw, 0.5rem);
  overflow-x: auto;
  padding: 1rem var(--container-padding) 1.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.category-circles::-webkit-scrollbar {
  display: none !important;
}

.category-circle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.45rem 0.4rem 0.6rem;
  border-radius: 14px;
  position: relative;
  width: clamp(62px, 7.5vw, 82px);
}

.category-circle:hover {
  background: rgba(183, 140, 90, 0.05);
}

.category-circle:active {
  transform: scale(0.96);
}

.category-circle.has-children {
  position: relative;
  cursor: pointer;
}

.circle-image {
  width: clamp(46px, 5.2vw, 60px);
  height: clamp(46px, 5.2vw, 60px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  outline: 3px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  aspect-ratio: 1 / 1;
  background: var(--bg, #f5f0e8);
}

.category-circle:hover .circle-image {
  border-color: rgba(183, 140, 90, 0.45);
  outline-color: rgba(183, 140, 90, 0.12);
  box-shadow: 0 6px 18px rgba(183, 140, 90, 0.2);
  transform: translateY(-2px);
}

.category-circle.active .circle-image {
  border-color: var(--accent, #b78c5a);
  outline-color: rgba(183, 140, 90, 0.2);
  box-shadow:
    0 0 0 1px rgba(183, 140, 90, 0.15),
    0 8px 20px rgba(183, 140, 90, 0.22);
  transform: translateY(-2px);
}

.category-circle span {
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  color: var(--text-soft, #888);
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  font-weight: 500;
  max-width: 88px;
  transition: color 0.2s ease;
}

.category-circle:hover span {
  color: var(--text-dark, #1f1f1f);
}

.category-circle.active span {
  color: var(--accent, #b78c5a);
  font-weight: 600;
}

/* Subcategories container - premium design below parent */
.subcategories-container {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  margin: 0.5rem 0 0 0;
  padding: 1.5rem var(--container-padding);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(183, 140, 90, 0.1);
  display: flex;
  gap: 2rem;
  animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  box-shadow:
    inset 0 4px 8px -4px rgba(0, 0, 0, 0.05),
    inset 0 -4px 8px -4px rgba(0, 0, 0, 0.05);
}

.subcategories-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-light),
    transparent
  );
}

.subcategories-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-light),
    transparent
  );
}

.subcategories-container::-webkit-scrollbar {
  height: 4px;
}

.subcategories-container::-webkit-scrollbar-track {
  background: rgba(183, 140, 90, 0.1);
  border-radius: 4px;
}

.subcategories-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.subcategories-container::-webkit-scrollbar-thumb:hover {
  background: #9a7a4e;
}

/* ── Subcategory items — vertical circle design ── */
.subcategory-item {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.22s ease;
  min-width: 80px;
  max-width: 110px;
  padding: 0.5rem 0.6rem 0.7rem;
  border-radius: 12px;
  position: relative;
  background: transparent;
  box-shadow: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.subcategory-item:hover {
  background: rgba(183, 140, 90, 0.06);
}

.subcategory-item:active {
  transform: scale(0.96);
}

.subcategory-item .circle-image {
  width: clamp(50px, 5.5vw, 62px);
  height: clamp(50px, 5.5vw, 62px);
  border: 2px solid transparent;
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: all 0.22s ease;
}

.subcategory-item:hover .circle-image {
  border-color: rgba(183, 140, 90, 0.4);
  outline-color: rgba(183, 140, 90, 0.12);
  box-shadow: 0 5px 14px rgba(183, 140, 90, 0.18);
  transform: translateY(-2px);
}

.subcategory-item.active .circle-image {
  border-color: var(--accent, #b78c5a);
  outline-color: rgba(183, 140, 90, 0.18);
  box-shadow:
    0 0 0 1px rgba(183, 140, 90, 0.15),
    0 6px 16px rgba(183, 140, 90, 0.2);
  transform: translateY(-2px);
}

.subcategory-item span {
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  color: var(--text-soft, #888);
  text-align: center;
  max-width: 100px;
  white-space: normal;
  line-height: 1.3;
  font-weight: 600;
  transition: color 0.2s ease;
}

.subcategory-item:hover span {
  color: var(--text-dark, #1f1f1f);
}

.subcategory-item.active span {
  color: var(--accent, #b78c5a);
  font-weight: 600;
}

/* Parent category expanded highlight */
.category-circle.expanded {
  background: rgba(183, 140, 90, 0.06);
  border-radius: 16px;
}

.category-circle.expanded .circle-image {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(183, 140, 90, 0.15),
    0 6px 18px rgba(183, 140, 90, 0.2);
}

.category-circle.expanded span {
  color: var(--accent);
  font-weight: 600;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .subcategory-item {
    min-width: 80px;
    padding: 0.5rem 0.35rem;
  }

  .subcategory-item .circle-image {
    width: 55px;
    height: 55px;
  }

  .subcategory-item span {
    font-size: 0.65rem;
    max-width: 95px;
  }

  .category-circle.has-children .subcategory-indicator {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
    bottom: 12px;
  }

  .subcategories-container {
    gap: 1.25rem;
    padding: 1.25rem var(--container-padding);
  }
}

@media (max-width: 480px) {
  .subcategory-item {
    min-width: 70px;
  }

  .subcategory-item .circle-image {
    width: 50px;
    height: 50px;
  }

  .subcategory-item span {
    font-size: 0.6rem;
    max-width: 85px;
  }

  .subcategories-container {
    gap: 1rem;
    padding: 1rem var(--container-padding);
  }

  .category-circles {
    gap: 1rem;
  }
}

/* Loading state for subcategories */
.subcategories-container.loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.subcategories-container.loading::after {
  content: "";
  width: 30px;
  height: 30px;
  margin-left: 10px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.category-circle.has-children {
  position: relative;
  cursor: pointer;
  padding-bottom: 25px; /* Add extra padding at bottom for the chevron */
}

.category-circle.has-children .subcategory-indicator {
  position: absolute;
  bottom: 0; /* Position at the bottom of the container */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--accent);
  background: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(183, 140, 90, 0.3);
  border: 2px solid white;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 5;
}

.category-circle.has-children:hover .subcategory-indicator {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 15px -3px rgba(183, 140, 90, 0.5);
}

.category-circle.has-children.expanded .subcategory-indicator {
  transform: translateX(-50%) rotate(180deg);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 6px 15px -3px rgba(183, 140, 90, 0.5);
}
@media (max-width: 768px) {
  .category-circle.has-children {
    padding-bottom: 22px;
  }

  .category-circle.has-children .subcategory-indicator {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .category-circle.has-children {
    padding-bottom: 20px;
  }

  .category-circle.has-children .subcategory-indicator {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }
}
.main-header {
  background: var(--bg);
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.main-header.sticky {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}
/* ========================================================================
   CART DROPDOWN - FORCE STICKY WITH HEADER
   ======================================================================== */

/* Cart toggle container */
.cart-toggle-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 1001 !important;
}

/* Cart dropdown - FORCE positioning relative to header */
.cart-dropdown {
  position: fixed !important;
  top: 120px !important; /* Adjust based on your header height */
  right: 20px !important;
  left: auto !important;
  width: 380px !important;
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--border-light) !important;
  z-index: 2000 !important;
  display: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  transform: none !important;
}

.cart-dropdown.active {
  display: block !important;
  animation: cartSlideDown 0.3s ease !important;
}

/* Different positioning based on header state */
body:not(.has-sticky-header) .cart-dropdown {
  top: 120px !important; /* Adjust for non-sticky header */
}

body.has-sticky-header .cart-dropdown {
  top: 70px !important; /* Adjust for sticky header (when scrolled) */
}

/* When top bar is visible */
body:not(.scrolled) .cart-dropdown {
  top: 120px !important; /* Top bar + header height */
}

body.scrolled .cart-dropdown {
  top: 70px !important; /* Just header height when top bar hidden */
}

/* Enforce exactly 11 subcategories per frame on desktop */
@media (min-width: 992px) {
  .subcategories-container {
    --subcategory-gap: 12px;
    gap: var(--subcategory-gap) !important;
  }

  .subcategories-container .subcategory-item {
    flex: 0 0 calc((100% - (10 * var(--subcategory-gap))) / 11) !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .subcategories-container .subcategory-item .circle-image {
    width: clamp(48px, 5vw, 64px) !important;
    height: clamp(48px, 5vw, 64px) !important;
  }
}

/* Animation */
@keyframes cartSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cart-dropdown {
    width: 320px !important;
    right: 10px !important;
    top: 60px !important; /* Mobile header height */
  }

  body:not(.has-sticky-header) .cart-dropdown,
  body:not(.scrolled) .cart-dropdown {
    top: 110px !important; /* Mobile top bar + header */
  }

  body.has-sticky-header .cart-dropdown,
  body.scrolled .cart-dropdown {
    top: 60px !important;
  }
}

@media (max-width: 480px) {
  .cart-dropdown {
    width: 90% !important;
    right: 5% !important;
    left: 5% !important;
  }
}
/* ========================================================================
   FILTERS - Always Visible (No Toggle)
   ======================================================================== */
.filters-section .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

/* Search Bar - Always visible */
.filter-row.main-search {
  width: 100%;
  animation: none;
}

.search-wrapper-large {
  min-height: 56px;
  border-radius: 60px;
}

/* All filters container - ALWAYS VISIBLE */
.all-filters-container {
  display: block !important; /* Force always visible */
  width: 100%;
  animation: fadeIn 0.3s ease;
}

/* Remove hidden class since we don't need it anymore */
.filter-toggle.hidden,
#filterToggle,
.filter-toggle-wrapper .filter-toggle {
  display: none !important; /* Hide the toggle completely */
}

/* Horizontal scrollable filters strip - CENTERED */
.filters-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border-light);
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  align-items: center;
  justify-content: center; /* Center the content */
}

.filters-strip::-webkit-scrollbar {
  height: 4px;
}

.filters-strip::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.filters-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* Filter grid strip - horizontal layout - CENTERED */
.filter-grid-strip {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center; /* Center the content */
}

.filter-grid-strip .filter-group {
  flex: 0 0 auto;
  min-width: 130px;
}

/* Consistent select styling for all dropdowns */
.filter-select-strip,
.filter-group select,
#countryFilter,
#cityFilter,
#categoryFilter,
#sortFilter {
  width: 130px !important;
  padding: 0.6rem 1.8rem 0.6rem 1rem !important;
  border: 2px solid var(--border-light) !important;
  border-radius: 40px !important;
  background: white !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  min-height: 44px !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px !important;
  transition: all 0.2s ease !important;
  color: var(--text-dark) !important;
  box-sizing: border-box;
}
/* ========================================================================
   FILTERS - Always Visible (No Toggle) - OPTIMIZED FOR ALL SCREENS
   ======================================================================== */
.filters-section .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Search Bar - Always visible */
.filter-row.main-search {
  width: 100%;
  animation: none;
}

.search-wrapper-large {
  min-height: 56px;
  border-radius: 60px;
  width: 100%;
}

/* All filters container - ALWAYS VISIBLE */
.all-filters-container {
  display: block !important;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

/* Remove hidden class since we don't need it anymore */
.filter-toggle.hidden,
#filterToggle,
.filter-toggle-wrapper .filter-toggle {
  display: none !important;
}

/* Horizontal scrollable filters strip */
.filters-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border-light);
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  align-items: center;
  width: 100%;
}

.filters-strip::-webkit-scrollbar {
  height: 4px;
}

.filters-strip::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.filters-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* Filter grid strip - horizontal layout */
.filter-grid-strip {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
  padding-right: 0.5rem;
}

.filter-grid-strip .filter-group {
  flex: 0 0 auto;
  min-width: auto;
}

/* Consistent select styling for all dropdowns */
.filter-select-strip,
.filter-group select,
#countryFilter,
#cityFilter,
#categoryFilter,
#sortFilter {
  width: 130px !important;
  padding: 0.6rem 1.8rem 0.6rem 1rem !important;
  border: 2px solid var(--border-light) !important;
  border-radius: 40px !important;
  background: white !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  min-height: 44px !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px !important;
  transition: all 0.2s ease !important;
  color: var(--text-dark) !important;
  box-sizing: border-box;
}

/* Price range strip */
.price-range-strip {
  flex: 0 0 auto;
  min-width: 200px;
}

.price-inputs-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
}

.price-inputs-strip input {
  width: 70px;
  height: 44px;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-dark);
  box-sizing: border-box;
}

.price-inputs-strip input:focus {
  outline: none;
  border-color: var(--accent);
}

.price-inputs-strip input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
  font-size: 0.8rem;
}

.price-inputs-strip span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  min-width: 12px;
  text-align: center;
}

/* Filter actions strip */
.filter-actions-strip {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 1rem;
  border-left: 2px solid var(--border-light);
  height: 44px;
}

.checkbox-label-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap;
  height: 44px;
  padding: 0 0.25rem;
}

.checkbox-label-strip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  margin: 0;
}

.checkbox-label-strip span {
  font-size: 0.85rem;
  line-height: 1;
}

.btn-outline-strip {
  height: 44px;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  border-radius: 40px;
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  font-weight: 500;
}

.btn-outline-strip i {
  margin-right: 0.4rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.btn-outline-strip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-outline-strip:hover i {
  color: white;
}

/* ========================================================================
   MOBILE OPTIMIZATIONS - All filters in one row with proper sizing
   ======================================================================== */

/* Tablet adjustments */
@media (max-width: 1024px) {
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 120px !important;
    padding: 0.5rem 1.5rem 0.5rem 0.8rem !important;
    font-size: 0.8rem !important;
    min-height: 42px !important;
  }

  .price-range-strip {
    min-width: 190px;
  }

  .price-inputs-strip input {
    width: 65px;
    height: 42px;
    font-size: 0.8rem;
  }

  .filter-actions-strip {
    height: 42px;
  }

  .checkbox-label-strip {
    height: 42px;
    font-size: 0.8rem;
  }

  .btn-outline-strip {
    height: 42px;
    padding: 0 1.25rem;
    font-size: 0.8rem;
    min-width: 85px;
  }
}

/* Mobile - All filters in one row with proper sizing */
@media (max-width: 767px) {
  .filters-section {
    padding: 0.5rem 0;
  }

  .filters-section .container {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .search-wrapper-large {
    min-height: 48px;
  }

  .search-wrapper-large input {
    font-size: 0.85rem;
    padding: 0.6rem 0;
  }

  .filters-strip {
    gap: 0.5rem;
    padding: 0.25rem 0 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .filter-grid-strip {
    gap: 0.5rem;
    padding-right: 0.25rem;
  }

  /* Make all filter elements the same height */
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter,
  .price-range-strip,
  .btn-outline-strip {
    height: 38px !important;
    min-height: 38px !important;
    line-height: 1.2;
  }

  /* Select dropdowns */
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 100px !important;
    padding: 0.4rem 1.5rem 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
    background-position: right 0.5rem center !important;
    background-size: 12px !important;
  }

  /* Price range */
  .price-range-strip {
    min-width: 145px;
  }

  .price-inputs-strip {
    gap: 0.25rem;
    height: 38px;
  }

  .price-inputs-strip input {
    width: 48px;
    height: 38px;
    padding: 0.35rem 0.2rem;
    font-size: 0.75rem;
  }

  .price-inputs-strip input::placeholder {
    font-size: 0.65rem;
  }

  .price-inputs-strip span {
    font-size: 0.85rem;
    min-width: 8px;
  }

  /* Filter actions */
  .filter-actions-strip {
    gap: 0.5rem;
    padding-left: 0.5rem;
    height: 38px;
  }

  .checkbox-label-strip {
    height: 38px;
    font-size: 0.75rem;
    gap: 0.3rem;
    padding: 0 0.15rem;
  }

  .checkbox-label-strip input[type="checkbox"] {
    width: 15px;
    height: 15px;
  }

  .btn-outline-strip {
    min-width: 75px;
    padding: 0 0.7rem;
    font-size: 0.75rem;
    height: 38px !important;
  }

  .btn-outline-strip i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .search-wrapper-large {
    min-height: 44px;
  }

  .search-wrapper-large input {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }

  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 90px !important;
    padding: 0.35rem 1.3rem 0.35rem 0.5rem !important;
    font-size: 0.7rem !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .price-range-strip {
    min-width: 130px;
  }

  .price-inputs-strip {
    height: 36px;
  }

  .price-inputs-strip input {
    width: 43px;
    height: 36px;
    padding: 0.3rem 0.15rem;
    font-size: 0.7rem;
  }

  .price-inputs-strip input::placeholder {
    font-size: 0.6rem;
  }

  .filter-actions-strip {
    height: 36px;
  }

  .checkbox-label-strip {
    height: 36px;
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .checkbox-label-strip input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .btn-outline-strip {
    min-width: 70px;
    padding: 0 0.6rem;
    font-size: 0.7rem;
    height: 36px !important;
  }

  .btn-outline-strip i {
    font-size: 0.65rem;
    margin-right: 0.2rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 80px !important;
    padding: 0.3rem 1.2rem 0.3rem 0.4rem !important;
    font-size: 0.65rem !important;
    height: 34px !important;
    min-height: 34px !important;
    background-size: 10px !important;
  }

  .price-range-strip {
    min-width: 115px;
  }

  .price-inputs-strip {
    height: 34px;
    gap: 0.15rem;
  }

  .price-inputs-strip input {
    width: 38px;
    height: 34px;
    padding: 0.25rem 0.1rem;
    font-size: 0.65rem;
  }

  .btn-outline-strip {
    min-width: 65px;
    padding: 0 0.5rem;
    font-size: 0.65rem;
    height: 34px !important;
  }

  .btn-outline-strip i {
    font-size: 0.6rem;
    margin-right: 0.15rem;
  }
}

/* Fade effect on edges to indicate scrollability */
.filters-section .container {
  position: relative;
}

.filters-section .container::after {
  content: "";
  position: absolute;
  top: 60px;
  bottom: 0;
  right: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, white);
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .filters-section .container::after {
    top: 45px;
    width: 25px;
  }
}

@media (max-width: 480px) {
  .filters-section .container::after {
    top: 40px;
  }
}

/* Ensure horizontal scroll works properly */
.filters-strip {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ========================================================================
   CATEGORY SLIDER OVERRIDES (Aligned with Services page)
   ======================================================================== */

/* Category Slider Controls for Desktop */
.cat-scroll-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light, #e5e7eb);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-dark, #1f1f1f);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.cat-scroll-btn:hover {
  background: var(--accent, #b78c5a);
  color: white;
  border-color: var(--accent, #b78c5a);
}

.cat-scroll-left {
  left: -15px;
}

.cat-scroll-right {
  right: -15px;
}

/* Ensure no gradients/overlays act as white wall cutters */
.category-circles-section .container::after,
.category-circles-section .container::before {
  display: none !important;
  opacity: 0 !important;
}

/* Hide scroll buttons — layout now spans full width */
.cat-scroll-btn {
  display: none !important;
}

/* Hide subcategory indicators — same as services */
.subcategory-indicator {
  display: none !important;
}

/* Remove scrollbar on all sizes */
.category-circles::-webkit-scrollbar {
  display: none !important;
}

/* ========================================================================
   CATEGORY SECTION — FINAL OVERRIDE (matches services.css exactly)
   ======================================================================== */
.category-circles-section {
  padding: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--border-light, #ede8e0) !important;
}

.category-circles {
  display: flex !important;
  gap: clamp(0.2rem, 0.8vw, 0.5rem) !important;
  overflow-x: auto !important;
  padding: 1rem var(--container-padding, 1.5rem) 1.15rem !important;
  scrollbar-width: none !important;
  justify-content: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.category-circle {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.45rem !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  padding: 0.45rem 0.4rem 0.6rem !important;
  border-radius: 14px !important;
  width: clamp(62px, 7.5vw, 82px) !important;
  min-width: unset !important;
  max-width: none !important;
  transform: none !important;
}

.category-circle:hover {
  background: rgba(183, 140, 90, 0.05) !important;
  transform: none !important;
}

.category-circle:active {
  transform: scale(0.96) !important;
}

.circle-image {
  width: clamp(46px, 5.2vw, 60px) !important;
  height: clamp(46px, 5.2vw, 60px) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid transparent !important;
  outline: 3px solid transparent !important;
  outline-offset: 2px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07) !important;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  aspect-ratio: 1 / 1 !important;
  background: var(--bg, #f5f0e8) !important;
  transform: none !important;
}

.category-circle:hover .circle-image {
  border-color: rgba(183, 140, 90, 0.45) !important;
  outline-color: rgba(183, 140, 90, 0.12) !important;
  box-shadow: 0 6px 18px rgba(183, 140, 90, 0.2) !important;
  transform: translateY(-2px) !important;
}

.category-circle.active .circle-image {
  border-color: var(--accent, #b78c5a) !important;
  outline-color: rgba(183, 140, 90, 0.2) !important;
  box-shadow:
    0 0 0 1px rgba(183, 140, 90, 0.15),
    0 8px 20px rgba(183, 140, 90, 0.22) !important;
  transform: translateY(-2px) !important;
}

.category-circle span {
  font-size: clamp(0.65rem, 1.6vw, 0.75rem) !important;
  color: var(--text-soft, #888) !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  max-width: 88px !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  transition: color 0.2s ease !important;
}

.category-circle:hover span {
  color: var(--text-dark, #1f1f1f) !important;
}

.category-circle.active span {
  color: var(--accent, #b78c5a) !important;
  font-weight: 600 !important;
  transform: none !important;
}

/* ========================================================================
   MODAL DESKTOP — Full-Height Layout, No White Space
   ======================================================================== */
@media (min-width: 768px) {
  /* Give the modal container a fixed viewport-relative height */
  .modal-container {
    height: min(740px, 88vh);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Inner content wrapper fills remaining height */
  .modal-container > .modal-content {
    flex: 1;
    min-height: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
  }

  /* Two-column grid fills 100% of the modal height */
  .product-modal-enhanced {
    height: 100%;
    min-height: 0;
    grid-template-columns: 42% 58%;
    gap: 0;
    border-radius: 32px;
    overflow: hidden;
  }

  /* Left column: image covers the full height — no dead space */
  .product-modal-enhanced .modal-gallery-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 32px 0 0 32px;
    border-right: 1px solid var(--border-light, #ede8e0);
    overflow: hidden;
    background: var(--bg, #faf9f7);
  }

  .product-modal-enhanced .gallery-main-container {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: unset;
    max-height: unset;
  }

  .product-modal-enhanced .gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
  }

  /* Thumbnails pinned at bottom of gallery column */
  .product-modal-enhanced .gallery-thumbnails {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border-light, #ede8e0);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* Right column: scrolls independently within the fixed-height modal */
  .product-modal-enhanced .modal-info-section {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 2.5rem;
    max-height: none;
    border-radius: 0 32px 32px 0;
  }
}

/* ============================================================
   LAYERED DEPTH SYSTEM
   Provider Type (front) → Categories (middle) → SubCategories (back)
   Each layer shares the same white background; depth is created
   by z-index stacking and directional shadows.
   ============================================================ */

/* ── Provider Type section sits at the very front ── */
.provider-role-tabs-section {
  position: relative;
  z-index: 30;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
}

/* ── Layer wrappers ── */
.layer-wrapper {
  position: relative;
  background: #ffffff;
  padding: 0;
  margin-top: 5px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

#categoryLayerWrapper {
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
#subcategoryLayerWrapper {
  z-index: 10;
  border-radius: 0 0 32px 32px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(183, 140, 90, 0.1);
}

/* Reset old styles.css discovery-open mechanism — grid controls height now */
.layer-wrapper .category-circles-section,
.layer-wrapper .subcategories-section {
  border-bottom: none !important;
  max-height: none !important;
  opacity: 1 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Layer header bar — full-width shelf ── */
.layer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 0 0 20px 20px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
}

.layer-header:hover {
  background: #fafafa;
}

.layer-header:focus-visible {
  outline: 2px solid var(--accent, #b78c5a);
  outline-offset: -2px;
}

/* Hide header when layer is open — shelf slides down without handle */
.layer-wrapper.is-open > .layer-header {
  display: none;
}

/* When category layer is open, cast a stronger shadow over the layer below */
#categoryLayerWrapper.is-open {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

/* ── Icon inline with centered text ── */
.layer-header-left {
  display: flex;
  align-items: center;
}

.layer-header-left i {
  color: var(--accent, #b78c5a);
  font-size: 0.75rem;
}

/* ── Label — shown when CLOSED, hidden when OPEN ── */
.layer-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #b78c5a);
  text-align: center;
}

.layer-wrapper.is-open > .layer-header .layer-label {
  display: none;
}

/* ── Current selection — shown when closed AND a selection exists ── */
.layer-current-label {
  display: none;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent, #b78c5a);
}

/* When layer has a selection and is closed: swap label → current */
.layer-wrapper.has-selection:not(.is-open) > .layer-header .layer-label {
  display: none;
}
.layer-wrapper.has-selection:not(.is-open)
  > .layer-header
  .layer-current-label {
  display: block;
}

.layer-chevron {
  position: absolute;
  right: 1.5rem;
  font-size: 0.68rem;
  color: var(--text-soft, #aaa);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.layer-wrapper.is-open > .layer-header .layer-chevron {
  transform: rotate(180deg);
  color: var(--accent, #b78c5a);
}

/* ── Collapsible body — CSS grid trick ── */
.layer-body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  background: #ffffff;
  transition: grid-template-rows 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.layer-body-wrapper > * {
  min-height: 0;
  overflow: hidden !important;
}

.layer-wrapper.is-open > .layer-body-wrapper {
  grid-template-rows: 1fr;
}

/* ── Subcategories strip ── */
.subcategories-strip {
  display: flex;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  overflow-x: auto;
  padding: 0.9rem var(--container-padding, 1.5rem) 1.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* Inside layer wrapper: left-align so the < nav button sits near the first item */
.layer-wrapper .subcategories-strip {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
}

.subcategories-strip::-webkit-scrollbar {
  display: none;
}

.subcategories-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light, #ede8e0);
  overflow: hidden;
}

/* ── Fade-in for layer contents ── */
.layer-wrapper.is-open .layer-body-wrapper > * {
  animation: layerReveal 0.28s ease-out both;
  animation-delay: 0.04s;
}

@keyframes layerReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Headline shown at top of opened shelf (thin centered label) ── */
.layer-open-headline {
  display: none;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(183, 140, 90, 0.5);
  margin-top: 0.75rem;
}

.layer-wrapper.is-open .layer-open-headline {
  display: block;
}

/* ── Category layer matches SubCategory compact size ── */
.layer-wrapper .category-circles-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.layer-wrapper .category-circles {
  padding-top: 0.5rem;
  padding-bottom: 0.8rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

.layer-wrapper .category-circle {
  padding: 0.4rem 0.25rem 0.55rem;
}

.layer-wrapper .circle-image {
  width: clamp(50px, 5.5vw, 62px) !important;
  height: clamp(50px, 5.5vw, 62px) !important;
}

.layer-wrapper .category-circle span {
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
}

/* ── Active item: replace translateY (gets clipped by overflow:hidden) with border glow ── */
.layer-wrapper .category-circle.active .circle-image {
  transform: none !important;
  border-color: var(--accent, #b78c5a) !important;
  box-shadow:
    0 0 0 3px rgba(183, 140, 90, 0.22),
    0 4px 12px rgba(183, 140, 90, 0.2) !important;
}
.layer-wrapper .category-circle:hover .circle-image {
  transform: none !important;
}
.layer-wrapper .subcategory-item.active .circle-image {
  transform: none !important;
  border-color: var(--accent, #b78c5a) !important;
  box-shadow:
    0 0 0 3px rgba(183, 140, 90, 0.22),
    0 4px 12px rgba(183, 140, 90, 0.2) !important;
}

/* category-circles-container row layout for strip nav buttons */
.layer-wrapper .category-circles-container {
  flex-direction: row !important;
  align-items: center;
}

.layer-wrapper .category-circles-container > .category-circles {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   STRIP NAVIGATION — < > scroll buttons
   ============================================================ */
.strip-scroll-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.strip-scroll-wrap > .categories-strip,
.strip-scroll-wrap > .subcategories-strip {
  flex: 1;
  min-width: 0;
  width: auto !important;
}

.strip-nav-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: Georgia, serif;
  z-index: 2;
}

.strip-nav-btn:hover,
.strip-nav-btn:active {
  color: var(--accent, #b78c5a);
  background: rgba(183, 140, 90, 0.08);
}

/* ── Strip nav: flex siblings outside the scrollable strip ── */

/* Items start from top; margin-top on buttons positions them at avatar centre */
.layer-wrapper .category-circles-container,
.layer-wrapper .strip-scroll-wrap {
  align-items: flex-start;
}

/* Category circles: image is clamp(56px,6.5vw,72px), padding-top 1.25rem+0.6rem.
   margin-top = circles-padding-top + item-padding-top + image-half - button-half
              = 1.85rem - 0.9rem + clamp(28px,3.25vw,36px) = 0.95rem + image-half */
.layer-wrapper .category-circles-container > .strip-nav-btn {
  position: static;
  padding: 0 6px;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: calc(0.95rem + clamp(28px, 3.25vw, 36px));
}

/* Subcategory strip: image is clamp(50px,5.5vw,62px), padding-top 0.5rem+0.4rem.
   margin-top = 0.9rem - 0.9rem + clamp(25px,2.75vw,31px) = just the image-half */
.layer-wrapper .strip-scroll-wrap .strip-nav-btn {
  position: static;
  padding: 0 6px;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: clamp(25px, 2.75vw, 31px);
}

/* ── Desktop: side-ctl further from edge ── */
@media (min-width: 768px) {
  .layer-side-ctl {
    right: 36px;
  }
}

/* ============================================================
   LAYER SIDE CONTROLS — collapse / expand arrows on the right
   ============================================================ */
.layer-side-ctl {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  width: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.layer-wrapper.is-open .layer-side-ctl {
  opacity: 1;
  pointer-events: auto;
}

.layer-side-ctl--single {
  justify-content: flex-start;
}

.layer-ctl-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.56rem;
  padding: 0;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}

.layer-ctl-arrow:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.layer-ctl-arrow--red {
  color: #d94040;
  border-color: #d94040;
}

.layer-ctl-arrow--red:hover {
  background: rgba(217, 64, 64, 0.08);
}

.layer-ctl-arrow--green {
  color: #3daa70;
  border-color: #3daa70;
}

.layer-ctl-arrow--green:hover {
  background: rgba(61, 170, 112, 0.08);
}

/* Provider section — persistent green ↓ on the right */
.layer-ctl-provider {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  opacity: 1;
}
