/* Control de calidad 05/12/2026. Solo usa colores que ya existen en el sitio (--danger, --accent #dcb8ae). */

/* Carrito: un botón de pedido por WhatsApp, distinto del pago en línea */
/* Respaldo por si el plugin antiguo volviera a imprimir sus enlaces */
body.woocommerce-cart a.wa-order-checkout.wa-cart-button.button, body .wa-order-button, body a.wa-order-class { display: none !important; }
.wc-proceed-to-checkout .caya-wa-order { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 14px; text-align: center; }
.wc-proceed-to-checkout .caya-wa-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; text-align: center; opacity: .8; }

/* Botón flotante de WhatsApp: no tapa totales, campos ni botones de compra */
body.woocommerce-cart .whatsapp-float,
body.woocommerce-checkout .whatsapp-float { display: none !important; }
.whatsapp-float.caya-float-off { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@media (max-width: 767px) {
  body.single-product .whatsapp-float { display: none !important; }
}

/* Checkout: retiro en sucursal */
body.woocommerce-checkout form.checkout.caya-pickup .caya-solo-envio,
body.woocommerce-checkout form.checkout.caya-pickup .woocommerce-shipping-fields { display: none !important; }
.caya-pickup-note { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.caya-pickup-note[hidden] { display: none; }

/* Ficha: antes de que arranque la galería se ve solo la primera foto y se reserva el espacio de las miniaturas,
   para que la página no se mueva cuando la galería termina de cargar. */
html.js-anim.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2),
html.js-anim .single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { display: none !important; }
@media (max-width: 860px) {
  /* Al iniciar, FlexSlider deja unos instantes las fotos a 800% de ancho y la página se estira: se limita al tamaño final (foto 3:4 del ancho de la galería). */
  html.js-anim .single-product .woocommerce-product-gallery { container-type: inline-size; }
  html.js-anim .single-product .woocommerce-product-gallery .flex-viewport { max-height: 133.34cqw; }
  html.js-anim .single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image { max-width: 100cqw; }
  html.js-anim .single-product .woocommerce-product-gallery:not(:has(.flex-viewport)):has(.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: 94px; }
  html.js-anim .single-product .woocommerce-product-gallery:not(:has(.flex-viewport)):has(.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(5)) { padding-bottom: 186px; }
  html.js-anim .single-product .woocommerce-product-gallery:not(:has(.flex-viewport)):has(.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(9)) { padding-bottom: 278px; }
}

/* Número decorativo de Nosotros: mismo rosa de marca, con opacidad suficiente */
.pillar-num { color: rgba(220, 184, 174, .62) !important; }
.pillar:hover .pillar-num { color: var(--accent) !important; }

/* Formulario de contacto: mensaje por campo */
.contact-form .field-error { display: block; margin-top: 6px; font-size: 13px; color: var(--danger, #e2685c); }

/* Textos de ayuda (placeholder): contraste mínimo 4,5:1 sobre los campos oscuros (antes 3,7:1) */
input::placeholder, textarea::placeholder { color: var(--text-faint, #928d86); opacity: 1; }

/* Filtros de la tienda: tallas y colores con objetivo táctil de 44 px */
@media (max-width: 1024px) {
  .f-pills .f-pill span { min-width: 44px; min-height: 44px; }
  .f-colors .f-color { min-height: 44px; }
}

/* Contacto: cada teléfono en una sola línea */
.contacto .tel { white-space: nowrap; }

/* Tarjetas de producto: el botón queda alineado al fondo aunque una tarjeta tenga más líneas */
ul.products li.product { display: flex; flex-direction: column; }
ul.products li.product > a.add-btn, ul.products li.product > .button { margin-top: auto; }

/* Casillas y opciones nativas (envío, términos, recuérdame) con el rosa de la marca en lugar del azul del navegador */
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent, #dcb8ae); }
