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

/* ===================== TABLE OF CONTENTS ===================== */
/* 01. CSS Variables & Base */
/* 02. Hero Section - Enhanced */
/* 03. Search & Filter Chips - Premium */
/* 04. Editor's Picks - Featured Layout */
/* 05. Explore Categories - Circle Grid */
/* 06. Filters Bar - Sticky Premium */
/* 07. Mobile Filter Modal - Enhanced */
/* 08. Main Portfolio Grid - Creative Masonry */
/* 09. Portfolio Cards - Premium Design */
/* 10. Trust Mini Section - Modern */
/* 11. Recently Added Strip - Horizontal Scroll */
/* 12. Project Details Modal - Premium Experience */
/* 13. Empty State - Beautiful */
/* 14. Load More & Pagination */
/* 15. Loading States & Skeletons */
/* 16. Toast Notifications */
/* 17. Responsive Breakpoints - Fine-tuned */
/* ============================================================ */

/* ========================================================================
   01. CSS VARIABLES & BASE
   ======================================================================== */
:root {
  --portfolio-accent-gradient: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  --portfolio-card-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
  --portfolio-card-shadow-hover: 0 30px 45px -15px rgba(183, 140, 90, 0.2);
  --portfolio-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ========================================================================
   02. HERO SECTION - Enhanced with Premium Background
   ======================================================================== */
.portfolio-hero {
  padding: 1.5rem 0 clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-2%, -2%) rotate(1deg);
  }
  66% {
    transform: translate(2%, 2%) rotate(-1deg);
  }
}

.portfolio-hero .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: var(--accent);
  display: block;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.6s ease;
}

.portfolio-hero .hero-eyebrow::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.portfolio-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 400;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-dark);
  line-height: 1.1;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.portfolio-hero-title .title-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.portfolio-hero-title .title-accent::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(183, 140, 90, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.portfolio-hero-subtitle {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  line-height: 1.6;
  padding: 0 1rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================
   03. SEARCH & FILTER CHIPS - Premium Design
   ======================================================================== */
.portfolio-search {
  max-width: min(600px, 90%);
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 60px;
  padding: 0.25rem 0.25rem 0.25rem clamp(1.5rem, 4vw, 2rem);
  box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

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

.search-wrapper input {
  flex: 1;
  border: none;
  padding: clamp(0.9rem, 2.5vw, 1.2rem) 0;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  outline: none;
  background: transparent;
  width: 100%;
}

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

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

/* Filter Chips - Premium */
.filter-chips {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.25rem 0 0.5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .filter-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.25rem 1rem 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
  }
}

.filter-chips::-webkit-scrollbar {
  height: 3px;
}

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

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

.chip {
  flex: 0 0 auto;
  padding: 0.6rem 1.5rem;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 44px;
  white-space: nowrap;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.05);
}

.chip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--portfolio-accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.chip:hover {
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(183, 140, 90, 0.3);
}

.chip:hover::before {
  opacity: 1;
}

.chip.active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: white;
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.15);
}

/* ========================================================================
   04. EDITOR'S PICKS - Featured Layout
   ======================================================================== */
.editor-picks {
  padding: clamp(2rem, 6vw, 4rem) 0;
  background: white;
  position: relative;
  overflow: hidden;
}

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

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

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

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

.featured-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--portfolio-card-shadow);
  cursor: pointer;
  transition: var(--portfolio-transition);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-light);
}

.featured-card.large {
  aspect-ratio: 16 / 9;
}

@media (min-width: 640px) {
  .featured-card.large {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

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

.featured-card:hover::before {
  opacity: 1;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  color: white;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

.featured-card:hover .featured-overlay {
  opacity: 1;
  transform: translateY(0);
}

.featured-overlay h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.featured-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-badge {
  display: inline-block;
  background: var(--accent);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.2);
}

/* ========================================================================
   05. EXPLORE CATEGORIES - Circle Grid with Icons
   ======================================================================== */
.explore-categories {
  padding: clamp(2rem, 6vw, 4rem) 0;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.category-circles {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .category-circles {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2rem 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
  }
}

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

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

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

.category-circles-item {
  flex: 0 0 clamp(80px, 20vw, 100px);
  text-align: center;
  cursor: pointer;
  transition: var(--portfolio-transition);
  position: relative;
  padding: 0.5rem 0;
}

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

.category-circles-item.active .circle-image {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.2),
    0 15px 30px -8px rgba(183, 140, 90, 0.3);
  background: var(--bg);
}

.category-circles-item.active .circle-image i {
  color: white;
  transform: scale(1.1);
}

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

.circle-image {
  width: clamp(70px, 18vw, 90px);
  height: clamp(70px, 18vw, 90px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  transition: all 0.3s ease;
}

.circle-image i {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  color: var(--accent);
  transition: all 0.3s ease;
}

.category-circles-item span {
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  color: var(--text-dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* ========================================================================
   06. FILTERS BAR - Premium
   ======================================================================== */
.filters-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: static;
  top: 70px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .filters-bar {
    top: 60px;
    padding: 0.75rem 0;
  }
}

.filters-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

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

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

.filter-select {
  padding: 0.7rem 2rem 0.7rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: 0.9rem;
  min-width: 150px;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.05);
}

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

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

#clearFiltersBtn {
  min-height: 44px;
  white-space: nowrap;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0 1.5rem;
}

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

.mobile-filter-btn {
  display: none;
  width: 100%;
  min-height: 48px;
  font-size: 0.95rem;
  border: 2px solid var(--border-light);
  background: white;
  transition: all 0.3s ease;
}

.mobile-filter-btn i {
  margin-right: 0.5rem;
  color: var(--accent);
}

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

.mobile-filter-btn:hover i {
  color: white;
}

@media (max-width: 768px) {
  .mobile-filter-btn {
    display: block;
  }
}

/* ========================================================================
   07. MOBILE FILTER MODAL - Enhanced
   ======================================================================== */
.filter-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}

.filter-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.filter-modal-content {
  background: white;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-modal-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 600;
  font-family: var(--font-serif);
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-soft);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: var(--bg);
  color: var(--accent);
  transform: rotate(90deg);
}

