/* ==== DESPLEGABLE DEL BUSCADOR: REJILLA DE TARJETAS ==== */

/* el panel: se queda a todo el ancho y con separacion de la pagina */
html body .dgwt-wcas-suggestions-wrapp {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
    gap: 14px !important;
    padding: 18px !important;
    border: 1px solid #dfdfdf !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 38px rgba(20, 30, 60, .16) !important;
    background: #fff !important;
    align-content: start !important;
}

/* la ficha lateral estorba a la rejilla */
html body .dgwt-wcas-details-wrapp {
    display: none !important;
}

/* cada resultado es una tarjeta */
html body .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
html body .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product:hover,
html body .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: #fff !important;
    border-color: #1f458c !important;
    box-shadow: 0 4px 14px rgba(31, 69, 140, .14) !important;
}

/* la foto, grande y sin recortar */
html body .dgwt-wcas-suggestion .dgwt-wcas-si {
    width: 100% !important;
    min-width: 0 !important;
    height: 160px !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
html body .dgwt-wcas-suggestion .dgwt-wcas-si img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 160px !important;
    object-fit: contain !important;
}

/* titulo y precio, uno debajo del otro */
html body .dgwt-wcas-suggestion .dgwt-wcas-content-wrapp {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
}
html body .dgwt-wcas-suggestion .dgwt-wcas-st {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #1a1a1a !important;
}
html body .dgwt-wcas-suggestion .dgwt-wcas-st-title {
    font-size: 14px !important;
}
html body .dgwt-wcas-suggestion .dgwt-wcas-meta {
    width: auto !important;
}
html body .dgwt-wcas-suggestion .dgwt-wcas-sp {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1f458c !important;
    white-space: nowrap !important;
}

/* la rejilla no debe estirar las tarjetas a la altura de la fila */
html body .dgwt-wcas-suggestions-wrapp {
    align-items: stretch !important;
}

/* cabeceras, categorias y "ver todos": fila entera y sin aspecto de tarjeta */
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-headline,
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax,
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-more {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-more {
    justify-content: center !important;
    padding: 14px 2px 2px 2px !important;
}
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax:hover {
    background: #f5f6ff !important;
    border-radius: 6px !important;
}

/* ==== TARJETAS TODAS A LA MISMA ALTURA ==== */
/* el titulo ocupa siempre dos lineas y el precio se ancla abajo, asi
 * todas las tarjetas de la fila acaban a la misma altura */
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-product {
    height: 100% !important;
    align-self: stretch !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
    margin-top: auto !important;
    padding-top: 4px !important;
}

/* remates: el precio rebajado no debe salir subrayado y el titulo
 * cortado debe acabar en puntos suspensivos */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins bdi {
    text-decoration: none !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del bdi {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #8a8f9c !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    text-overflow: ellipsis !important;
}

/* ==== QUE EL PANEL NUNCA SE SALGA DE LA PANTALLA ==== */
/* el plugin le pone 600px fijos por JavaScript. Si la ventana es baja,
 * el desplegable no cabe y se ve cortado por arriba. */
html body .dgwt-wcas-suggestions-wrapp {
    max-height: min(900px, calc(100vh - 120px)) !important;
    overscroll-behavior: contain !important;
}

/* ==== EL PANEL VACIO NO DEBE PINTAR NADA ==== */
/* cuando no hay resultados el plugin deja el panel puesto, sin contenido.
 * Con borde y sombra aplicados, eso se ve como una mancha alrededor del
 * campo de busqueda. Vacio, no se pinta. */
html body .dgwt-wcas-suggestions-wrapp:empty,
html body .dgwt-wcas-suggestions-wrapp:not(:has(*)) {
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
}

/* ==== DENTRO DEL CAMPO, SOLO EL TEXTO ==== */
/* FiboSearch pone una lupa a la izquierda y, al escribir, la mueve a la
 * derecha y le suma una x de borrar. Fuera las dos: para buscar esta el
 * Enter, y para cerrar la barra esta la x del cabecero. */
html body .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit,
html body .dgwt-wcas-search-wrapp .dgwt-wcas-preloader,
html body .dgwt-wcas-search-wrapp .dgwt-wcas-close {
    display: none !important;
}
html body .dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
    padding-left: 22px !important;
    padding-right: 22px !important;
}

/* ==== SIN BORDE BLANCO ALREDEDOR DEL CAMPO ==== */
/* el campo trae un borde de 2px transparente (y el fondo blanco se pinta
 * por debajo, asi que sobresale) mas una sombra de 1px en #eee. Sobre el
 * azul del cabecero eso se ve como un halo blanco. */
html body .dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    border-radius: 10px !important;
    background-clip: padding-box !important;
}
html body .dgwt-wcas-search-wrapp .dgwt-wcas-search-input:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* ==== TITULOS A TRES LINEAS ==== */
/* a dos lineas los nombres largos se cortaban. Tres lineas fijas: caben
 * enteros y las tarjetas siguen midiendo todas lo mismo. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    -webkit-line-clamp: 3 !important;
    min-height: 4.05em !important;
    max-height: 4.05em !important;
}

/* ==== UNA SOLA CAJA BLANCA, NO DOS ==== */
/* el contenedor sf-wrapp es blanco (854x56) y dentro va otro blanco, el
 * campo (846x48). Los 4px que sobran por cada lado son el marco raro y la
 * franja blanca bajo la barra. El blanco lo pone solo el contenedor. */
html body .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
    background: #fff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
html body .dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
    background: transparent !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* ==== TITULOS A CUATRO LINEAS ==== */
