/* Unified Search Bar Styles (matches courses page) */
.main-search {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  padding: 0.85rem 3.5rem 0.85rem 1.5rem;
  border: 2px solid var(--shadow-light);
  border-radius: 25px;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  max-width: 500px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px var(--shadow-light);
  backdrop-filter: blur(10px);
}








.search-btn {
  position: absolute;
  right: 1rem;
  background:linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  border: none;
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.6rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-light);
}





.search-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.search-btn:hover i {
  transform: scale(1.1);
}
:root {
  --primary-light: #fefefe;
  --secondary-light: #faf8f5;
  --accent-red: #8b1538;
  --dark-red: #7f1d1d;
  --burgundy: #991b1b;
  --dark-brown: #4a2c17;
  --medium-brown: #6b4423;
  --light-brown: #8b7355;
  --beige: #d4c4b0;
  --beige-light: #e8dcc6;
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --cream: #f5f5dc;
  --text-primary: #2c1810;
  --text-secondary: #4a2c17;
  --text-muted: #6b4423;
  --background-primary: #fefefe;
  --background-secondary: #faf8f5;
  --cream-darker: #faf8f5;
  --cream-darkest: #f2ede6;
}

body {
  font-family: "Playfair Display", "Inter", sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.65)), url("/image/d4s5689-2-300dpi-1500x998.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: white;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(139, 21, 56, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(74, 44, 23, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 2;
}
.page-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  padding: 2rem 0;
  margin-top: 50px;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.course-header-container {
  position: relative;
  display: inline-block;
  padding: 0 2.5rem;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--gold) 0%, #f3dfa2 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  position: relative;
  text-transform: uppercase;
  animation: shimmer 3s infinite alternate;
}

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

.header-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 0 auto;
  max-width: 700px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Search Section Styles */
.search-section {
  margin-bottom: 4rem;
}

.search-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.search-hero h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.search-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Main Search Bar */
.main-search {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.85rem 3.5rem 0.85rem 1.5rem;
  border: 2px solid var(--shadow-light);
  border-radius: 25px;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  max-width: 500px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px var(--shadow-light);
  backdrop-filter: blur(10px);
}











.search-btn {
  position: absolute;
  right: 1rem;
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--primary-brown) 100%);
  border: none;
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.6rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-light);
}







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

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


/* Main Container */
.filters-container {
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 1.5rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.filters-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.filters-header h3 {
  font-size: 1rem;
  margin: 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

label i{
  color: var(--gold);

}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;  /* Reduced from 0.5rem */
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.filter-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.25rem;
}

.filter-label i {
  color: var(--primary-light);
  font-size: 1rem;
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.filter-group:hover .filter-label i {
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-medium) 100%);
  transform: scale(1.05);
}

.filter-select,
.filter-input,
.price-input {
  width: 90%;  /* Reduced from 100% */
  max-width: 250px;  /* Added max-width */
  padding: 0.75rem 1rem;  /* Slightly reduced padding */
  margin: 0 auto;  /* Center the inputs */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.price-range-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;  /* Reduced from 0.5rem */
  width: 100%;
  max-width: 280px;
}

.price-input-wrapper {
  position: relative;
  flex: 1;
  max-width: calc(50% - 0.125rem);  /* Adjusted for new smaller gap */
  display: flex;
  align-items: center;
}

.price-separator {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0 0.25rem;  /* Reduced from 0.5rem */
  flex: none;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;  /* Reduced from 0.5rem */
  margin-bottom: 1.5rem;  /* Reduced from 2rem */
  min-height: 2rem;
}