.filter-modal-body {
  padding: 2rem;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.filter-section select {
  width: 100%;
  min-height: 48px;
  font-size: 0.95rem;
}

.filter-modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

.filter-modal-footer button {
  flex: 1;
  min-height: 48px;
  font-size: 0.95rem;
}

/* ========================================================================
   08. MAIN PORTFOLIO GRID - Creative Masonry
   ======================================================================== */
.portfolio-grid-section {
  padding: clamp(0rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
  position: relative;
  margin-top: -50px;
}

.portfolio-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.portfolio-header-compact .section-title-serif {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  position: relative;
  display: inline-block;
}

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

.result-count {
  color: var(--text-soft);
  font-size: 0.9rem;
  background: white;
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

/* Creative Grid - Masonry Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* Create masonry-like feel with varied heights */
.portfolio-card:nth-child(3n + 1) {
  grid-row: span 2;
}

.portfolio-card:nth-child(3n + 2) {
  grid-row: span 1;
}

.portfolio-card:nth-child(3n + 3) {
  grid-row: span 1;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .portfolio-header-compact {
    margin-top: -2.5rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

/* ========================================================================
   09. PORTFOLIO CARDS - Premium Design
   ======================================================================== */
.portfolio-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--portfolio-card-shadow);
  transition: var(--portfolio-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  position: relative;
  height: 100%;
}

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

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

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

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

.portfolio-card:nth-child(3n + 1) .card-image {
  aspect-ratio: 4 / 5;
}

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

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

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

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

.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-light);
  z-index: 3;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.1);
}

.card-likes {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.65rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);
}

.card-likes i {
  color: #ff6b6b;
  font-size: 0.6rem;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  z-index: 1;
}

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

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.level-badge {
  font-size: 0.6rem;
  padding: 0.2rem 0.75rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.1);
}

.level-badge.platinum {
  background: linear-gradient(135deg, #e3e4e8 0%, #c0c4cc 100%);
  color: #3a3d44;
  border-color: #a0a4ac;
}
.level-badge.gold {
  background: linear-gradient(135deg, #f7e3b4 0%, #e5c990 100%);
  color: #7d5f2a;
  border-color: #d4b178;
}
.level-badge.silver {
  background: linear-gradient(135deg, #e6e8ec 0%, #d0d3da 100%);
  color: #4a505a;
  border-color: #b0b5c0;
}
.level-badge.bronze {
  background: linear-gradient(135deg, #f2ebe3 0%, #e6d9cc 100%);
  color: #8b6f50;
  border-color: #ccb8a5;
}

.card-provider {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.7rem;
  color: var(--text-soft);
}

.card-meta i {
  color: var(--accent);
  margin-right: 0.2rem;
  font-size: 0.65rem;
}

/* ========================================================================
   10. TRUST MINI SECTION - Modern
   ======================================================================== */
.trust-mini {
  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;
  margin-top: -50px;
}

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

.trust-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .trust-mini-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.trust-mini-card {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.trust-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -12px rgba(183, 140, 90, 0.15);
  border-color: var(--accent-light);
}

.trust-mini-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(183, 140, 90, 0.1) 100%
  );
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.trust-mini-card:hover i {
  background: var(--accent);
  color: white;
  transform: scale(1.05) rotate(5deg);
}

.trust-mini-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.trust-mini-card p {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

/* ========================================================================
   11. RECENTLY ADDED STRIP - Horizontal Scroll
   ======================================================================== */
.recent-strip {
  padding: clamp(1rem, 8vw, 5rem) 0;
  background: white;
  position: relative;
  overflow: hidden;
}

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

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

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

.recent-strip-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 0 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 1rem;
  scroll-behavior: smooth;
}

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

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

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

.recent-strip-item {
  flex: 0 0 min(160px, 40vw);
  cursor: pointer;
  transition: var(--portfolio-transition);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  background: white;
}

.recent-strip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px -12px rgba(183, 140, 90, 0.2);
  border-color: var(--accent-light);
}

.recent-strip-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recent-strip-item:hover img {
  transform: scale(1.05);
}

.recent-strip-item h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.5rem 0.75rem 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-strip-item p {
  font-size: 0.65rem;
  color: var(--text-soft);
  margin: 0 0.75rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================================
   12. PROJECT DETAILS MODAL - Premium Experience
   ======================================================================== */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.portfolio-modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 32px;
  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: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .modal-container {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 90vh;
    border-radius: 28px 28px 0 0;
    animation: slideUpModal 0.4s ease;
  }

  @keyframes slideUpModal {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

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

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

.modal-content {
  padding: 2rem;
}

@media (min-width: 768px) {
  .modal-content {
    padding: 2.5rem;
  }
}

/* Modal Gallery */
.modal-gallery {
  margin-bottom: 2rem;
}

.gallery-main {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  background: var(--bg);
}

@media (min-width: 768px) {
  .gallery-main {
    height: 400px;
  }
}

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

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

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

.gallery-thumbnails img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnails img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -8px rgba(183, 140, 90, 0.2);
}

.gallery-thumbnails img.active {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 8px 15px -8px rgba(183, 140, 90, 0.3);
}

/* Modal Info */
.modal-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.modal-main {
  padding-right: 0;
}

@media (min-width: 768px) {
  .modal-main {
    padding-right: 2rem;
  }
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

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

.modal-provider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--bg) 0%, white 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: 0 10px 20px -10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

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

.modal-provider:hover {
  background: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -12px rgba(183, 140, 90, 0.15);
}

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

.provider-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid white;
  box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.provider-details {
  flex: 1;
}

.provider-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.provider-details p {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.provider-level-badge {
  font-size: 0.7rem;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 1rem;
  border: 1px solid white;
  box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.modal-description {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  position: relative;
}

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

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.modal-tag {
  background: white;
  padding: 0.4rem 1.25rem;
  border-radius: 40px;
  font-size: 0.75rem;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.05);
}

.modal-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px -5px rgba(183, 140, 90, 0.1);
}

/* Modal Sidebar */
.modal-sidebar {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 5px 15px -8px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

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

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions button {
  width: 100%;
  min-height: 48px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 40px;
}

.modal-actions .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.2);
}

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

.modal-actions .btn-outline {
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
}

.modal-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(183, 140, 90, 0.15);
}

.modal-actions .btn-outline i {
  color: var(--accent);
  transition: all 0.3s ease;
}

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

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

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

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

.empty-state 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 .btn-primary {
  min-width: 200px;
  min-height: 48px;
  font-size: 0.95rem;
  background: var(--text-dark);
  color: white;
  border: none;
}

.empty-state .btn-primary:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -10px rgba(183, 140, 90, 0.3);
}