/* a tres lineas seguia sin caber "Blister 3 sobres Pokemon Caos Creciente
 * de Charmeleon Espanol", que son 61 caracteres. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    -webkit-line-clamp: 4 !important;
    min-height: 5.4em !important;
    max-height: 5.4em !important;
}

/* ==== MENOS HUECO ENTRE TITULO Y PRECIO ==== */
/* con altura fija de 4 lineas, los nombres cortos dejaban dos lineas en
 * blanco. Sin min-height cada titulo ocupa lo que necesita, y como el
 * precio va anclado abajo los precios siguen alineados. La letra baja a
 * 13px para que el nombre mas largo necesite menos lineas. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    font-size: 13px !important;
    min-height: 0 !important;
    max-height: 5.4em !important;
    -webkit-line-clamp: 4 !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st-title {
    font-size: 13px !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
    gap: 6px !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
    padding-top: 0 !important;
}

/* ==== AL PLEGAR LA BARRA, FUERA LOS RESULTADOS ==== */
/* la barra se cierra quitando la clase mc-busq-abierta del body, pero el
 * plugin deja su panel de resultados flotando. Si la barra no esta
 * abierta, el panel no se ve. */
html body:not(.mc-busq-abierta) .dgwt-wcas-suggestions-wrapp {
    display: none !important;
}

/* ==== LA BARRA Y LOS RESULTADOS, UNA SOLA PIEZA ==== */
/* misma anchura y misma x, asi que basta con quitar las esquinas y el
 * borde que los separan: la barra se redondea solo por arriba y el panel
 * solo por abajo. Cuando no hay resultados, la barra vuelve a ir
 * redondeada por los cuatro lados. */
html body.dgwt-wcas-open:has(.dgwt-wcas-suggestions-wrapp > *) .dgwt-wcas-sf-wrapp {
    border-radius: 10px 10px 0 0 !important;
}
html body .dgwt-wcas-suggestions-wrapp {
    border-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
}

/* ==== EL PRECIO TACHADO, EN ROJO ==== */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del bdi,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del span {
    color: #d3232a !important;
    text-decoration-color: #d3232a !important;
}

/* ==== OFERTA: ANTERIOR EN GRIS, REBAJA EN ROJO ==== */
/* como cardzone: el precio viejo tachado en gris, discreto, y el nuevo
 * en rojo y en negrita, que es el que tiene que llamar la atencion.
 * Los productos sin oferta mantienen el azul de la marca. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del bdi,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del span {
    color: #8a8f9c !important;
    text-decoration-color: #8a8f9c !important;
    font-weight: 400 !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins bdi,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins span {
    color: #d3232a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ==== LA FOTO, SIN MARCO ==== */
/* la etiqueta img trae un borde de 1px, 2px de relleno y esquinas de 3px
 * que dibujan un recuadro alrededor de la foto del producto. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ==== LA FOTO LATE AL PASAR EL RATON ==== */
@keyframes mc-latido-foto {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.035); }
    100% { transform: scale(1); }
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
    transform-origin: center center !important;
    transition: transform .25s ease !important;
}
html body .dgwt-wcas-suggestion-product:hover .dgwt-wcas-si img,
html body .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected .dgwt-wcas-si img {
    animation: mc-latido-foto 1.9s ease-in-out infinite !important;
}
/* quien tenga desactivadas las animaciones en su sistema, que no las vea */
@media (prefers-reduced-motion: reduce) {
    html body .dgwt-wcas-suggestion-product:hover .dgwt-wcas-si img,
    html body .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected .dgwt-wcas-si img {
        animation: none !important;
        transform: scale(1.02) !important;
    }
}

/* ==== ENLACE DE MAS RESULTADOS, EN AZUL DE MARCA ==== */
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-more {
    border-top: 1px solid #ececec !important;
    margin-top: 8px !important;
    padding: 14px 2px 2px 2px !important;
    color: #1f458c !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-more * {
    color: #1f458c !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-more:hover {
    text-decoration: underline !important;
}

/* ==== LA X PARA BORRAR, DE VUELTA ==== */
/* solo la x de borrar, que aparece cuando hay texto escrito. La lupa
 * sigue fuera. El mismo elemento hace de preloader cuando esta buscando;
 * ese estado si se queda oculto. */
html body .dgwt-wcas-search-wrapp .dgwt-wcas-preloader.dgwt-wcas-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: .55 !important;
    transition: opacity .15s ease !important;
}
html body .dgwt-wcas-search-wrapp .dgwt-wcas-preloader.dgwt-wcas-close:hover {
    opacity: 1 !important;
}

/* ==== SIN LINEA SOBRE "MOSTRAR MAS RESULTADOS" ==== */
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-more {
    border-top: 0 !important;
    margin-top: 2px !important;
    padding: 10px 2px 2px 2px !important;
}

/* ==== CATEGORIAS COMO BOTONES EN FILA ==== */
/* cada categoria ocupa una celda de la rejilla, asi forman una fila de
 * botones encima de las tarjetas. La cabecera "PRODUCTOS" hace de corte
 * de linea, por eso se conserva. */
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 14px !important;
    border: 1px solid #dfe3ec !important;
    border-radius: 999px !important;
    background: #f5f6ff !important;
    color: #1f458c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax:hover {
    background: #1f458c !important;
    border-color: #1f458c !important;
    color: #fff !important;
    border-radius: 999px !important;
}
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax:hover * {
    color: #fff !important;
}
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax .dgwt-wcas-st {
    font-size: 13px !important;
    font-weight: 600 !important;
}
/* el "en Cartas Sueltas Pokemon" de debajo, mas discreto */
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax .dgwt-wcas-st-breadcrumbs,
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax small {
    font-size: 11px !important;
    font-weight: 400 !important;
    opacity: .7 !important;
}

