/**
 * Bites & Brews Restaurant Website - Modern UI
 * Enhanced with Figma Design System
 * Version 2.0
 */

/* Import Design Tokens */
@import url("design-tokens.css");

/* =============================================
   CSS RESET & BASE STYLES
   ============================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-normal);
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-4);
  color: var(--foreground);
}

h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-6xl));
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

p {
  margin-bottom: var(--spacing-4);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--accent-amber-600);
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition-base);
  background: none;
}

.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  width: 100%;
}

@media (max-width: 1024px) {
  .container {
    max-width: var(--container-lg);
    padding: 0 var(--spacing-4);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-3);
  }
}

/* =============================================
   MODERN HEADER & NAVIGATION
   ============================================= */

.header {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  backdrop-filter: blur(8px);
  transition: var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: var(--spacing-4) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-family: var(--font-display);
  text-decoration: none;
  transition: var(--transition-base);
}

.logo:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-base);
}

.logo-text {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent-amber-600) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Solid fallback for browsers without gradient support */
@supports not (-webkit-background-clip: text) {
  .logo-text {
    color: var(--primary);
    background: none;
  }
}

.logo i {
  font-size: var(--font-size-xl);
  color: var(--accent-amber-600);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-8);
  align-items: center;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  color: var(--gray-700);
  padding: var(--spacing-2) 0;
  position: relative;
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-amber-700);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -var(--spacing-1);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-amber-600),
    var(--accent-amber-500)
  );
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--accent-amber-500),
    var(--accent-amber-600)
  );
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.cart-icon:hover {
  background: linear-gradient(
    135deg,
    var(--accent-amber-600),
    var(--accent-amber-700)
  );
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber);
}