/* ========================================================================
   14. PAGINATION - Polished (Matching Products)
   ======================================================================== */
.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(--portfolio-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;
}

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

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

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

/* 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 */
.portfolio-grid {
  transition: opacity 0.3s ease;
}

.portfolio-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

.load-more-container {
  text-align: center;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}

#loadMoreBtn {
  min-width: 200px;
  min-height: 52px;
  font-size: 0.95rem;
  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: 0 10px 20px -8px rgba(0, 0, 0, 0.05);
}

#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 25px -10px rgba(183, 140, 90, 0.3);
}

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

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

/* ========================================================================
   15. LOADING STATES & SKELETONS
   ======================================================================== */
.loading-spinner-container {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
}

.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 24px;
  height: 300px;
  border: 1px solid var(--border-light);
}

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

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

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

/* ========================================================================
   16. TOAST NOTIFICATIONS
   ======================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  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: 20px;
    right: 20px;
    bottom: 20px;
  }
}

.toast-notification {
  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%;
  border: 1px solid var(--border-light);
}

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

.toast-notification.success {
  border-left-color: #10b981;
}
.toast-notification.error {
  border-left-color: #ef4444;
}
.toast-notification.info {
  border-left-color: var(--accent);
}

.toast-notification i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-notification.success i {
  color: #10b981;
}
.toast-notification.error i {
  color: #ef4444;
}
.toast-notification.info i {
  color: var(--accent);
}

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

/* ========================================================================
   17. RESPONSIVE BREAKPOINTS - Fine-tuned
   ======================================================================== */

/* Extra Small Devices (320px - 359px) */
@media (max-width: 359px) {
  .portfolio-hero-title {
    font-size: 2.2rem;
  }

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

  .portfolio-card:nth-child(3n + 1) .card-image {
    aspect-ratio: 4 / 3;
  }

  .category-circles-item {
    flex: 0 0 70px;
  }

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

  .circle-image i {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .trust-mini-grid {
    grid-template-columns: 1fr;
  }

  .recent-strip-item {
    flex: 0 0 130px;
  }

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

/* Small Devices (360px - 389px) */
@media (min-width: 360px) and (max-width: 389px) {
  .portfolio-grid {
    gap: 1rem;
  }

  .category-circles-item {
    flex: 0 0 75px;
  }

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

  .card-title {
    font-size: 0.85rem;
  }

  .recent-strip-item {
    flex: 0 0 140px;
  }
}

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

  .category-circles-item {
    flex: 0 0 80px;
  }

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

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

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

  .category-circles-item {
    flex: 0 0 85px;
  }

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

  .recent-strip-item {
    flex: 0 0 160px;
  }
}

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

  .category-circles-item {
    flex: 0 0 90px;
  }

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

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

  .gallery-main {
    height: 350px;
  }
}

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

  .category-circles-item {
    flex: 0 0 95px;
  }

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

  .circle-image i {
    font-size: 2rem;
  }

  .recent-strip-item {
    flex: 0 0 200px;
  }

  .gallery-main {
    height: 350px;
  }
}

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

  .category-circles-item {
    flex: 0 0 100px;
  }

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

  .circle-image i {
    font-size: 2.2rem;
  }

  .recent-strip-item {
    flex: 0 0 220px;
  }

  .gallery-main {
    height: 400px;
  }
}

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

  .category-circles-item {
    flex: 0 0 110px;
  }

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

  .circle-image i {
    font-size: 2.4rem;
  }

  .recent-strip-item {
    flex: 0 0 240px;
  }
}