/* las cabeceras, discretas */
html body .dgwt-wcas-suggestions-wrapp > .js-dgwt-wcas-suggestion-headline {
    font-size: 11px !important;
    letter-spacing: .06em !important;
    color: #8a8f9c !important;
    padding: 4px 2px 0 2px !important;
}

/* ==== NUNCA MAS DE 8 PRODUCTOS ==== */
/* el plugin puede devolver hasta 12 para dejar sitio a las categorias;
 * visualmente cortamos en 8 para que siempre sean dos filas de cuatro. */

/* ==== SIEMPRE CUATRO COLUMNAS ==== */
/* la rejilla era adaptable y en pantallas anchas daba 6 o 7 columnas.
 * Fijandola en cuatro, siempre son dos filas de cuatro productos. */
html body .dgwt-wcas-suggestions-wrapp {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
}

/* ==== NUNCA MAS DE 4 CATEGORIAS ==== */
/* una sola fila de botones; si hay mas, no se muestran. */
html body .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax {
    display: none !important;
}

/* ==== DOS COLUMNAS: CATEGORIAS A LA IZQUIERDA ==== */
/* cuando el JS ha agrupado los elementos, el panel deja de ser rejilla y
 * pasa a ser dos columnas: la estrecha con las categorias y la ancha con
 * las tarjetas. */
html body .dgwt-wcas-suggestions-wrapp:has(.mc-cols) {
    display: block !important;
}
html body .mc-cols {
    display: flex !important;
    align-items: flex-start !important;
    gap: 22px !important;
}
html body .mc-cols-izq {
    flex: 0 0 250px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding-right: 20px !important;
    border-right: 1px solid #ececec !important;
}
html body .mc-cols-der {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

/* las categorias, como lista limpia dentro de su columna */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax:hover {
    background: #f5f6ff !important;
    color: #1f458c !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax:hover * {
    color: #1f458c !important;
}

/* cabeceras dentro de cada columna */
html body .mc-cols .js-dgwt-wcas-suggestion-headline {
    grid-column: 1 / -1 !important;
    display: block !important;
    padding: 2px 2px 8px 2px !important;
    font-size: 11px !important;
    color: #8a8f9c !important;
    border: 0 !important;
}

/* las tarjetas siguen igualadas dentro de la columna derecha */
html body .mc-cols-der > .dgwt-wcas-suggestion-product {
    height: 100% !important;
    align-self: stretch !important;
}

/* el enlace de mas resultados, centrado bajo las tarjetas */
html body .mc-cols-der .js-dgwt-wcas-suggestion-more {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
}

/* con tres columnas, seis productos: dos filas exactas */

/* ==== EL TECLADO TAMBIEN SE VE ==== */
/* al bajar con las flechas, el elemento marcado tiene que notarse igual que
 * cuando se pasa el raton por encima. */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax.dgwt-wcas-suggestion-selected {
    background: #f5f6ff !important;
    color: #1f458c !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax.dgwt-wcas-suggestion-selected * {
    color: #1f458c !important;
}
html body .mc-cols-der .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
    background: #f8f9ff !important;
    border-color: #1f458c !important;
}

/* ==== BANDERA DEL IDIOMA EN LAS CATEGORIAS ==== */
/* las categorias de idioma se reconocen por su enlace (/ingles-, /japones-,
 * /espanol-, /chino-, /coreano-), asi que la bandera aparece sola sin tener
 * que tocar categoria por categoria. Son las mismas imagenes del menu. */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/ingles-"] .dgwt-wcas-st::before,
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/espanol-"] .dgwt-wcas-st::before,
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/japones-"] .dgwt-wcas-st::before,
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/chino-"] .dgwt-wcas-st::before,
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/coreano-"] .dgwt-wcas-st::before {
    content: "" !important;
    display: inline-block !important;
    width: 18px !important;
    height: 13px !important;
    margin-right: 7px !important;
    vertical-align: -1px !important;
    border-radius: 2px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/ingles-"] .dgwt-wcas-st::before {
    background-image: url("/wp-content/uploads/2025/10/ingles_bandera.png") !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/espanol-"] .dgwt-wcas-st::before {
    background-image: url("/wp-content/uploads/2025/10/espanol_bandera.png") !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/japones-"] .dgwt-wcas-st::before {
    background-image: url("/wp-content/uploads/2025/10/japones_bandera.png") !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/chino-"] .dgwt-wcas-st::before {
    background-image: url("/wp-content/uploads/2025/10/China_bandera.png") !important;
}
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/coreano-"] .dgwt-wcas-st::before {
    background-image: url("/wp-content/uploads/2025/10/KRN.png") !important;
}

