/* All Pairings Section */
.all-pairings-section {
  padding: 40px 0;
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #ddd;
}

.search-box i {
  color: var(--maroon);
  margin-right: 10px;
}

.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #333;
}

.search-input:focus {
  outline: none;
}

.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-btn {
  background: var(--maroon);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background: #5a0b23;
}

.filter-btn.has-filter {
  background: #5a0b23;
  position: relative;
}

.filter-btn.has-filter::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.filter-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  right: 0;
  margin-top: 5px;
  max-height: 400px;
  overflow-y: auto;
}

.filter-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s;
}

.filter-dropdown-content a:hover {
  background-color: #f8f8f8;
  color: var(--maroon);
}

.filter-dropdown-content a.active-category {
  background-color: var(--maroon);
  color: white !important;
}

.filter-dropdown-content a.active-category:hover {
  background-color: #5a0b23 !important;
}

.filter-dropdown-content a:last-child {
  border-bottom: none;
}

.filter-dropdown:hover .filter-dropdown-content {
  display: block;
}

.filter-dropdown:focus-within .filter-dropdown-content {
  display: block;
}

/* Wine Grid */
.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.wine-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.wine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.wine-card.out-of-stock {
  opacity: 0.7;
}

.wine-card.out-of-stock::after {
  content: 'Out of Stock';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.wine-image-container {
  height: 200px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.wine-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wine-label {
  background: var(--card-dark);
  color: white;
  padding: 14px;
  border-radius: 0 0 12px 12px;
}

.wine-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.wine-sub {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 4px;
}

/* Wine Price */
.wine-price {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-top: 8px;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--maroon);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff5f5;
  border-radius: 12px;
  border: 1px solid #ffcccc;
}

.error-state i {
  font-size: 48px;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.error-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.error-state p {
  color: #6d6d6d;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.empty-state i {
  font-size: 64px;
  color: var(--maroon);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.empty-state p {
  color: #6d6d6d;
  font-size: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Active Nav Link */
.main-nav a.active {
  color: var(--maroon);
  font-weight: 600;
} /* In pairings.css, make sure this exists: */
.wine-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer; /* This makes it clear it's clickable */
}

.wine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 1100px) {
  .wine-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .filter-dropdown {
    align-self: flex-end;
  }
  
  .wine-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 600px) {
  .wine-grid {
    grid-template-columns: 1fr;
  }
  
  .wine-image-container {
    height: 180px;
  }
}

@media (max-width: 400px) {
  .wine-image-container {
    height: 160px;
  }
}