/* Large Desktops (1280px - 1599px) */
@media (min-width: 1280px) and (max-width: 1599px) {
  .portfolio-grid {
    gap: 2.5rem;
  }

  .category-circles-item {
    flex: 0 0 120px;
  }

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

  .circle-image i {
    font-size: 2.6rem;
  }

  .recent-strip-item {
    flex: 0 0 280px;
  }

  .container {
    max-width: 1200px;
  }
}

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

  .category-circles-item {
    flex: 0 0 130px;
  }

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

  .circle-image i {
    font-size: 3rem;
  }

  .recent-strip-item {
    flex: 0 0 300px;
  }

  .container {
    max-width: 1400px;
  }
}

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

  .portfolio-hero {
    padding: 1.5rem 0;
  }

  .featured-grid {
    max-height: 300px;
  }

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

  .gallery-main {
    height: 250px;
  }

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

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-image img,
  .gallery-main img,
  .recent-strip-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .filters-bar,
  .filter-chips,
  .mobile-filter-btn,
  .load-more-container,
  .modal-close,
  .toast-container,
  .recent-strip,
  .trust-mini {
    display: none !important;
  }

  .portfolio-hero {
    background: white;
    padding: 1rem 0;
  }

  .portfolio-grid {
    display: block;
  }

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

  .modal-overlay {
    background: white;
  }

  .modal-container {
    position: relative;
    transform: none;
    box-shadow: none;
    border: 1px solid #ddd;
    max-height: none;
    overflow: visible;
  }

  .modal-actions {
    display: none;
  }
}
/* ========================================================================
   04. EDITOR'S PICKS - Featured Spotlight Carousel (Mobile)
   ======================================================================== */
.editor-picks {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: white;
  position: relative;
  overflow: hidden;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Mobile - Spotlight Carousel */
@media (max-width: 767px) {
  .featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 1rem 1.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
    scroll-behavior: smooth;
    grid-template-columns: none;
    margin-left: -1rem;
    margin-right: -1rem;
    width: 100vw;
  }

  .featured-grid::-webkit-scrollbar {
    height: 3px;
  }

  .featured-grid::-webkit-scrollbar-track {
    background: transparent;
  }

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

  .featured-card {
    flex: 0 0 280px;
    min-width: 260px;
    max-width: 300px;
    scroll-snap-align: start;
    margin-right: 0.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    aspect-ratio: 4/5; /* Portrait orientation for mobile */
  }

  .featured-card.large {
    aspect-ratio: 4/5; /* Same as others for consistency */
  }

  .featured-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -15px rgba(183, 140, 90, 0.25);
    border-color: var(--accent-light);
  }

  .featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .featured-card:hover img {
    transform: scale(1.05);
  }

  .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 60%,
      transparent 100%
    );
    color: white;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 2;
  }

  .featured-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .featured-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .featured-overlay p i {
    font-size: 0.7rem;
    color: var(--accent-light);
  }

  .featured-badge {
    display: inline-block;
    background: var(--accent);
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
  }

  /* Spotlight effect - first card larger */
  .featured-card:first-child {
    flex: 0 0 300px;
    min-width: 280px;
    box-shadow: 0 20px 35px -12px rgba(183, 140, 90, 0.3);
    border-color: var(--accent);
  }

  .featured-card:first-child .featured-overlay h3 {
    font-size: 1.2rem;
  }

  /* Add fade indicators */
  .editor-picks {
    position: relative;
  }

  .editor-picks::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, white);
    pointer-events: none;
    z-index: 5;
    opacity: 0.7;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .featured-card {
    flex: 0 0 240px;
    min-width: 220px;
  }

  .featured-card:first-child {
    flex: 0 0 260px;
    min-width: 240px;
  }

  .featured-overlay h3 {
    font-size: 1rem;
  }

  .featured-overlay p {
    font-size: 0.7rem;
  }

  .featured-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.5rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .featured-card {
    flex: 0 0 200px;
    min-width: 180px;
  }

  .featured-card:first-child {
    flex: 0 0 220px;
    min-width: 200px;
  }

  .featured-overlay h3 {
    font-size: 0.9rem;
  }

  .featured-overlay p {
    font-size: 0.65rem;
  }
}

/* Tablet and up */
@media (min-width: 640px) {
  .featured-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .featured-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--portfolio-card-shadow);
    cursor: pointer;
    transition: var(--portfolio-transition);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-light);
  }

  .featured-card.large {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }

  .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%
    );
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
  }

  .featured-card:hover .featured-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .featured-overlay h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .featured-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .featured-badge {
    display: inline-block;
    background: var(--accent);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.2);
  }
}
/* ========================================================================
   12b. PROJECT DETAILS MODAL - Mobile Bottom-Sheet Overrides
   NOTE: Section 12 above defines the base modal + first bottom-sheet rule
         at @media (max-width: 768px). This section extends those rules.
   ======================================================================== */