/* ==== ICONOS EN LAS CATEGORIAS QUE NO SON DE IDIOMA ==== */
/* cartas sueltas, mystery packs y pokemon center llevan su propio dibujo,
 * igual que las de idioma llevan su bandera. Los dibujos van dentro del
 * propio CSS, asi no hay que subir imagenes ni hacen peticiones extra. */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/cartas-sueltas"]:not([href$="-cartas/"]) .dgwt-wcas-st::before,
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/mystery-packs"] .dgwt-wcas-st::before,
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/pokemon-center"] .dgwt-wcas-st::before {
    content: "" !important;
    display: inline-block !important;
    width: 18px !important;
    height: 15px !important;
    margin-right: 7px !important;
    vertical-align: -3px !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* dos cartas en abanico */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/cartas-sueltas"]:not([href$="-cartas/"]) .dgwt-wcas-st::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-16 9 12)'%3E%3Crect x='3.4' y='5.6' width='9' height='13' rx='1.8' fill='%23ffffff' stroke='%231f458c' stroke-width='1.4'/%3E%3C/g%3E%3Crect x='10.4' y='4.2' width='10.4' height='15.6' rx='2' fill='%23ffffff' stroke='%231f458c' stroke-width='1.5'/%3E%3Crect x='12.4' y='6.4' width='6.4' height='5.4' rx='1' fill='%231f458c' opacity='0.28'/%3E%3Crect x='12.4' y='13.6' width='6.4' height='1.4' rx='0.7' fill='%231f458c' opacity='0.5'/%3E%3Crect x='12.4' y='16' width='4' height='1.4' rx='0.7' fill='%231f458c' opacity='0.5'/%3E%3C/svg%3E") !important;
}
/* caja azul de monsters con la interrogacion */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/mystery-packs"] .dgwt-wcas-st::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.6' y='2.6' width='18.8' height='18.8' rx='3.6' fill='%231f458c'/%3E%3Ctext x='12' y='17.6' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='14' font-weight='700' fill='%23ffffff'%3E%3F%3C/text%3E%3C/svg%3E") !important;
}
/* pokeball roja y blanca */
html body .mc-cols-izq .dgwt-wcas-suggestion-tax[href*="/pokemon-center"] .dgwt-wcas-st::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.2' fill='%23ffffff'/%3E%3Cpath d='M2.8 12a9.2 9.2 0 0 1 18.4 0z' fill='%23e3242b'/%3E%3Ccircle cx='12' cy='12' r='9.2' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3Cpath d='M2.8 12h18.4' stroke='%231a1a1a' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='3.1' fill='%23ffffff' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E") !important;
}

/* ==== SI EL BUSCADOR SE CIERRA, EL PANEL SE VA ==== */
/* el plugin quita la clase dgwt-wcas-open del body cuando deja de buscar
 * (por ejemplo al borrar y dejar menos de 3 letras). Sin esta regla se
 * quedaban a la vista los resultados de la busqueda anterior. */
html body:not(.dgwt-wcas-open) .dgwt-wcas-suggestions-wrapp {
    display: none !important;
}

/* ==== SI NO HAY PRODUCTOS, NO SE PINTA LA COLUMNA VACIA ==== */
html body .mc-cols-der:empty {
    display: none !important;
}
html body .mc-cols:has(.mc-cols-der:empty) .mc-cols-izq {
    border-right: 0 !important;
    padding-right: 0 !important;
}

/* ==== LA X DE BORRAR, PEGADA AL FINAL DE LA BARRA ==== */
/* estaba a media altura y a 68px del borde, con un hueco muerto a su
 * derecha. Ahora va al final del todo y con el mismo tamano de dibujo que
 * la x que cierra el buscador. */
html body .dgwt-wcas-search-wrapp .dgwt-wcas-preloader.dgwt-wcas-close {
    right: 10px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
}
html body .dgwt-wcas-search-wrapp .dgwt-wcas-preloader.dgwt-wcas-close svg {
    width: 22px !important;
    height: 22px !important;
}

/* ==== BOTONES RAPIDOS EN LA TARJETA: CORAZON Y CARRITO ==== */
html body .dgwt-wcas-suggestion-product {
    position: relative !important;
}
html body .mc-sug-boton {
    position: absolute !important;
    z-index: 3 !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08) !important;
    cursor: pointer !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease !important;
}
html body .mc-sug-like {
    top: 8px !important;
    left: 8px !important;
}
html body .mc-sug-carrito {
    right: 8px !important;
    bottom: 8px !important;
}
html body .mc-sug-boton:hover {
    border-color: #1f458c !important;
    transform: scale(1.08) !important;
}
html body .mc-sug-carrito svg {
    width: 23px !important;
    height: 23px !important;
    fill: #1f458c !important;
    display: block !important;
}
html body .mc-sug-boton .woosw-btn-icon {
    color: #1f458c !important;
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
}
/* mientras habla con el servidor */
html body .mc-sug-boton.mc-cargando {
    opacity: .45 !important;
    pointer-events: none !important;
}
/* confirmacion de que ha entrado en el carrito */
html body .mc-sug-carrito.mc-hecho,
html body .mc-sug-carrito.mc-hecho:hover {
    background: #1f458c !important;
    border-color: #1f458c !important;
}
html body .mc-sug-carrito.mc-hecho svg {
    fill: #fff !important;
}
/* ya esta en la lista de deseos */
html body .mc-sug-like.mc-guardado {
    background: #f5f6ff !important;
    border-color: #1f458c !important;
}
/* la foto no debe taparlos al latir */
html body .dgwt-wcas-suggestion-product:hover .dgwt-wcas-si img {
    z-index: 1 !important;
}

