/* Step Progress Bar */
.cart-page .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  font-weight: 600;
  font-size: 15px;
}
.cart-page .step span {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #b1b5c3;
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  font-weight: bold;
}
.cart-page .step.active span {
  background-color: #e91e63;
}
.cart-page .step.active {
  color: #000;
}
.cart-page .line {
  width: 60px;
  height: 2px;
  background-color: #ccc;
  margin-top: 18px;
}

/* Buttons */
.btn-pink {
  background-color: #e91e63;
  color: #fff;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-pink:hover {
  background-color: #c2185b;
}

#product-header {
  border-bottom: 2px solid #6c7275;
  justify-content: space-between;
  padding-bottom: 15px;
}

.cart-item:last-child {
  border-bottom: none;
}

/* Cart Items */
.cart-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*flex-wrap: wrap;*/
}
.cart-item img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-info {
  flex: 1;
  margin-left: 15px;
}
.cart-info h6 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}
.cart-info p {
  font-size: 12px;
  color: #999999;
  margin: 0 0 5px;
  font-weight: 600;
}
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid #6c7275;
  border-radius: 8px;;
  padding: 4px 10px;
  gap: 10px;
}
.quantity-control button {
  background: transparent;
  border: none;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.quantity-control button:hover {
  color: #e91e63;
}
.delete-btn {
  background: transparent;
  border: none;
  color: #dc3545;
  font-size: 22px;
  margin-left: 10px;

}

.delete-btn:hover {
  color: #b30000;
}


/* Modal Background */
.delete-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: flex-start;   
  padding-top: 70px;         
  animation: fadeIn 0.3s ease;
}


/* ===== White Box with Flip Animation ===== */
.delete-modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 14px;
  width: 360px;
  position: relative;
  text-align: center;
  box-shadow: 0px 6px 25px rgba(0,0,0,0.18);
  transform: rotateX(-90deg);
  animation: flipOpen 0.35s ease forwards; 
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 1px;
  right: 12px;
  font-size: 22px;
  color: #666;
  cursor: pointer;
}

/* Modal Header: Icon Left + Title Right */
.modal-header-custom {
  display: flex;
  align-items: center;
  justify-content: flex-start;  
  gap: 12px;
  margin-bottom: 20px;
  text-align: left !important; 
  width: 100%;
}

/* Icon Box */
.icon-box {
  width: 42px;
  height: 42px;
  background: #e8f3ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;              
}

.icon-box i {
  font-size: 22px;
  color: #2787ff;
}

/* Title at Right */
.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #757575;
  margin: 0;
  flex: 1;                  
  text-align:center; 
  line-height: 22px;
}

/* Buttons */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-left: 17px;
}

.yes-btn {
  background: #ff4f4f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#confirmDeleteBtn{
  coursor:pointer;
}

.yes-btn:hover{
  background: #ff1c1c;
}

.no-btn {
  background: #d3d3d3;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.no-btn:hover{
  background: #b2b2b2;
}

/* ===== ANIMATIONS ===== */

@keyframes flipOpen {
  0% { transform: rotateX(-90deg) scale(0.8); opacity: 0; }
  100% { transform: rotateX(0deg) scale(1); opacity: 1; }
}

@keyframes flipClose {
  0% { transform: rotateX(0deg) scale(1); opacity: 1; }
  100% { transform: rotateX(90deg) scale(0.8); opacity: 0; }
}

@keyframes fadeIn {
  from { background: rgba(0,0,0,0); }
  to { background: rgba(0,0,0,0.45); }
}


/* ===== SUCCESS TOAST ===== */

/* Background Overlay*/
.toast-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
}

/* Overlay Show */
.toast-overlay.show {
  display: block;
}

.success-toast {
  position: fixed;
  top: 90px;               /*  show below modal */
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #fff;
  border-radius: 10px;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  /*gap: 10px;*/
  min-width: 280px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    /*border-left: 4px solid #28c76f;*/
  opacity: 0;
  transition: 0.35s ease;
  z-index: 10000;            /* above modal */
  font-weight: 600;

}


/* Flip animations for toast */
@keyframes flipsOpen {
  0% { transform: translateX(-50%) translateY(-20px) rotateX(-90deg) scale(0.8); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0) rotateX(0deg) scale(1); opacity: 1; }
}

@keyframes flipsClose {
  0% { transform: translateX(-50%) translateY(0) rotateX(0deg) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-20px) rotateX(90deg) scale(0.8); opacity: 0; }
}

/* Toast show/hide */
.success-toast.show.flip {
  animation: flipsOpen 0.3s forwards;
}

.success-toast.hide.flip {
  animation: flipsClose 0.3s forwards;
}


/* Icon */

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.toast-icon-circle {
  background-color: #07bc0c;
  color: #fff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Close button */
.toasts-close {
  cursor: pointer;
  font-size: 20px;
  color: #aaa;
  margin-left: 12px;
  margin-top: -1px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.toasts-close:hover {
  color: #ff4da6;
  transform: scale(1.2);
}

/* Progress bar */
.toast-timer {
  position: absolute;
  bottom: 0;
  left: 5px;
  height: 4px;
  background: #60e264;

  width: 100%;
  animation: toastTimer 2.8s linear forwards;
}

@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0%; }
}


/* Responsive */
@media (max-width: 480px) {
  .cart-item {
    flex-direction: inherit;
    align-items: flex-start;
  }
  .cart-info {
    margin-left: 10px;
    margin-top: 10px;
  }
  .cart-page .step {

  font-size: 13px;
}
  .cart-info h6 {
    font-size: 15px;
  }
  .cart-page .line {
    width: 40px;
  }
  .cart-item img {
    margin-bottom: 10px;
  }
  .cart-item > .fw-bold {
    margin-top: 10px;
    width: 100%;
    text-align: right;
  }
  .cart-summary .d-flex {
    justify-content: space-between !important;
  }

  .success-toast{
    width: 55%;
    font-size: 14px;
    padding: 12px 16px;
  }
  .toast-icon-circle {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
}