/* Menu Page Specific Styles */

/* Import Snipcart custom styles for consistency */
@import url('snipcart-custom.css');

/* Snipcart Add to Cart button styles for menu */
.menu-product-card .snipcart-add-item {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.menu-product-card .snipcart-add-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.menu-product-card .variant-selector {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 2px solid var(--border-light);
  border-radius: 5px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.menu-product-card .variant-selector:hover,
.menu-product-card .variant-selector:focus {
  border-color: var(--primary-purple);
  outline: none;
}

.menu-header {
  background: var(--white);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.menu-title {
  font-size: 2.5rem;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.menu-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.last-updated {
  display: inline-block;
  background: var(--primary-gradient);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Menu Layout */
.menu-content {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  min-height: 80vh;
}

/* Filters Sidebar */
.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.filters-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

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

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

.filter-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter-option:hover {
  color: var(--primary-purple);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--primary-purple);
}

.filter-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.filter-count {
  background: var(--border-light);
  color: var(--text-secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.price-range-slider {
  margin-top: 1rem;
}

.price-range-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.clear-filters {
  width: 100%;
  padding: 0.75rem;
  background: var(--white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters:hover {
  background: var(--primary-purple);
  color: var(--white);
}

/* Products Section */
.products-section {
  flex: 1;
  min-width: 0;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
}

.results-count {
  color: var(--text-secondary);
  font-size: 1rem;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-dropdown label {
  color: var(--text-primary);
  font-weight: 500;
}

.sort-dropdown select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-dropdown select:hover,
.sort-dropdown select:focus {
  border-color: var(--primary-purple);
  outline: none;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Enhanced Product Card */
.menu-product-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.badge-exotic-aaa {
  background: var(--gold);
  color: var(--white);
}

.badge-exotic {
  background: var(--silver);
  color: var(--white);
}

.badge-indoor {
  background: var(--primary-cyan);
  color: var(--white);
}

.badge-light-dep {
  background: var(--primary-purple);
  color: var(--white);
}

.badge-greenhouse {
  background: #10b981;
  color: var(--white);
}

.badge-outdoor {
  background: #92400e;
  color: var(--white);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-header {
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  min-height: 2rem;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.thc-badge {
  font-weight: 600;
  color: var(--primary-purple);
}

.pricing-table {
  background: var(--card-gradient);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.price-tier {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.price-tier-label {
  color: var(--text-secondary);
}

.price-tier-value {
  font-weight: 600;
  color: var(--primary-purple);
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-quote {
  flex: 1;
  padding: 0.75rem;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-coa {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--primary-purple);
  border-radius: 0.5rem;
  color: var(--primary-purple);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-coa:hover {
  background: var(--primary-purple);
  color: var(--white);
}

/* Mobile Filters Toggle */
.mobile-filters-toggle {
  display: none;
  width: 100%;
  padding: 1rem;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Loading State */
.products-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .menu-content {
    gap: 1.5rem;
  }

  .filters-sidebar {
    width: 240px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-header {
    padding: 1.5rem 0;
  }

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

  .menu-content {
    flex-direction: column;
  }

  .filters-sidebar {
    width: 100%;
    position: relative;
  }

  .filters-card {
    position: static;
    display: none;
  }

  .filters-card.active {
    display: block;
  }

  .mobile-filters-toggle {
    display: block;
  }

  .products-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

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

  .product-actions {
    flex-direction: column;
  }

  .btn-coa {
    width: 100%;
  }
}

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

  .menu-subtitle {
    font-size: 1rem;
  }

  .product-details {
    padding: 1rem;
  }

  .product-title {
    font-size: 1.125rem;
  }
}