/* =========================================================
   FT — SINGLE PRODUCT PAGE (QUANTITY CONTROLS)
   ---------------------------------------------------------
   Scope:   Single product pages only (.single-product)
   Purpose: Replaces the default WooCommerce quantity input
            with an ultra-minimal editorial-style control.
            The +/- buttons feel like subtle typographic
            elements rather than chunky UI buttons, and the
            number input itself looks like plain text with
            no visible box.
   
   What this does:
   1. Removes native browser number spinners (arrows) on
      all browsers (Chrome, Firefox, Safari).
   2. Styles the +/- buttons as transparent, borderless
      glyphs that darken on hover.
   3. Styles the quantity input as a borderless text-feel
      field — no background, no box, just a centered number.
   4. Adds a subtle underline only on focus so the user
      knows the field is active.
   5. Slightly enlarges all controls on mobile for easier
      tap targets.
   ========================================================= */

/* --- REMOVE NATIVE SPINNERS --- */

.single-product input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.single-product input[type="number"]::-webkit-inner-spin-button,
.single-product input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- CONTAINER --- */

.single-product .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* --- PLUS / MINUS BUTTONS --- */

.single-product .qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: rgba(0,0,0,0.45);
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.single-product .qty-btn:hover {
  color: rgba(0,0,0,0.75);
}

/* --- QUANTITY INPUT --- */

.single-product .quantity input.qty {
  background: transparent;
  border: none;
  color: #3a3a3a;
  font-weight: 500;
  text-align: center;
  padding: 0;
  margin: 0 4px;
  box-shadow: none;
  appearance: textfield;
}

/* Remove native arrows (redundant safety net) */
.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Subtle underline on focus */
.single-product .quantity input.qty:focus {
  outline: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

/* --- MOBILE — LARGER TAP TARGETS --- */
/* NOTE: input.qty width/height/font-size are owned by
   "Purchase Card & Variation Wrap" (ID 4284438), which
   sizes the input as part of the purchase-row layout.
   Only the +/- buttons are sized here. */

@media (max-width: 768px) {
  .single-product .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
