/*
 * WooCommerce markup styled with the design tokens.
 * WooCommerce's own stylesheets are disabled (see inc/enqueue-theme-assets.php),
 * so every Woo screen the store uses must be covered here.
 */

/* ---------- Buttons (Woo reuses the .button class; cover its variants) ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--button-bg);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  line-height: 1.2;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-base);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  border-color: var(--button-bg-hover);
  background: var(--button-bg-hover);
  color: var(--button-text);
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  min-height: var(--control-height-lg);
  font-size: var(--font-size-base);
}

/* ---------- Price ---------- */
.price {
  color: var(--color-price);
  font-weight: var(--font-weight-bold);
}

.price del {
  margin-right: var(--space-2);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
}

.price ins {
  text-decoration: none;
}

/* ---------- Quantity ---------- */
.woocommerce .quantity {
  display: inline-flex;
}

.woocommerce .quantity .qty {
  width: 4.5rem;
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  text-align: center;
}

/* ---------- Shop loop (woocommerce/loop/loop-start.php → ul.products.product-grid) ---------- */
ul.products.product-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.products.product-grid > li {
  display: flex;
}

ul.products.product-grid .product-card {
  width: 100%;
}

/* Woo's ".woocommerce a.button" outranks .button--secondary; restore the outline look on cards. */
.woocommerce a.button.button--secondary {
  border-color: var(--button-secondary-border);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

.woocommerce a.button.button--secondary:hover {
  border-color: var(--button-secondary-hover-bg);
  background: var(--button-secondary-hover-bg);
  color: var(--button-secondary-hover-text);
}

/* Enhanced by assets/js/quantity-stepper.js: the pill (.quantity-stepper) draws the border, the input is borderless. */
.woocommerce .quantity.quantity-stepper .qty,
.single-product .summary .quantity.quantity-stepper .qty {
  width: 3rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -moz-appearance: textfield;
}

.quantity.quantity-stepper .qty::-webkit-outer-spin-button,
.quantity.quantity-stepper .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-stepper__button {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  line-height: 1;
}

/* Product page: match the large add-to-cart button height. */
.single-product .summary .quantity-stepper__button {
  height: var(--control-height-lg);
}
