/* =======================================================================
   SERVICES.CSS - COMPLETE REDESIGN
   Fully responsive, premium visuals, maintains theme
   ======================================================================= */

/* ===================== TABLE OF CONTENTS ===================== */
/* 01. CSS Variables & Base */
/* 02. Hero Section - Enhanced */
/* 03. Advanced Filters - Premium Design */
/* 04. Categories Strip - Redesigned */
/* 05. Services Grid - Fluid & Beautiful */
/* 06. Service Cards - Premium Design */
/* 07. Top Rated Section - Modern */
/* 08. Trusted Providers - Enhanced Strip */
/* 09. Pagination - Polished */
/* 10. Service Modal - Premium Experience */
/* 11. Loading States & Skeletons */
/* 12. Empty States - Beautiful */
/* 13. Toast Notifications */
/* 14. 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. HERO — replaced by .ad-banner-slider in styles.css
   ======================================================================== */

/* ========================================================================
   04. CATEGORIES STRIP - Premium, arrowless, smooth scroll
   ======================================================================== */
.categories-section {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light, #ede8e0);
  position: relative;
  overflow: hidden;
}

/* Fade edge masks — disabled (categories now span full width) */
.categories-section::before,
.categories-section::after {
  display: none;
}

.categories-strip {
  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;
}

.categories-strip::-webkit-scrollbar {
  display: none;
}

.category-item {
  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-item:hover {
  background: rgba(183, 140, 90, 0.05);
}

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

.category-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-item:hover .category-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-item.active .category-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-name {
  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-item:hover .category-name {
  color: var(--text-dark, #1f1f1f);
}

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

/* Hide expand chevrons — navigation is via scroll */
.subcategory-indicator {
  display: none !important;
}

/* ========================================================================
   05. SERVICES GRID - Fluid & Beautiful
   ======================================================================== */
.services-grid-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;
}

.services-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) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

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

/* ========================================================================
   06. SERVICE CARDS - Premium Design with Hover Effects
   ======================================================================== */
.service-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;
}

.service-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;
}

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

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

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

.service-card-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;
}

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

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

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

.service-card-content {
  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;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.service-card-header h3 {
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.service-rating {
  color: var(--accent);
  font-size: clamp(0.65rem, 2.2vw, 0.8rem);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(183, 140, 90, 0.1) 0%,
    rgba(183, 140, 90, 0.05) 100%
  );
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
  border: 1px solid var(--accent-light);
}

.service-rating i {
  color: #ffb800;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
}

.service-provider {
  color: var(--text-soft);
  font-size: clamp(0.65rem, 2.2vw, 0.8rem);
  margin-bottom: 0.25rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.service-provider::before {
  content: "";
  font-size: 0.7rem;
  opacity: 0.7;
}

.service-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  margin-bottom: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.service-location i {
  font-size: 0.6rem;
  color: var(--accent);
  flex-shrink: 0;
}

.service-price {
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.service-price::before {
  content: "";
  font-size: 0.8rem;
  opacity: 0.7;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.service-category {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  color: var(--text-dark);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 60%;
  border: 1px solid var(--border-light);
  font-weight: 500;
}

.view-btn {
  background: transparent;
  border: 2px solid var(--border-light);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: clamp(28px, 6vw, 36px);
  min-width: clamp(60px, 12vw, 80px);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  box-shadow: 0 2px 5px -3px rgba(0, 0, 0, 0.1);
}

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

/* ========================================================================
   07. TOP RATED SECTION - Modern Design
   ======================================================================== */
.top-rated-section {
  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;
}

.top-rated-section::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);
  }
}

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

@media (min-width: 360px) {
  .top-rated-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .top-rated-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================================================
   08. TRUSTED PROVIDERS - Enhanced Strip
   ======================================================================== */
.trusted-providers {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: white;
  overflow: hidden;
  position: relative;
}

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

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

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

.providers-strip {
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  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;
}

.provider-strip-item {
  flex: 0 0 min(120px, 35vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: clamp(80px, 20vw, 120px);
  padding: 1rem 0.5rem;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.provider-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;
}

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

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

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

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

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

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

.provider-strip-name {
  font-size: clamp(0.65rem, 2.2vw, 0.85rem);
  color: var(--text-dark);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-weight: 600;
  padding: 0 0.25rem;
}

.provider-strip-specialty {
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  color: var(--accent);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  opacity: 0.8;
}

/* ========================================================================
   09. PAGINATION - Polished
   ======================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 0 var(--container-padding);
}

#loadMoreBtn {
  min-width: min(200px, 100%);
  min-height: 52px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  padding: 0 clamp(2rem, 4vw, 3rem);
  border-radius: 40px;
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#loadMoreBtn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(183, 140, 90, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

#loadMoreBtn:hover:not(:disabled) {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(183, 140, 90, 0.4);
}

#loadMoreBtn:hover::before {
  width: 300px;
  height: 300px;
}

#loadMoreBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* ========================================================================
   10. SERVICE 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: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
  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.5rem;
  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);
}

.service-modal-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  background: white;
}

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

/* Modal Gallery - Enhanced */
.modal-gallery-section {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  padding: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--border-light);
}

.gallery-main-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  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);
}

