:root {
  --bg-color: #05070a; /* Еще более глубокий черный */
  --surface-color: rgba(15, 23, 42, 0.4); /* Полупрозрачный для стекла */
  --surface-hover: rgba(30, 41, 59, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;

  --brand-primary: #6366f1; /* Indigo */
  --brand-secondary: #06b6d4; /* Electric Cyan */
  --brand-gradient: linear-gradient(
    135deg,
    #6366f1,
    #06b6d4
  );
  
  --neon-glow: 0 0 20px rgba(99, 102, 241, 0.4);
  --glass-blur: blur(25px); /* Усиленное размытие iOS 26 */
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-reflection: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.05) 100%);

  --success: #10b981;
  --danger: #ef4444;

  --font-main: "Outfit", sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px; /* Более округлые формы "жидкости" */
  --radius-pill: 9999px;

  --shadow-lg:
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes liquid-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
html.no-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* Removed no-scroll to prevent iOS jumps, now handled via inline styles in JS */
/*
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
*/

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  animation: liquid-glow 5s ease infinite;
  color: white;
  box-shadow: var(--neon-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s;
}

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

/* Header & Nav */
.header {
  position: fixed;
  top: 15px; /* Парящий хедер */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 1200px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 0.8rem 0;
}

.header.scrolled {
  top: 10px;
  background: rgba(5, 7, 10, 0.8);
  width: calc(100% - 20px);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.dot {
  color: var(--brand-primary);
}

/* Category Navigation Redesign (Compact & Clean) */
.nav-menu {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.2rem 0;
  margin: 0 1rem;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  white-space: nowrap; /* Prevent wrapping */
}

.category-nav-wrapper {
  padding: 0.5rem 0 1rem; /* Reduced padding */
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-link {
  font-size: 0.85rem; /* Slightly smaller for mobile context */
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem; /* More compact padding */
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap; /* Absolute no-wrap */
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff;
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

/* Remove old indicator */
.nav-link.active::after {
  display: none;
}

/* Base logic for mobile-only vs desktop-only elements */
.mobile-nav-menu {
  display: none; /* Hidden on Desktop */
}

@media (min-width: 769px) {
  .desktop-nav-menu {
    transition: all 0.3s ease;
  }
  .desktop-nav-menu:hover {
    white-space: normal;
    overflow: visible;
  }
  .desktop-nav-menu:hover .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.2rem;
  }
}


.cart-btn {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.cart-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--bg-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 150px 0 100px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1579871494447-9811cf80d66c?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; - REMOVED for mobile compatibility */
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Menu Grid */
.menu-section {
  padding: 5rem 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--surface-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background-image: var(--glass-reflection);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(30, 41, 59, 0.5);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: #000;
}
.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-primary);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 15px;
  right: -100%;
  bottom: 15px;
  width: calc(100% - 30px);
  max-width: 420px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  margin-right: 15px;
}
.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-cart,
.close-modal {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-cart:hover,
.close-modal:hover {
  color: var(--danger);
}
/* Mobile Sidebar */
/* Mobile Sidebar (Fixed & Robust) */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #0f172a; /* Solid dark blue fallback */
  background-image: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.mobile-sidebar.open {
  transform: translateX(0);
}

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

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

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.sidebar-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.sidebar-link i {
  width: 24px;
  color: var(--brand-primary);
  text-align: center;
}

.sidebar-info {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-info p, .sidebar-info a {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-social {
  margin-top: 1rem;
  background: var(--brand-gradient);
  color: white !important;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  justify-content: center;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-sidebar {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 0.5rem;
  margin-right: 0.5rem;
  display: block !important; /* Force display since desktop nav is hidden */
}

/* Sidebar Categories Styling */
.sidebar-categories-wrap {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section-title {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-category-link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.2s;
}

.sidebar-category-link:hover {
  color: var(--brand-primary);
  padding-left: 5px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-content {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 0; /* Убираем падинги для контента на весь экран */
  border-radius: 40px; /* Экстремальное скругление */
  width: 95%;
  max-width: 900px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
  transform: translateY(60px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden; /* Prevent primary modal scrolling background */
  display: flex;
  flex-direction: column;
}
.modal.open .modal-content { transform: translateY(0) scale(1); }
.close-modal { 
  position: absolute; 
  top: 15px; 
  right: 15px; 
  z-index: 100; /* Очень высокий z-index */
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.4); /* Усиленная рамка */
}
.modal-content h2 { margin-bottom: 1.5rem; color: var(--text-primary); }

.input-group { margin-bottom: 1.5rem; }
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.input-group textarea {
  resize: vertical;
  min-height: 80px;
}
.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Специфические стили для окна оформления заказа */
#checkoutModal .modal-content {
  padding: 2.5rem 2rem;
  background: rgba(15, 23, 42, 0.95); /* Более плотный фон для формы */
  max-height: 95vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  #checkoutModal .modal-content {
    padding: 2rem 1.2rem;
    width: 96%;
    border-radius: 32px;
  }
  
  #checkoutModal h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-right: 40px; /* Чтобы не наезжать на крестик */
  }
  
  .input-group input,
  .input-group textarea {
    font-size: 16px; /* Предотвращает зум на iOS */
  }
}

/* Product Modal Detail Styles */
.product-modal-content {
  max-width: 800px;
  padding: 0;
  overflow: hidden;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-detail-img {
  width: 100%;
  height: 500px;
  background: #000;
  position: relative;
}

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

.product-detail-img::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 100px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.product-detail-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.2);
}

.modal-product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 1rem 0;
}

.modal-product-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.modal-product-actions {
  margin-top: 1.5rem; /* Отступ от КБЖУ */
}

.product-actions-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .product-actions-grid {
    grid-template-columns: 1fr; /* Stack on small mobile if needed, or keep 1:2 */
  }
}

/* Scroll fix for internal modal content */
.product-modal-content {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Nutritional Info Table */
.product-nuts-wrapper {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.nuts-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.product-nuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .product-nuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nut-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 12px 8px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.nut-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nut-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nut-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-img {
    height: 180px;
  }
  .product-detail-info {
    padding: 1.5rem 1rem;
  }
  .modal-product-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .modal-content {
    width: 92%;
    height: auto;
    max-height: 90vh;
    border-radius: 24px;
    overflow-y: auto;
    margin: 20px auto;
  }
  .close-modal {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  .modal-product-actions {
    margin-top: 1.5rem;
    position: sticky;
    bottom: 0;
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
  }
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.empty-cart-msg {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
  font-style: italic;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-color);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.cart-item-price {
  color: var(--brand-primary);
  font-weight: 800;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: var(--surface-hover);
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
}
.qty-display {
  font-size: 0.9rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-color);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}
.checkout-btn:disabled {
  background: var(--surface-hover);
  color: var(--text-secondary);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Features */
.features {
  background: var(--surface-color);
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--bg-color);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 250px;
}
.footer-links h4,
.footer-social h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.footer-links p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav-menu {
    display: none;
  }
  .mobile-nav-menu {
    display: block;
  }
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 2rem;
    min-height: 400px;
    background-attachment: scroll; /* Disable fixed background on mobile for major stability */
  }

  .menu-header {
    top: 60px;
    padding: 0.8rem 15px;
    margin: 0 -15px 1.5rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0 5px;
  }

  .product-info {
    padding: 0.8rem;
  }
  .product-title {
    font-size: 0.95rem;
    height: 2.4rem; /* Fixed height for 2 lines */
    overflow: hidden;
  }
  .product-desc {
    display: none; /* Hide desc on mobile grid to save space */
  }
  .product-price {
    font-size: 1.1rem;
  }
  .btn-icon {
    width: 32px;
    height: 32px;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.4rem;
  }
}