/* ==== TARJETA MAS LIMPIA: SIN FONDOS, FOTO MAS GRANDE, TEXTO MAS JUNTO ==== */
/* la foto va sobre el mismo fondo de la tarjeta, sin recuadro blanco debajo */
html body .dgwt-wcas-suggestion .dgwt-wcas-si,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
    background: transparent !important;
    height: 190px !important;
}
html body .dgwt-wcas-suggestion .dgwt-wcas-si img,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
    max-height: 190px !important;
    background: transparent !important;
}
/* la tarjeta tampoco pinta fondo: ni el blanco ni el azulado del raton */
html body .dgwt-wcas-suggestion-product,
html body .dgwt-wcas-suggestion-product:hover,
html body .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected,
html body .mc-cols-der .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
    background: transparent !important;
}
/* al pasar por encima solo se marca el borde */
html body .dgwt-wcas-suggestion-product:hover,
html body .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected,
html body .mc-cols-der .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
    border-color: #1f458c !important;
}
/* titulo mas grande y de tres lineas en vez de cuatro: el precio sube */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    font-size: 15px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 3 !important;
    min-height: 3.9em !important;
    max-height: 3.9em !important;
    padding-top: 10px !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
    font-size: 18px !important;
    padding-top: 4px !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins bdi,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins span {
    font-size: 18px !important;
}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del bdi,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp del span {
    font-size: 14px !important;
}

/* ==== SIN CATEGORIAS: CINCO TARJETAS POR FILA ==== */
/* asi miden lo mismo que en la vista con la columna de categorias */
html body .dgwt-wcas-suggestions-wrapp:not(:has(.mc-cols)) {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* ==== EL PRECIO NUNCA TOCA LA BOLSA ==== */
/* el boton del carrito va suelto en la esquina, asi que el precio necesita
 * dejarle su hueco reservado; si no, en tarjetas estrechas se pegan. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
    padding-right: 54px !important;
}

/* ==== PANTALLAS ESTRECHAS: TABLET Y MOVIL ==== */
/* en el ordenador caben cinco tarjetas anchas; por debajo de 1100px no, y
 * la foto reservaba una altura fija que dejaba un agujero enorme entre el
 * titulo y el precio. Aqui se reduce todo de golpe. */
@media (max-width: 1100px) {
    html body .dgwt-wcas-suggestions-wrapp:not(:has(.mc-cols)) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    html body .mc-cols-der {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    html body .mc-cols-izq {
        flex: 0 0 200px !important;
        padding-right: 14px !important;
    }
    /* la foto se adapta en vez de reservar 190px siempre */
    html body .dgwt-wcas-suggestion .dgwt-wcas-si,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        height: auto !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    html body .dgwt-wcas-suggestion .dgwt-wcas-si img,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
        max-height: 150px !important;
    }
    /* el precio, pegado al titulo: sin el hueco muerto */
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
        margin-top: 6px !important;
        padding-top: 2px !important;
        padding-right: 46px !important;
    }
    html body .mc-sug-boton {
        width: 34px !important;
        height: 34px !important;
    }
    html body .mc-sug-carrito svg {
        width: 18px !important;
        height: 18px !important;
    }
    html body .mc-sug-boton .woosw-btn-icon {
        font-size: 16px !important;
    }
    /* seis productos, dos filas limpias, sin barra de desplazamiento */
}

/* ==== MOVIL: LAS CATEGORIAS DEJAN DE SER COLUMNA ==== */
/* a lo ancho de un movil no cabe una columna de 250px al lado de las
 * tarjetas, asi que la lista de categorias se pone arriba, entera, y los
 * productos debajo. */
@media (max-width: 782px) {
    html body .mc-cols {
        display: block !important;
    }
    html body .mc-cols-izq {
        flex: none !important;
        width: 100% !important;
        border-right: 0 !important;
        border-bottom: 1px solid #ececec !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 12px !important;
    }
    html body .mc-cols-der,
    html body .dgwt-wcas-suggestions-wrapp:not(:has(.mc-cols)) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* como maximo cuatro categorias: el resto empujaria los productos fuera */
    html body .mc-cols-izq > .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax ~ .dgwt-wcas-suggestion-tax {
        display: none !important;
    }
}

/* ==== MOVIL ESTRECHO ==== */
@media (max-width: 520px) {
    html body .dgwt-wcas-suggestions-wrapp {
        padding: 12px !important;
    }
    html body .dgwt-wcas-suggestion .dgwt-wcas-si,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        min-height: 120px !important;
        max-height: 120px !important;
    }
    html body .dgwt-wcas-suggestion .dgwt-wcas-si img,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
        max-height: 120px !important;
    }
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
        font-size: 13px !important;
    }
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
        font-size: 16px !important;
        padding-right: 42px !important;
    }
    html body .mc-sug-boton {
        width: 30px !important;
        height: 30px !important;
    }
    html body .mc-sug-carrito svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* ==== EN ESTRECHO, LA FOTO TAN GRANDE COMO EN EL ORDENADOR ==== */
/* las miniaturas son cuadradas de 300x300 con el producto vertical dentro,
 * asi que la foto la manda el alto. Estaba limitada a 150px cuando en la
 * tarjeta caben 200 y pico: por eso se veia pequena con aire a los lados. */
@media (max-width: 1100px) {
    html body .dgwt-wcas-suggestion .dgwt-wcas-si,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        height: auto !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }
    html body .dgwt-wcas-suggestion .dgwt-wcas-si img,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
        max-height: 190px !important;
    }
}
@media (max-width: 520px) {
    html body .dgwt-wcas-suggestion .dgwt-wcas-si,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        min-height: 0 !important;
        max-height: 175px !important;
    }
    html body .dgwt-wcas-suggestion .dgwt-wcas-si img,
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
        max-height: 175px !important;
    }
    /* menos margen interno: cada pixel es ancho para la foto */
    html body .dgwt-wcas-suggestion-product {
        padding: 10px !important;
    }
}