.service-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;
}

.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(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  max-height: 80vh;
}

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

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

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

.service-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;
}

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

/* 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;
  align-items: center;
  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-level-badge {
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid white;
  box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.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;
}

/* Service Meta Card */
.service-meta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.05);
}

.meta-item i {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--accent);
  flex-shrink: 0;
  background: var(--bg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.meta-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;
}

/* 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,
.action-section,
.date-selection {
  margin-bottom: 2rem;
}

.service-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: 20px;
  border: 1px solid var(--border-light);
  position: relative;
}

.service-description::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.1;
  font-family: var(--font-serif);
}

/* 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.75rem;
  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;
}

.spec-value.provider-level-text {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.spec-value.provider-level-text.bronze {
  background: #e6ccb2;
  color: #7b4e2d;
}

.spec-value.provider-level-text.silver {
  background: #e3e4e8;
  color: #3a3d44;
}

.spec-value.provider-level-text.gold {
  background: #f7e3b4;
  color: #7d5f2a;
}

.spec-value.provider-level-text.platinum {
  background: #e0e7ff;
  color: #1e3a8a;
}

/* Action Buttons */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.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);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-large i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-large:hover i {
  transform: scale(1.1);
}

.btn-large.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

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

.btn-large.btn-outline {
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
  box-shadow: var(--card-shadow);
}

.btn-large.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(183, 140, 90, 0.2);
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Date Selection */
.date-selection {
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  animation: slideDown 0.4s ease;
}

.date-selection h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-selection h4::before {
  content: "📅";
  font-size: 1.2rem;
}

.date-selection .form-group {
  margin-bottom: 1.25rem;
}

.date-selection label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}

.date-selection .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.date-selection .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  font-size: 0.95rem;
  background: white;
  transition: all 0.3s ease;
  min-height: 48px;
  box-shadow: var(--card-shadow);
}

.date-selection .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.date-selection textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Estimated Finish */
.estimated-finish {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(183, 140, 90, 0.1) 100%
  );
  border-radius: 16px;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.3s ease;
  border: 1px solid var(--accent-light);
}

.estimated-finish i {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.estimated-finish div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.finish-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finish-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Date Selection Actions */
.date-selection-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Share Section */
.share-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border-light);
  color: var(--text-soft);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.share-section span {
  font-size: 0.85rem;
}

.share-section .btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
}

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

