/* /* Cart Modal Styles */
.modal-overlay {
  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;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 550px;
  max-height: 85vh;
  overflow-y: auto;
}

.cart-modal h4 {
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.cart-items {
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 5px;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #28a745;
  border-radius: 10px;
}

.cart-card {
  display: flex;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #fff;
  transition: transform 0.2s;
}

.cart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-card img {
  width: 40%;
  height: 130px;
  object-fit: cover;
}

.cart-card .card-body {
  width: 60%;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.cart-card .card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #043e16;
}

.cart-card .product-price {
  color: #158e31;
  font-weight: 700;
  margin-bottom: 10px;
}

.cart-card input[type="number"] {
  width: 70px;
  margin: 0 auto 10px;
  text-align: center;
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 5px 2px;
}

.cart-card .btn-update {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}

.cart-card .btn-update:hover {
  background-color: #218838;
}

.cart-card .btn-remove {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}

.cart-card .btn-remove:hover {
  background-color: #c82333;
}

.cart-summary {
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.cart-summary h5 {
  color: #0a0b0a;
  font-size: 1.2rem;
  margin-bottom: 15px;
  margin-right: 25px;
}

/* Button Styling */
.d-flex {
  display: flex;
  justify-content: space-between;
}

.btn {
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: 0.3s ease;
}

.btn-outline-danger {
  background-color: #fff;
  border: 2px solid #dc3545;
  color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
  border: 3px solid #dc3545;
}

.btn-success {
  background-color: #28a745;
  border: 2px solid #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  border: 3px solid #218838;
}



/* Responsive adjustments */
@media (max-width: 576px) {
  .modal-content {
    padding: 15px;
    width: 95%;
  }

  .cart-card {
    flex-direction: column;
  }

  .cart-card img {
    width: 100%;
    height: auto; /* Let it adjust naturally */
    object-fit: contain; /* Ensures full image is visible */
    display: block;
    max-width: 100%;
  }
  
  .cart-card .card-body {
    width: 100%;
  }
}



/* Text modifiers */
.text-muted {
  color: #6c757d !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

/* Utility classes */
.mb-2 {
  margin-bottom: 0.5rem !important;
  
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  /* transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; */
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  /* outline: 0; */
  /* box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); */
}

.mb-2 .form-select {
    --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    display: block;
    width: 50%;
    text-align: center;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
   margin-left: 65px;
   border: solid 1px black;
}


/* 
.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #d4a90e;
  border-radius: 30px; 
  padding: 5px 6px;    
  width: fit-content;
  height: 38px;
  margin: 0 auto 10px;
}

.qty-btn:focus,
.qty-btn:active {
  outline: none;
  box-shadow: none;
  background: none;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
}

.qty-btn i {
  font-size: 18px;
}

.qty-value {
  margin: 0 10px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
} */


