/*! ALLA Product Gallery — Quantity +/- v1.7.2 | https://alla.com.vn/ */

/* .quantity luôn flex ngay từ đầu (tránh nhảy layout) */
.quantity {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0px;
  flex-wrap: nowrap !important;
  text-align: left;
  justify-content: left;
}

.quantity button.minus,
.quantity button.plus {
  width: 35px;
  height: 35px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
  background: #fff;
  color: #000;
}
.quantity button.minus { border-right: 0; }
.quantity button.plus  { border-left: 0; }

/* Hook 'before_quantity_input_field' của theme nằm TRƯỚC <label>, nên dùng order
   để đưa label về đầu: kết quả [Số lượng] [-] [input] [+] */
.quantity label {
  order: -1;
  margin-right: 10px;
  margin-bottom: 0 !important;
  white-space: nowrap;
  min-width: 96px;
}

.quantity .qty,
.quantity input[type="number"] {
  width: 80px !important;
  height: 35px !important;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 0;
  flex-shrink: 0;
  margin-left: 5px !important;
  margin-right: 5px !important;
}

/* Ẩn mũi tên mặc định của input[type=number] */
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity input[type="number"] {
  -moz-appearance: textfield;
}

/* Riêng trang giỏ hàng: canh giữa */
.woocommerce-cart .quantity {
  justify-content: center;
}