/* ========================================================================
   11. 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;
  }
}

.skeleton-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.skeleton-card .service-card-image {
  height: 120px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 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;
}

/* ========================================================================
   12. 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;
}

/* ========================================================================
   13. 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 i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.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;
}

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

/* Extra Small Devices (320px - 359px) */
@media (max-width: 359px) {
  .services-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-item {
    min-width: 55px;
  }

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

  .category-name {
    font-size: 0.55rem;
  }

  .service-card-header h3 {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .service-rating {
    font-size: 0.55rem;
  }

  .service-provider,
  .service-location {
    font-size: 0.55rem;
  }

  .service-price {
    font-size: 0.65rem;
  }

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

  .active-filter-tag {
    font-size: 0.65rem;
  }

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

  .provider-strip-item {
    flex: 0 0 90px;
  }
}

/* Small Devices (360px - 389px) */
@media (min-width: 360px) and (max-width: 389px) {
  .services-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-item {
    min-width: 60px;
  }

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

  .service-card-header h3 {
    font-size: 0.7rem;
  }

  .service-price {
    font-size: 0.7rem;
  }

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

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

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

  .service-card-header h3 {
    font-size: 0.72rem;
  }

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

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

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

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

  .service-card-header h3 {
    font-size: 0.75rem;
  }

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

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

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

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

  .service-card-header h3 {
    font-size: 0.8rem;
  }

  .service-rating {
    font-size: 0.65rem;
  }

  .service-provider,
  .service-location {
    font-size: 0.65rem;
  }

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

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

  .provider-strip-item {
    flex: 0 0 100px;
  }
}

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

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

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

  .service-card-header h3 {
    font-size: 0.8rem;
  }

  .service-rating {
    font-size: 0.65rem;
  }

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

  .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) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

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

  .service-card-header h3 {
    font-size: 0.9rem;
  }

  .service-rating {
    font-size: 0.7rem;
  }

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

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

  .service-modal-enhanced {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .service-card-header h3 {
    font-size: 0.95rem;
  }

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

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

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

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

  .service-card-header h3 {
    font-size: 1rem;
  }

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

  .container {
    padding: 0 2rem;
  }
}

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

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

/* ========================================================================
   WISHLIST BUTTON STYLES
   ======================================================================== */

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

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

.wishlist-btn.active {
  color: #ef4444;
  animation: heartPop 0.3s ease;
}

.wishlist-btn.active i {
  color: #ef4444;
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ========================================================================
   04. CATEGORIES STRIP - Redesigned with Full Text Visibility
   ======================================================================== */
.categories-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: white;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

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

.categories-strip {
  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: flex-start;
  scroll-padding: 0 var(--container-padding);
  scroll-behavior: smooth;
}

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

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

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

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

.category-item {
  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-item:hover {
  transform: translateY(-5px);
}

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

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

.category-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-item.active .category-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-name {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem); /* Slightly increased */
  color: var(--text-soft);
  text-align: center;
  max-width: 120px; /* Allow more width for text */
  white-space: normal; /* Allow text to wrap */
  overflow: visible; /* Show all text */
  text-overflow: clip; /* Remove ellipsis */
  width: 100%;
  padding: 0 0.25rem;
  font-weight: 500;
  line-height: 1.3; /* Better line height for wrapped text */
  word-break: break-word; /* Break long words if needed */
  transition: color 0.3s ease;
}

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

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

  .category-name {
    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-item {
    min-width: 80px;
  }

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

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

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

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

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

.category-item.active .category-name {
  color: var(--accent);
  font-weight: 600;
}
/* ========================================================================
   10. SERVICE 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: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
  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 BOTTOM-SHEET MODAL — ≤ 767px
   ========================================================= */
@media (max-width: 767px) {
  /* Convert overlay to bottom-sheet flex container */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }

  /* Bottom-sheet: full-width, slides up */
  .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh;
    border-radius: 28px 28px 0 0 !important;
    animation: serviceModalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  }

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

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

  .service-modal-enhanced {
    grid-template-columns: 1fr !important;
  }

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

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

  /* Image fills width with natural aspect ratio */
  .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(40px, 100%), 1fr));
    gap: 0.5rem;
  }

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

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

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

  .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;
  }

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

  .meta-item {
    gap: 0.5rem;
    padding: 0.35rem;
  }

  .meta-item i {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .meta-value {
    font-size: 0.8rem;
  }

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

  .service-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;
  }

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

  .action-section {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .date-selection {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .date-selection h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .date-selection .form-control {
    padding: 0.6rem 0.75rem;
    min-height: 40px;
    font-size: 0.85rem;
  }

  .estimated-finish {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .estimated-finish i {
    font-size: 1.2rem;
  }

  .finish-label {
    font-size: 0.6rem;
  }

  .finish-date {
    font-size: 0.8rem;
  }

  .share-section {
    padding-top: 0.75rem;
    font-size: 0.8rem;
  }

  .share-section .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Zones section compact */
  #zonesContainer,
  #locationContainer,
  #additionalInfoContainer,
  #availabilityCheck {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  #zonesContainer h4,
  #locationContainer h4,
  #additionalInfoContainer h4,
  #availabilityCheck h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
  }

  #zonesContainer p,
  #locationContainer p,
  #additionalInfoContainer p,
  #availabilityCheck p {
    font-size: 0.7rem;
    margin-bottom: 0.75rem !important;
  }

  .zone-item {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .zone-item input,
  .zone-item select {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
  }

  #addZoneBtn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }

  #addZoneBtn i {
    font-size: 0.7rem !important;
  }

  #timeSlotsGrid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .time-slot-btn {
    padding: 6px !important;
    font-size: 0.7rem !important;
  }
}