/* Mobile bottom-sheet: reinforce the bottom-sheet pattern, fix content padding */
@media (max-width: 767px) {
  /* Drag handle for bottom sheet */
  .modal-container::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0.75rem auto 0;
  }

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

  /* Adjust gallery for mobile */
  .modal-gallery {
    margin-bottom: 1.25rem;
  }

  /* Use aspect-ratio instead of fixed height */
  .gallery-main {
    height: auto;
    aspect-ratio: 4/3;
    border-radius: 16px;
    margin-bottom: 0.75rem;
  }

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

  .gallery-thumbnails img {
    height: 50px;
    border-radius: 8px;
  }

  /* Modal info grid */
  .modal-info {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .modal-main {
    padding-right: 0;
  }

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

  .modal-title::after {
    width: 40px;
  }

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

  .provider-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .provider-details h4 {
    font-size: 0.9rem;
  }

  .provider-details p {
    font-size: 0.75rem;
  }

  .provider-level-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.75rem;
    margin-left: 0.5rem;
  }

  .modal-description {
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .modal-description::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }

  .modal-tags {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .modal-tag {
    font-size: 0.65rem;
    padding: 0.3rem 1rem;
  }

  .modal-sidebar {
    padding: 1.25rem;
  }

  .modal-stats {
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .modal-actions {
    gap: 0.5rem;
  }

  .modal-actions button {
    min-height: 44px;
    font-size: 0.85rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
  }
}

/* Small mobile ≤ 480px — bottom-sheet stays full-width */
@media (max-width: 480px) {
  /* Keep width: 100% from bottom-sheet rule above — no max-width constraint */
  .modal-container {
    max-height: 93vh;
    /* Preserve top-only radius from bottom-sheet */
    border-radius: 24px 24px 0 0 !important;
  }

  .modal-content {
    padding: 1.25rem;
  }

  /* Aspect-ratio image — no fixed height */
  .gallery-main {
    height: auto;
    aspect-ratio: 4/3;
  }

  .gallery-thumbnails img {
    height: 45px;
  }

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

  .modal-description {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

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

  .modal-content {
    padding: 1rem;
  }

  .gallery-main {
    height: auto;
    aspect-ratio: 4/3;
  }

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

  .gallery-thumbnails img {
    height: 40px;
  }

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

  .modal-provider {
    padding: 0.75rem;
  }

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

  .modal-description {
    font-size: 0.75rem;
    padding: 0.875rem;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}
/* ========================================================================
   09. PORTFOLIO CARDS - Premium Design (Minimal White Space, Taller Images)
   ======================================================================== */
.portfolio-card {
  background: white;
  border-radius: 20px; /* Slightly reduced from 24px */
  overflow: hidden;
  box-shadow: var(--portfolio-card-shadow);
  transition: var(--portfolio-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  position: relative;
  height: 100%;
}

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

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

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

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

/* Even taller for the first card in each group */
.portfolio-card:nth-child(3n + 1) .card-image {
  aspect-ratio: 2 / 3; /* Much taller for featured cards (was 4/5) */
}

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

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

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

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

.card-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.75rem; /* Smaller padding */
  border-radius: 30px;
  font-size: 0.6rem; /* Smaller font */
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-light);
  z-index: 3;
  box-shadow: 0 3px 8px -4px rgba(0, 0, 0, 0.1);
}

.card-likes {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.75rem;
  border-radius: 30px;
  font-size: 0.6rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 8px -4px rgba(0, 0, 0, 0.2);
}

.card-likes i {
  color: #ff6b6b;
  font-size: 0.55rem;
}

/* ULTRA COMPACT card content */
.card-content {
  padding: 0.75rem 0.75rem 0.6rem; /* Top, sides, bottom */
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  z-index: 1;
}

/* Mobile - even more compact */
@media (max-width: 767px) {
  .card-content {
    padding: 0.6rem 0.6rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .card-content {
    padding: 0.5rem 0.5rem 0.4rem;
  }
}

@media (max-width: 360px) {
  .card-content {
    padding: 0.4rem 0.4rem 0.3rem;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem; /* Minimal margin */
  gap: 0.25rem;
}

.card-title {
  font-size: 0.85rem; /* Smaller */
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2; /* Tighter */
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Only 1 line on desktop */
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Allow 2 lines on mobile if needed */
@media (max-width: 767px) {
  .card-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .card-title {
    font-size: 0.75rem;
  }
}

.level-badge {
  font-size: 0.5rem; /* Tiny */
  padding: 0.1rem 0.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .level-badge {
    font-size: 0.45rem;
    padding: 0.1rem 0.4rem;
  }
}

.level-badge.platinum {
  background: linear-gradient(135deg, #e3e4e8 0%, #c0c4cc 100%);
  color: #3a3d44;
  border-color: #a0a4ac;
}
.level-badge.gold {
  background: linear-gradient(135deg, #f7e3b4 0%, #e5c990 100%);
  color: #7d5f2a;
  border-color: #d4b178;
}
.level-badge.silver {
  background: linear-gradient(135deg, #e6e8ec 0%, #d0d3da 100%);
  color: #4a505a;
  border-color: #b0b5c0;
}
.level-badge.bronze {
  background: linear-gradient(135deg, #f2ebe3 0%, #e6d9cc 100%);
  color: #8b6f50;
  border-color: #ccb8a5;
}

.card-provider {
  color: var(--accent);
  font-size: 0.7rem; /* Smaller */
  margin-bottom: 0.2rem; /* Minimal */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

@media (max-width: 767px) {
  .card-provider {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
  }
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spread out */
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem; /* Minimal */
  border-top: 1px solid var(--border-light);
  font-size: 0.6rem; /* Smaller */
  color: var(--text-soft);
}

@media (max-width: 767px) {
  .card-meta {
    gap: 0.35rem;
    padding-top: 0.25rem;
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .card-meta {
    font-size: 0.5rem;
    gap: 0.25rem;
  }
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta i {
  color: var(--accent);
  margin-right: 0.1rem;
  font-size: 0.55rem; /* Smaller */
}

@media (max-width: 767px) {
  .card-meta i {
    font-size: 0.5rem;
  }
}

/* Tall image adjustment for 3n+1 cards - make them really stand out */
.portfolio-card:nth-child(3n + 1) .card-content {
  padding-top: 0.6rem; /* Slightly less padding for tall cards */
}
/* ========================================================================
   05. EXPLORE CATEGORIES - Compact Circle Grid
   ======================================================================== */
.explore-categories {
  padding: 1.5rem 0; /* Reduced from clamp(2rem, 6vw, 4rem) */
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.explore-categories .section-header {
  margin-bottom: 1rem; /* Reduced margin */
}

.explore-categories .section-title-serif {
  font-size: clamp(1.2rem, 4vw, 1.6rem); /* Slightly smaller title */
}

.category-circles {
  display: flex;
  justify-content: center;
  gap: 1rem; /* Reduced from clamp(1.5rem, 4vw, 2.5rem) */
  flex-wrap: wrap;
  padding: 0.5rem 0 1rem 0; /* Reduced padding */
  position: relative;
  z-index: 2;
}

/* Mobile - horizontal scroll with smaller circles */
@media (max-width: 767px) {
  .explore-categories {
    padding: 1rem 0; /* Even smaller on mobile */
  }

  .category-circles {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0.75rem; /* Smaller gap */
    padding: 0.5rem 1rem 0.75rem 1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
  }

  .category-circles-item {
    flex: 0 0 70px; /* Smaller fixed width */
    padding: 0.25rem 0;
  }

  .circle-image {
    width: 60px; /* Smaller circles */
    height: 60px;
    margin-bottom: 0.35rem;
  }

  .circle-image i {
    font-size: 1.5rem; /* Smaller icons */
  }

  .category-circles-item span {
    font-size: 0.6rem; /* Smaller text */
  }
}

/* Small mobile - even smaller */
@media (max-width: 480px) {
  .category-circles-item {
    flex: 0 0 60px;
  }

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

  .circle-image i {
    font-size: 1.3rem;
  }

  .category-circles-item span {
    font-size: 0.55rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .category-circles-item {
    flex: 0 0 55px;
  }

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

  .circle-image i {
    font-size: 1.1rem;
  }

  .category-circles-item span {
    font-size: 0.5rem;
  }
}

.category-circles::-webkit-scrollbar {
  height: 2px; /* Even thinner scrollbar */
}

.category-circles::-webkit-scrollbar-track {
  background: transparent;
}

.category-circles::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}
/* ========================================================================
   06. FILTERS BAR - Sticky Premium with Mobile Slider
   ======================================================================== */
.filters-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  position: static;
  top: 70px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .filters-bar {
    top: 60px;
    padding: 0.5rem 0;
  }
}

/* Desktop filters - styled like mobile filter button */
.filters-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

.filter-select {
  padding: 0.7rem 2rem 0.7rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: var(--bg);
  font-size: 0.9rem;
  min-width: 150px;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.05);
}

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

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

/* Desktop clear button - styled like mobile filter button */
#clearFiltersBtn {
  min-height: 44px;
  white-space: nowrap;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  gap: 0.5rem;
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.05);
}

#clearFiltersBtn i {
  color: var(--accent);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

#clearFiltersBtn:hover i {
  color: white;
}

/* Mobile - Single Row Slider */
@media (max-width: 767px) {
  .filters-desktop {
    display: flex; /* Show on mobile now */
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
    white-space: nowrap;
    width: 100%;
  }

  .filters-desktop::-webkit-scrollbar {
    height: 2px;
  }

  .filters-desktop::-webkit-scrollbar-track {
    background: transparent;
  }

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

  .filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }

  .filter-select {
    flex: 0 0 auto;
    min-width: 120px;
    width: auto;
    padding: 0.5rem 1.8rem 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-height: 36px;
    background-position: right 0.5rem center;
    background-size: 12px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    background-color: white;
  }

  #clearFiltersBtn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 1rem;
    font-size: 0.7rem;
    white-space: nowrap;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-soft);
    margin-left: 0.25rem;
    gap: 0.35rem;
  }

  #clearFiltersBtn i {
    font-size: 0.7rem;
  }

  /* Hide the separate mobile filter button */
  .mobile-filter-btn {
    display: none;
  }

  /* Add fade effect on edges */
  .filters-bar .container {
    position: relative;
  }

  .filters-bar .container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    z-index: 2;
  }
}

/* Small mobile - even smaller filters */
@media (max-width: 480px) {
  .filter-select {
    min-width: 100px;
    padding: 0.4rem 1.5rem 0.4rem 0.6rem;
    font-size: 0.65rem;
    min-height: 32px;
  }

  #clearFiltersBtn {
    min-height: 32px;
    padding: 0 0.75rem;
    font-size: 0.6rem;
  }

  #clearFiltersBtn i {
    font-size: 0.6rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .filter-select {
    min-width: 90px;
    padding: 0.35rem 1.3rem 0.35rem 0.5rem;
    font-size: 0.6rem;
  }

  #clearFiltersBtn {
    padding: 0 0.6rem;
    font-size: 0.55rem;
  }
}
/* ========================================================================
   CART DROPDOWN STYLES
   ======================================================================== */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.header-flex {
  position: relative;
}

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

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

/* For the cart page specifically, you might need this in cart.css */
.cart-page .cart-dropdown {
  top: 60px !important;
}

/* ========================================================================
   03. SIMPLE CATEGORIES - Ultra Minimal
   ======================================================================== */
.simple-categories {
  max-width: min(800px, 95%);
  margin: 1.5rem auto 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.6s ease 0.3s both;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.6;
  font-weight: 300;
}

/* Mobile */
@media (max-width: 768px) {
  .simple-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    scrollbar-width: none;
  }

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

  .simple-categories span {
    flex: 0 0 auto;
  }
}
/* ========================================================================
   06. FILTERS BAR - Blurred Text Version
   ======================================================================== */