.filter-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.4rem 0.8rem;  /* Slightly reduced padding */
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;  /* Reduced from 0.5rem for closer icon spacing */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.filter-tag .remove-filter {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.filter-tag .remove-filter:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

/* Clear Filters Button */
.clear-filters-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.clear-filters-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Filters Actions */
.filters-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apply-filters-btn {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  padding: 0.875rem 2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.apply-filters-btn i {
  font-size: 0.9rem;
}

.apply-filters-btn:hover {
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-medium) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Artwork Gallery */
.artwork-gallery {
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.gallery-stats {
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.artworks-grid {
  columns: 3;
  column-gap: 30px;
  column-fill: balance;
  margin-bottom: 40px;
}

/* Enhanced Artwork Cards */
.enhanced-artwork-card {
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  overflow: hidden;
  break-inside: avoid;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
  display: inline-block; /* Ensure cards stack properly in columns */
}

.artwork-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.enhanced-artwork-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: contrast(1.1) brightness(0.95) saturate(1.1);
}

/* Override the varied heights for natural image sizing */
.enhanced-artwork-card:nth-child(3n+1) .artwork-image-container,
.enhanced-artwork-card:nth-child(3n+2) .artwork-image-container,
.enhanced-artwork-card:nth-child(3n+3) .artwork-image-container,
.enhanced-artwork-card:nth-child(7n+1) .artwork-image-container,
.enhanced-artwork-card:nth-child(11n+1) .artwork-image-container {
  height: auto; /* Override fixed heights to show full images */
}

.quick-actions {
  display: flex;
  gap: 15px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.enhanced-artwork-card:hover .quick-actions {
  transform: translateY(0);
}

.quick-action-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border-radius: 3px;
}

.quick-action-btn:hover {
  background: var(--brown-medium);
  color: white;
  transform: scale(1.1);
  border-color: var(--brown-medium);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Artwork Overlay */
.artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(74, 44, 23, 0.4) 0%, 
    rgba(74, 44, 23, 0.2) 50%,
    rgba(74, 44, 23, 0.6) 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.enhanced-artwork-card:hover .artwork-overlay {
  opacity: 1;
}

.enhanced-artwork-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.enhanced-artwork-card:hover .enhanced-artwork-image {
  filter: contrast(1.2) brightness(1.05) saturate(1.3);
}

/* Enhanced Artwork Info */
.enhanced-artwork-info {
  padding: 2.5rem 1.5rem;  /* Increased from 1.5rem to 2.5rem for top/bottom */
  background: linear-gradient(180deg, var(--cream-darker) 0%, var(--cream-darkest) 100%);
  position: relative;
}

.artwork-category {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;  /* Increased from 0.5rem */
  opacity: 0.8;
}

.enhanced-artwork-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;  /* Increased from 1.25rem */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;  /* Increased from 0.5rem */
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.enhanced-artwork-artist {
  font-size: 0.95rem;  /* Increased from 0.875rem */
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;  /* Increased from 0.75rem */
}

.enhanced-artwork-price {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;  /* Increased from 1.125rem */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;  /* Increased from 0.5rem */
}

.artwork-dimensions {
  font-size: 0.8rem;  /* Increased from 0.75rem */
  color: var(--text-muted);
  margin-bottom: 1.25rem;  /* Increased from 1rem */
  font-weight: 500;
}

.enhanced-artwork-description {
  font-size: 0.9rem;  /* Increased from 0.875rem */
  color: var(--text-secondary);
  line-height: 1.7;  /* Increased from 1.6 */
  margin-bottom: 2rem;  /* Increased from 1.5rem */
  display: -webkit-box;
  -webkit-line-clamp: 4;  /* Increased from 3 to show more text */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Artwork Actions */
.artwork-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;  /* Added margin-top for more spacing */
}

.enhanced-add-to-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;  /* Increased from 0.875rem to 1rem */
  border-radius: 3px;
  font-size: 0.9rem;  /* Increased from 0.875rem */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.enhanced-add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.enhanced-add-to-cart:hover::before {
  left: 100%;
}

.enhanced-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 68, 35, 0.4);
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-medium) 100%);
}

.wishlist-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
  width: 50px;  /* Increased from 48px */
  height: 48px;  /* Increased from 45px */
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;  /* Increased from 1rem */
  flex-shrink: 0;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: var(--text-muted);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 68, 35, 0.4);
}

/* Quick Actions Button (Eye Icon) */
.quick-action-btn {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 3px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background: transparent;
}

.quick-action-btn:hover {
  color: white;
  transform: scale(1.1);
}

/* Clear Filters Button */
.clear-filters-container {
  display: flex;
  justify-content: center;
  align-items: end;
  margin-top: 2rem;
  width: 100%;
}

.clear-filters-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;  /* Changed from flex to inline-flex */
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;  /* Prevent text wrapping */
}