/* Small mobile ≤ 480px — stay full-width bottom-sheet */
@media (max-width: 480px) {
  .modal-content {
    max-height: 93vh;
    border-radius: 24px 24px 0 0 !important;
  }

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

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

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

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

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

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

  .service-meta-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .service-description {
    max-height: 80px;
  }

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

  .date-selection-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .date-selection-actions button {
    width: 100%;
  }

  #timeSlotsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Extra small ≤ 360px */
@media (max-width: 360px) {
  .modal-content {
    max-height: 94vh;
    border-radius: 20px 20px 0 0 !important;
  }

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

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

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

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

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

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

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

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

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

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Modal close button adjustments for mobile */
@media (max-width: 767px) {
  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
  }
}

@media (max-width: 480px) {
  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    top: 0.5rem;
    right: 0.5rem;
  }
}
/* ========================================================================
   05. SERVICES GRID - Fluid & Beautiful
   ======================================================================== */
.services-grid-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;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 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) {
  .services-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%;
  }

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

  .service-card-content {
    padding: 0.75rem;
  }

  .service-card-header h3 {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 0.25rem;
  }

  .service-rating {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    gap: 0.2rem;
  }

  .service-rating i {
    font-size: 0.6rem;
  }

  .service-provider {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }

  .service-location {
    font-size: 0.65rem;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
  }

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

  .service-price {
    font-size: 0.8rem;
    padding-top: 0.35rem;
    margin-top: 0.25rem;
  }

  .service-category {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }

  .view-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    min-height: 32px;
  }
}

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

  .service-card-content {
    padding: 0.6rem;
  }

  .service-card-header h3 {
    font-size: 0.85rem;
  }

  .service-rating {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

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

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

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

  .service-category {
    font-size: 0.55rem;
    padding: 0.15rem 0.5rem;
  }

  .view-btn {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    min-height: 30px;
  }
}

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

  .service-card-content {
    padding: 0.5rem;
  }

  .service-card-header h3 {
    font-size: 0.8rem;
  }

  .service-rating {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
  }

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

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

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

  .service-category {
    font-size: 0.5rem;
    padding: 0.1rem 0.4rem;
  }

  .view-btn {
    font-size: 0.55rem;
    padding: 0.15rem 0.5rem;
    min-height: 28px;
  }
}

/* Tablet - 3 cards */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 var(--container-padding);
  }
}

/* Desktop - 5 cards */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 0 var(--container-padding);
  }
}

/* Large Desktops */
@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    padding: 0 var(--container-padding);
  }
}
/* ========================================================================
   04. CATEGORIES STRIP - Redesigned with Full Text Visibility
   ======================================================================== */
.categories-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: white;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

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

.categories-strip {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  padding: 0 var(--container-padding) clamp(0.75rem, 2vw, 1.25rem);
  scrollbar-width: thin; /* Keeps scrollbar 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 (Chrome, Safari, Edge) */
.categories-strip::-webkit-scrollbar {
  height: 3px; /* Slightly thinner */
}

.categories-strip::-webkit-scrollbar-track {
  background: transparent; /* Remove gray track */
}

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

.categories-strip::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark); /* Darker on hover */
}

