/* ==========================================
   MODERN ENHANCED UI - Marketplace
   Bright Blue-Green Theme + Gold Accents
   Fully Responsive: Desktop, Tablet, Mobile
   ========================================== */

:root {
  /* Bright Blue-Green Theme - Primary Palette */
  --blue-gradient-1: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
  --blue-gradient-2: linear-gradient(135deg, #0052CC 0%, #10B981 100%);
  --blue-gradient-3: linear-gradient(135deg, #0080FF 0%, #34D399 100%);
  --blue-gradient-4: linear-gradient(135deg, #0047B3 0%, #059669 100%);
  --blue-gradient-light: linear-gradient(135deg, #E6F2FF 0%, #D1FAE5 100%);

  /* Primary Colors */
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;

  /* Gold Accents - High Contrast */
  --gold: #FFD700;
  --gold-light: #FFF4CC;
  --gold-dark: #FFA500;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFD700 100%);

  /* Backgrounds */
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --surface: #FFFFFF;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  /* Borders */
  --border-color: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-blue: 0 4px 20px rgba(0, 204, 136, 0.25);
  --shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.25);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-gradient-blue {
  background: var(--blue-gradient-1);
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-gradient-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 204, 136, 0.4);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.btn-outline-blue {
  background: white;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), var(--blue-gradient-1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--primary);
}

.btn-outline-blue:hover {
  background: var(--blue-gradient-light);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: white;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
}

.btn-outline-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-outline-green {
  background: white;
  border: 2px solid #10B981;
  color: #059669;
}

.btn-outline-green:hover {
  background: #D1FAE5;
  transform: translateY(-1px);
}

.btn-outline-red {
  background: white;
  border: 2px solid #EF4444;
  color: #DC2626;
}

.btn-outline-red:hover {
  background: #FEE2E2;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  background: white;
  border: 2px solid var(--border-strong);
  color: var(--text-secondary);
}

.btn-outline-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--text-primary);
  color: white;
}

.btn-dark:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ==========================================
   CARDS
   ========================================== */

.card-modern {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: var(--transition-base);
  position: relative;
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}

.card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.card-modern:hover::after {
  transform: scaleX(1);
}

.product-card-modern {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.product-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: transparent;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content-modern {
  padding: var(--space-5);
}

.card-title-modern {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.card-text-modern {
  font-size: 0.875rem;
  color: var(--text-secondary) !important;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.card-price-modern {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--blue-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   BADGES
   ========================================== */

.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue {
  background: var(--blue-gradient-1);
  color: white;
  box-shadow: var(--shadow-blue);
}

.badge-gold {
  background: var(--gold-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-gold);
}


.category-chips-modern {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-4) 0;
  scrollbar-width: none;
}

.category-chips-modern::-webkit-scrollbar {
  display: none;
}

.category-chip-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-base);
}

.category-chip-modern:hover,
.category-chip-modern.active {
  background: var(--blue-gradient-1);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

.section-modern {
  padding: var(--space-16) 0;
}

.section-header-modern {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-title-modern {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-subtitle-modern {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   CONTAINERS & GRIDS
   ========================================== */

.container-modern {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.grid-modern {
  display: grid;
  gap: var(--space-6);
}

.grid-modern>* {
  min-width: 0;
}

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

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

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

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

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {

  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   FORM INPUTS
   ========================================== */

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================
   UTILITIES
   ========================================== */

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.admin-content {
  flex-grow: 1;
  padding: 2rem;
  background: var(--bg-body);
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.admin-brand {
  padding: 1.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
}

.admin-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

.admin-nav a:hover,
.section-header-modern {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-title-modern {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-subtitle-modern {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   CONTAINERS & GRIDS
   ========================================== */

.container-modern {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.grid-modern {
  display: grid;
  gap: var(--space-6);
}

.grid-modern>* {
  min-width: 0;
}

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

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

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

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

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {

  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   FORM INPUTS
   ========================================== */

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================
   UTILITIES
   ========================================== */

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.admin-content {
  flex-grow: 1;
  padding: 2rem;
  background: var(--bg-body);
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.admin-brand {
  padding: 1.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
}

.admin-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--bg-secondary);
  color: var(--primary);
}

.admin-nav a i {
  width: 24px;
}

/* ==========================================
   ADMIN PANEL MODERN STYLING
   ========================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F8FAFC;
}

.admin-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0A1929 0%, #1A2F42 100%);
  border-right: 1px solid rgba(0, 204, 136, 0.1);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-brand {
  padding: 2rem 1.5rem;
  font-weight: 800;
  font-size: 1.75rem;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 204, 136, 0.05);
}

.admin-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  color: #B8C5D0;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.admin-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(0, 204, 136, 0.1);
  color: #FFFFFF;
}



.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-right .btn {
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: white;
  color: #475569;
  padding: 0.5rem 0.875rem;
  transition: all 0.2s ease;
}

.topbar-right .btn:hover {
  background: #F8FAFC;
  border-color: #00CC88;
  color: #00CC88;
}

.topbar-right .btn .count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

/* Admin Content Area */
.admin-content {
  flex-grow: 1;
  padding: 2.5rem;
  background: #F8FAFC;
  overflow-y: auto;
}

.section-title-modern {
  color: #0F172A;
  font-weight: 800;
  margin-bottom: 0;
}

/* Dashboard Stats Cards */
.admin-content .card-modern {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-content .card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.admin-content .card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 204, 136, 0.3);
}

.admin-content .card-modern:hover::before {
  transform: scaleX(1);
}

/* Card Icons */
.admin-content .card-modern .fas,
.admin-content .card-modern .fab {
  color: #0066FF;
  font-size: 1.5rem;
}

/* Stat Numbers */
.admin-content .card-modern h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.75rem 0;
}

/* Button Styling */
.admin-content .btn-outline-primary {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #0066FF;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.admin-content .btn-outline-primary:hover {
  background: linear-gradient(135deg, #E6F2FF 0%, #D1FAE5 100%);
  transform: translateY(-1px);
}

/* Dropdown Menu */
#notif-dropdown {
  position: relative;
}

#notif-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

#notif-dropdown.show .dropdown-menu {
  display: block;
}

#notif-dropdown .dropdown-item {
  padding: 0.875rem 1.25rem;
  color: #475569;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

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

#notif-dropdown .dropdown-item:hover {
  background: linear-gradient(135deg, #E6F2FF 0%, #D1FAE5 100%);
  color: #0066FF;
}

/* Table Styling */
.admin-content table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-content table thead {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.admin-content table th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #0F172A;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #E2E8F0;
}

.admin-content table td {
  font-weight: 900;
  background: var(--blue-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-3);
  letter-spacing: -1px;
}

.catalog-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Price Range Inputs */
.price-range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.price-range input {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-weight: 600;
}

.price-range span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Results Header */
.results-header {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.results-header h5 {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.sort-dropdown {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background-color: var(--bg-primary);
  transition: all 0.2s;
}

.sort-dropdown:hover {
  border-color: var(--primary);
  background-color: white;
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-color);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* Custom Checkbox */
.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: var(--space-2);
}

.form-check:hover .form-check-label {
  color: var(--primary);
}

/* ==========================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ========================================== */

@media (max-width: 768px) {

  /* Container padding */
  .container-modern {
    padding: 0 var(--space-4);
  }

  /* Section spacing */
  .section-modern {
    padding: var(--space-12) 0;
  }

  .section-header-modern {
    margin-bottom: var(--space-8);
  }

  /* Hero modern */
  .hero-modern {
    padding: 0;
  }

  .hero-content {
    padding: var(--space-12) 0;
  }

  .hero-title-modern {
    font-size: 1.75rem !important;
  }

  .hero-subtitle-modern {
    font-size: 1rem !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-modern {
    width: 100%;
  }

  /* Buttons */
  .btn-modern {
    padding: var(--space-3) var(--space-5);
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
  }

  .btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
  }

  /* Cards */
  .card-modern,
  .product-card-modern {
    margin-bottom: var(--space-4);
  }

  .card-content-modern {
    padding: var(--space-4);
  }

  .card-title-modern {
    font-size: 1rem;
  }

  .card-text-modern {
    font-size: 0.8125rem;
  }

  /* Price */
  .price-current {
    font-size: 1.25rem;
  }

  /* Badges */
  .badge-modern {
    font-size: 0.6875rem;
    padding: var(--space-1) var(--space-2);
  }

  /* Category chips */
  .category-chip-modern {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
  }

  /* Grid gap */
  .grid-modern {
    gap: var(--space-4);
  }
}

@media (max-width: 520px) {

  /* Smaller spacing on very small screens */
  .container-modern {
    padding: 0 var(--space-3);
  }

  .section-modern {
    padding: var(--space-10) 0;
  }

  .hero-title-modern {
    font-size: 1.5rem !important;
  }

  .section-title-modern {
    font-size: 1.5rem !important;
  }

  .grid-modern {
    gap: var(--space-3);
  }
}