/* ===========================================================================
   Guatazales · piezas WooCommerce fuera del prototipo:
   stepper con input real, toolbar del carrito, checkout, avisos.
   =========================================================================== */

/* ---------- Stepper de cantidad con input ---------- */
.gz-qty input[type="number"] { width: 2.6em; border: 0; background: transparent; text-align: center;
  font: inherit; font-weight: 600; color: var(--text-strong); -moz-appearance: textfield; appearance: textfield; }
.gz-qty input::-webkit-outer-spin-button, .gz-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gz-qty input:focus { outline: none; }

/* ---------- Tarjetas de tienda: enlaces sin subrayado ---------- */
.gz-shopcard a, .gz-cross__item a, .gz-xcard, .gz-prodcard, .gz-cartitem__name a { text-decoration: none; color: inherit; }
.gz-shopcard__media { position: relative; display: block; }
.gz-shopcard__medialink { display: block; width: 100%; height: 100%; }
.gz-shopcard__medialink img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gz-shopcard__body { display: flex; flex-direction: column; }

/* ---------- Quick-add: estado añadido ---------- */
.gz-shopcard__add.added .gz-shopcard__addplus, .gz-cross__add.added .gz-cross__addplus { display: none; }
.gz-shopcard__add .gz-shopcard__addcheck[hidden] { display: none; }
.gz-shopcard__add.added .gz-shopcard__addcheck { display: inline-flex !important; }
a.added_to_cart { display: none; } /* enlace "Ver carrito" que añade Woo tras el AJAX */

/* ---------- Toolbar del carrito ---------- */
.gz-cart__toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: var(--space-5); }
.gz-cart__coupon { display: flex; gap: 8px; margin-left: auto; }
.gz-cart__coupon .gz-input { padding: .5em .9em; font-size: var(--text-sm); width: 170px; }
.gz-cartitem__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.gz-cartitem__rm { background: none; border: 0; cursor: pointer; color: var(--carbon-300); display: inline-flex; }
.gz-cartitem__rm:hover { color: var(--terracota-600); }
.gz-cartitem__resv p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.gz-checkout__row--coupon .woocommerce-remove-coupon { font-size: var(--text-xs); margin-left: .5em; }

/* Resumen: filas de envío que pinta Woo */
.gz-checkout .woocommerce-shipping-totals { display: flex; justify-content: space-between; gap: 1rem;
  padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); }
.gz-checkout .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; text-align: right; }
.gz-checkout .woocommerce-shipping-methods li { margin: 0 0 4px; }

/* ---------- Checkout de WooCommerce con la voz del sistema ---------- */
.gz-wcpage { max-width: var(--container-max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.gz-wcpage h1.entry-title { display: none; }
.woocommerce-checkout .gz-wcpage h3 { font-size: var(--text-xl); margin-top: var(--space-6); }
.gz-wcpage form .form-row input.input-text, .gz-wcpage form .form-row textarea, .gz-wcpage form .form-row select {
  width: 100%; font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong);
  background: var(--surface-raised); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: .7em 1em; line-height: 1.3;
  transition: border-color var(--dur-base) var(--ease-calm), box-shadow var(--dur-base) var(--ease-calm); }
.gz-wcpage form .form-row input.input-text:focus, .gz-wcpage form .form-row textarea:focus, .gz-wcpage form .form-row select:focus {
  outline: none; border-color: var(--honey-600); box-shadow: var(--shadow-focus); background: var(--marfil-50); }
.gz-wcpage form .form-row label { font-size: var(--text-sm); font-weight: 600; color: var(--text-body); margin-bottom: .3rem; display: inline-block; }
.gz-wcpage form .form-row { margin-bottom: 1rem; }
.gz-wcpage .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
@media (max-width: 900px) { .gz-wcpage .col2-set { grid-template-columns: 1fr; } }
.gz-wcpage #order_review { background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6); margin-top: var(--space-5); }
.gz-wcpage table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.gz-wcpage table.shop_table th, .gz-wcpage table.shop_table td { text-align: left; padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle); }
.gz-wcpage table.shop_table tfoot .order-total td, .gz-wcpage table.shop_table tfoot .order-total th {
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--text-strong); border-bottom: 0; }
.gz-wcpage #payment { background: transparent; }
.gz-wcpage .wc_payment_methods { list-style: none; margin: var(--space-5) 0; padding: 0; }
.gz-wcpage .wc_payment_method { padding: 12px 16px; border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); margin-bottom: 10px; background: var(--surface-raised); }
.gz-wcpage .wc_payment_method label { font-weight: 600; }
.gz-wcpage .payment_box { font-size: var(--text-sm); color: var(--text-muted); padding-top: 6px; }
.gz-wcpage #place_order, .gz-wcpage button[type="submit"].button.alt {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); line-height: 1; color: #fff;
  background: var(--honey-600); border: 0; border-radius: var(--radius-pill); padding: .95em 1.9em;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: background var(--dur-base) var(--ease-calm); }
.gz-wcpage #place_order:hover { background: var(--honey-700); }

/* ---------- Avisos WooCommerce ---------- */
.woocommerce-notices-wrapper { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.woocommerce-message, .woocommerce-info, .woocommerce-error li {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-left: 3px solid var(--bosque-500);
  border-radius: var(--radius-md); padding: 14px 18px; margin: 14px 0; font-size: var(--text-sm);
  list-style: none; box-shadow: var(--shadow-xs); }
.woocommerce-error { margin: 0; padding: 0; }
.woocommerce-error li { border-left-color: var(--terracota-600); }
.woocommerce-message a.button, .woocommerce-info a.button { float: right; font-weight: 600; text-decoration: none; color: var(--text-primary); background: none; border: 0; }