/* Firefox scrollbar - already set above with scrollbar-color */

.category-item {
  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;
}
/* ========================================================================
   10. SERVICE MODAL - Premium Experience with Frozen Background
   ======================================================================== */
.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;
}

/* When modal is open, prevent body scrolling */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

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

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

.modal-content {
  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);
}

/* Ensure modal content is scrollable internally */
.modal-content {
  -webkit-overflow-scrolling: touch;
}

/* Prevent background from scrolling on iOS */
.modal-overlay.active ~ * {
  -webkit-overflow-scrolling: auto;
}
/* ========================================================================
   10. SERVICE 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;
}

/* When modal is open, prevent body scrolling */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

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

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

.modal-content {
  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; /* Smooth scrolling on iOS */
}

/* Remove individual scrolling from sections */
.service-modal-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  background: white;
}

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

/* Remove max-height and overflow from info section */
.modal-info-section {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: visible; /* Changed from auto/scroll */
  max-height: none; /* Removed max-height */
}

/* Gallery section also no scroll */
.modal-gallery-section {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  padding: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--border-light);
  overflow-y: visible; /* Ensure no scroll */
}

/* Bottom-sheet reinforcement — re-assert after earlier duplicates */
@media (max-width: 767px) {
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }

  .modal-content {
    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%;
    margin: 0 auto 1rem auto;
  }

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

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
  .modal-content {
    max-height: 93vh;
    border-radius: 24px 24px 0 0 !important;
  }
}

/* Extra small ≤ 360px */
@media (max-width: 360px) {
  .modal-content {
    max-height: 94vh;
    border-radius: 20px 20px 0 0 !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 - ensures perfect centering */
.filter-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  position: relative;
  width: 100%;
}

/* Centered filter toggle - perfectly centered */
.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);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-toggle:hover {
  background: var(--bg);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.1);
}

.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;
}

.filter-toggle:hover .filter-toggle-icon {
  transform: rotate(90deg);
}

