/* Acento = color principal del tema (Elementor lo define en el body, por eso no va en :root). Sin tema, el naranja del logo. */
.gw-precio-efectivo, .gw-buscador, .gw-aviso { --gw-acento: var(--e-global-color-primary, #F26B21); }

/* Precio: Lista chico arriba, Efectivo grande en el color de acento abajo */
.gw-precio-lista { display: block; font-size: 0.85em; opacity: 0.75; }
.gw-precio-efectivo { display: block; font-size: 1.35em; font-weight: 800; color: var(--gw-acento); line-height: 1.2; }
.gw-precio-efectivo-leyenda { display: block; font-size: 0.75em; opacity: 0.75; }

/* Buscador por medida: una píldora blanca con los tres campos y el botón al final.
   Se anulan los márgenes que el tema pone a label y button, que desalineaban el botón. */
.gw-buscador { max-width: 760px; margin: 0 auto; color: #0D0D0D; }
.gw-buscador form { display: flex; align-items: stretch; margin: 0; padding: 6px; background: #fff; border: 1px solid #E7E7E7; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.gw-buscador label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 6px 18px; border-right: 1px solid #E7E7E7; }
.gw-buscador label:nth-of-type(3) { border-right: 0; }
.gw-buscador label span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5B5B5B; line-height: 1.2; }
.gw-buscador select { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 2px 0 0; padding: 0 18px 0 0; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right center;
  color: #0D0D0D; font-size: 17px; font-weight: 700; line-height: 28px; }
.gw-buscador button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; margin: 0; padding: 0 26px; border: 0; border-radius: 999px; background: var(--gw-acento); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .06em; line-height: 1; text-transform: uppercase; cursor: pointer; }
.gw-buscador button svg { width: 17px; height: 17px; flex: none; }
.gw-buscador button:hover:not(:disabled) { filter: brightness(.9); }
.gw-buscador button:disabled { opacity: .5; cursor: wait; }
.gw-buscador select:focus-visible, .gw-buscador button:focus-visible { outline: 2px solid var(--gw-acento); outline-offset: 2px; }
.gw-buscador-ayuda { display: inline-block; margin: 10px 0 0 18px; font-size: 13px; }
.gw-buscador-error { color: #c62828; margin: 8px 0 0 18px; }
@media (max-width: 720px) {
  .gw-buscador form { flex-wrap: wrap; padding: 10px; border-radius: 18px; }
  .gw-buscador label { flex: 1 1 0; padding: 6px 8px; }
  .gw-buscador button { flex: 1 1 100%; min-height: 48px; margin-top: 8px; }
}
@media (max-width: 420px) {
  .gw-buscador label span { font-size: 10px; }
  .gw-buscador select { font-size: 15px; }
}

/* Aviso de coordinación y pago en el local */
.gw-aviso { border-left: 4px solid var(--gw-acento); background: #fff7f2; padding: 12px 14px; margin: 14px 0; border-radius: 4px; }
.gw-aviso p { margin: 0 0 8px; }
.gw-aviso-whatsapp { display: inline-block; background: #25D366; color: #fff !important; padding: 8px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.gw-aviso-local { font-size: .9em; margin-top: 6px; }
.gw-leyenda-efectivo td { font-size: .9em; color: #2e7d32; }

/* Nivel de stock en la ficha: punto de color antes del texto */
.gw-stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.gw-stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.gw-stock-bajo { color: #b26a00; }
.gw-stock-medio { color: #2e7d32; }
.gw-stock-alto { color: #1b5e20; }

/* Foto de la ficha: nunca más grande que su tamaño real (las fotos son chicas y
   se veían estiradas), centrada en una caja del mismo alto para todos los productos. */
.woocommerce-product-gallery__image { display: flex; align-items: center; justify-content: center; height: 460px; background: #fff; }
.woocommerce-product-gallery__image > a { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; }
.woocommerce-product-gallery__image img { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
@media (max-width: 720px) { .woocommerce-product-gallery__image { height: 340px; } }

/* Tarjetas de productos (tienda, relacionados, búsquedas): la foto en una caja del
   mismo alto para todos, entera y sin deformar. Las miniaturas salen de distinto
   tamaño porque las fotos son chicas. */
.woocommerce ul.products li.product img { width: 100% !important; height: 220px !important; object-fit: contain; background: #fff; }
