/* Quick Buy Modal - Modern Pink Style */
.qbp-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    font-family: "Inter", Arial, sans-serif;
    overflow-y: auto;
 background: rgba(0, 0, 0, 0.6);

}
.qbp-overlay {
  position: absolute;
  inset: 0;
 }

.qbp-box {
  position: relative;
  width: 1000px;
  max-width: 95%;
  margin: 150px auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
button#qbp-add-more-products {
    margin: 0;
    border-radius: 10px !important;
}
.qbp-close {
    position: absolute;
    top: -15px;
    right: 0px;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}
.qbp-close:hover { color: #333; }

.qbp-inner {
  display: flex;
  }

.qbp-left {
 background: #f9fafb;
  width: 45%;
  border-right: 1px solid #eee;
  padding: 20px;
}

.qbp-right {
  width: 55%;
  padding: 20px;
}

.qbp-left h3,
.qbp-right h3 {
  font-size: 20px;
  font-weight: 700;
 }

.qbp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.qbp-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.bottom-left {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
}
.qbp-item-right {
  flex: 1;
}
.qbp-item-right h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.qbp-item-right span {
  font-weight: bold;
  color: #00a8cc;
}

.qbp-sub,
.qbp-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-top: 10px;
}

.qbp-sub span,
.qbp-total span {
  font-weight: 600;
}

.qbp-total {
    font-size: 22px;
    font-weight: 700;
    color: #00594c;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}
.qbp-coupon {
      display: flex
;
  gap: 8px;
  margin-top: 16px;
}
button#qbp-complete {
    border-radius: 8px !important;
    background: #00594c;
    margin: 0 0 1em 0;
}
.qbp-coupon input {
  flex: 1;
      padding: 0 0 0 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.qbp-coupon button {
  background: #00594c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.qbp-coupon button:hover { background: #e03c75; }

#qbp-freeship {
    background: #359789;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    margin-top: 16px;
    padding: 10px;
}
input[type="text"], input[type="email"] {
    border-radius: 10px !important;
}



.qbp-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.qbp-row input,
.qbp-row select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-size: 14px;
}
.qbp-row input:focus,
.qbp-row select:focus {
  border-color: #ff4b86;
  outline: none;
}
.form-row {
    display: grid
;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.qbp-row input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
}

#qbp-complete {
  background: #ff4b86;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qbp-success {
  color: green;
}
.qbp-error {
  color: red;
}

/* Responsive */
@media (max-width: 768px) {
  .qbp-inner {
    flex-direction: column;
    padding: 20px;
  }
  .qbp-left,
  .qbp-right {
    width: 100%;
    padding: 0;
    border: none;
  }
}
/* ==========================
   Cart Item Styling
========================== */

.qbp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.qbp-item-left img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.qbp-item-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qbp-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 4px;
}

.qbp-price {
  font-size: 16px;
  font-weight: 700;
  color: #00a8cc; /* xanh dương nhạt giống ảnh */
}

.qbp-item-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.qbp-item-right button.qbp-inc {
    border-radius: 0 10px 10px 0 !important;
    margin-left: 0;
}
button#qbp-apply-coupon {
    border-radius: 8px !important;
    margin: 0 0 1em 0;
}
.qbp-item-right button.qbp-dec {
    border-radius: 10px 0 0 10px !important;
}
.qbp-item-right button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 28px;
border-radius: 10px 0 0 10px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
    margin-right: 0;
padding: 0;
}

.top-left {
    padding: 10px;
}

input[id^="qbp-qty-"] {
    margin: 0;
  width: 36px;
    height: 65px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 4px 0;
  background: #fff;
  font-weight: 600;
}

/* Remove outline when clicking buttons or input */
.qbp-item-right button:focus,
#qbp-qty:focus {
  outline: none;
}

/* ==========================
   Responsive tweak
========================== */
@media (max-width: 768px) {
div#qbp-freeship {
    font-size: 12px;
}
.qbp-coupon input {
        padding: 0;
    }
  .qbp-item {
    padding: 10px 0;
  }
  .qbp-item-left img {
    width: 60px;
    height: 60px;
  }
  .qbp-name {
    font-size: 14px;
  }
  .qbp-price {
    font-size: 15px;
  }
}
.qbp-item-left {
    display: flex;
    gap: 5px;
}
.qbp-variants {
    display: flex;
    margin-top: 6px;
    flex-wrap: wrap;
}
.qbp-variant-btn {
  margin-right: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
   background: #fff;
  cursor: pointer;
font-size: 10px;
}
.qbp-variant-btn.active {
  background: #ff2d6b;
  color: #fff;
  border-color: #ff2d6b;
font-size: 10px;
}
/* Căn 2 cột ngang hàng */
.qbp-right .form-row {
    display: flex;
    gap: 10px;
}
.qbp-right .form-row .qbp-row {
    flex: 1;
}

/* Khi ẩn Quận/Huyện */
.qbp-district-wrap[style*="visibility: hidden"] {
    display: none !important;
}

.qbp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.qbp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* label chính */
.qbp-label {
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* thanh progress */
.qbp-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
 background: linear-gradient(90deg, #ff6b81, #ffa36c);

  z-index: 1;
  transition: width 2s ease;
}

/* hiệu ứng hoàn tất (hiện từ dưới lên) */
.qbp-done {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 3;
  font-weight: 600;
  transition: bottom 0.5s ease;
}

.qbp-btn.loading .qbp-progress { width: 100%; }
.qbp-btn.complete .qbp-done { bottom: 0; }
.qbp-btn.complete .qbp-label { opacity: 0; transform: translateY(-20px); }

button.qbp-remove-item {
    border-radius: 10px;
    margin-left: 10px;
}