/* 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 - 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;
}

.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 - FIXED OVERLAPPING ISSUES */
@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;
    padding: 0.25rem 0 0.75rem 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .filter-grid-strip {
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    display: flex;
  }

  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 100px !important; /* Reduced from 105px */
    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;
    flex-shrink: 0;
  }

  .price-range-strip {
    min-width: 155px; /* Reduced from 165px */
    flex-shrink: 0;
  }

  .price-inputs-strip {
    gap: 0.2rem; /* Reduced from 0.25rem */
    height: 38px;
    flex-shrink: 0;
  }

  .price-inputs-strip input {
    width: 52px; /* Reduced from 55px */
    height: 38px;
    padding: 0.35rem 0.2rem; /* Reduced padding */
    font-size: 0.73rem;
    flex-shrink: 0;
  }

  .price-inputs-strip input::placeholder {
    font-size: 0.65rem; /* Slightly smaller */
  }

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

  .filter-actions-strip {
    gap: 0.5rem;
    padding-left: 0.5rem;
    height: 38px;
    border-left: 2px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .btn-outline-strip {
    height: 38px;
    padding: 0 0.7rem; /* Reduced from 0.8rem */
    font-size: 0.73rem;
    min-width: 65px; /* Reduced from 70px */
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

/* Small mobile - keep same row with scroll */
@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.35rem; /* Reduced from 0.4rem */
    padding: 0.25rem 0 0.75rem 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-grid-strip {
    gap: 0.35rem; /* Reduced from 0.4rem */
    display: flex;
    flex-wrap: nowrap;
  }

  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 85px !important; /* Reduced from 95px */
    padding: 0.4rem 1rem 0.4rem 0.5rem !important;
    font-size: 0.65rem !important; /* Reduced from 0.68rem */
    min-height: 34px !important;
    background-position: right 0.5rem center !important;
    background-size: 9px !important;
    flex-shrink: 0;
  }

  .price-range-strip {
    min-width: 135px; /* Reduced from 150px */
    flex-shrink: 0;
  }

  .price-inputs-strip {
    gap: 0.15rem; /* Reduced from 0.2rem */
    height: 34px;
    flex-shrink: 0;
  }

  .price-inputs-strip input {
    width: 45px; /* Reduced from 50px */
    height: 34px;
    padding: 0.25rem 0.15rem;
    font-size: 0.65rem;
    flex-shrink: 0;
  }

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

  .price-inputs-strip span {
    font-size: 0.8rem; /* Reduced from 0.9rem */
    min-width: 7px; /* Reduced from 10px */
  }

  .filter-actions-strip {
    gap: 0.35rem; /* Reduced from 0.4rem */
    padding-left: 0.35rem; /* Reduced from 0.4rem */
    height: 34px;
    border-left: 2px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .btn-outline-strip {
    height: 34px;
    padding: 0 0.5rem; /* Reduced from 0.7rem */
    font-size: 0.65rem;
    min-width: 55px; /* Reduced from 65px */
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

/* Extra small devices - keep same row with scroll */
@media (max-width: 360px) {
  .filter-select-strip,
  .filter-group select,
  #countryFilter,
  #cityFilter,
  #categoryFilter,
  #sortFilter {
    width: 75px !important; /* Reduced from 90px */
    padding: 0.3rem 0.8rem 0.3rem 0.35rem !important;
    font-size: 0.58rem !important; /* Reduced from 0.63rem */
    min-height: 30px !important;
    background-position: right 0.35rem center !important;
    background-size: 8px !important;
    flex-shrink: 0;
  }

  .filters-strip {
    gap: 0.2rem; /* Reduced from 0.3rem */
    padding: 0.2rem 0 0.5rem 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-grid-strip {
    gap: 0.2rem; /* Reduced from 0.3rem */
    display: flex;
    flex-wrap: nowrap;
  }

  .price-range-strip {
    min-width: 115px; /* Reduced from 140px */
    flex-shrink: 0;
  }

  .price-inputs-strip {
    gap: 0.1rem; /* Reduced from 0.15rem */
    height: 30px;
    flex-shrink: 0;
  }

  .price-inputs-strip input {
    width: 38px; /* Reduced from 45px */
    height: 30px;
    padding: 0.2rem 0.1rem;
    font-size: 0.58rem;
    flex-shrink: 0;
  }

  .price-inputs-strip span {
    font-size: 0.7rem; /* Reduced from 0.8rem */
    min-width: 5px; /* Reduced from 8px */
  }

  .filter-actions-strip {
    gap: 0.2rem; /* Reduced from 0.3rem */
    padding-left: 0.2rem; /* Reduced from 0.3rem */
    height: 30px;
    border-left: 2px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .btn-outline-strip {
    height: 30px;
    padding: 0 0.35rem; /* Reduced from 0.5rem */
    font-size: 0.58rem;
    min-width: 50px; /* Reduced from 60px */
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-outline-strip i {
    font-size: 0.55rem;
    margin-right: 0.1rem; /* Reduced from 0.15rem */
  }
}

/* Ensure horizontal scroll works on all small screens */
@media (max-width: 600px) {
  .filters-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.75rem; /* Add space for scrollbar */
  }

  .filter-grid-strip {
    flex-wrap: nowrap;
  }

  .filter-actions-strip {
    border-left: 2px solid var(--border-light);
    flex-shrink: 0;
  }
}

/* Force everything to stay in one row with no wrapping */
.filters-strip,
.filter-grid-strip,
.filter-actions-strip {
  flex-wrap: nowrap !important;
}
/* ========================================================================
   PAGINATION - Polished (Matching Products Page)
   ======================================================================== */
.pagination-container {
  margin: 3rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.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;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-soft);
  background: white;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.pagination-info span {
  font-weight: 600;
  color: var(--text-dark);
}

/* Mobile Pagination */
@media (max-width: 768px) {
  .pagination {
    gap: 0.35rem;
  }

  .page-btn {
    min-width: 40px;
    height: 40px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .pagination-info {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 0.25rem;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

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

  .pagination-info {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }
}

/* Hide load more button when pagination is active */
.load-more-container.hidden {
  display: none;
}

/* Animation for page transition */
.services-grid {
  transition: opacity 0.3s ease;
}

.services-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}
/* ========================================================================
   EXPANDABLE CATEGORIES - Premium Design with Subcategories Below
   ======================================================================== */

.categories-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;
}

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

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

.categories-strip {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  overflow-x: auto;
  padding: 0.5rem var(--container-padding) 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(183, 140, 90, 0.1);
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  scroll-padding: 0 var(--container-padding);
  scroll-behavior: smooth;
  position: relative;
}

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

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

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

.category-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: auto;
  padding: 0.75rem 0.5rem;
  position: relative;
  border-radius: 16px;
}

.category-item:hover {
  transform: translateY(-6px);
}

.category-item:hover .category-image {
  box-shadow: 0 20px 30px -12px rgba(183, 140, 90, 0.4);
}

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

.category-item.has-children .subcategory-indicator {
  position: absolute;
  bottom: 15px;
  right: 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-item.has-children:hover .subcategory-indicator {
  transform: translateX(50%) scale(1.1);
  box-shadow: 0 6px 15px -3px rgba(183, 140, 90, 0.5);
}

.category-item.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);
}

.category-image {
  width: clamp(70px, 15vw, 90px);
  height: clamp(70px, 15vw, 90px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
}

.category-item.active .category-image {
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.2),
    0 20px 30px -12px rgba(183, 140, 90, 0.4);
}

.category-name {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  color: var(--text-soft);
  text-align: center;
  max-width: 100px;
  white-space: normal;
  font-weight: 600;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.category-item.active .category-name {
  color: var(--accent);
  font-weight: 600;
}

/* Subcategories container */
.subcategories-container {
  width: 100%;
  background: var(--bg, #f9f5ef);
  border-top: 1px solid var(--border-light, #ede8e0);
  margin: 0;
  padding: 1rem var(--container-padding) 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  animation: slideDown 0.28s ease-out;
  position: relative;
  box-shadow: none;
}

.subcategories-container::-webkit-scrollbar {
  display: none;
}

/* 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;
}

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

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

.subcategory-item .category-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 .category-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 .category-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 highlight */
.category-item.expanded {
  background: linear-gradient(
    135deg,
    rgba(183, 140, 90, 0.05) 0%,
    transparent 100%
  );
  border-radius: 24px;
}

.category-item.expanded .category-image {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.15),
    0 20px 30px -12px rgba(183, 140, 90, 0.3);
}

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

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

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

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

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

  .category-item.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 .category-image {
    width: 50px;
    height: 50px;
  }

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

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

  .categories-strip {
    gap: 1rem;
  }
}
.category-item.has-children {
  position: relative;
  cursor: pointer;
  padding-bottom: 0.8rem; /* Reset — chevron removed */
}

.category-item.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-item.has-children:hover .subcategory-indicator {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 15px -3px rgba(183, 140, 90, 0.5);
}

.category-item.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-item.has-children {
    padding-bottom: 22px;
  }

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

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

  .category-item.has-children .subcategory-indicator {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }
}
/* ========================================================================
   FILTERS - Always Visible (No Toggle) - UPDATED FOR MOBILE
   ======================================================================== */
.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;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

/* Remove hidden class since we don't need it anymore */
.filter-toggle.hidden,
#filterToggle {
  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%;
  -webkit-overflow-scrolling: touch;
}

.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;
}

