/* ===== CART PAGE STYLES ===== */

/* Main Cart Section */
.cart-section {
  background: #f8f9fa;
  min-height: calc(100vh - 140px);
  padding: 120px 0 60px;
}

/* Back Button */
.back-btn {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
  margin-bottom: 20px;
}

.back-btn:hover {
  background: #2c5530;
  border-color: #2c5530;
  color: #ffffff;
  transform: translateX(-5px);
}

/* Cart Container */
.cart-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2c5530;
  margin-bottom: 30px;
  text-align: left;
}

/* Cart Items */
.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.cart-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-content {
  flex-grow: 1;
}

.cart-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 5px;
  line-height: 1.3;
}

.cart-item-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: #ffffff;
  border: 2px solid #d4a574;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #d4a574;
  font-weight: 600;
}

.quantity-btn:hover {
  background: #d4a574;
  color: #ffffff;
}

.quantity-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2c5530;
  min-width: 30px;
  text-align: center;
}

.remove-item {
  background: #dc3545;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  margin-left: 10px;
}

.remove-item:hover {
  background: #c82333;
  transform: scale(1.1);
}

/* Additional Notes Section */
.additional-notes-section {
  margin-bottom: 30px;
}

.notes-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-textarea {
  width: 100%;
  min-height: 80px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
  background: #ffffff;
}

.notes-textarea:focus {
  outline: none;
  border-color: #d4a574;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Coupon Section */
.coupon-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.coupon-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  min-width: 100px;
}

.coupon-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 200px;
}

.coupon-input:focus {
  outline: none;
  border-color: #d4a574;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.apply-coupon-btn {
  background: linear-gradient(135deg, #d4a574, #c8956d);
  border: none;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
  background: linear-gradient(135deg, #c8956d, #b8845f);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

/* Invoice Container */
.invoice-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.invoice-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5530;
  margin-bottom: 25px;
  text-align: center;
}

.invoice-details {
  margin-bottom: 30px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
}

.invoice-label {
  color: #6c757d;
  font-weight: 500;
}

.invoice-value {
  color: #2c5530;
  font-weight: 600;
  text-align: right;
}

.invoice-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #d4a574, #c8956d);
  margin: 20px 0;
  border-radius: 1px;
}

.total-row {
  font-size: 1.2rem;
  font-weight: 700;
}

.total-row .invoice-label {
  color: #2c5530;
}

.total-row .invoice-value {
  color: #d4a574;
}

.discount-row .invoice-value {
  color: #28a745;
}

/* Checkout Button */
.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #2c5530, #1a3a1e);
  border: none;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #1a3a1e, #2c5530);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
}

/* Empty Cart */
.empty-cart {
  background: #f8f9fa;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.empty-cart-content {
  text-align: center;
  max-width: 400px;
}

.empty-cart-icon {
  font-size: 4rem;
  color: #d4a574;
  margin-bottom: 20px;
}

.empty-cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c5530;
  margin-bottom: 15px;
}

.empty-cart-text {
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 30px;
}

.browse-menu-btn {
  background: linear-gradient(135deg, #2c5530, #1a3a1e);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 15px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
}

.browse-menu-btn:hover {
  background: linear-gradient(135deg, #1a3a1e, #2c5530);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-section {
    padding: 100px 0 40px;
  }
  
  .cart-container, .invoice-container {
    padding: 20px;
  }
  
  .cart-title, .invoice-title {
    font-size: 1.5rem;
  }
  
  .cart-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .cart-item-content {
    order: 1;
  }
  
  .cart-item-controls {
    order: 2;
    justify-content: center;
  }
  
  .cart-item-image {
    order: 0;
    align-self: center;
  }
  
  .coupon-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .coupon-label {
    justify-content: center;
  }
  
  .coupon-input {
    min-width: 100%;
  }
  
  .invoice-container {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .cart-container, .invoice-container {
    padding: 15px;
    border-radius: 15px;
  }
  
  .cart-title, .invoice-title {
    font-size: 1.3rem;
  }
  
  .cart-item {
    padding: 15px;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-title {
    font-size: 1rem;
  }
  
  .notes-textarea {
    min-height: 60px;
  }
  
  .empty-cart-icon {
    font-size: 3rem;
  }
  
  .empty-cart-title {
    font-size: 1.5rem;
  }
}

/* Navbar Specific Styling for Cart */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  order: 2;
  margin-left: auto;
  margin-right: 0;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-nav {
  order: 1;
  margin-right: auto !important;
  margin-left: 0 !important;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-toggler {
  order: 3;
  margin-right: auto;
}

/* Responsive navbar for Cart */
@media (max-width: 991.98px) {
  .navbar-brand {
    order: 2;
  }
  
  .navbar-toggler {
    order: 3;
    margin-right: auto;
  }
  
  .navbar-collapse {
    order: 4;
    width: 100%;
    margin-top: 15px;
  }
  
  .navbar-nav {
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 40px;
  }
  
  .navbar {
    padding: 10px 0;
  }
} 