/* ============================================================
   BPCO Product Controls — Premium UI
   Styles for [bpco_qty], [bpco_add_to_cart], [bpco_variations]
   ============================================================ */

/* ── QTY SELECTOR ─────────────────────────────────────────── */
.bpco-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  height: 46px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bpco-qty:focus-within {
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(34,34,34,0.08);
}
.bpco-qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #444;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.bpco-qty__btn:hover:not([disabled]) {
  background: #f5f5f5;
  color: #111;
}
.bpco-qty__btn:active:not([disabled]) {
  background: #eee;
}
.bpco-qty__btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.bpco-qty__input {
  width: 48px;
  height: 100%;
  border: none;
  border-left: 1.5px solid #e0e0e0;
  border-right: 1.5px solid #e0e0e0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.bpco-qty__input::-webkit-outer-spin-button,
.bpco-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── ADD TO CART BUTTON ───────────────────────────────────── */
.bpco-atc-wrap {
  display: inline-block;
  width: 100%;
}
.bpco-atc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 28px;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 50px;
  text-transform: uppercase;
}
.bpco-atc-btn:hover:not([disabled]) {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.bpco-atc-btn:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: none;
}
.bpco-atc-btn.is-disabled,
.bpco-atc-btn[disabled] {
  background: #d0d0d0;
  border-color: #d0d0d0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.bpco-atc-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.bpco-atc-btn.is-added {
  background: #1a7a4a;
  border-color: #1a7a4a;
}
.bpco-atc-btn.is-added:hover {
  background: #15683e;
  border-color: #15683e;
}
.bpco-atc-btn__spinner,
.bpco-atc-btn__check {
  display: none;
  flex-shrink: 0;
}
.bpco-spin {
  animation: bpco-spin 0.7s linear infinite;
}
@keyframes bpco-spin {
  to { transform: rotate(360deg); }
}

/* ── NOTICE ───────────────────────────────────────────────── */
.bpco-atc-notice {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.bpco-atc-notice.bpco-notice--error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}
.bpco-atc-notice.bpco-notice--success {
  background: #f0fff6;
  color: #1a7a4a;
  border: 1px solid #b8edce;
}

/* ── VARIATION SWATCHES ───────────────────────────────────── */
.bpco-variations {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 6px;
}
.bpco-variation-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bpco-variation-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.bpco-variation-label .bpco-selected-val {
  font-weight: 400;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
}
.bpco-variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bpco-variation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.bpco-variation-btn:hover {
  border-color: #aaa;
  background: #f9f9f9;
  color: #111;
}
.bpco-variation-btn.is-selected {
  border-color: #111;
  background: #111;
  color: #fff;
}
.bpco-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  flex-shrink: 0;
}
.bpco-swatch:hover {
  transform: scale(1.1);
  border-color: #aaa;
}
.bpco-swatch.is-selected {
  border-color: #111;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}
.bpco-swatch.is-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}
.bpco-swatch.is-unavailable::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: rgba(0,0,0,0.4);
  transform: rotate(-45deg);
}
.bpco-variation-price {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-top: 4px;
  display: none;
}
.bpco-variation-stock {
  font-size: 13px;
  margin-top: 4px;
  display: none;
}
.bpco-stock--out {
  color: #c0392b;
  font-weight: 500;
}
.bpco-stock--low {
  color: #d35400;
  font-weight: 500;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .bpco-atc-btn {
    font-size: 14px;
    padding: 12px 20px;
  }
  .bpco-qty {
    height: 44px;
  }
}