/* Clear All Filters button styling */
.filter-group:last-child {
  margin-right: 1rem;
}

.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: 130px;
  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;
  }

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

/* 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;
  }

  /* Clear All Filters button */
  .btn-outline-strip {
    min-width: 105px;
    padding: 0 0.8rem;
    font-size: 0.75rem;
    height: 38px !important;
  }

  .btn-outline-strip i {
    font-size: 0.7rem;
    margin-right: 0.3rem;
  }

  /* Ensure the last filter group doesn't get cut off */
  .filter-group:last-child {
    margin-right: 0.5rem;
  }
}

/* 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;
  }

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

  .btn-outline-strip i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
  }
}

/* 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: 85px;
    padding: 0 0.6rem;
    font-size: 0.65rem;
    height: 34px !important;
  }

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

/* Ensure horizontal scroll works properly */
.filters-strip {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* 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;
  }
}

/* Category Slider Controls for Desktop */
/* cat-scroll-btn removed — no arrows in categories section */
.cat-scroll-btn {
  display: none !important;
}

/* Strip mask handled by .categories-section::before/::after pseudo-elements */

/* ========================================================================
   CATEGORY SECTION — FINAL OVERRIDE (matches products.css exactly)
   ======================================================================== */
.categories-section {
  padding: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--border-light, #ede8e0) !important;
}

