/* popup product quyendau */

#cartModal {
    display: none;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

#cartModal.active {
    display: flex;
}


.modal-product {
    width: 90%;
    max-width: 1112px;
    background: #FFF7E6;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    margin: 40px 0;
}

.btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 9999;
}


.flex-box {
  display: flex;
  gap: 20px;
}

.left-img img {
  width: 506px !important;
  height: 451px !important;
}

.carousel-slide {
  width: 100%;
  max-width: 506px;
  margin: 0 auto;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

.carousel-slide img {
  width: 100%;
}

.carousel-slide img.active {
  display: block;
}

.right-content {
  width: 50%;
}

.right-content h1 {
  color: #aa2233;
  font-size: 37px;
  margin: 0;
  font-weight: 600;
  font-family: 'Newsreader', serif;
}

.subtitle {
  font-style: italic;
  color: #aa2233;
  font-size: 25px;
  font-family: 'Newsreader', serif;
transform: translateY(-12px);
}

.price-per {
  font-weight: 600;
  color: #c59e59;
  font-size: 30px;
  padding: 10px 0;
  font-family: "AlbulaPro";

}



.status {
  font-weight: 700;
  font-size: 15px;
  padding-top: 5px;
  color: #c59e59;
}

.chi_nhanh-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.chi_nhanh-label {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #000;
  font-weight: 500;
  cursor: pointer !important;
  font-family: "AlbulaPro";
}

.chi_nhanh-label input {
  display: none;
}

.chi_nhanh-dot {
  width: 18px;
  height: 18px;
  font-size: 15px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: #ddd;
  display: inline-block;
}

.chi_nhanh-label input:checked+.chi_nhanh-dot {
  background-color: #96172e;
}

.section-label {
  font-weight: bold;
  color: #96172e;
  margin-right: 16px;
  font-size: 19px;
  font-family: "AlbulaPro";
}

.qty-section {
  padding: 20px 0;
  border-bottom: 2px solid #AA2233;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #941a1d;
  padding: 5px 0;
  width: fit-content;
}

.quantity-control button {
 font-size: larger;
 padding: 0 5px;
  background: none !important;
  border: none !important;
  font-weight: bold;
  color: #941a1d;
  cursor: pointer !important;
}

.quantity-control input {
  background: none !important;
  border: none !important;
}

.popup-quantity-input {
  width: 120px;
  height: 25px;
  text-align: center !important;
  border: none;
  background: none;
}

.cart-total-price {
  font-size: 30px;
  color: #C79451;
  font-weight: 700;
  font-family: "AlbulaPro";
}

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}

.btn-add,
.btn-buy {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  color: #fff4e0;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  background-color: #AA2233;
  font-size: 16px;
  cursor: pointer !important;
     font-family: "AlbulaPro";

}

.product-details {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
     font-family: "AlbulaPro";

}

.product-details .column {
  flex: 1;
  min-width: 280px;
}

.product-details h3 {
  margin: 16px 0 4px;
  font-size: 16px;
  font-weight: bold;
  color: #96172e;
}



.product-details ul {
  padding-left: 20px;
}

.product-details li {
  margin-bottom: 6px;
}

.row-inline {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.row-inline h3 {
  margin: 0 0 4px;
}

.carousel-dots {
  margin-top: 15px;
  text-align: center;
}

.carousel-dots span {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 4px;
  cursor: pointer !important;
}

.carousel-dots .active {
  background: #aa2233;
}

@media (max-width: 991.98px) {
  .modal-product {
    width: 100% !important;
    height: auto !important;
    padding: 16px;
    margin: 0;
  }

  .flex-box {
    flex-direction: column;
    gap: 24px;
  }

  .left-img,
  .right-content {
    width: 100%;
  }

  .left-img img {
    width: 506px !important;
    height: 451px !important;
  }

  .carousel-slide {
    width: 100%;
    max-width: 506px !important;
    margin: 0 auto;
  }


  .price-per,
  .qty-section,
  .btn-row,
  .total-price,
  .section-label,
  .chi_nhanh-group {
    text-align: left;
    align-items: flex-start !important;
     font-family: "AlbulaPro";
  }

  .chi_nhanh-group {
    gap: 12px;
  }

  .btn-row button {
    width: 100%;
  }

  .product-details {
    flex-direction: column;
    gap: 24px;
  }

  .row-inline {
    flex-direction: column;
    gap: 8px;
  }

  .popup-quantity-input {
    width: 100%;
  }
}

/* Responsive: Mobile <style 576px */
@media (max-width: 575.98px) {
  .modal-product {
    padding: 12px;
  }

  .left-img,
  .right-content {
    width: 100%;
  }

  .left-img img {
    width: 386px !important;
    height: 311px !important;

  }

  .carousel-slide {
    width: 100%;
    max-width: 386px !important;
    margin: 0 auto;
  }

  .right-content h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 18px;
  }

  .price-per {
    display: flex !important;
    font-size: 20px;
  }

  .total-price {
    font-size: 22px;
  }

  .quantity-control {
    flex-direction: row;
    justify-content: space-between;
  }

  .popup-quantity-input {
    text-align: center;
    width: 100%;
    max-width: 80px;
  }
}

/* Center modal-product horizontally */
#cartModal .modal-product {
  margin-left: auto;
  margin-right: auto;
}



/* Popup đặt hàng */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  display: block; /* ❗ Không dùng flex nếu không muốn căn giữa dọc */
}

.popup-content {
  background: #fff4e0;
  margin: 100px auto; /* ✅ Căn giữa ngang + đẩy xuống */
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  max-width: 600px;
  max-height: 328px;
  width: 100%;
  height: 100%;
}

.popup-icon {
  font-size: 60px;
  color: #aa2233;
  margin-bottom: 20px;
}

.popup-message {
  font-size: 18px;
  color: #aa2233;
  font-weight: 700;
  margin-bottom: 30px;
}

.popup-close {
  background-color: #aa2233;
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}



