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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #374151;
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sage Color Palette */
:root {
  --sage-50: #f9fafb;
  --sage-100: #f3f4f6;
  --sage-200: #e5e7eb;
  --sage-300: #d1d5db;
  --sage-500: #6b7280;
  --sage-600: #4b5563;
  --sage-700: #374151;
  --sage-800: #1f2937;
}

/* Typography Styles */
.hero-title,
.section-title,
.logo h1,
.footer-logo h3 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
}

.product-name,
.review-author strong,
.cart-header h2,
.checkout-header h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--sage-500);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

.btn-primary:hover {
  background-color: var(--sage-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--sage-700);
  border: 1px solid var(--sage-300);
}

.btn-outline:hover {
  background-color: var(--sage-50);
  border-color: var(--sage-500);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 50;
  border-bottom: 1px solid var(--sage-100);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sage-800);
  background: linear-gradient(135deg, var(--sage-700), var(--sage-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  background: none;
  border: none;
  color: var(--sage-700);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--sage-500);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-500), var(--sage-600));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--sage-700);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--sage-100);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--sage-700);
  text-align: left;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav-link:hover {
  background-color: var(--sage-50);
  color: var(--sage-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-button-container {
  position: relative;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--sage-200);
  background: transparent;
  color: var(--sage-700);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-button:hover {
  background-color: var(--sage-50);
  border-color: var(--sage-500);
}

.cart-text {
  display: none;
}

@media (min-width: 640px) {
  .cart-text {
    display: inline;
  }
}

.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: var(--sage-500);
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(107, 114, 128, 0.05) 0%,
    transparent 70%
  );
  transform: rotate(-15deg);
}

.hero-content {
  text-align: center;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease;
  position: relative;
  z-index: 2;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--sage-800);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--sage-800), var(--sage-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--sage-600);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.2s;
}

.stats-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

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

.stat-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--sage-600);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--sage-800);
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
}

.stat-label {
  color: var(--sage-600);
  font-weight: 500;
}

/* Menu Section */
.menu {
  padding: 4rem 0;
  background: var(--sage-50);
}

.menu-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.3s;
}

.menu-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--sage-800);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--sage-800), var(--sage-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  color: var(--sage-600);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Search and Filters */
.search-filters {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.4s;
}

.search-filters.visible {
  opacity: 1;
  transform: translateY(0);
}

.search-bar {
  margin-bottom: 1rem;
}

.search-input-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sage-500);
  width: 1.25rem;
  height: 1.25rem;
}

#search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid var(--sage-200);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

#search-input:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--sage-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.clear-search.visible {
  opacity: 1;
  visibility: visible;
}

.clear-search:hover {
  background-color: var(--sage-100);
  color: var(--sage-600);
}

.advanced-filters {
  text-align: center;
}

.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid var(--sage-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--sage-700);
}

.filters-toggle:hover {
  background-color: var(--sage-50);
  border-color: var(--sage-300);
}

.filters-toggle .chevron {
  transition: transform 0.3s ease;
}

.filters-toggle.active .chevron {
  transform: rotate(180deg);
}

.filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  border-radius: 0.75rem;
  margin-top: 1rem;
  border: 1px solid var(--sage-200);
}

.filters-panel.active {
  max-height: 500px;
  padding: 1.5rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

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

.filter-group label {
  display: block;
  font-weight: 600;
  color: var(--sage-700);
  margin-bottom: 0.75rem;
}

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

.price-range input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--sage-200);
  border-radius: 2px;
  outline: none;
  appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--sage-500);
  border-radius: 50%;
  cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--sage-500);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.price-display {
  text-align: center;
  font-weight: 600;
  color: var(--sage-600);
}

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

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400;
}

.filter-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--sage-500);
}

.clear-filters {
  width: 100%;
  padding: 0.75rem;
  background: var(--sage-100);
  border: none;
  border-radius: 0.5rem;
  color: var(--sage-700);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters:hover {
  background-color: var(--sage-200);
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.5s;
}

.category-filters.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--sage-300);
  background: white;
  color: var(--sage-700);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--sage-500);
  border-color: var(--sage-500);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.6s;
}

.products-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sage-100);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.product-image-container {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.gallery-trigger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--sage-600);
  opacity: 0;
}

.product-card:hover .gallery-trigger {
  opacity: 1;
}

.gallery-trigger:hover {
  background: white;
  transform: scale(1.1);
}

.product-content {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--sage-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--sage-700);
  font-family: "Playfair Display", serif;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--sage-300);
  background: white;
  color: var(--sage-700);
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background-color: var(--sage-50);
  border-color: var(--sage-500);
  transform: scale(1.05);
}

.quantity-display {
  color: var(--sage-700);
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
  font-size: 1.125rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--sage-600);
}

.no-results-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--sage-400);
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--sage-700);
}

/* Notification Container */
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--sage-200);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sage-500);
}

.notification.success::before {
  background: #10b981;
}

.notification.error::before {
  background: #ef4444;
}

.notification.warning::before {
  background: #f59e0b;
}

.notification.info::before {
  background: #3b82f6;
}

.notification-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.notification.success .notification-icon {
  color: #10b981;
}

.notification.error .notification-icon {
  color: #ef4444;
}

.notification.warning .notification-icon {
  color: #f59e0b;
}

.notification.info .notification-icon {
  color: #3b82f6;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.notification-message {
  color: var(--sage-600);
  font-size: 0.875rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--sage-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background-color: var(--sage-100);
  color: var(--sage-600);
}