.filters-bar {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  position: static;
  border: none;
  z-index: 90;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .filters-bar {
    padding: 0.5rem 0 0.15rem 0;
  }
}

.filters-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

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

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
}

/* Blurred select styling */
.filter-select-blur {
  padding: 0.5rem 1.5rem 0.5rem 0.75rem;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  font-size: 0.85rem;
  min-width: 130px;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 10px;
  color: black;
  font-weight: 300;
  letter-spacing: 0.3px;
  opacity: 0.7;
  backdrop-filter: blur(2px);
}

.filter-select-blur:hover {
  opacity: 1;
  color: var(--text-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a7a4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-select-blur:focus {
  outline: none;
  color: var(--text-dark);
  opacity: 1;
}

.filter-select-blur:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-image: none;
}

/* Text-only button styling - looks like text but functions as button */
.btn-text {
  min-height: 40px;
  white-space: nowrap;
  border: none !important; /* Force remove any border */
  background: transparent !important; /* Force remove any background */
  color: var(--text-soft);
  font-weight: 300;
  transition: all 0.2s ease;
  padding: 0.5rem 0 0.5rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  gap: 0.5rem;
  opacity: 0.7;
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
  position: relative;
  margin: 0;
  line-height: normal;
  font-family: inherit;
  box-shadow: none !important; /* Remove any shadow */
  outline: none !important; /* Remove any outline */
  text-decoration: none; /* Remove any underline */
}

/* Remove all button-like styles and borders */
.btn-text:focus,
.btn-text:hover,
.btn-text:active,
.btn-text:visited {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none;
}

/* Subtle separator line (optional) */
.btn-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: var(--accent);
  opacity: 0.2;
  pointer-events: none; /* Make sure it doesn't interfere with clicking */
}

