/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f8f8;
}

.cart-container {
  max-width: 480px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  padding-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-edit-btn {
  background: transparent;
  border: none;
  color: #e63946;
  cursor: pointer;
}

.cart-item {
  display: flex;
  margin-top: 1rem;
  position: relative;
}

.item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 1rem;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.item-variants,
.item-notes {
  font-size: 0.85rem;
  color: #777;
  margin: 0.2rem 0;
}

.item-controls {
  /* position: absolute;
  top: 0;
  right: 0; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.qty button {
  padding: 3px 7px;
  border: none;
  background: #f7483c;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.qty {
  background-color: #fa594d;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.qty span {
  margin: 0 6px;
}

.price {
  font-weight: bold;
}

/* .remove-item {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
} */

/* Frequently Bought Together */
/* Scroll row in modal */
.frequently-bought {
  margin: 1rem 0;
  padding-top: 10px;
}
.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  padding-top: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

/* Responsive Cards inside Modal */
.mini-menu-card {
  min-width: 140px;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mini-menu-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.mini-details {
  padding: 0.2rem;
}

.mini-details h5 {
  font-size: 0.85rem;
  margin: 0.2rem 0;
}

.mini-details p {
  padding-top: 0.1rem;
}

.strike {
  text-decoration: line-through;
  color: #999;
  font-size: 0.8rem;
}

.add-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.add-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.customizable-text {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.2rem;
}

/* Coupon Card */
.coupon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
  font-size: 14px;
  color: #333;
}

.coupon-card i {
  color: #f7483c;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.coupon-card h5 {
  margin: 0.2rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.coupon-card a {
  text-decoration: none;
}

.coupon-card small {
  color: #2ecc71;
  font-size: 0.8rem;
}

.coupon-card button {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}

.coupon-card button:hover {
  background: #27ae60;
}

/* Coupon Modal */
.coupon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
}

.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coupon-item {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.coupon-item h5 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: #333;
}

.coupon-item p {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 0.8rem;
}

.apply-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}

.apply-btn:hover {
  background-color: #27ae60;
}

/* Promo Code Section */
.promo-section {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 14px;
}

.promo-input-group {
  display: flex;
  gap: 0.5rem;
}

.promo-section input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

.promo-section textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
  background: #fff;
}

.promocode-apply-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.promocode-apply-btn:hover {
  background-color: #27ae60;
}

/* Delivery Options */
.delivery-options {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #f9f9f9;
  font-size: 14px;
}

.delivery-options i {
  color: #f7483c;
}

