/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #f9f9f9;
    color: #333;
    padding-bottom: 80px;
  }
  
  /* Header Styles */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .logo {
    height: 40px;
  }
  
  .header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  .header-icons a {
    margin-left: 20px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    position: relative;
  }
  
  .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .coins {
    display: flex;
    align-items: center;
    background-color: #fff8e1;
    padding: 5px 10px;
    border-radius: 20px;
    color: #ffa000;
    font-weight: 500;
    margin-left: 15px;
  }
  
  .coin-icon {
    color: #ffc107;
    margin-right: 5px;
  }
  /* Cart Container */
  .cart-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }
  
  .cart-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
  
  /* Empty Cart */
  .cart-empty {
    text-align: center;
    padding: 40px 0;
  }
  
  .empty-icon {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 20px;
  }
  
  .empty-text {
    font-size: 18px;
    color: #999;
    margin-bottom: 20px;
  }
  
  /* Cart Items */
  .cart-items {
    margin-bottom: 30px;
  }
  
  .cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
  }
  
  .item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
  }
  
  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .item-details {
    flex: 1;
  }
  
  .item-title {
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .item-options {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
  }
  
  .item-actions {
    display: flex;
    align-items: center;
  }
  
  .quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .quantity {
    margin: 0 8px;
    min-width: 20px;
    text-align: center;
  }
  
  .item-price {
    font-weight: 600;
    margin-left: 20px;
  }
  
  .item-remove {
    color: #e0576e;
    cursor: pointer;
    margin-left: 15px;
  }
  
  /* Summary Section */
  .summary-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
  }
  
  .summary-row.final {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
  
  /* Promo Code Section */
  .promo-section {
    margin-bottom: 30px;
  }
  
  .promo-input {
    display: flex;
  }
  
  .promo-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
  }
  
  .btn-outlined {
    padding: 12px 20px;
    border: 1px solid #e0576e;
    background-color: white;
    color: #e0576e;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
  }
  
  /* Address Section */
  .address-section {
    margin-bottom: 30px;
  }
  
  .address-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .address-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    cursor: pointer;
    margin: 19px 0;
  }
  
  .address-card.selected {
    border-color: #e0576e;
    background-color: #fdf5f6;
  }
  
  .address-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
  }
  
  .address-card.selected .address-check {
    background-color: #e0576e;
    border-color: #e0576e;
    color: white;
  }
  
  .address-type {
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .address-content {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
  }
  
  .address-actions {
    text-align: right;
  }
  
  .address-edit {
    color: #e0576e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
  }
  
  .add-address {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
  }
  
  .add-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 10px;
  }
  
  .add-text {
    color: #666;
    font-size: 14px;
  }
  
  /* Payment Section */
  .payment-section {
    display: none;
    margin-bottom: 30px;
  }
  
  .payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .payment-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    cursor: pointer;
    text-align: center;
  }
  
  .payment-option.selected {
    border-color: #e0576e;
    background-color: #fdf5f6;
  }
  
  .payment-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
  }
  
  .payment-option.selected .payment-check {
    background-color: #e0576e;
    border-color: #e0576e;
    color: white;
  }
  
  .payment-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
  }
  
  .payment-name {
    font-size: 14px;
    font-weight: 500;
  }
  
  /* Button Styles */
  .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }
  
  .btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
  }
  
  .btn-primary {
    background-color: #e0576e;
    color: white;
    flex: 1;
    margin-left: 10px;
  }
  
  .btn-primary:hover {
    background-color: #d04b61;
  }
  
  .btn-secondary {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #333;
    flex: 1;
    margin-right: 10px;
  }
  
  .btn-secondary:hover {
    background-color: #f0f0f0;
  }
  .delivery-charge {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
  /* Bottom Navigation (Mobile) */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-top: 1px solid #eee;
  }
  
  .bottom-nav-menu {
    display: flex;
    justify-content: space-around;
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    font-size: 12px;
    color: #666;
    position: relative;
  }
  
  .bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
  }
  
  .bottom-nav-item.active {
    color: #e0576e;
  }
  
  .notification-badge {
    position: absolute;
    top: 0;
    right: 25%;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Add this to your CSS file */
.coins-option {
  margin: 15px 0;
  background-color: #fff8e1;
  border-radius: 6px;
  padding: 10px 15px;
  position: relative;
}

.coins-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.coins-checkbox input {
  margin-right: 8px;
}

.coin-value {
  font-size: 12px;
  color: #ffa000;
  margin-top: 5px;
  margin-left: 20px;
}

/* Add a coin icon */
/* .coins-checkbox span:before {
  content: "\f51e";
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  margin-right: 5px;
  color: #ffc107; */
/* } */
  /* Media Queries */
  @media (max-width: 768px) {
    .address-select,
    .payment-options {
      grid-template-columns: 1fr;
    }
  
    .button-group {
      flex-direction: column;
    }
  
    .btn-primary,
    .btn-secondary {
      margin: 5px 0;
    }
  }
  
  @media (max-width: 480px) {
    .cart-item {
      flex-wrap: wrap;
    }
  
    .item-image {
      width: 60px;
      height: 60px;
    }
  
    .item-remove {
      position: absolute;
      top: 15px;
      right: 0;
    }
  
    .item-price {
      width: 100%;
      text-align: right;
      margin-top: 10px;
    }
  }

  /* Add this to your cart page CSS */
.form-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  padding: 20px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.form-header h3 {
  margin: 0;
  color: #333;
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.empty-state {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

.empty-state i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 15px;
}

.empty-state p {
  margin-bottom: 20px;
  color: #777;
}

.addresses-list {
  flex-direction: column-reverse;
  overflow-y: auto;
  padding: 13px 0px;
}
.address-section {
  margin-bottom: 30px;
  position: relative;
}

.addresses-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.address-card {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
}

.address-card.selected {
  border-color: #e0576e;
  background-color: #fdf5f6;
}

.address-icon {
  margin-right: 12px;
  font-size: 20px;
  color: #666;
  width: 30px;
  text-align: center;
}

.address-details {
  flex: 1;
}

.address-type {
  font-weight: 600;
  margin-bottom: 5px;
}

.address-line {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.add-address-button {
  margin-top: 10px;
  text-align: center;
}

.btn-add-address {
  width: 100%;
  padding: 10px;
  border: 2px dashed #ddd;
  background-color: #f9f9f9;
  color: #666;
  border-radius: 8px;
  display: flex; 
  align-items: center;
  justify-content: center;
}

.btn-add-address i {
  margin-right: 8px;
}

.btn-add-address:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.form-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  padding: 20px;
  display: none;
}

/* Overlay background when form is visible */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}




/* Toggle Switch Styling */
.quick-delivery-toggle{
    border-color: #e0576e;
    background-color: #fdf5f6;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
    justify-content: space-between;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #e0576e;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-label {
  display: flex;
  align-items: center;
}

.delivery-method {
  padding-top: 8px;
  font-weight: 500;
}

#quickDeliveryBadge {
  display: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}