.clear-filters-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

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

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  padding: 2rem 0;
  margin-top: 50px;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.course-header-container {
  position: relative;
  display: inline-block;
  padding: 0 2.5rem;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--gold) 0%, #f3dfa2 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
  position: relative;
  text-transform: uppercase;
  animation: shimmer 3s infinite alternate;
}

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

/* Price Range Container */
.price-range-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem; /* Reduced from 0.5rem */
  width: 100%;
  max-width: 280px;  /* Matching max-width with other inputs */
}

.price-input-wrapper {
  position: relative;
  flex: 1;
  max-width: calc(50% - 0.125rem);  /* Adjusted for new smaller gap */
  display: flex;
  align-items: center;
}

.price-separator {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0 0.25rem;  /* Reduced from 0.5rem */
  flex: none;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s ease;
}

.price-input {
  padding-left: 3rem !important;
  text-align: left !important;
  width: 100%;
}

@media (max-width: 768px) {
  .search-section {
    padding-top: 100px;  /* Adjusted for mobile */
  }

  .price-range-container {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
  }

  .price-input-wrapper {
    max-width: 100px;
  }

  .price-separator {
    display: block;
  }

  .filters-header {
    flex-direction: row;  /* Keep items in row */
    justify-content: space-between;  /* Space between title and button */
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .clear-filters-btn {
    margin: 0;  /* Remove any margin */
    padding: 0.4rem 0.8rem;  /* Slightly reduced padding */
    font-size: 0.8rem;  /* Smaller font size */
  }

  .filter-select,
  .filter-input,
  .price-input {
    width: 85%;  /* Further reduced width on mobile */
    max-width: 220px;  /* Smaller max-width on mobile */
    padding: 0.7rem 0.9rem;  /* Slightly reduced padding */
  }

  .price-range-container {
    width: 85%;  /* Match input width */
    max-width: 220px;  /* Match input max-width */
  }
}

@media (max-width: 480px) {
  .artwork-hero h1 {
    font-size: 2rem;
  }

  .artwork-hero p {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  .search-hero h2 {
    font-size: 1.5rem;
  }

  .main-search {
    max-width: 95%;
  }

  .hero-search-input {
    padding: 0.75rem 2.75rem;
    font-size: 0.9rem;
  }
  
  .hero-search-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .search-icon {
    font-size: 0.8rem;
    left: 0.875rem;
  }
}

@media (max-width: 768px) {
  .artwork-hero h1 {
    font-size: 2.5rem;
  }

  .artworks-grid {
    columns: 1;
    column-gap: 0;
  }

  .enhanced-artwork-card {
    margin-bottom: 20px;  /* Reduced from 30px */
    min-width: auto;
    max-width: 100%;
  }

  .artwork-image-container {
    min-height: 300px;  /* Increased from 250px */
  }

  .enhanced-artwork-info {
    padding: 20px;
  }

  .enhanced-artwork-title {
    font-size: 18px;
  }

  .enhanced-artwork-price {
    font-size: 16px;
  }

  .artwork-overlay {
    padding: 20px;
  }

  .quick-action-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .wishlist-btn {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }

  /* Filter Section */
  .filters-container {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 25px;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filter-group {
    max-width: 100%;
  }

  .price-range-container {
    flex-direction: column;
    gap: 1rem;
  }

  .price-separator {
    display: none;
  }

  .price-input-wrapper {
    width: 100%;
  }

  .filter-select,
  .filter-input {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .filter-label {
    font-size: 0.85rem;
  }

  .clear-filters-btn {
    width: 100%;
    margin-top: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .filters-container {
    padding: 1.5rem;
    max-width: 800px;
  }

  .filters-grid {
    gap: 1.5rem;
  }

  .filter-select,
  .filter-input {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .filter-label {
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .artworks-grid {
    columns: 2;
    column-gap: 25px;  /* Slightly increased gap */
  }
  
  /* Override varied heights for natural image sizing */
  .enhanced-artwork-card:nth-child(2n+1) .artwork-image-container,
  .enhanced-artwork-card:nth-child(2n+2) .artwork-image-container,
  .enhanced-artwork-card:nth-child(5n+1) .artwork-image-container {
    height: auto;
  }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .artworks-grid {
    columns: 2;
    column-gap: 30px;
  }
}

@media (min-width: 1401px) {
  .artworks-grid {
    column-count: 3;  /* Reduced from 4 to make cards wider */
    column-gap: 35px;  /* Increased gap */
  }
}

/* Responsive Design Updates for Masonry */
@media (min-width: 1401px) {
  .artworks-grid {
    column-count: 3;
    column-gap: 35px;
  }
  
  /* Override varied heights for natural image sizing */
  .enhanced-artwork-card:nth-child(4n+1) .artwork-image-container,
  .enhanced-artwork-card:nth-child(4n+2) .artwork-image-container,
  .enhanced-artwork-card:nth-child(4n+3) .artwork-image-container,
  .enhanced-artwork-card:nth-child(4n+4) .artwork-image-container {
    height: auto;
  }
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .filter-select,
  .filter-input,
  .clear-filters-btn,
  .search-btn {
  position: absolute;
  right: 1rem;
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--primary-brown) 100%);
  border: none;
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.6rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-light);
}




}

/* Pagination Section */
.pagination-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-medium) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pagination-btn:disabled {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-number {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pagination-number.active {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  border-color: var(--brown-medium);
  font-weight: 700;
}

.pagination-dots {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  padding: 0 0.25rem;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination-container {
    padding: 1rem;
  }

  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-btn {
    min-width: 80px;
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }

  .pagination-number {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .pagination-section {
    padding: 30px 15px;
  }

  .pagination-container {
    padding: 1rem 0.75rem;
  }

  .pagination-numbers {
    gap: 0.25rem;
  }

  .pagination-number {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .pagination-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
    min-width: 70px;
  }

  .pagination-btn span {
    display: none;
  }
}

/* Search Section Styles */
.main-search {
  position: relative;
  width: 100%;
  max-width: 700px;
  min-width: 220px;
  margin: 0 auto 2.5rem auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
}

.search-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 24px 0 0 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s, background 0.2s;
  color: var(--text-primary);
  font-weight: 500;
  outline: none;
  flex: 1 1 0%;
  height: 3.5rem;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.search-input:focus,
.search-input:hover {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  border: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: #fff;
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

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

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

@media (max-width: 900px) {
  .main-search, .search-wrapper {
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .main-search {
    max-width: 98vw;
    min-width: 0;
    padding: 0 2vw;
    margin: 0 auto 1.5rem auto;
  }
  .search-wrapper {
    width: 100%;
    max-width: 98vw;
  }
  .search-input {
    font-size: 1rem;
    padding: 1rem 2.7rem 1rem 1rem;
    border-radius: 24px 0 0 24px;
    min-width: 0;
    height: 2.7rem;
  }
  .search-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0 24px 24px 0;
    right: 0.7rem;
    font-size: 1rem;
  }
}

.search-section {
  margin-bottom: 4rem;
}

.search-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.search-hero h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.search-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Main Search Bar */
.main-search {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.search-input:focus {
  background: white;
  outline: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  border: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: #fff;
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

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

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


/* Filters Container */
.filters-container {
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filters-header h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.filter-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.25rem;
}

.filter-label i {
  color: var(--primary-light);
  font-size: 1rem;
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.filter-group:hover .filter-label i {
  background: rgba(212, 175, 55, 0.25);
  transform: scale(1.05);
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.filter-select:hover,
.filter-input:hover {
  background: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.filter-select:focus,
.filter-input:focus {
  background: white;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
  outline: none;
}

/* Price Range */
.price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.price-input-wrapper {
  position: relative;
  flex: 1;
}

.currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-input {
  padding-left: 2.5rem;
}

.price-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Clear Filters Button */
.clear-filters-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.clear-filters-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

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

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  min-height: 2rem;
}

.filter-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.filter-tag .remove-filter {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.filter-tag .remove-filter:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

/* Search Results */
.search-results {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Filters Actions */
.filters-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apply-filters-btn {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
  color: var(--primary-light);
  padding: 0.875rem 2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.apply-filters-btn i {
  font-size: 0.9rem;
}

.apply-filters-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