.delivery-toggle {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.delivery-toggle label {
  margin-right: 1.2rem;
  font-size: 0.95rem;
}

.pickup-address,
.delivery-address {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  font-size: 14px;
}

.delivery-address p {
  margin: 0.5rem 0;
}

.address-edit-btn {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}

.delivery-address i {
  color: #f7483c;
}

.pickup-address i {
  color: #f7483c;
}

.pickup-options {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pickup-options label {
  background-color: #f5f5f5;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.pickup-options input[type="radio"] {
  accent-color: #2ecc71; /* green highlight */
  margin-right: 0.5rem;
}

.delivery-edit-btn {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.edit-btn:hover {
  background-color: #2980b9;
}

.edit-address {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.edit-address-container {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
}

.edit-address-close-modal-btn i {
  color: #f7483c;
  font-size: 0.75rem;
  cursor: pointer;
}

.edit-address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-address-header h5 {
  margin: 0;
}

.edit-address-body input {
  margin-top: 1rem;
  width: 100%;
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.edit-address-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.edit-address-cancel-btn,
.edit-address-save-btn {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.edit-address-cancel-btn {
  background-color: #ccc;
}

.edit-address-save-btn {
  background-color: #2ecc71;
  color: #fff;
}

.hidden {
  display: none;
}

/* Phone Number Section */
.phone-number {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  font-size: 14px;
  position: relative;
}

.phone-number i {
  color: #f7483c;
  margin-right: 8px;
}

.phone-number strong {
  display: inline-block;
  margin-bottom: 4px;
}

.phone-number p {
  margin: 4px 0;
  font-weight: 500;
}

.phone-number .edit-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
  cursor: pointer;
}

.phone-number .edit-btn:hover {
  background: #43a047;
}

/* Edit Phone Modal */
.edit-phone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.edit-phone.hidden {
  display: none;
}

.edit-phone-container {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 350px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.edit-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.edit-phone-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
}

.edit-phone-body input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.edit-phone-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 10px;
}

.edit-phone-footer .cancel-btn,
.edit-phone-footer .save-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.edit-phone-footer .cancel-btn {
  background: #f0f0f0;
  color: #333;
}

.edit-phone-footer .save-btn {
  background: #4caf50;
  color: white;
}

/* Estimated delivery time Section */
.delivery-time {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
  font-size: 14px;
  position: relative;
}

.delivery-time-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.delivery-time i {
  color: #f7483c;
  font-size: 16px;
}

.delivery-time h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.delivery-time small {
  display: block;
  margin-top: 1px;
  color: #777;
  margin-bottom: 1px;
}

.scheduled-time-display {
  font-weight: 500;
  color: #007bff;
  font-size: 12px;
  padding-bottom: 6px;
}

.delivery-time .schedule-btn {
  margin-top: 2px;
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.delivery-time .schedule-btn:hover {
  background: #43a047;
}

/* Schedule Modal */
/* Schedule Modal Container */
.schedule-modal-container {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  max-width: 90%;
  margin: 2rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Modal Header */
.schedule-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Modal Body */
.schedule-modal-body {
  text-align: center;
  padding: 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.schedule-modal-body::-webkit-scrollbar {
  display: none;
}

/* Date Tabs - scrollable horizontally */
.schedule-date-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.schedule-date-container::-webkit-scrollbar {
  display: none;
}

.date-tab {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.date-tab.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Time Slots */
.schedule-time-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* .schedule-time-container::-webkit-scrollbar {
  display: none;
} */

.time-slot {
  flex: 0 0 calc(33.333% - 0.5rem);
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.time-slot.active {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* Confirm Button */
.schedule-confirm-btn {
  width: 100%;
  padding: 12px;
  background-color: #e53935;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 1rem;
}

.schedule-confirm-btn:hover {
  background-color: #d32f2f;
}

/* Responsive: Adjust grid and font sizes for smaller screens */
@media (max-width: 480px) {
  .time-slot {
    flex: 0 0 calc(50% - 0.5rem);
    font-size: 0.85rem;
  }

  .date-tab {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .schedule-modal-container {
    margin: 1rem auto;
    padding: 0.75rem;
  }

  .schedule-confirm-btn {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Donation */
.donation-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  background: white;
  max-width: 500px;
  margin: auto;
  font-family: sans-serif;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.heart-icon {
  width: 20px;
  height: 20px;
}

.card-description {
  color: #6b7280;
  font-size: 0.9rem;
}

.image-container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donation-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.donation-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.85rem;
}

.donation-btn:hover {
  background: #f3f4f6;
}

.card-footer {
  margin-top: 1rem;
}

.donate-cta {
  width: 100%;
  padding: 0.6rem;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: bold;
  cursor: pointer;
}

.donate-cta:hover {
  background-color: #dc2626;
}

/* Price Breakdown */
.price-breakdown {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.price-breakdown div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.price-breakdown .total {
  font-size: 1.2rem;
  font-weight: bold;
}

.place-order-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 1rem;
  background-color: #f44600;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.place-order-btn:hover {
  background-color: #da4105;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .price-breakdown {
    font-size: 0.95rem;
  }

  .price-breakdown .total {
    font-size: 1.1rem;
  }

  .place-order-btn {
    font-size: 0.95rem;
    padding: 12px;
  }
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #777;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
  color: #ff5722; /* active or primary color */
}

/* Bottom Navigation Bar Cart Icon Badge */
.icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
}

/* Snackbar styling */
.snackbar {
  visibility: hidden;
  min-width: 180px;
  background-color: #f44336;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 10px 16px;
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  font-size: 14px;
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 100px;
}

/* Bump animation */
/* Bump animation for cart badge */
.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