.categories-strip {
  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;
}

.category-item {
  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-item:hover {
  background: rgba(183, 140, 90, 0.05) !important;
  transform: none !important;
}

.category-item:active {
  transform: scale(0.96) !important;
}

.category-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-item:hover .category-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-item.active .category-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-name {
  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;
  transition: color 0.2s ease !important;
}

.category-item:hover .category-name {
  color: var(--text-dark, #1f1f1f) !important;
}

.category-item.active .category-name {
  color: var(--accent, #b78c5a) !important;
  font-weight: 600 !important;
}

/* ========================================================================
   MODAL DESKTOP — Full-Height Layout, No White Space
   ======================================================================== */
@media (min-width: 768px) {
  /* Give the service detail modal a fixed viewport-relative height */
  #serviceModal .modal-content {
    height: min(740px, 88vh);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* modal-body fills the remaining height (close btn is absolute) */
  #serviceModal .modal-body {
    flex: 1;
    min-height: 0;
  }

  /* Two-column grid fills 100% of the modal height */
  .service-modal-enhanced {
    height: 100%;
    min-height: 0;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
  }

  /* Left column: image covers the full height — no dead space */
  .service-modal-enhanced .modal-gallery-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--bg, #faf9f7);
    border-right: 1px solid var(--border-light, #ede8e0);
    border-radius: 0 0 0 32px;
  }

  .service-modal-enhanced .gallery-main-container {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: unset;
    max-height: unset;
    margin: 0;
  }

  .service-modal-enhanced .gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
  }

  /* Thumbnails pinned at bottom of gallery column */
  .service-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 */
  .service-modal-enhanced .modal-info-section {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 2.5rem;
    max-height: none;
    border-radius: 0 0 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 .categories-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.05s;
}

@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; /* hidden until shelf is open */
  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;
}

/* ── Kill gold accent lines inside layer context ── */
.layer-wrapper .categories-section::before,
.layer-wrapper .categories-section::after {
  display: none;
}

/* ── Category layer matches SubCategory compact size ── */
.layer-wrapper .categories-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.layer-wrapper .categories-strip {
  padding-top: 0.5rem;
  padding-bottom: 0.8rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

.layer-wrapper .category-item {
  padding: 0.4rem 0.5rem 0.55rem;
}

.layer-wrapper .category-item .category-image {
  width: clamp(50px, 5.5vw, 62px) !important;
  height: clamp(50px, 5.5vw, 62px) !important;
}

.layer-wrapper .category-name {
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
}

/* ── Active item: replace translateY (gets clipped by overflow:hidden) with border glow ── */
.layer-wrapper .category-item.active .category-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-item:hover .category-image {
  transform: none !important;
}
.layer-wrapper .subcategory-item.active .category-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;
}

/* ============================================================
   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 ── */

/* Strip wrap: items start from top so margin-top on buttons controls vertical pos */
.layer-wrapper .strip-scroll-wrap {
  align-items: flex-start;
}

/* Push buttons down so their centre aligns with the avatar circle centre.
   Formula: strip-padding-top (0.5rem) + item-padding-top (0.4rem) + image-half
            cancel with button-half (0.9rem), leaving just image-half as margin. */
.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);
}

/* ============================================================
   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;
}

/* ── Desktop: pull arrows away from the edge ── */
@media (min-width: 768px) {
  .layer-side-ctl {
    right: 48px;
  }
}

.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;
}

@media (min-width: 768px) {
  .layer-ctl-provider {
    right: 48px;
  }
}