.cart-count {
  position: absolute;
  top: -var(--spacing-1);
  right: -var(--spacing-1);
  background: var(--red-600);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  animation: pulse 2s infinite;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: var(--spacing-1);
  background: none;
  padding: var(--spacing-2);
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/hero-bg.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.cta-button i {
  font-size: 1rem;
}

/* =============================================
   FEATURED MENU SECTION
   ============================================= */

.featured-menu {
  padding: 4rem 0;
  background: var(--bg-light);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.menu-card {
  background: var(--bg-section);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.menu-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.menu-card:hover .menu-image img {
  transform: scale(1.03);
}

.dietary-labels {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.25rem;
  flex-direction: column;
  align-items: flex-end;
}

.dietary-labels .label {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-info {
  padding: 1rem;
}

.menu-info h3 {
  color: var(--text-color);
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.description {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-size: 0.85rem;
}

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

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.order-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.order-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Size Selector Styles */
.size-selector {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.size-option {
  flex: 1;
  min-width: 80px;
  cursor: pointer;
}

.size-option input[type="radio"] {
  display: none;
}

.size-option .size-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  background: white;
}

.size-option input[type="radio"]:checked + .size-label {
  border-color: var(--primary-color);
  background: rgba(239, 68, 68, 0.05);
}

.size-option .size-label:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.size-option .size-label small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.size-option .size-label strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-color);
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */

.experience-section {
  padding: 4rem 0;
  background: white;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.experience-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.experience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.experience-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

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

.experience-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 1.75rem;
  text-align: center;
}

.experience-content h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 600;
}

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/page-header-bg.jpg") center/cover;
  padding: 7rem 0 3.5rem;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.page-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   MENU FILTERS
   ============================================= */

.menu-filters {
  padding: 2rem 0;
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.dietary-filters {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

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

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

/* =============================================
   MENU SECTIONS
   ============================================= */

.menu-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.menu-category {
  margin-bottom: 3rem;
}

.category-title {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

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

.qty-btn {
  background: var(--border-color);
  color: var(--text-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition);
}

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

.quantity {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

/* =============================================
   CART STYLES
   ============================================= */

.cart-section {
  padding: 3rem 0;
  min-height: 60vh;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-cart h2 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* Cart Items Container */
.cart-items-container {
  width: 100%;
  margin-bottom: 2rem;
}

.cart-items-container h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-image img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.item-details h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.item-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.item-price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.quantity-form .quantity-controls {
  margin-bottom: 0;
}

.quantity-form input[type="number"] {
  width: 60px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.5rem;
}

.item-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.remove-btn {
  background: var(--error-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.remove-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* Cart Totals Section */
.cart-totals-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.cart-totals-box {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.totals-header h3 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Totals Rows */
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  color: var(--text-color);
}

.totals-row strong {
  font-weight: 600;
  color: var(--secondary-color);
}

.total-row {
  border-top: 2px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.total-amount {
  color: var(--primary-color) !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
}

/* Cart Action Buttons */
.cart-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.cart-action-buttons .btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-checkout {
  background: var(--primary-color) !important;
  color: white !important;
  font-size: 1.2rem !important;
  padding: 1.25rem 2rem !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-checkout:hover {
  background: #c0392b !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-continue {
  background: var(--secondary-color) !important;
  color: white !important;
}

.btn-continue:hover {
  background: #1a252f !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.btn-clear-cart {
  background: #6c757d !important;
  color: white !important;
}

.btn-clear-cart:hover {
  background: #5a6268 !important;
  transform: translateY(-2px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* =============================================
   ORDER MANAGEMENT
   ============================================= */

.order-dashboard {
  padding: 3rem 0;
  background: var(--bg-light);
}

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

.dashboard-card {
  background: white;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Pink background for Current Orders */
.dashboard-card:first-child {
  background: var(--bg-pink-light);
}

/* Pink background for Status Updates */
.dashboard-card:nth-child(2) {
  background: var(--bg-pink-light);
}

.dashboard-card h2 {
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.orders-list {
  max-height: 500px;
  overflow-y: auto;
}

.no-orders {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.no-orders i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.order-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.order-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.order-id {
  font-weight: 700;
  color: var(--primary-color);
}

.customer-name {
  font-weight: 600;
  color: var(--secondary-color);
}

.order-time {
  color: var(--text-muted);
}

.order-items {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.order-total {
  font-weight: 700;
  color: var(--secondary-color);
}

.status-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-preparing {
  background: #fef3c7;
  color: #92400e;
}

.status-ready-for-pickup {
  background: #dbeafe;
  color: #1e40af;
}

.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background: #fecaca;
  color: #991b1b;
}

.status-updates {
  max-height: 400px;
  overflow-y: auto;
}

.status-update {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-ref {
  font-weight: 600;
  color: var(--primary-color);
}

.status-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

.update-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.update-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.manage-orders {
  grid-column: span 2;
}

.search-container {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.search-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.fulfill-btn {
  background: var(--success-color);
  color: white;
}

.fulfill-btn:hover {
  background: #219a52;
}

.cancel-btn {
  background: var(--error-color);
  color: white;
}

.cancel-btn:hover {
  background: #c0392b;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

/* =============================================
   ABOUT US PAGE
   ============================================= */

.about-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/about-header-bg.jpg") center/cover;
}

.history-section {
  padding: 4rem 0;
  background: white;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.gallery-image:first-child {
  grid-column: span 2;
  height: 250px;
}

.history-content h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.history-highlights {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.mission-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.mission-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.mission-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-light);
}

.mission-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.team-section {
  padding: 4rem 0;
  background: white;
}

.section-title {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.member-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

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

.member-info h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.values-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.value-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.value-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.contact-form-container {
  background: var(--bg-pink-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.location-info {
  background: var(--bg-pink-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-info h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.location-details {
  margin-bottom: 1.5rem;
}

.location-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.location-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.location-item strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.location-item p {
  color: var(--text-light);
  margin: 0;
}

.social-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link.facebook {
  background: #3b5998;
}

.social-link.instagram {
  background: #e4405f;
}

.social-link.twitter {
  background: #1da1f2;
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.find-us-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.find-us-section h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-info-section {
  padding: 4rem 0;
  background: white;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.info-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}

.info-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.hours-list {
  text-align: left;
  max-width: 250px;
  margin: 0 auto;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

/* =============================================
   FOOTER
   ============================================= */

.quick-links {
  padding: 3rem 0;
  background: var(--secondary-color);
  color: white;
}

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

.link-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.link-section ul {
  list-style: none;
}

.link-section ul li {
  margin-bottom: 0.5rem;
}

.link-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.link-section ul li a:hover {
  color: white;
}

.link-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer {
  background: #2d3748;
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer Links - Vertical Layout (Figma Design) */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.footer-links li {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.9rem;
  display: block;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */

.checkout-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.checkout-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.order-summary {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.order-summary h2 {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

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

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.item-info h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.item-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.summary-totals {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.grand-total {
  font-size: 1.2rem;
  color: var(--secondary-color);
  border-top: 2px solid var(--primary-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

.payment-info {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.payment-info h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.payment-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.accepted-payments {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-methods {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.payment-methods i {
  color: var(--text-muted);
}

/* =============================================
   MODAL STYLES
   ============================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-hover);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--secondary-color);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-color);
}

.modal-body {
  padding: 2rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* =============================================
   FLASH MESSAGES & NOTIFICATIONS
   ============================================= */

.flash-message {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 400px;
  box-shadow: var(--shadow-hover);
  animation: slideInRight 0.3s ease;
}

.flash-success {
  background: var(--success-color);
}

.flash-error {
  background: var(--error-color);
}

.flash-warning {
  background: var(--warning-color);
}

.flash-info {
  background: #3498db;
}

.flash-message button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 400px;
  box-shadow: var(--shadow-hover);
  animation: slideInRight 0.3s ease;
}

.notification-success {
  background: var(--success-color);
}

.notification-error {
  background: var(--error-color);
}

.notification-info {
  background: #3498db;
}

/* =============================================
   CART SUMMARY (FIXED BOTTOM)
   ============================================= */

/* Remove old fixed cart summary styles - not needed */

.cart-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.view-cart-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.view-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

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

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

  .logo-text {
    font-size: 1.4rem;
  }

  .logo-image {
    height: 45px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .item-controls {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .cart-totals-section {
    padding: 1.5rem;
  }

  .cart-action-buttons .btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  .btn-checkout {
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .manage-orders {
    grid-column: span 1;
  }

  .action-buttons {
    flex-direction: column;
  }

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

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

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .order-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .item-image {
    justify-self: center;
  }

  .item-controls {
    grid-column: span 1;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .history-highlights {
    flex-direction: column;
    gap: 1rem;
  }

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

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

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

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
  .header,
  .footer,
  .cart-summary,
  .flash-message,
  .notification {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .page-header {
    margin-top: 0;
    padding: 2rem 0;
    background: none !important;
    color: black !important;
  }
}

/* =============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .menu-card,
  .dashboard-card,
  .cart-item {
    border: 1px solid var(--text-color);
  }
}
