/* ============ Single product — buy box ============ */
.single-product .summary { max-width: 480px; }

.single-product .price {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: var(--space-sm);
}
.single-product .price ins { color: var(--accent-text); text-decoration: none; font-weight: 700; }
.single-product .price del { color: var(--ink-60); font-weight: 400; font-size: 18px; margin-right: var(--space-sm); }

/* Stock urgency */
.stock-urgency { margin-bottom: var(--space-lg); }
.stock-urgency__text { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.stock-urgency__text .qty-left { color: var(--accent-text); }
.stock-urgency__bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  overflow: hidden;
}
.stock-urgency__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

/* Variation swatches (progressive enhancement over the native <select>) */
.variation-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.variation-swatches { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.variation-swatches__pill {
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink-10);
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.variation-swatches__pill:hover { border-color: var(--ink-40); }
.variation-swatches__pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.variation-swatches__pill:disabled { opacity: .35; cursor: not-allowed; }
/* Hide the native select once swatches are built by JS; stays visible (accessible) with no-JS */
.js-swatches-ready select.swatch-source { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  border: 1.5px solid #FF8534;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: var(--space-lg);
}
.qty-stepper button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #FF8534;
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.qty-stepper button:disabled { opacity: .35; }
.qty-stepper input {
  width: 32px;
  text-align: center;
  border: 0;
  font-weight: 700;
  font-size: 15px;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Primary purchase buttons — stacked, full width.
   Visual order: quantity → ORDER NOW → Add to cart → WhatsApp.
   Flex `order` is used because WooCommerce renders its own Add to Cart button
   before our hooked-in buttons, and we don't want to unhook core markup. */
.woocommerce div.product form.cart { display: flex; flex-direction: column; }
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .woocommerce-variation { order: 0; }
.woocommerce div.product form.cart .woocommerce-variation-price { order: 0; }
.woocommerce div.product form.cart .quantity { order: 1; }
.woocommerce div.product form.cart .btn-buy-now { order: 2; }
.woocommerce div.product form.cart button.single_add_to_cart_button { order: 3; }
.woocommerce div.product form.cart .btn-whatsapp { order: 4; }

/* Specificity note: WooCommerce ships `.woocommerce button.button.alt` (0,3,1).
   These selectors must match or exceed that, otherwise the default purple wins. */
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt,
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:focus {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md) !important;
  /* Secondary emphasis: same brand orange, outlined — keeps ORDER NOW as the primary action. */
  background-color: var(--bg);
  /* Ring uses the brand orange; the label uses the darker tone because
     #FF8534 text on white is only 2.2:1 and would fail AA. */
  color: var(--accent-text);
  border: 2px solid #FF8534;
  min-height: 48px;
}
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:hover {
  background-color: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt.disabled,
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:disabled {
  opacity: .45;
}

.btn-buy-now,
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: var(--space-md);
}
.btn-buy-now { background: #FF8534; color: var(--ink); }
.btn-buy-now:hover { opacity: .9; }
.btn-whatsapp { background: #25D366; color: #fff; } /* WhatsApp's own brand green — intentional exception, brand recognition */
.btn-whatsapp:hover { opacity: .9; }
.btn-whatsapp svg { flex-shrink: 0; }

/* Availability + categories meta line */
.product_meta {
  font-size: 13px;
  color: var(--ink-60);
  border-top: 1px solid var(--ink-10);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}
.product_meta > span { display: block; margin-bottom: 6px; }
.product_meta a { color: var(--accent-text); }
.availability-line .in-stock { color: #16a34a; font-weight: 600; }
.availability-line .out-of-stock { color: #dc2626; font-weight: 600; }
.sku_wrapper { display: none; }
.woocommerce-product-rating { margin-bottom: var(--space-sm); }

/* Accordion (Description / Additional Information / Reviews) replacing default WC tab strip */
.woocommerce-tabs { margin-top: var(--space-xl); }
.woocommerce-tabs > ul.tabs { display: none; } /* native tab nav hidden; JS builds accordion headers */
.accordion-item { border-bottom: 1px solid var(--ink-10); }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  min-height: 48px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}
.accordion-toggle {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-text);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
  padding: 0 var(--space-lg);
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
}
.accordion-item.is-open .accordion-panel { padding-block: var(--space-md); }
.accordion-item.is-open .accordion-toggle { transform: rotate(45deg); }
