/* Ajustes a mano de la página de producto para la tienda real (producto.css se genera desde la maqueta: no editarlo a mano). */

/* Formulario de WooCommerce: las listas de color y talla las manejan los botones nuevos; se esconden (siguen funcionando) */
.m26-home .m26-buy table.variations tr:has(select[name="attribute_pa_color"]),
.m26-home .m26-buy table.variations tr:has(select[name="attribute_pa_talla"]),
.m26-home .m26-buy .reset_variations,
.m26-home .m26-buy .quantity,
.m26-home .m26-buy .woocommerce-variation-price,
.m26-home .m26-buy .woocommerce-variation-availability,
.m26-home .m26-buy .woocommerce-variation-description,
.m26-home .m26-buy .stock { display: none !important; }
.m26-home .m26-buy { display: flex; gap: 10px; align-items: flex-end; margin-top: 20px; }
.m26-home .m26-buy form.cart { flex: 1; margin: 0; min-width: 0; }
.m26-home .m26-buy table.variations { width: 100%; border: 0; margin: 0 0 4px; border-collapse: collapse; }
.m26-home .m26-buy table.variations tr { display: block; margin-bottom: 14px; }
.m26-home .m26-buy table.variations :is(th, td) { display: block; padding: 0; border: 0; text-align: left; background: none; }
.m26-home .m26-buy table.variations th label { font-size: 14px; font-weight: 800; display: block; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.m26-home .m26-buy table.variations tr.m26-need th label { color: var(--err); }
.m26-home .m26-buy table.variations select { width: 100%; height: 52px; border: 1.5px solid var(--linen); border-radius: 12px; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.m26-home .m26-buy .single_add_to_cart_button {
  width: 100%; height: 56px; border-radius: 999px !important; background: var(--ink) !important; border-color: var(--ink) !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important; font-family: var(--font) !important; font-weight: 800 !important; font-size: 15.5px !important;
  letter-spacing: -.005em !important; text-transform: none !important; box-shadow: none !important; margin: 0 !important;
}
.m26-home .m26-buy .single_add_to_cart_button.disabled { opacity: .55; }
.m26-home .m26-wa-desk { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--linen); display: grid; place-items: center; color: #1FA855; background: #fff; flex: none; }
.m26-home .m26-wa-desk .m26-ico { width: 26px; height: 26px; }
/* Logo oficial de WhatsApp (iconos.svg) en la barra fija del celular: del tamaño justo para el círculo */
.m26-home .m26-sticky-buy .m26-wa .m26-ico { width: 25px; height: 25px; }
/* WhatsApp junto a «Agregar»: círculo verde con el logo blanco, como la burbuja de WhatsApp (pedido del dueño, 25-nov) */
.m26-home .m26-sticky-buy .m26-wa, .m26-home .m26-wa-desk { background: #25D366; border-color: #25D366; color: #fff; transition: background-color .15s, border-color .15s; }
@media (hover: hover) { .m26-home .m26-sticky-buy .m26-wa:hover, .m26-home .m26-wa-desk:hover { background: #1EBE5D; border-color: #1EBE5D; color: #fff; } }
/* Computador: el tema baja 10 px el botón de las prendas con talla/color (margen negativo); así el círculo de WhatsApp queda a su altura */
@media (min-width: 1024px) { .m26-home .m26-buy .woocommerce-variation-add-to-cart { margin-bottom: 0 !important; } }
/* Celular y tableta: se compra con la barra fija de abajo (que aprieta el botón real) */
@media (max-width: 1023px) {
  .m26-home .m26-buy .single_add_to_cart_button, .m26-home .m26-wa-desk { display: none !important; }
  .m26-home .m26-buy { margin-top: 12px; }
  .m26-home .m26-sticky-buy { z-index: 1100; }
  .m26-home .m26-sticky-buy .m26-btn[disabled] { opacity: .55; }
}
/* La burbuja de WhatsApp sobra: la barra ya trae el botón de WhatsApp */
body.m26-tpl-producto .joinchat { display: none !important; }
/* Carta de colores del 2x1 */
.m26-home .m26-carta-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; font-weight: 800; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; }
.m26-home dialog.m26-carta { border: 0; padding: 0; border-radius: 18px; max-width: min(560px, 92vw); background: #fff; }
.m26-home dialog.m26-carta::backdrop { background: rgba(20, 14, 10, .55); }
.m26-home dialog.m26-carta img { width: 100%; height: auto; display: block; }
.m26-home dialog.m26-carta form { position: absolute; right: 10px; top: 10px; }
.m26-home dialog.m26-carta .m26-xbtn { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
/* Avisos de WooCommerce (agregado, errores) con el estilo nuevo */
.m26-home .m26-avisos:empty { display: none; }
.m26-home .m26-avisos .woocommerce-message, .m26-home .m26-avisos .woocommerce-error, .m26-home .m26-avisos .woocommerce-info { margin: 12px 0 0; border-radius: 12px; }
/* Opiniones de la tienda: dentro del mismo margen */
.m26-home .m26-opiniones { margin-top: 40px; }
/* Precio con «Desde» */
.m26-home .m26-pinfo .m26-price small { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
/* Computador: el botón se ve siempre oscuro; si falta elegir algo, marca «Elige una opción» (producto.js) en vez de la alerta de WooCommerce */
.m26-home .m26-buy .single_add_to_cart_button.disabled { opacity: 1; }