/* ==== EN ESTRECHO, EL TITULO NO RESERVA LINEAS DE MAS ==== */
/* el titulo guardaba sitio para tres lineas siempre, asi que con titulos de
 * dos quedaba una linea vacia antes del precio. Ahora ocupa lo que ocupa y
 * el tope de tres lineas se mantiene para los titulos largos. */
@media (max-width: 1100px) {
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
        min-height: 0 !important;
        max-height: 3.9em !important;
        padding-top: 6px !important;
    }
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
        margin-top: 4px !important;
        padding-top: 0 !important;
    }
}

/* ==== VENTANA DE AVISO (LISTA DE DESEOS) ==== */
html body .mc-ventana {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(12, 20, 40, .55) !important;
}
html body .mc-ventana-caja {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    box-sizing: border-box !important;
    padding: 28px 26px 22px 26px !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25) !important;
    text-align: left !important;
}
html body .mc-ventana-titulo {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #1f458c !important;
}
html body .mc-ventana-texto {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #4a4f5c !important;
}
html body .mc-ventana-pie {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}
html body .mc-ventana-si,
html body .mc-ventana-no {
    appearance: none !important;
    border: 1px solid #dfe3ec !important;
    border-radius: 999px !important;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background .15s ease, border-color .15s ease !important;
}
html body .mc-ventana-si {
    background: #1f458c !important;
    border-color: #1f458c !important;
    color: #fff !important;
}
html body .mc-ventana-si:hover {
    background: #17376f !important;
    border-color: #17376f !important;
}
html body .mc-ventana-no {
    background: #fff !important;
    color: #4a4f5c !important;
}
html body .mc-ventana-no:hover {
    background: #f5f6ff !important;
    border-color: #1f458c !important;
}
html body .mc-ventana-cerrar {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 26px !important;
    line-height: 1 !important;
    color: #8a8f9c !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
}
html body .mc-ventana-cerrar:hover {
    color: #1f458c !important;
}


/* b33: mensaje de sin resultados */
html body .dgwt-wcas-suggestion-nores {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: block !important;
    padding: 34px 24px 38px !important;
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1f458c !important;
    border: 0 !important;
    background: transparent !important;
}

html body .dgwt-wcas-suggestion-nores::before {
    content: "" !important;
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f458c' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20.5 20.5l-4.6-4.6'/%3E%3Cpath d='M8.6 8.6l4.8 4.8'/%3E%3Cpath d='M13.4 8.6l-4.8 4.8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    opacity: 0.45 !important;
}

html body .dgwt-wcas-suggestion-nores::after {
    content: "Prueba con otra palabra: el nombre de la colecci\00F3 n, del producto o del idioma." !important;
    display: block !important;
    max-width: 340px !important;
    margin: 10px auto 0 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #8a8f9c !important;
}

@media (max-width: 520px) {
    html body .dgwt-wcas-suggestion-nores {
        padding: 26px 16px 30px !important;
        font-size: 15.5px !important;
    }
    html body .dgwt-wcas-suggestion-nores::before {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 10px !important;
    }
    html body .dgwt-wcas-suggestion-nores::after {
        font-size: 12.5px !important;
    }
}


/* b34: sin hueco entre titulo y precio */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
    margin-top: 4px !important;
}

html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
    margin-bottom: 0 !important;
}

/* b35: en movil la foto necesita su propio alto o se come el titulo */
@media (max-width: 782px) {
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
        max-height: 150px !important;
        margin-bottom: 10px !important;
        overflow: hidden !important;
    }
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 150px !important;
        margin: 0 !important;
        object-fit: contain !important;
    }
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-st {
        padding-top: 0 !important;
    }
}

@media (max-width: 520px) {
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        min-height: 140px !important;
        max-height: 140px !important;
    }
    html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
        max-height: 140px !important;
    }
}


/* b36: que el dedo no falle en el movil */
html body .mc-sug-boton {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(31, 69, 140, 0.15) !important;
}


/* b37: dos opciones en el aviso, la principal arriba */
html body .mc-ventana-pie {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 22px !important;
}

html body .mc-ventana-si,
html body .mc-ventana-no {
    width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}


/* ----------------------------------------------------------------
   Las fichas del buscador se leen igual que las del catalogo:
   chapa roja de lo que se ahorra, titulo en mayusculas, precio
   viejo en gris tachado, precio nuevo en rojo y la etiqueta PRO
   como la chapa azul de la tienda.
   ---------------------------------------------------------------- */
html body .dgwt-wcas-suggestion-product{position:relative !important}

html body .dgwt-wcas-suggestion-product .mc-tj-ahorro{
	display:inline-block !important;position:absolute !important;
	top:10px !important;left:10px !important;z-index:5 !important;
	margin:0 !important;padding:5px 9px !important;border-radius:7px !important;
	background:#bd0000 !important;color:#fff !important;
	font-size:11px !important;font-weight:800 !important;
	line-height:1.1 !important;letter-spacing:.2px !important;white-space:nowrap !important}

html body .dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
	display:block !important;text-align:center !important;text-transform:uppercase !important;
	font-size:13px !important;font-weight:600 !important;color:#1e1e1e !important;
	line-height:1.2 !important;letter-spacing:.2px !important}

html body .dgwt-wcas-suggestion-product .mc-tj-stock,
html body .dgwt-wcas-suggestion-product .mc-precio-antes,
html body .dgwt-wcas-suggestion-product .mc-precio-ahora{text-align:center !important}

html body .dgwt-wcas-suggestion-product .mc-precio-antes{
	color:#8b93a7 !important;font-size:13px !important;font-weight:400 !important;
	text-decoration:line-through !important}