/* Hover effect - just like text would have */
.btn-text:hover {
  opacity: 1;
  color: var(--text-dark);
  background: var(--accent) !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove any focus ring or outline */
.btn-text:focus-visible {
  outline: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Mobile version */
@media (max-width: 767px) {
  .btn-text {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.4rem 0 0.4rem 0.75rem;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-left: 0.25rem;
    gap: 0.35rem;
    border: none !important;
    background: transparent !important;
  }

  /* Remove separator line on mobile */
  .btn-text::before {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .btn-text {
    min-height: 30px;
    padding: 0.35rem 0 0.35rem 0.6rem;
    font-size: 0.65rem;
    border: none !important;
    background: transparent !important;
  }
}

/* Mobile filter button - keep as text but with icon */
.mobile-filter-btn {
  display: none;
  width: 100%;
  min-height: 44px;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-weight: 300;
  letter-spacing: 0.3px;
  opacity: 0.7;
  padding: 0.5rem;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-filter-btn::before {
  display: none; /* No separator line on mobile button */
}

.mobile-filter-btn i {
  margin-right: 0.5rem;
  color: var(--accent);
  opacity: 0.5;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.mobile-filter-btn:hover {
  opacity: 1;
  color: var(--text-dark);
  background: transparent;
  border: none;
}

.mobile-filter-btn:hover i {
  opacity: 1;
}

@media (max-width: 768px) {
  .mobile-filter-btn {
    display: flex;
  }
}

/* Mobile Slider Version */
@media (max-width: 767px) {
  .filters-desktop {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
  }

  .filters-desktop::-webkit-scrollbar {
    height: 1px;
  }

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

  .filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }

  .filter-select-blur {
    flex: 0 0 auto;
    min-width: 100px;
    width: auto;
    padding: 0.4rem 1.2rem 0.4rem 0.5rem;
    font-size: 0.7rem;
    min-height: 32px;
    background-size: 8px;
    opacity: 0.6;
  }

  .btn-text {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.4rem 0 0.4rem 0.75rem; /* Adjust padding for mobile */
    font-size: 0.7rem;
    white-space: nowrap;
    margin-left: 0.25rem;
    gap: 0.35rem;
  }

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

  /* Remove separator line on mobile */
  .btn-text::before {
    display: none;
  }

  /* Fade effect on edges */
  .filters-bar .container {
    position: relative;
  }

  .filters-bar .container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .filter-select-blur {
    min-width: 85px;
    padding: 0.35rem 1rem 0.35rem 0.4rem;
    font-size: 0.65rem;
    min-height: 30px;
  }

  .btn-text {
    min-height: 30px;
    padding: 0.35rem 0 0.35rem 0.6rem;
    font-size: 0.65rem;
  }

  .btn-text i {
    font-size: 0.65rem;
  }

  .mobile-filter-btn {
    min-height: 40px;
    font-size: 0.8rem;
  }
}
/* ========================================================================
   FILTER TOGGLE - Centered, Disappears When Clicked
   ======================================================================== */
.filters-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  position: relative;
}

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

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

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

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

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

/* Filters desktop - appears in same centered position */
.filters-desktop {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.filters-desktop.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.filters-desktop .filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .filters-bar .container {
    min-height: 50px;
  }

  .filter-toggle {
    padding: 0.6rem 1.5rem;
    width: auto;
    min-width: 150px;
  }

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

  .filters-desktop.visible {
    width: 100%;
  }

  .filters-desktop .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.25rem 0;
    gap: 0.75rem;
    width: 100%;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .filters-desktop .filter-group::-webkit-scrollbar {
    height: 2px;
  }

  .filters-desktop .filter-group::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
  }

  .filter-select-blur {
    flex: 0 0 auto;
  }

  #clearFiltersBtn {
    flex: 0 0 auto;
  }
}

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

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

  .filter-select-blur {
    min-width: 100px;
    padding: 0.35rem 1rem 0.35rem 0.5rem;
    font-size: 0.65rem;
  }

  #clearFiltersBtn {
    min-height: 32px;
    padding: 0 1rem;
    font-size: 0.65rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ========================================================================
   REDUCE GAP BETWEEN SECTIONS
   ======================================================================== */
.recent-strip {
  padding: clamp(0.5rem, 4vw, 2rem) 0; /* Reduced from clamp(1rem, 8vw, 5rem) */
}

.trust-mini {
  padding: clamp(1.5rem, 5vw, 3rem) 0; /* Reduced from clamp(3rem, 8vw, 5rem) */
  margin-top: -5.5rem; /* Pull up slightly */
}

/* Even smaller gap on mobile */
@media (max-width: 768px) {
  .recent-strip {
    padding: 0.5rem 0 1rem 0;
  }

  .trust-mini {
    padding: 1.5rem 0;
    margin-top: 0;
  }
}

/* Alternative: If you want to remove the gap completely */
.recent-strip.compact + .trust-mini {
  margin-top: 0;
  padding-top: 1rem;
}
/* ========================================================================
   GLOBAL SCROLLBAR STYLES - Accent Color
   ======================================================================== */
.recent-strip-wrapper,
.filter-chips,
.category-circles,
.filters-desktop .filter-group,
.products-grid,
.providers-strip {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

/* Webkit scrollbar styles for all scrollable elements */
.recent-strip-wrapper::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar,
.category-circles::-webkit-scrollbar,
.filters-desktop .filter-group::-webkit-scrollbar,
.products-grid::-webkit-scrollbar,
.providers-strip::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.recent-strip-wrapper::-webkit-scrollbar-track,
.filter-chips::-webkit-scrollbar-track,
.category-circles::-webkit-scrollbar-track,
.filters-desktop .filter-group::-webkit-scrollbar-track,
.products-grid::-webkit-scrollbar-track,
.providers-strip::-webkit-scrollbar-track {
  background: transparent;
}

.recent-strip-wrapper::-webkit-scrollbar-thumb,
.filter-chips::-webkit-scrollbar-thumb,
.category-circles::-webkit-scrollbar-thumb,
.filters-desktop .filter-group::-webkit-scrollbar-thumb,
.products-grid::-webkit-scrollbar-thumb,
.providers-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.recent-strip-wrapper::-webkit-scrollbar-thumb:hover,
.filter-chips::-webkit-scrollbar-thumb:hover,
.category-circles::-webkit-scrollbar-thumb:hover,
.filters-desktop .filter-group::-webkit-scrollbar-thumb:hover,
.products-grid::-webkit-scrollbar-thumb:hover,
.providers-strip::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark, #9a7a4e);
}

/* Adjust height for specific elements */
.filter-chips::-webkit-scrollbar,
.filters-desktop .filter-group::-webkit-scrollbar {
  height: 3px;
}

.category-circles::-webkit-scrollbar {
  height: 3px;
}
/* ========================================================================
   FILTERS BAR - Always Visible (No Toggle)
   ======================================================================== */
.filters-bar {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  position: static;
  border: none;
  z-index: 90;
  transition: all 0.3s ease;
  padding: 0.75rem 0;
}

@media (max-width: 768px) {
  .filters-bar {
    padding: 0.5rem 0 0.15rem 0;
  }
}

/* Remove filter toggle completely */
.filter-toggle,
#filterToggle,
.filter-toggle.hidden {
  display: none !important;
}

/* Filters desktop - ALWAYS VISIBLE */
.filters-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Mobile - Single Row Slider (Always visible) */
@media (max-width: 767px) {
  .filters-desktop {
    display: flex; /* Show on mobile */
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
    white-space: nowrap;
    width: 100%;
  }

  .filters-desktop::-webkit-scrollbar {
    height: 2px;
  }

  .filters-desktop::-webkit-scrollbar-track {
    background: transparent;
  }

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

  .filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }

  .filter-select-blur {
    flex: 0 0 auto;
    min-width: 100px;
    width: auto;
    padding: 0.4rem 1.2rem 0.4rem 0.5rem;
    font-size: 0.7rem;
    min-height: 32px;
    background-size: 8px;
    opacity: 0.6;
  }

  .btn-text {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.4rem 0 0.4rem 0.75rem;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-left: 0.25rem;
    gap: 0.35rem;
  }

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

  /* Fade effect on edges */
  .filters-bar .container {
    position: relative;
  }

  .filters-bar .container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
  }
}