/* Image Gallery Modal */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal {
  background: white;
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .gallery-content {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

.gallery-main-image {
  position: relative;
  min-height: 300px;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.gallery-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 0.375rem;
  cursor: pointer;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--sage-500);
}

.gallery-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--sage-800);
}

.gallery-info p {
  color: var(--sage-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--sage-700);
}

/* Reviews Section */
.reviews {
  padding: 4rem 0;
  background: white;
}

.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.7s;
}

.reviews-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.8s;
}

.reviews-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sage-100);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-filled {
  color: #fbbf24;
  width: 1.25rem;
  height: 1.25rem;
}

.review-comment {
  color: var(--sage-600);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  font-size: 1rem;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author strong {
  color: var(--sage-800);
  font-weight: 600;
}

.review-author span {
  color: var(--sage-500);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--sage-800), var(--sage-700));
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease 0.9s;
}

.footer-content.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer-info {
  color: #d1d5db;
}

.footer-info p {
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-info p:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--sage-700);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #d1d5db;
}

/* Cart Summary (Fixed) */
.cart-summary {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 45;
  transition: all 0.3s ease;
}

.cart-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cart-summary-text {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-summary-btn {
  background: white;
  color: var(--sage-500);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.cart-summary-btn:hover {
  background-color: var(--sage-50);
  transform: scale(1.05);
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  backdrop-filter: blur(4px);
}

.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: white;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-overlay:not(.hidden) .cart-sidebar {
  transform: translateX(0);
}

@media (min-width: 640px) {
  .cart-sidebar {
    max-width: 32rem;
  }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--sage-100);
  background: var(--sage-50);
}

.cart-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-800);
}

.cart-close {
  background: none;
  border: none;
  color: var(--sage-600);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.cart-close:hover {
  background-color: var(--sage-100);
  color: var(--sage-700);
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.cart-empty-icon {
  width: 4rem;
  height: 4rem;
  color: var(--sage-300);
  margin: 0 auto 1rem;
}

.cart-empty p {
  color: var(--sage-600);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid var(--sage-100);
  border-radius: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.cart-item-name {
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
}

.cart-item-price {
  color: var(--sage-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.cart-footer {
  border-top: 1px solid var(--sage-100);
  padding: 1.5rem;
  background: var(--sage-50);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
}

.cart-total span:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sage-800);
}

.cart-total span:last-child {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--sage-700);
  font-family: "Playfair Display", serif;
}

/* Checkout Modal */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.checkout-modal {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 64rem;
  max-height: 95vh;
  overflow-y: auto;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--sage-100);
  background: var(--sage-50);
}

.checkout-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-800);
}

.checkout-close {
  background: none;
  border: none;
  color: var(--sage-600);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.checkout-close:hover {
  background-color: var(--sage-100);
  color: var(--sage-700);
}

.checkout-content {
  padding: 2rem;
}

.order-summary {
  margin-bottom: 2rem;
}

.order-summary h3 {
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.order-items {
  background: var(--sage-50);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--sage-100);
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sage-200);
}

.order-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.order-item-name {
  flex: 1;
  padding-right: 1rem;
  color: var(--sage-700);
}

.order-item-price {
  font-weight: 600;
  color: var(--sage-800);
}

.order-total {
  font-weight: 600;
  font-size: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total span {
  font-size: 1.25rem;
  color: var(--sage-700);
}

/* Order Confirmation Modal */
.order-confirmation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.order-confirmation-modal {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.order-confirmation-header {
  padding: 3rem 2rem 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 1.5rem 1.5rem 0 0;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon i {
  width: 2rem;
  height: 2rem;
  color: white;
}

.order-confirmation-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
}

.order-confirmation-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.order-confirmation-content {
  padding: 2rem;
}

.order-confirmation-details {
  background: var(--sage-50);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.order-confirmation-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 1rem;
  text-align: center;
}

.confirmation-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sage-200);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--sage-600);
}

.info-value {
  font-weight: 600;
  color: var(--sage-800);
}

.order-confirmation-actions {
  text-align: center;
}

.confirmation-message {
  color: var(--sage-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirmation-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .confirmation-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Form Styles */
.customer-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage-700);
  margin-bottom: 0.5rem;
}

.required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem;
  border: 2px solid var(--sage-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  min-height: 1rem;
  font-weight: 500;
}

/* Submit Button Loading State */
.submit-text,
.submit-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-loading.hidden {
  display: none;
}

.spin {
  animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animation Classes */
[data-animate] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 1s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .container {
    padding: 0 0.75rem;
  }

  .cart-sidebar {
    max-width: 100%;
  }

  .checkout-modal {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }

  .search-input-container {
    max-width: 100%;
  }

  .gallery-content {
    padding: 1rem;
  }

  .gallery-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

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

  .gallery-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .notification {
    margin: 0;
  }

  .order-confirmation-header {
    padding: 2rem 1rem 1.5rem;
  }

  .order-confirmation-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filters {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .ingredient-filters {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item-actions {
    margin-left: 0;
    align-self: stretch;
    justify-content: center;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading States */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus Styles for Accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .product-card,
  .review-card,
  .cart-item {
    border-width: 2px;
  }

  .btn-primary {
    border: 2px solid var(--sage-800);
  }

  .btn-outline {
    border-width: 2px;
  }
}
