/* ── CSS GỐC CỦA MODULE (giữ nguyên) ─────────────────────── */
.qty_container {
  position: relative;
  margin: 0 auto 8px;
  width: 68px;
  gap: 0 !important;
  border: 1px solid #f7f7f7;
}
.qty_container input {
  border: 0;
  outline: none;
  width: 100%;
  height: 36px;
  padding: 0 6px;
  text-align: center;
}
.qty_container a.qty_btn {
  position: absolute;
  top: 0; right: 0;
  width: 21px; height: 18px;
  line-height: 18px;
  background: #fff;
  text-align: center;
  border-left: 1px solid #f7f7f7;
}
.qty_container a.qty_btn i { cursor: pointer; font-size: 15px; }
.qty_container a.qty_btn.qty_plus i::after  { content: "\E5CE"; }
.qty_container a.qty_btn.qty_minus          { top: initial; bottom: 0; border-top: 1px solid #f7f7f7; }
.qty_container a.qty_btn.qty_minus i::after { content: "\E5CF"; }
.qty_container input[type=number]::-webkit-inner-spin-button,
.qty_container input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty_container input[type=number] { -moz-appearance: textfield; }
.qty_minus, .qty_plus { width: 72px; display: block; font-size: 14px; cursor: pointer; }


/* ══════════════════════════════════════════════════════════
   ec- classes: layout căn giữa, giống ảnh mẫu
   ══════════════════════════════════════════════════════════ */

/* Wrapper tổng — căn center tất cả */
.ec-miniature-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  width: 100%;
}

/* Nhãn "PACZKA X SZT" — bold, uppercase, căn giữa */
.ec-paczka-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  width: 100%;
}

/* Hàng chứa stepper — căn giữa */
.ec-qty-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Stepper wrapper — inline flex */
.ec-qty-wrapper {
  display: inline-flex;
  align-items: center;
}

/* Nút − và + — theo style theme (ảnh 2: border xám, bg trắng) */
.ec-qty-btn {
  width: 38px;
  height: 38px;
  background: #fff;
  border: 1px solid #ced4da;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  color: #555;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
  -webkit-appearance: none;
  appearance: none;
}
.ec-qty-btn:hover  { background: #f0f0f0; color: #222; }
.ec-qty-btn:active { background: #e5e5e5; }
.ec-qty-btn:focus  { outline: none; }
.ec-qty-btn.ec-qty-minus {
  border-radius: 4px 0 0 4px;
  border-right: none;
}
.ec-qty-btn.ec-qty-plus {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

/* Input số lượng */
.ec-qty-input {
  width: 64px;
  height: 38px;
  text-align: center;
  border: 1px solid #ced4da;
  border-left: none;
  border-right: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  outline: none;
  padding: 0;
  background: #fff;
  /* Ẩn native browser spinner */
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
.ec-qty-input::-webkit-inner-spin-button,
.ec-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  display: none !important;
  margin: 0;
}

/* Nút Add to cart — full width, căn giữa */
.ec-add-to-cart-btn {
  display: block !important;
  width: 100% !important;
  text-align: center;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.ec-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