/* Small mobile - even smaller filters */
@media (max-width: 480px) {
  .filter-select-blur {
    min-width: 85px;
    padding: 0.35rem 1rem 0.35rem 0.4rem;
    font-size: 0.65rem;
    min-height: 30px;
  }

  .btn-text {
    min-height: 30px;
    padding: 0.35rem 0 0.35rem 0.6rem;
    font-size: 0.65rem;
  }

  .btn-text i {
    font-size: 0.65rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .filter-select-blur {
    min-width: 75px;
    padding: 0.3rem 1rem 0.3rem 0.35rem;
    font-size: 0.6rem;
  }

  .btn-text {
    padding: 0.3rem 0 0.3rem 0.5rem;
    font-size: 0.6rem;
  }
}

/* Blurred select styling */
.filter-select-blur {
  padding: 0.5rem 1.5rem 0.5rem 0.75rem;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  font-size: 0.85rem;
  min-width: 130px;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 10px;
  color: black;
  font-weight: 300;
  letter-spacing: 0.3px;
  opacity: 0.7;
  backdrop-filter: blur(2px);
}

.filter-select-blur:hover {
  opacity: 1;
  color: var(--text-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a7a4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-select-blur:focus {
  outline: none;
  color: var(--text-dark);
  opacity: 1;
}

.filter-select-blur:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-image: none;
}

/* Text-only button styling */
.btn-text {
  min-height: 40px;
  white-space: nowrap;
  border: none !important;
  background: transparent !important;
  color: var(--text-soft);
  font-weight: 300;
  transition: all 0.2s ease;
  padding: 0.5rem 0 0.5rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  gap: 0.5rem;
  opacity: 0.7;
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
  position: relative;
  margin: 0;
  line-height: normal;
  font-family: inherit;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none;
}

.btn-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: var(--accent);
  opacity: 0.2;
  pointer-events: none;
}

.btn-text:hover {
  opacity: 1;
  color: var(--text-dark);
}

/* Remove any focus ring or outline */
.btn-text:focus-visible {
  outline: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
