/* === Slide-out Side Cart === */

.side-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.side-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.75);
  color: white;
  border-left: 1px solid #444;
  z-index: 100001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.side-cart.active {
  transform: translateX(0);
}

.side-cart-header {
  padding: 20px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.side-cart-header h3 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.close-side-cart {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close-side-cart:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.side-cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.side-empty-message {
  text-align: center;
  color: #888;
  margin-top: 80px;
  padding: 0 10px;
}

.empty-cart-icon {
  font-size: 4.5rem;
  color: var(--primary-color, #ff3d3d);
  margin-bottom: 20px;
  opacity: 0.8;
  animation: pulseCart 2.5s infinite ease-in-out;
}

@keyframes pulseCart {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.side-empty-message p {
  margin-bottom: 30px;
  color: #bbb;
  font-size: 1.15rem;
  font-weight: 500;
}

.start-order-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #263859, #ff3d3d);
  color: white;
  text-align: center;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 61, 61, 0.3);
}

.start-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 61, 61, 0.5);
  color: white;
}

.side-cart-footer {
  padding: 20px;
  border-top: 1px solid #444;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.side-cart-summary {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #ddd;
  font-size: 1rem;
}

.summary-row.total-row {
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
  border-top: 2px solid #555;
  padding-top: 10px;
  margin-top: 10px;
}

.promo-text {
  color: #28a745;
  font-weight: 600;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), #f44336);
  color: white;
  text-align: center;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 44, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 44, 0.5);
}

/* Specific styling for items within the side cart to fit the narrow width */
#side-cart-items .cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

#side-cart-items .cart-item-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 15px;
}

#side-cart-items .cart-item-details {
  flex-grow: 1;
}

#side-cart-items .cart-item-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

#side-cart-items .cart-item-options {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 5px;
}

#side-cart-items .cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#side-cart-items .quantity-btn {
  background: #444;
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

#side-cart-items .item-price {
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 10px;
}

#side-cart-items .remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: auto;
}