html body .dgwt-wcas-suggestion-product .mc-precio-ahora{
	color:#bd0000 !important;font-size:19px !important;font-weight:800 !important}

html body .dgwt-wcas-suggestion-product .mc-pro-eti{
	display:block !important;width:-moz-fit-content !important;width:fit-content !important;
	margin:7px auto 0 !important;padding:7px 14px !important;border-radius:999px !important;
	background:#1f458c !important;color:#fff !important;
	font-size:12px !important;font-weight:800 !important;text-transform:uppercase !important;
	letter-spacing:.3px !important;line-height:1.1 !important;text-align:center !important}

/* El corazon se va a la derecha para no pisar la chapa de ahorro. */
html body .dgwt-wcas-suggestion-product .mc-sug-like{left:auto !important;right:8px !important}

/* El bloque de precios ocupa todo el ancho para que quede centrado
   bajo el titulo, como en las tarjetas del catalogo. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-meta{
	align-self:stretch !important;width:100% !important;text-align:center !important}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp{display:block !important;text-align:center !important}

/* La banderita del idioma. El buscador no manda ese dato, pero la
   direccion del producto lleva el idioma dentro, asi que de ahi se saca. */
html body .dgwt-wcas-suggestion-product::before{
	content:"";display:none;position:absolute;top:10px;right:10px;z-index:5;
	width:26px;height:19px;border-radius:3px;
	background-position:center;background-size:100% 100%;background-repeat:no-repeat;
	box-shadow:0 1px 3px rgba(23,55,111,.18)}
html body .dgwt-wcas-suggestion-product[href*="/chino-"]::before{display:block;background-image:url("/wp-content/uploads/2025/10/China_bandera-300x217.png")}
html body .dgwt-wcas-suggestion-product[href*="/espanol-"]::before{display:block;background-image:url("/wp-content/uploads/2025/10/espanol_bandera-300x217.png")}
html body .dgwt-wcas-suggestion-product[href*="/ingles-"]::before{display:block;background-image:url("/wp-content/uploads/2025/10/ingles_bandera-300x217.png")}
html body .dgwt-wcas-suggestion-product[href*="/japones-"]::before{display:block;background-image:url("/wp-content/uploads/2025/10/japones_bandera-300x217.png")}
html body .dgwt-wcas-suggestion-product[href*="/coreano-"]::before{display:block;background-image:url("/wp-content/uploads/2026/11/coreano_bandera.png")}

/* El corazon baja a la izquierda: arriba mandan la chapa y la bandera. */
html body .dgwt-wcas-suggestion-product .mc-sug-like{
	top:auto !important;bottom:8px !important;left:8px !important;right:auto !important}

/* La chapa PRO va en su propia linea: se reserva abajo el sitio del
   corazon y del carrito para que no se pisen. */
html body .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product{padding-bottom:70px !important}
html body .dgwt-wcas-suggestion-product .mc-pro-eti{margin-bottom:0 !important}

/* Las fichas del buscador conservan su tamano: al ensanchar la ventana
   entran mas columnas en vez de estirarse, como en el catalogo. */
html body .mc-cols-der{justify-items:center !important}
html body .mc-cols-der > .dgwt-wcas-suggestion-product{
	width:100% !important;max-width:238px !important}
html body .mc-cols-der > .js-dgwt-wcas-suggestion-headline,
html body .mc-cols-der > .js-dgwt-wcas-suggestion-more{justify-self:stretch !important}

/* El aviso de pocas unidades cabe entero aunque la ficha sea estrecha. */
html body .dgwt-wcas-suggestion-product .mc-tj-stock{
	font-size:12.5px !important;white-space:normal !important;
	line-height:1.25 !important;overflow:visible !important}

/* El bloque de precio venia con 54px de aire a la derecha, de cuando el
   precio iba al lado de la foto: por eso el aviso de unidades se partia
   en dos lineas y se juntaba con el precio. Se le devuelve todo el ancho
   y el bloque se apoya abajo, asi todas las fichas quedan a la misma
   altura tengan aviso de stock o no. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp{
	padding-left:0 !important;align-items:stretch !important;
	justify-content:space-between !important}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp{padding:6px 0 0 !important}
html body .dgwt-wcas-suggestion-product .mc-tj-stock{
	font-size:12.5px !important;white-space:nowrap !important;
	line-height:1.25 !important;margin:0 0 2px !important}
html body .dgwt-wcas-suggestion-product .mc-precio-antes{margin:0 !important}
html body .dgwt-wcas-suggestion-product .mc-precio-ahora{margin:1px 0 0 !important}
html body .dgwt-wcas-suggestion-product .mc-pro-eti{margin:8px auto 0 !important}

/* La chapa se queda en "PRO" y se mete en la fila del corazon y el
   carrito. El sitio que deja se lo reparten el nombre y los precios,
   que ganan tamano. El texto "Precio PRO" lo escribe el PHP, asi que
   aqui se apaga y se vuelve a escribir corto. */
html body .dgwt-wcas-suggestion-product .mc-pro-eti{
	position:absolute !important;left:50% !important;bottom:12px !important;
	transform:translateX(-50%) !important;margin:0 !important;
	padding:7px 15px !important;font-size:0 !important;line-height:1 !important}
html body .dgwt-wcas-suggestion-product .mc-pro-eti::after{
	content:"PRO";font-size:13px;font-weight:800;letter-spacing:.8px;color:#fff}

html body .dgwt-wcas-suggestion-product .dgwt-wcas-st-title{font-size:14.5px !important}
html body .dgwt-wcas-suggestion-product .mc-tj-stock{font-size:13px !important}
html body .dgwt-wcas-suggestion-product .mc-precio-antes{font-size:13.5px !important}
html body .dgwt-wcas-suggestion-product .mc-precio-ahora{
	font-size:23px !important;margin:2px 0 0 !important}

/* La chapa PRO, centrada con el corazon y el carrito: los botones miden
   42px y van a 8px del borde, asi que una chapa de 30px va a 14px. */
html body .dgwt-wcas-suggestion-product .mc-pro-eti{
	display:flex !important;align-items:center !important;justify-content:center !important;
	height:42px !important;padding:0 20px !important;bottom:8px !important}

/* El recuadro del nombre tenia alto fijo, calculado para la letra
   pequena de antes, y cortaba la tercera linea. Ahora crece lo que haga
   falta y es el propio texto el que se limita a tres lineas. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st{
	height:auto !important;max-height:none !important;
	overflow:visible !important;padding:4px 0 0 !important}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
	display:-webkit-box !important;-webkit-line-clamp:3 !important;
	-webkit-box-orient:vertical !important;overflow:hidden !important}

/* El texto arranca pegado a la foto y el aire sobrante se queda abajo,
   entre el precio y la fila del PRO. */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp{
	justify-content:flex-start !important}
html body .dgwt-wcas-suggestion-product .dgwt-wcas-sp{padding-top:4px !important}

/* WooCommerce cuelga un "Ver carrito" detras del boton de anadir: en la
   ficha del buscador sobra y descuadra el hueco, porque el aviso de la
   derecha ya lleva al carrito. */
html body .dgwt-wcas-suggestion-product .added_to_cart{display:none !important}

/* Antes habia cuatro reglas que escondian los productos a partir del
   sexto o del octavo, porque la rejilla era de tres o cuatro columnas
   fijas y asi salian filas exactas. Ahora el numero de columnas lo marca
   el ancho de la pantalla y el panel tiene su propio desplazamiento, asi
   que se han quitado: se ensena todo lo que devuelve el buscador. */

/* ---- Movil ---- */
/* Con el buscador abierto, la pagina de detras no se mueve: el panel
   tiene su propio desplazamiento y lo que pase dentro no arrastra al
   catalogo. */
/* Aqui habia un bloqueo de la pagina con el buscador abierto. Lo quito:
   en el iPhone impedia desplazar la propia lista de resultados, que es
   mucho peor que el problema que resolvia. El arrastre lateral ya lo
   corta el overflow-x del cuerpo. */




/* El panel del buscador tenia una altura fija de 720px. En el movil eso
   lo hacia terminar por debajo del borde de la pantalla, y con el teclado
   abierto la lista quedaba fuera de alcance: parecia que no se podia
   bajar. Ahora llega justo hasta abajo y rueda por dentro. */


@media (max-width:782px){
	html.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp{
		overscroll-behavior:contain !important;
		-webkit-overflow-scrolling:touch !important}
}
@media (max-width:782px){
	/* En el movil el corazon y el carrito miden 30px, no 42: la chapa PRO
	   sobresalia por arriba y por abajo. */
	html body .dgwt-wcas-suggestion-product .mc-pro-eti{
		height:30px !important;padding:0 13px !important}
	html body .dgwt-wcas-suggestion-product .mc-pro-eti::after{font-size:11.5px}
}


/* iOS: el plugin pone height:auto y rompe la rejilla; filas por contenido y panel acotado */
@media (max-width:782px){
html body .dgwt-wcas-suggestions-wrapp{grid-auto-rows:max-content !important}
html.dgwt-wcas-overlay-mobile-on.dgwt-wcas-is-ios body .dgwt-wcas-suggestions-wrapp,
html.dgwt-wcas-overlay-mobile-on.dgwt-wcas-open-pirx body .dgwt-wcas-suggestions-wrapp{
max-height:calc(100vh - 130px) !important;
max-height:calc(100dvh - 130px) !important;
overflow-y:auto !important;
-webkit-overflow-scrolling:touch !important;
overscroll-behavior:contain !important}
}

/* iOS: que el dedo mande en el panel y que los botones reciban el toque */
html body .mc-sug-boton{cursor:pointer !important;touch-action:manipulation !important;-webkit-tap-highlight-color:rgba(31,69,140,.18) !important}
@media (max-width:782px){html body .dgwt-wcas-suggestions-wrapp{overflow-y:auto !important;-webkit-overflow-scrolling:touch !important;touch-action:pan-y !important}}

/* flecha para bajar el teclado dentro del campo de busqueda */
html body .mc-baja-teclado{display:none}
@media (max-width:782px){
html body .dgwt-wcas-sf-wrapp{position:relative !important}
html body .dgwt-wcas-sf-wrapp.mc-teclado .mc-baja-teclado{display:flex !important;position:absolute !important;top:50% !important;right:52px !important;transform:translateY(-50%) !important;width:34px !important;height:34px !important;align-items:center !important;justify-content:center !important;padding:0 !important;margin:0 !important;border:1px solid #c7d0e4 !important;border-radius:999px !important;background:#fff !important;color:#1f458c !important;box-shadow:none !important;z-index:10 !important;-webkit-appearance:none !important}
html body .mc-baja-teclado svg{width:18px !important;height:18px !important;display:block !important}
html body .dgwt-wcas-sf-wrapp.mc-teclado input.dgwt-wcas-search-input{padding-right:96px !important}
}
