/* CSS Variables */
:root {
  --primary-color: #333;
  --secondary-color: #666;
  --accent-color: #007bff;
  --background-color: #fafafa;
  --white: #fff;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  background: var(--background-color);
  line-height: 1.6;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Burger Menu */
.burger {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: var(--transition);
}

.burger:hover {
  background: var(--background-color);
}

.burger div {
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active div:nth-child(2) {
  opacity: 0;
}

.burger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 2000;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

/* Overlay for side menu */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.side-menu ul {
  list-style: none;
}

.side-menu li {
  margin-bottom: 0.5rem;
}

.side-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.side-menu a:hover,
.side-menu a:focus {
  background: var(--background-color);
  color: var(--primary-color);
}

.side-menu a.active {
  background: var(--accent-color);
  color: var(--white);
  font-weight: bold;
}

/* Story Slider */
.story-slider {
  display: flex;
  overflow-x: auto;
  padding: 1rem;
  gap: 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.story-slider::-webkit-scrollbar {
  display: none;
}

.story {
  width: 100px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-caption {
  position: static;
  background: var(--white);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 6px;
}

.story-caption h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.story:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.story:hover img {
  transform: scale(1.05);
}

.refresh-stories {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.refresh-stories:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background: #0056b3;
}

/* Category Navigation */
.category-nav-wrapper {
  position: sticky;
  top: 60px;
  z-index: 999;
  background: var(--white);
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.category-nav {
  display: flex;
  padding: 1rem;
  gap: 1rem;
  min-width: max-content;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--secondary-color);
}

.category-nav button:hover {
  background: var(--background-color);
  color: var(--primary-color);
}

.category-nav button.active {
  background: var(--accent-color);
  color: var(--white);
  font-weight: bold;
}

/* Category Sections */
.category-section {
  padding: 2rem 1rem 6rem;
}

.category-section h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
  text-align: center;
}

/* Dishes Grid */
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Dish Cards */
.dish-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Add visual indicator that card is clickable */
.dish-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: var(--border-radius);
}

.dish-card:hover::after {
  opacity: 1;
}

.dish-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.dish-card:hover img {
  transform: scale(1.05);
}

.dish-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0;
}

.dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.dish-footer span:first-child {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Quantity Controls */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
  padding: 0.25rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control button:hover {
  background: var(--accent-color);
  color: var(--white);
}

.qty-control span {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
}

/* Bottom Cart */
.bottom-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-cart button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.bottom-cart button:first-child {
  background: var(--accent-color);
  color: var(--white);
}

.bottom-cart button:first-child:hover {
  background: #0056b3;
}

.bottom-cart button:last-child {
  background: var(--background-color);
  color: var(--primary-color);
}

.bottom-cart button:last-child:hover {
  background: var(--border-color);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dish-card {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dishes {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .category-section {
    padding: 1.5rem 1rem 6rem;
  }
  
  .bottom-cart {
    padding: 0.75rem 1rem;
  }
  
  .bottom-cart button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Ensure side menu works on mobile */
  .side-menu {
    z-index: 3000;
  }
}

@media (max-width: 480px) {
  .dishes {
    grid-template-columns: 1fr;
  }
  
  .category-nav button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .dish-card {
    margin: 0 0.5rem;
  }
  
  .story {
    width: 80px;
  }
  
  .story-container {
    width: 80px;
    height: 80px;
  }
  
  .refresh-stories {
    width: 80px;
    height: 80px;
  }
  
  .story-caption {
    font-size: 0.7rem;
    max-width: 70px;
    margin-top: 4px;
  }
  
  .story-caption h4 {
    font-size: 0.7rem;
  }
  
  /* Ensure side menu works on very small screens */
  .side-menu {
    width: 65%;
    left: -100%;
  }
  
  .side-menu.active {
    left: 0;
  }
}



/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--secondary-color);
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Product Detail Bottom Sheet */
.product-detail-bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-detail-bottom-sheet.active {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
}

/* Animation for bottom sheet appearing from bottom */
.product-detail-bottom-sheet .bottom-sheet-content {
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-detail-bottom-sheet.active .bottom-sheet-content {
  transform: translateY(0) !important;
}

/* Ensure proper animation when modal is not active */
.product-detail-bottom-sheet:not(.active) .bottom-sheet-content {
  transform: translateY(100%) !important;
}

.bottom-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.bottom-sheet-content {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Drag handle indicator */
.bottom-sheet-content::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  z-index: 5;
}

.product-detail-bottom-sheet.active .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-close {
  position: absolute;
  top: 25px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-sheet-close:hover {
  background: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-detail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-section {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-detail-image:hover {
  transform: scale(1.05);
}

.product-info-section {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

.product-detail-description {
  color: var(--secondary-color);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}

.price-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
}

.price-currency {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.product-detail-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qty-btn:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: scale(1.1);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.qty-display {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 30px;
  text-align: center;
}

.add-to-cart-btn {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.add-to-cart-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn.active {
  background: #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn.active:hover {
  background: #218838;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.add-to-cart-btn.adding {
  background: #28a745;
  transform: scale(1.05);
}

.add-to-cart-btn.adding .btn-text {
  color: var(--white);
}

.btn-text {
  flex: 1;
}

.btn-price {
  font-weight: bold;
  margin-left: 1rem;
}

/* Responsive Design for Bottom Sheet */
@media (max-width: 768px) {
  .bottom-sheet-content {
    height: 75vh;
  }
  
  .product-detail-container {
    flex-direction: column;
  }
  
  .product-image-section {
    height: 200px;
  }
  
  .product-info-section {
    padding: 1.5rem;
  }
  
  .product-detail-title {
    font-size: 1.3rem;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .product-detail-controls {
    flex-direction: column;
  }
  
  .quantity-control {
    justify-content: space-between;
    padding: 1rem;
  }
  
  .add-to-cart-btn {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-price {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .bottom-sheet-content {
    height: 75vh;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
  
  .product-image-section {
    height: 150px;
  }
  
  .product-info-section {
    padding: 1rem;
  }
  
  .bottom-sheet-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

/* Cart Modal Styles */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.cart-modal .modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cart-modal .modal-header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-modal .modal-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.cart-modal .modal-body {
  padding: 1rem;
}

.cart-modal .modal-body pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
  color: var(--primary-color);
  line-height: 1.5;
}

.cart-modal .modal-footer {
  padding: 1rem;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cart-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  transition: var(--transition);
}

.cart-modal .modal-close:hover {
  color: var(--primary-color);
  background: var(--background-color);
  border-radius: 4px;
}

.cart-modal .btn-primary {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.cart-modal .btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.cart-modal .btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.cart-modal .btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

/* Order Modal Styles */
.order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.order-modal .modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.order-modal .modal-header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.order-modal .modal-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.order-modal .modal-body {
  padding: 1rem;
}

.order-modal .modal-body pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
  color: var(--primary-color);
  line-height: 1.5;
}

.order-modal .modal-footer {
  padding: 1rem;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.order-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  transition: var(--transition);
}

.order-modal .modal-close:hover {
  color: var(--primary-color);
  background: var(--background-color);
  border-radius: 4px;
}

.order-modal .btn-primary {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.order-modal .btn-primary:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.order-modal .btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.order-modal .btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
  .cart-modal .modal-content,
  .order-modal .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .cart-modal .modal-footer,
  .order-modal .modal-footer {
    flex-direction: column;
  }
  
  .cart-modal .btn-primary,
  .cart-modal .btn-secondary,
  .order-modal .btn-primary,
  .order-modal .btn-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .cart-modal .modal-content,
  .order-modal .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .cart-modal .modal-header,
  .order-modal .modal-header {
    padding: 1.5rem 1rem;
  }
  
  .cart-modal .modal-body,
  .order-modal .modal-body {
    padding: 1.5rem 1rem;
  }
  
  .cart-modal .modal-footer,
  .order-modal .modal-footer {
    padding: 1.5rem 1rem;
  }
}

/* Cart Items Styles */
.cart-items-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
}

.cart-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cart-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-item-name {
  font-weight: 600;
  color: var(--primary-color);
  flex: 1;
}

.cart-item-price {
  font-weight: 500;
  color: var(--accent-color);
  margin-left: 1rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cart-control-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  color: var(--primary-color);
}

.cart-control-btn:hover {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.cart-control-btn.minus-btn {
  color: #dc3545;
}

.cart-control-btn.minus-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
}

.cart-control-btn.plus-btn {
  color: #28a745;
}

.cart-control-btn.plus-btn:hover {
  background: #28a745;
  border-color: #28a745;
}

.cart-control-btn.delete-btn {
  color: #dc3545;
  font-size: 12px;
}

.cart-control-btn.delete-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
}

.cart-item-quantity {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  background: var(--background-color);
  border-radius: 4px;
}

.cart-item-quantity-display {
  margin-bottom: 0.5rem;
}

.cart-item-quantity-display .cart-item-quantity {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  display: inline-block;
}

.cart-item-total {
  display: flex;
  justify-content: flex-end;
  font-weight: 600;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.cart-total {
  padding: 1rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--primary-color);
  border-top: 2px solid var(--accent-color);
}

/* Responsive styles for cart items */
@media (max-width: 768px) {
  .cart-item {
    padding: 0.75rem;
  }
  
  .cart-item-controls {
    gap: 0.25rem;
  }
  
  .cart-control-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .cart-item-quantity {
    min-width: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .cart-item-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .cart-item-price {
    margin-left: 0;
  }
  
  .cart-control-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  
  .cart-item-quantity {
    min-width: 30px;
    font-size: 0.8rem;
  }
}