/*
 * Enmarkalia Product Grid 1.2.0
 * Catálogo minimalista: imagen protagonista + información ligera.
 * 4 columnas PC / 2 columnas móvil.
 */

/* =========================
   GRID CATÁLOGO
   ========================= */
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.single-product .related.products ul.products,
body.single-product .up-sells.upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 34px 18px !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after,
body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .up-sells.upsells ul.products::before,
body.single-product .up-sells.upsells ul.products::after {
    display: none !important;
}

body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body.single-product .related.products ul.products li.product,
body.single-product .up-sells.upsells ul.products li.product {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================
   TARJETA — SIN CAJA PESADA
   ========================= */
.epg-card,
.woocommerce ul.products li.product .epg-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.epg-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f5f6;
    text-decoration: none !important;
}

.epg-card__media img,
.epg-card__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    transition: transform .28s ease;
}

@media (hover: hover) {
    .epg-card__media:hover img {
        transform: scale(1.018);
    }
}

.epg-card__badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .90);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
}

/* =========================
   INFORMACIÓN
   ========================= */
.epg-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 1px 0;
}

.epg-card__title {
    min-height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #172333 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    letter-spacing: -.01em;
}

.epg-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.epg-card__title a:hover {
    color: #334155 !important;
}

.epg-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 17px;
    margin: 4px 0 0;
}

.epg-card__rating .star-rating {
    margin: 0 !important;
    font-size: 11px !important;
}

.epg-card__reviews {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1;
}

.epg-card__price {
    margin: 5px 0 0;
    color: #172333;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.epg-card__price del {
    margin-right: 4px;
    color: #94a3b8;
    opacity: 1;
    font-size: 12px;
    font-weight: 500;
}

.epg-card__price ins {
    color: #172333;
    text-decoration: none;
}

/* =========================
   ACCIÓN LIGERA
   Nada de botón macizo a todo ancho
   ========================= */
.epg-card__actions {
    margin-top: 8px;
    min-height: 20px;
}

.epg-card__button,
.woocommerce ul.products li.product .epg-card__button {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0 !important;
    padding: 0 0 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #475569 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    text-align: left;
    text-decoration: none !important;
    text-transform: none !important;
}

.epg-card__button:hover,
.woocommerce ul.products li.product .epg-card__button:hover {
    border-bottom-color: #172333 !important;
    background: transparent !important;
    color: #172333 !important;
}

/* =========================
   AISLAMIENTO BLOCKSY / PLUGINS
   ========================= */
body.woocommerce-shop ul.products li.product > :not(.epg-card),
body.tax-product_cat ul.products li.product > :not(.epg-card),
body.tax-product_tag ul.products li.product > :not(.epg-card),
body.single-product .related.products ul.products li.product > :not(.epg-card),
body.single-product .up-sells.upsells ul.products li.product > :not(.epg-card) {
    display: none !important;
}

body.woocommerce-shop ul.products li.product .product-entry-wrapper,
body.woocommerce-shop ul.products li.product .ct-woo-card-actions,
body.woocommerce-shop ul.products li.product .ct-woo-card-extra,
body.woocommerce-shop ul.products li.product .tinv-wraper,
body.tax-product_cat ul.products li.product .product-entry-wrapper,
body.tax-product_cat ul.products li.product .ct-woo-card-actions,
body.tax-product_cat ul.products li.product .ct-woo-card-extra,
body.tax-product_cat ul.products li.product .tinv-wraper,
body.tax-product_tag ul.products li.product .product-entry-wrapper,
body.tax-product_tag ul.products li.product .ct-woo-card-actions,
body.tax-product_tag ul.products li.product .ct-woo-card-extra,
body.tax-product_tag ul.products li.product .tinv-wraper,
body.single-product .related.products ul.products li.product .product-entry-wrapper,
body.single-product .related.products ul.products li.product .ct-woo-card-actions,
body.single-product .related.products ul.products li.product .ct-woo-card-extra,
body.single-product .related.products ul.products li.product .tinv-wraper,
body.single-product .up-sells.upsells ul.products li.product .product-entry-wrapper,
body.single-product .up-sells.upsells ul.products li.product .ct-woo-card-actions,
body.single-product .up-sells.upsells ul.products li.product .ct-woo-card-extra,
body.single-product .up-sells.upsells ul.products li.product .tinv-wraper {
    display: none !important;
}

.epg-card,
.epg-card * {
    box-sizing: border-box;
}

/* Relacionados */
body.single-product .related.products > h2,
body.single-product .up-sells.upsells > h2 {
    margin: 0 0 20px !important;
    color: #172333 !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em;
}

@media (max-width: 1024px) {
    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products,
    body.single-product .related.products ul.products,
    body.single-product .up-sells.upsells ul.products {
        gap: 28px 14px !important;
    }
}

@media (max-width: 767px) {
    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products,
    body.single-product .related.products ul.products,
    body.single-product .up-sells.upsells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 10px !important;
    }

    .epg-card__media {
        border-radius: 6px;
    }

    .epg-card__body {
        padding-top: 8px;
    }

    .epg-card__title {
        min-height: 34px;
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }

    .epg-card__price {
        margin-top: 4px;
        font-size: 13px;
    }

    .epg-card__actions {
        margin-top: 6px;
    }

    .epg-card__button,
    .woocommerce ul.products li.product .epg-card__button {
        font-size: 10.5px !important;
    }

    .epg-card__badge {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 9px;
    }

    body.single-product .related.products > h2,
    body.single-product .up-sells.upsells > h2 {
        margin-bottom: 14px !important;
        font-size: 20px !important;
    }
}

/* =========================================================
   1.2.1 — CATÁLOGO MÁS ANCHO / IMAGEN MÁS PROTAGONISTA
   Solo tienda, categorías y etiquetas. No toca ficha producto.
   ========================================================= */

@media (min-width: 769px) {
    /* Rompemos el max-width estrecho del tema únicamente en catálogo */
    body.woocommerce-shop main#main > .ct-container,
    body.woocommerce-shop #main > .ct-container,
    body.woocommerce-shop .site-main > .ct-container,
    body.tax-product_cat main#main > .ct-container,
    body.tax-product_cat #main > .ct-container,
    body.tax-product_cat .site-main > .ct-container,
    body.tax-product_tag main#main > .ct-container,
    body.tax-product_tag #main > .ct-container,
    body.tax-product_tag .site-main > .ct-container {
        width: min(1500px, calc(100vw - 48px)) !important;
        max-width: 1500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Por si Blocksy aplica el ancho al contenedor de contenido interior */
    body.woocommerce-shop .site-main .ct-container-full,
    body.woocommerce-shop .site-main [data-content="normal"],
    body.tax-product_cat .site-main .ct-container-full,
    body.tax-product_cat .site-main [data-content="normal"],
    body.tax-product_tag .site-main .ct-container-full,
    body.tax-product_tag .site-main [data-content="normal"] {
        max-width: 1500px !important;
    }

    /* Cuatro columnas, pero usando de verdad el ancho disponible */
    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        column-gap: 22px !important;
        row-gap: 38px !important;
    }

    /* Un poco más de escala en la información para acompañar la foto */
    body.woocommerce-shop .epg-card__title,
    body.tax-product_cat .epg-card__title,
    body.tax-product_tag .epg-card__title {
        min-height: 40px;
        font-size: 15px !important;
        line-height: 1.32 !important;
    }

    body.woocommerce-shop .epg-card__price,
    body.tax-product_cat .epg-card__price,
    body.tax-product_tag .epg-card__price {
        font-size: 15px;
    }

    body.woocommerce-shop .epg-card__button,
    body.tax-product_cat .epg-card__button,
    body.tax-product_tag .epg-card__button {
        font-size: 11.5px !important;
    }

    /* La cabecera de tienda estaba consumiendo demasiado alto */
    body.woocommerce-shop .hero-section,
    body.tax-product_cat .hero-section,
    body.tax-product_tag .hero-section {
        min-height: 0 !important;
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 30px !important;
    }
}

/* En pantallas realmente grandes dejamos respirar el catálogo sin encogerlo */
@media (min-width: 1400px) {
    body.woocommerce-shop main#main > .ct-container,
    body.woocommerce-shop #main > .ct-container,
    body.woocommerce-shop .site-main > .ct-container,
    body.tax-product_cat main#main > .ct-container,
    body.tax-product_cat #main > .ct-container,
    body.tax-product_cat .site-main > .ct-container,
    body.tax-product_tag main#main > .ct-container,
    body.tax-product_tag #main > .ct-container,
    body.tax-product_tag .site-main > .ct-container {
        width: min(1560px, calc(100vw - 64px)) !important;
        max-width: 1560px !important;
    }
}

/* =========================================================
   1.2.3 — MÓVIL A TODO EL ANCHO
   Aprovecha el ancho real de pantalla manteniendo 2 columnas.
   PC no se modifica.
   ========================================================= */
@media (max-width: 767px) {
    body.woocommerce-shop main#main > .ct-container,
    body.woocommerce-shop #main > .ct-container,
    body.woocommerce-shop .site-main > .ct-container,
    body.tax-product_cat main#main > .ct-container,
    body.tax-product_cat #main > .ct-container,
    body.tax-product_cat .site-main > .ct-container,
    body.tax-product_tag main#main > .ct-container,
    body.tax-product_tag #main > .ct-container,
    body.tax-product_tag .site-main > .ct-container {
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
        row-gap: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   1.2.4 — JERARQUÍA TIPOGRÁFICA / INFORMACIÓN DE PRODUCTO
   Mantiene anchos, columnas, imágenes y radio 6px.
   ========================================================= */

/* El bloque inferior respira, pero sigue compacto */
.epg-card__body {
    padding-top: 9px;
}

/* Nombre: menos pesado, más editorial */
.epg-card__title,
body.woocommerce-shop .epg-card__title,
body.tax-product_cat .epg-card__title,
body.tax-product_tag .epg-card__title {
    min-height: 37px;
    color: #182231 !important;
    font-size: 13.5px !important;
    line-height: 1.34 !important;
    font-weight: 500 !important;
    letter-spacing: -0.012em !important;
}

/* Valoración presente pero secundaria */
.epg-card__rating {
    min-height: 15px;
    margin-top: 4px;
    gap: 4px;
}

.epg-card__rating .star-rating {
    font-size: 10px !important;
}

.epg-card__reviews {
    color: #9aa4b2;
    font-size: 9.5px;
}

/* Precio: el dato comercial con más jerarquía */
.epg-card__price,
body.woocommerce-shop .epg-card__price,
body.tax-product_cat .epg-card__price,
body.tax-product_tag .epg-card__price {
    margin-top: 6px;
    color: #101827;
    font-size: 14px !important;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.epg-card__price del {
    margin-right: 5px;
    color: #98a2b3;
    font-size: 11.5px;
    font-weight: 500;
}

/* Acción: casi un enlace editorial, no un botón */
.epg-card__actions {
    min-height: 18px;
    margin-top: 8px;
}

.epg-card__button,
.woocommerce ul.products li.product .epg-card__button,
body.woocommerce-shop .epg-card__button,
body.tax-product_cat .epg-card__button,
body.tax-product_tag .epg-card__button {
    padding: 0 0 2px !important;
    border-bottom: 1px solid #d7dde5 !important;
    color: #667085 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.epg-card__button:hover,
.woocommerce ul.products li.product .epg-card__button:hover {
    border-bottom-color: #172333 !important;
    color: #172333 !important;
}

/* Móvil: mismo lenguaje, ajustado al ancho de dos columnas */
@media (max-width: 767px) {
    .epg-card__body {
        padding: 8px 1px 0;
    }

    .epg-card__title,
    body.woocommerce-shop .epg-card__title,
    body.tax-product_cat .epg-card__title,
    body.tax-product_tag .epg-card__title {
        min-height: 34px;
        font-size: 12px !important;
        line-height: 1.38 !important;
        font-weight: 500 !important;
    }

    .epg-card__rating {
        min-height: 14px;
        margin-top: 3px;
    }

    .epg-card__price,
    body.woocommerce-shop .epg-card__price,
    body.tax-product_cat .epg-card__price,
    body.tax-product_tag .epg-card__price {
        margin-top: 5px;
        font-size: 13px !important;
        line-height: 1.25;
    }

    .epg-card__price del {
        font-size: 10.5px;
    }

    .epg-card__actions {
        margin-top: 7px;
    }

    .epg-card__button,
    .woocommerce ul.products li.product .epg-card__button,
    body.woocommerce-shop .epg-card__button,
    body.tax-product_cat .epg-card__button,
    body.tax-product_tag .epg-card__button {
        font-size: 10px !important;
        font-weight: 500 !important;
    }
}

/* =========================================================
   1.2.5 — CATALOG / DENSIDAD TIPO CATÁLOGO PROFESIONAL
   Mantiene: 4 PC / 2 móvil / WIDE / móvil 8px / gap 10px / radio 6px.
   Solo ajusta jerarquía y densidad bajo la imagen.
   ========================================================= */

/* Más unión entre imagen e información */
.epg-card__body {
    padding: 6px 0 0 !important;
}

/* Título: más presente, compacto y cercano a la imagen */
.epg-card__title,
body.woocommerce-shop .epg-card__title,
body.tax-product_cat .epg-card__title,
body.tax-product_tag .epg-card__title {
    min-height: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
    letter-spacing: -0.018em !important;
    color: #151a22 !important;
}

/* Las valoraciones, cuando existan, quedan pegadas al nombre */
.epg-card__rating {
    min-height: 0 !important;
    margin: 3px 0 0 !important;
    gap: 4px !important;
}

.epg-card__rating .star-rating {
    font-size: 9.5px !important;
}

.epg-card__reviews {
    font-size: 9.5px !important;
    color: #98a0aa !important;
}

/* Precio compacto justo debajo del título */
.epg-card__price,
body.woocommerce-shop .epg-card__price,
body.tax-product_cat .epg-card__price,
body.tax-product_tag .epg-card__price {
    margin: 4px 0 0 !important;
    font-size: 13.5px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    color: #151a22 !important;
}

.epg-card__price del {
    margin-right: 4px !important;
    font-size: 11px !important;
    font-weight: 450 !important;
    color: #9aa1aa !important;
}

/* Acción casi como texto auxiliar; no roba protagonismo */
.epg-card__actions {
    min-height: 0 !important;
    margin-top: 5px !important;
}

.epg-card__button,
.woocommerce ul.products li.product .epg-card__button,
body.woocommerce-shop .epg-card__button,
body.tax-product_cat .epg-card__button,
body.tax-product_tag .epg-card__button {
    padding: 0 !important;
    border: 0 !important;
    color: #69717d !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 450 !important;
    text-decoration: none !important;
}

.epg-card__button:hover,
.woocommerce ul.products li.product .epg-card__button:hover {
    border: 0 !important;
    color: #111827 !important;
}

/* Filas más densas: la siguiente imagen empieza antes */
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    row-gap: 24px !important;
}

@media (max-width: 767px) {
    .epg-card__body {
        padding: 5px 0 0 !important;
    }

    .epg-card__title,
    body.woocommerce-shop .epg-card__title,
    body.tax-product_cat .epg-card__title,
    body.tax-product_tag .epg-card__title {
        min-height: 0 !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }

    .epg-card__rating {
        margin-top: 2px !important;
    }

    .epg-card__price,
    body.woocommerce-shop .epg-card__price,
    body.tax-product_cat .epg-card__price,
    body.tax-product_tag .epg-card__price {
        margin-top: 3px !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
    }

    .epg-card__price del {
        font-size: 9.5px !important;
    }

    .epg-card__actions {
        margin-top: 4px !important;
    }

    .epg-card__button,
    .woocommerce ul.products li.product .epg-card__button,
    body.woocommerce-shop .epg-card__button,
    body.tax-product_cat .epg-card__button,
    body.tax-product_tag .epg-card__button {
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        row-gap: 18px !important;
    }
}


/* =========================================================
   1.3.0 — ENMARKALIA CATALOG UI
   Implementación del boceto aprobado.
   Conserva grid, anchos, imágenes y radio 6px.
   ========================================================= */

.epg-card__body {
    padding-top: 8px !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.epg-card__title,
body.woocommerce-shop .epg-card__title,
body.tax-product_cat .epg-card__title,
body.tax-product_tag .epg-card__title {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.28 !important;
    font-weight: 600 !important;
    letter-spacing: -0.012em !important;
    color: #101827 !important;
}

.epg-card__title a { color: inherit !important; }

/* Colores: entre título y precio, como en el boceto */
.epg-card__swatches {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    min-height: 16px !important;
    margin: 5px 0 0 !important;
}

.epg-card__swatch {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    border: 1px solid #c9ced5 !important;
    border-radius: 50% !important;
    background: #d7dbe0;
    box-sizing: border-box !important;
}
.epg-card__swatch--blanco, .epg-card__swatch--white { background:#fff !important; }
.epg-card__swatch--negro, .epg-card__swatch--black { background:#17191c !important; border-color:#17191c !important; }
.epg-card__swatch--madera, .epg-card__swatch--wood, .epg-card__swatch--haya { background:#bd8a5d !important; border-color:#bd8a5d !important; }
.epg-card__swatch--oro, .epg-card__swatch--gold { background:#b98a54 !important; border-color:#b98a54 !important; }
.epg-card__swatch--plata, .epg-card__swatch--silver { background:#b8bdc3 !important; border-color:#b8bdc3 !important; }
.epg-card__swatch--azul, .epg-card__swatch--blue { background:#315e7d !important; border-color:#315e7d !important; }
.epg-card__swatch--rojo, .epg-card__swatch--red { background:#a83d39 !important; border-color:#a83d39 !important; }
.epg-card__swatch-more { font-size:11px; line-height:14px; color:#7b8490; }

/* Rating no compite con título/precio */
.epg-card__rating { margin-top: 5px !important; }

/* El precio pasa a ser el segundo protagonista de la tarjeta */
.epg-card__price,
body.woocommerce-shop .epg-card__price,
body.tax-product_cat .epg-card__price,
body.tax-product_tag .epg-card__price {
    margin: 7px 0 0 !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;
    letter-spacing: -0.025em !important;
    color: #101827 !important;
}
.epg-card__price ins { font-weight: 750 !important; text-decoration:none !important; }
.epg-card__price del { font-size:13px !important; font-weight:500 !important; color:#8c95a1 !important; }

/* CTA del boceto: discreto, pero claramente accionable */
.epg-card__actions { margin-top: 8px !important; }
.epg-card__button,
.woocommerce ul.products li.product .epg-card__button,
body.woocommerce-shop .epg-card__button,
body.tax-product_cat .epg-card__button,
body.tax-product_tag .epg-card__button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f6574 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.epg-card__button:not([href*="product"]):before,
.epg-card__button.add_to_cart_button:before {
    content: "🛒";
    font-size: 13px;
    line-height: 1;
}
.epg-card__button:hover { color:#0b4450 !important; }

body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products { row-gap: 26px !important; }

@media (max-width: 767px) {
    .epg-card__body { padding-top: 7px !important; }
    .epg-card__title,
    body.woocommerce-shop .epg-card__title,
    body.tax-product_cat .epg-card__title,
    body.tax-product_tag .epg-card__title {
        font-size: 13px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
    }
    .epg-card__swatches { gap:4px !important; margin-top:5px !important; min-height:14px !important; }
    .epg-card__swatch { width:13px !important; height:13px !important; flex-basis:13px !important; }
    .epg-card__price,
    body.woocommerce-shop .epg-card__price,
    body.tax-product_cat .epg-card__price,
    body.tax-product_tag .epg-card__price {
        margin-top: 6px !important;
        font-size: 16px !important;
        line-height: 1.15 !important;
        font-weight: 750 !important;
    }
    .epg-card__price del { font-size:11px !important; }
    .epg-card__actions { margin-top:7px !important; }
    .epg-card__button,
    .woocommerce ul.products li.product .epg-card__button,
    body.woocommerce-shop .epg-card__button,
    body.tax-product_cat .epg-card__button,
    body.tax-product_tag .epg-card__button {
        gap:4px !important;
        font-size:11.5px !important;
    }
    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products { row-gap:20px !important; }
}

/* =========================================================
   1.3.1 — TYPOGRAPHY / JERARQUÍA COMERCIAL
   Solo bloque de información. NO toca grid, anchos, imágenes ni radio.
   ========================================================= */

/* Título: forzamos también el enlace para neutralizar estilos de Blocksy/Woo */
.epg-card .epg-card__title,
.epg-card .epg-card__title a,
.woocommerce ul.products li.product .epg-card .epg-card__title,
.woocommerce ul.products li.product .epg-card .epg-card__title a {
    color: #101827 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.26 !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    text-transform: none !important;
}

/* Colores: pegados al título, sin robar protagonismo */
.epg-card .epg-card__swatches {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

/* Precio: aplicamos tamaño al contenedor Y a los amount internos */
.epg-card .epg-card__price,
.epg-card .epg-card__price .woocommerce-Price-amount,
.epg-card .epg-card__price .amount,
.woocommerce ul.products li.product .epg-card .epg-card__price,
.woocommerce ul.products li.product .epg-card .epg-card__price .woocommerce-Price-amount,
.woocommerce ul.products li.product .epg-card .epg-card__price .amount {
    color: #0f172a !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 18px !important;
    line-height: 1.12 !important;
    font-weight: 750 !important;
    letter-spacing: -0.025em !important;
}

.epg-card .epg-card__price {
    margin-top: 6px !important;
}

.epg-card .epg-card__price del,
.epg-card .epg-card__price del .woocommerce-Price-amount,
.epg-card .epg-card__price del .amount {
    color: #8f98a5 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.epg-card .epg-card__price ins,
.epg-card .epg-card__price ins .woocommerce-Price-amount,
.epg-card .epg-card__price ins .amount {
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    text-decoration: none !important;
}

/* CTA: visible y fino, sin volver al botón macizo */
.epg-card .epg-card__actions {
    margin-top: 9px !important;
}

.epg-card .epg-card__button,
.woocommerce ul.products li.product .epg-card .epg-card__button {
    color: #0f6574 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.epg-card .epg-card__button:hover,
.woocommerce ul.products li.product .epg-card .epg-card__button:hover {
    color: #0b4450 !important;
}

@media (max-width: 767px) {
    .epg-card .epg-card__title,
    .epg-card .epg-card__title a,
    .woocommerce ul.products li.product .epg-card .epg-card__title,
    .woocommerce ul.products li.product .epg-card .epg-card__title a {
        font-size: 13px !important;
        line-height: 1.24 !important;
        font-weight: 600 !important;
    }

    .epg-card .epg-card__price,
    .epg-card .epg-card__price .woocommerce-Price-amount,
    .epg-card .epg-card__price .amount,
    .woocommerce ul.products li.product .epg-card .epg-card__price,
    .woocommerce ul.products li.product .epg-card .epg-card__price .woocommerce-Price-amount,
    .woocommerce ul.products li.product .epg-card .epg-card__price .amount {
        font-size: 16px !important;
        line-height: 1.12 !important;
        font-weight: 750 !important;
    }

    .epg-card .epg-card__price del,
    .epg-card .epg-card__price del .woocommerce-Price-amount,
    .epg-card .epg-card__price del .amount {
        font-size: 10.5px !important;
    }

    .epg-card .epg-card__price ins,
    .epg-card .epg-card__price ins .woocommerce-Price-amount,
    .epg-card .epg-card__price ins .amount {
        font-size: 16px !important;
    }

    .epg-card .epg-card__actions {
        margin-top: 7px !important;
    }

    .epg-card .epg-card__button,
    .woocommerce ul.products li.product .epg-card .epg-card__button {
        font-size: 11.5px !important;
        font-weight: 600 !important;
    }
}

/* =========================================================
   1.3.2 — COMPACT CATALOG
   Compactación del bloque de información únicamente.
   NO modifica grid, columnas, anchos, imágenes ni radio.
   ========================================================= */

.epg-card .epg-card__body {
    padding-top: 6px !important;
}

.epg-card .epg-card__title {
    min-height: 36px !important;
    margin: 0 !important;
}

.epg-card .epg-card__swatches {
    margin-top: 3px !important;
    min-height: 14px !important;
}

.epg-card .epg-card__rating {
    margin-top: 3px !important;
    min-height: 14px !important;
}

.epg-card .epg-card__price {
    margin-top: 4px !important;
}

.epg-card .epg-card__actions {
    margin-top: 5px !important;
    min-height: 18px !important;
}

body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    row-gap: 20px !important;
}

@media (max-width: 767px) {
    .epg-card .epg-card__body {
        padding-top: 5px !important;
    }

    .epg-card .epg-card__title {
        min-height: 32px !important;
    }

    .epg-card .epg-card__swatches {
        margin-top: 3px !important;
        min-height: 13px !important;
    }

    .epg-card .epg-card__rating {
        margin-top: 2px !important;
        min-height: 13px !important;
    }

    .epg-card .epg-card__price {
        margin-top: 3px !important;
    }

    .epg-card .epg-card__actions {
        margin-top: 4px !important;
        min-height: 17px !important;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        row-gap: 16px !important;
    }
}

/* =========================================================
   1.3.3 — FINAL TYPOGRAPHY / CTA POLISH
   Último pulido del bloque de información.
   NO modifica grid, columnas, anchos, imágenes, radio ni precio.
   ========================================================= */

/* Título: un punto más de presencia sin alterar la tarjeta */
.epg-card .epg-card__title,
.epg-card .epg-card__title a,
.woocommerce ul.products li.product .epg-card .epg-card__title,
.woocommerce ul.products li.product .epg-card .epg-card__title a {
    font-size: 16px !important;
    line-height: 1.22 !important;
    font-weight: 600 !important;
}

/* Precio: tamaño congelado; solo compactamos su caja */
.epg-card .epg-card__price,
.epg-card .epg-card__price .woocommerce-Price-amount,
.epg-card .epg-card__price .amount {
    line-height: 1.08 !important;
}

/* CTA: más legible, pero sigue siendo una acción ligera */
.epg-card .epg-card__actions {
    margin-top: 6px !important;
}

.epg-card .epg-card__button,
.woocommerce ul.products li.product .epg-card .epg-card__button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
}

@media (max-width: 767px) {
    .epg-card .epg-card__title,
    .epg-card .epg-card__title a,
    .woocommerce ul.products li.product .epg-card .epg-card__title,
    .woocommerce ul.products li.product .epg-card .epg-card__title a {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }

    .epg-card .epg-card__price,
    .epg-card .epg-card__price .woocommerce-Price-amount,
    .epg-card .epg-card__price .amount {
        line-height: 1.08 !important;
    }

    .epg-card .epg-card__actions {
        margin-top: 5px !important;
    }

    .epg-card .epg-card__button,
    .woocommerce ul.products li.product .epg-card .epg-card__button {
        font-size: 12px !important;
        line-height: 1.18 !important;
        font-weight: 650 !important;
    }
}

/* =========================================================
   1.3.4 — ELEGANT TYPOGRAPHY
   Estilo refinado: menos negrita, más aire visual.
   NO modifica grid, columnas, anchos, imágenes, radio ni gaps.
   ========================================================= */

.epg-card .epg-card__title,
.epg-card .epg-card__title a,
.woocommerce ul.products li.product .epg-card .epg-card__title,
.woocommerce ul.products li.product .epg-card .epg-card__title a {
    font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.28 !important;
    font-weight: 450 !important;
    letter-spacing: -0.015em !important;
}

.epg-card .epg-card__price,
.epg-card .epg-card__price .woocommerce-Price-amount,
.epg-card .epg-card__price .amount,
.woocommerce ul.products li.product .epg-card .epg-card__price,
.woocommerce ul.products li.product .epg-card .epg-card__price .woocommerce-Price-amount,
.woocommerce ul.products li.product .epg-card .epg-card__price .amount {
    font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.12 !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
}

.epg-card .epg-card__price del,
.epg-card .epg-card__price del .woocommerce-Price-amount,
.epg-card .epg-card__price del .amount {
    font-weight: 400 !important;
}

.epg-card .epg-card__price ins,
.epg-card .epg-card__price ins .woocommerce-Price-amount,
.epg-card .epg-card__price ins .amount {
    font-weight: 500 !important;
}

.epg-card .epg-card__button,
.woocommerce ul.products li.product .epg-card .epg-card__button {
    font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 767px) {
    .epg-card .epg-card__title,
    .epg-card .epg-card__title a,
    .woocommerce ul.products li.product .epg-card .epg-card__title,
    .woocommerce ul.products li.product .epg-card .epg-card__title a {
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        font-weight: 450 !important;
    }

    .epg-card .epg-card__price,
    .epg-card .epg-card__price .woocommerce-Price-amount,
    .epg-card .epg-card__price .amount {
        font-size: 13.5px !important;
        line-height: 1.1 !important;
        font-weight: 500 !important;
    }

    .epg-card .epg-card__button,
    .woocommerce ul.products li.product .epg-card .epg-card__button {
        font-size: 11px !important;
        font-weight: 500 !important;
    }
}


/* =========================================================
   1.3.4.2 — ELEGANT HIERARCHY
   Solo jerarquía tipográfica + CTA. Geometría congelada.
   ========================================================= */
@media (min-width: 768px) {
    .epg-card .epg-card__title,
    .epg-card .epg-card__title a,
    .woocommerce ul.products li.product .epg-card .epg-card__title,
    .woocommerce ul.products li.product .epg-card .epg-card__title a {
        font-size: 16px !important;
        line-height: 1.27 !important;
        font-weight: 500 !important;
    }

    .epg-card .epg-card__price,
    .epg-card .epg-card__price .woocommerce-Price-amount,
    .epg-card .epg-card__price .amount,
    .woocommerce ul.products li.product .epg-card .epg-card__price,
    .woocommerce ul.products li.product .epg-card .epg-card__price .woocommerce-Price-amount,
    .woocommerce ul.products li.product .epg-card .epg-card__price .amount {
        font-size: 19px !important;
        line-height: 1.16 !important;
        font-weight: 700 !important;
    }

    .epg-card .epg-card__button,
    .woocommerce ul.products li.product .epg-card .epg-card__button {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
    }
}

/* Icono fino solo para compra directa; variables conservan “Ver opciones →”. */
.epg-card .epg-card__button.add_to_cart_button::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 8H7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 8H7'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 767px) {
    .epg-card .epg-card__title,
    .epg-card .epg-card__title a,
    .woocommerce ul.products li.product .epg-card .epg-card__title,
    .woocommerce ul.products li.product .epg-card .epg-card__title a {
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    .epg-card .epg-card__price,
    .epg-card .epg-card__price .woocommerce-Price-amount,
    .epg-card .epg-card__price .amount {
        font-size: 14.5px !important;
        font-weight: 500 !important;
    }

    .epg-card .epg-card__button,
    .woocommerce ul.products li.product .epg-card .epg-card__button {
        font-size: 11.5px !important;
        font-weight: 500 !important;
    }

    .epg-card .epg-card__button.add_to_cart_button::before {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
}

/* =========================================================
   1.4.0 — ESTRUCTURA DE CATÁLOGO
   Barra superior + categorías + filtros laterales.
   La geometría de las tarjetas 1.3.4.2 permanece intacta.
   ========================================================= */
body.woocommerce-shop .epg-catalog-ui,
body.tax-product_cat .epg-catalog-ui,
body.tax-product_tag .epg-catalog-ui { font-family:"Manrope","Inter",sans-serif; }

.epg-catalog-ui { width:100%; }
.epg-catalog-top { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:22px; margin:0 0 24px; padding-bottom:15px; border-bottom:1px solid #e8ebef; }
.epg-catalog-heading { display:flex; align-items:baseline; gap:9px; white-space:nowrap; }
.epg-catalog-heading strong { color:#111827; font-size:17px; font-weight:600; }
.epg-catalog-heading span { color:#8b95a3; font-size:11px; font-weight:500; }
.epg-category-chips { display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; }
.epg-category-chips::-webkit-scrollbar { display:none; }
.epg-category-chips a { flex:0 0 auto; padding:7px 11px; border:1px solid #e2e6eb; border-radius:5px; color:#4b5563; background:#fff; font-size:11.5px; font-weight:500; text-decoration:none; }
.epg-category-chips a:hover { border-color:#aeb7c2; color:#111827; }
.epg-filter-toggle { display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 12px; border:1px solid #dfe4e9; border-radius:5px; background:#fff; color:#263241; font:500 11.5px/1 "Manrope",sans-serif; cursor:pointer; }
.epg-catalog-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:28px; align-items:start; }
.epg-catalog-products { min-width:0; }
.epg-filter-panel { position:sticky; top:24px; border:1px solid #e5e8ec; border-radius:6px; background:#fff; padding:16px 15px; }
.epg-filter-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }
.epg-filter-head strong { font-size:15px; font-weight:600; color:#172333; }
.epg-filter-close { display:none; border:0; background:none; font-size:26px; line-height:1; cursor:pointer; }
.epg-filter-group { padding:14px 0; border-top:1px solid #edf0f2; }
.epg-filter-title { margin-bottom:9px; color:#172333; font-size:12.5px; font-weight:600; }
.epg-filter-options { display:grid; gap:3px; }
.epg-filter-options a { display:flex; justify-content:space-between; gap:8px; padding:5px 6px; margin:0 -6px; border-radius:4px; color:#586271; font-size:11.5px; line-height:1.25; text-decoration:none; }
.epg-filter-options a:hover,.epg-filter-options a.is-active { background:#f3f5f7; color:#111827; }
.epg-filter-options a.is-active { font-weight:600; }
.epg-filter-options small { color:#a0a8b2; font-size:10px; }
.epg-price-filter { display:grid; grid-template-columns:1fr auto 1fr; gap:6px; align-items:center; }
.epg-price-filter input { width:100%; min-width:0; height:31px; padding:0 7px; border:1px solid #dfe4e9; border-radius:4px; font-size:10.5px; }
.epg-price-filter button { grid-column:1/-1; height:30px; border:0; border-radius:4px; background:#172333; color:#fff; font:500 10.5px/1 "Manrope",sans-serif; cursor:pointer; }
.epg-clear-filters { display:block; margin-top:8px; color:#7b3445; font-size:11px; text-decoration:underline; }

/* Orden nativo de Woo: lo conservamos y lo integramos visualmente. */
.epg-catalog-products .woocommerce-ordering { float:none !important; display:flex !important; justify-content:flex-end; margin:0 0 18px !important; }
.epg-catalog-products .woocommerce-ordering select { min-width:170px; height:34px; padding:0 30px 0 10px; border:1px solid #dfe4e9; border-radius:5px; background-color:#fff; color:#56606d; font:500 11px/1 "Manrope",sans-serif; }
.epg-catalog-products .woocommerce-result-count { display:none !important; }

@media (min-width:768px) {
  .epg-catalog-products ul.products { grid-template-columns:repeat(4,minmax(0,1fr)) !important; column-gap:18px !important; }
}

@media (max-width:767px) {
  .epg-catalog-top { grid-template-columns:1fr auto; gap:10px; margin-bottom:14px; padding-bottom:11px; }
  .epg-catalog-heading strong { font-size:15px; }
  .epg-catalog-heading span { font-size:10px; }
  .epg-category-chips { grid-column:1/-1; grid-row:2; order:3; margin-right:-8px; }
  .epg-category-chips a { padding:6px 9px; font-size:10.5px; }
  .epg-filter-toggle { height:32px; padding:0 10px; font-size:11px; }
  .epg-catalog-layout { display:block; }
  .epg-filter-panel { position:fixed; z-index:99999; top:0; left:0; bottom:0; width:min(86vw,330px); overflow:auto; border:0; border-radius:0; padding:18px; transform:translateX(-105%); transition:transform .22s ease; box-shadow:12px 0 35px rgba(15,23,42,.16); }
  .epg-filter-panel.is-open { transform:translateX(0); }
  .epg-filter-close { display:block; }
  body.epg-filter-open::after { content:""; position:fixed; z-index:99998; inset:0; background:rgba(15,23,42,.34); }
  body.epg-filter-open { overflow:hidden; }
  .epg-catalog-products .woocommerce-ordering { justify-content:flex-end; margin-bottom:12px !important; }
  .epg-catalog-products .woocommerce-ordering select { min-width:145px; height:32px; font-size:10.5px; }
}


/* =========================================================
   1.4.1 — CATÁLOGO PC EXTRA ANCHO
   El sidebar gana su espacio hacia fuera; la parrilla recupera
   aproximadamente el tamaño visual anterior de las imágenes.
   No modifica tarjetas ni móvil.
   ========================================================= */
@media (min-width: 1200px) {
    body.woocommerce-shop main#main > .ct-container,
    body.woocommerce-shop #main > .ct-container,
    body.woocommerce-shop .site-main > .ct-container,
    body.tax-product_cat main#main > .ct-container,
    body.tax-product_cat #main > .ct-container,
    body.tax-product_cat .site-main > .ct-container,
    body.tax-product_tag main#main > .ct-container,
    body.tax-product_tag #main > .ct-container,
    body.tax-product_tag .site-main > .ct-container {
        width: min(1840px, calc(100vw - 48px)) !important;
        max-width: 1840px !important;
    }

    body.woocommerce-shop .site-main .ct-container-full,
    body.woocommerce-shop .site-main [data-content="normal"],
    body.tax-product_cat .site-main .ct-container-full,
    body.tax-product_cat .site-main [data-content="normal"],
    body.tax-product_tag .site-main .ct-container-full,
    body.tax-product_tag .site-main [data-content="normal"] {
        max-width: 1840px !important;
    }
}


/* =========================================================
   1.4.2 — SIDEBAR ELEGANTE
   Solo apariencia/UX de filtros. NO toca parrilla ni tarjetas.
   ========================================================= */
@media (min-width: 768px) {
    .epg-catalog-layout { grid-template-columns: 238px minmax(0,1fr); gap: 30px; }
}

.epg-filter-panel {
    padding: 0 18px 10px;
    border: 1px solid #e7e9ed;
    border-radius: 7px;
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
}
.epg-filter-head {
    min-height: 56px;
    margin: 0;
    border-bottom: 1px solid #e9ecf0;
}
.epg-filter-head strong {
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.015em;
    color: #111827;
}
.epg-filter-group { padding: 0; border-top: 0; border-bottom: 1px solid #edf0f2; }
.epg-filter-group:last-of-type { border-bottom: 0; }
.epg-filter-title {
    appearance: none;
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #202733;
    font: 600 12.5px/1.2 "Manrope","Inter",sans-serif;
    text-align: left;
    cursor: pointer;
}
.epg-filter-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.4px solid #667085;
    border-bottom: 1.4px solid #667085;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}
.epg-filter-group:not(.is-open) .epg-filter-chevron { transform: rotate(-45deg); }
.epg-filter-options {
    display: grid;
    gap: 1px;
    padding: 0 0 13px;
}
.epg-filter-group:not(.is-open) > .epg-filter-options { display: none; }
.epg-filter-options a {
    min-height: 28px;
    align-items: center;
    padding: 5px 7px;
    margin: 0 -7px;
    border-radius: 4px;
    color: #5e6673;
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 450;
}
.epg-filter-options a:hover { background: #f6f7f8; color: #111827; }
.epg-filter-options a.is-active {
    position: relative;
    padding-left: 19px;
    background: #f3f5f7;
    color: #111827;
    font-weight: 600;
}
.epg-filter-options a.is-active::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #172333;
    transform: translateY(-50%);
}
.epg-filter-options small {
    min-width: 18px;
    color: #a7adb6;
    font-size: 9.5px;
    font-weight: 500;
    text-align: right;
}
.epg-filter-options--price { padding-top: 1px; }
.epg-price-filter { gap: 7px; }
.epg-price-filter input {
    height: 34px;
    padding: 0 8px;
    border-color: #e0e4e9;
    border-radius: 5px;
    background: #fff;
    color: #343b46;
    font: 500 10.5px/1 "Manrope",sans-serif;
    box-shadow: none;
}
.epg-price-filter input:focus { border-color: #aeb7c2; outline: none; box-shadow: 0 0 0 2px rgba(23,35,51,.05); }
.epg-price-filter > span { color: #a4abb4; }
.epg-price-filter button {
    height: 34px;
    margin-top: 2px;
    border-radius: 5px;
    background: #172333;
    font-size: 11px;
    font-weight: 600;
    transition: background .18s ease;
}
.epg-price-filter button:hover { background: #263648; }
.epg-clear-filters {
    margin: 12px 0 5px;
    color: #667085;
    font-size: 10.5px;
    font-weight: 500;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .epg-filter-panel { padding: 0 18px 18px; border-radius: 0; }
    .epg-filter-head { min-height: 58px; }
    .epg-filter-title { min-height: 51px; font-size: 13px; }
    .epg-filter-options a { min-height: 31px; font-size: 12px; }
}

/* =========================================================
   1.4.3 — SIDEBAR PRESENCIA
   Pulido PC del filtro. NO toca parrilla ni tarjetas.
   ========================================================= */
@media (min-width: 768px) {
    .epg-catalog-layout {
        grid-template-columns: 258px minmax(0,1fr);
        gap: 32px;
    }

    .epg-filter-panel {
        padding: 0 20px 12px;
    }

    .epg-filter-head {
        min-height: 62px;
    }

    .epg-filter-head strong {
        font-size: 17px;
        font-weight: 650;
        letter-spacing: -.02em;
    }

    .epg-filter-title {
        min-height: 54px;
        font-size: 13.5px;
        font-weight: 600;
    }

    .epg-filter-options {
        gap: 2px;
        padding-bottom: 15px;
    }

    .epg-filter-options a {
        min-height: 30px;
        padding: 6px 8px;
        margin: 0 -8px;
        font-size: 12px;
        line-height: 1.35;
    }

    .epg-filter-options small {
        font-size: 9px;
        opacity: .72;
    }

    .epg-price-filter input {
        height: 36px;
        font-size: 11px;
    }

    .epg-price-filter button {
        height: 36px;
        font-size: 11.5px;
    }
}

/* =========================================================
   1.5.0 — CABECERA DE CATÁLOGO
   Cambio estructural superior. Tarjetas + sidebar 1.4.3 intactos.
   ========================================================= */
.epg-catalog-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
        "title controls"
        "categories categories" !important;
    align-items: end !important;
    gap: 18px 28px !important;
    margin: 0 0 30px !important;
    padding: 4px 0 18px !important;
    border-bottom: 1px solid #dfe4e9 !important;
}
.epg-catalog-titleblock { grid-area: title; min-width: 0; }
.epg-catalog-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #98a2b3;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.epg-catalog-heading {
    display: flex !important;
    align-items: baseline !important;
    gap: 11px !important;
}
.epg-catalog-heading h1 {
    margin: 0 !important;
    color: #111827 !important;
    font: 500 28px/1.08 "Manrope","Inter",sans-serif !important;
    letter-spacing: -.035em !important;
}
.epg-catalog-heading span {
    color: #98a2b3 !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
}
.epg-catalog-controls {
    grid-area: controls;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 9px;
}
.epg-ordering-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.epg-control-label {
    color: #98a2b3;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.epg-ordering-wrap .woocommerce-ordering {
    float: none !important;
    display: block !important;
    margin: 0 !important;
}
.epg-ordering-wrap .woocommerce-ordering select {
    width: 188px !important;
    min-width: 188px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 34px 0 12px !important;
    border: 1px solid #dfe4e9 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #344054 !important;
    font: 500 11px/1 "Manrope","Inter",sans-serif !important;
    box-shadow: none !important;
}
.epg-filter-toggle {
    height: 38px !important;
    padding: 0 14px !important;
    border: 1px solid #dfe4e9 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #344054 !important;
    font: 500 11px/1 "Manrope","Inter",sans-serif !important;
}
.epg-filter-icon {
    position: relative;
    width: 13px;
    height: 10px;
    display: inline-block;
    background:
        linear-gradient(#667085,#667085) 0 1px/13px 1px no-repeat,
        linear-gradient(#667085,#667085) 0 5px/13px 1px no-repeat,
        linear-gradient(#667085,#667085) 0 9px/13px 1px no-repeat;
}
.epg-filter-icon::after {
    content:"";
    position:absolute;
    left:3px; top:-1px;
    width:2px; height:3px;
    border-left:2px solid #667085;
    box-shadow: 5px 4px 0 -0.5px #667085, 1px 8px 0 -0.5px #667085;
}
.epg-category-chips {
    grid-area: categories;
    display: flex !important;
    align-items: center;
    gap: 5px !important;
    overflow-x: auto;
    margin: 0 !important;
    padding: 0 !important;
}
.epg-category-chips a {
    padding: 7px 11px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}
.epg-category-chips a:hover { background:#f4f6f8 !important; color:#111827 !important; }
.epg-category-chips a.is-active {
    background: #172333 !important;
    color: #fff !important;
}
/* Ya vive arriba: nunca reservar espacio de ordenación dentro de la parrilla. */
.epg-catalog-products > .woocommerce-ordering,
.epg-catalog-products > .woocommerce-result-count { display:none !important; }

@media (min-width: 768px) {
    /* El lateral ya está visible en PC; el botón queda como control secundario, no protagonista. */
    .epg-filter-toggle { opacity: .92; }
}

@media (max-width: 767px) {
    .epg-catalog-top {
        grid-template-columns: minmax(0,1fr) auto !important;
        grid-template-areas:
            "title filter"
            "categories categories"
            "sort sort" !important;
        align-items: end !important;
        gap: 12px 10px !important;
        margin-bottom: 16px !important;
        padding: 2px 0 13px !important;
    }
    .epg-catalog-heading h1 { font-size: 22px !important; }
    .epg-catalog-heading span { font-size: 9.5px !important; }
    .epg-catalog-eyebrow { font-size: 8.5px; margin-bottom: 4px; }
    .epg-catalog-controls { display: contents; }
    .epg-filter-toggle { grid-area: filter; height: 34px !important; padding: 0 11px !important; }
    .epg-ordering-wrap {
        grid-area: sort;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .epg-ordering-wrap .woocommerce-ordering { flex: 1; }
    .epg-ordering-wrap .woocommerce-ordering select {
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
    }
    .epg-category-chips { margin-right: -8px !important; }
    .epg-category-chips a { padding: 6px 9px !important; font-size: 10.5px !important; }
}


/* =========================================================
   1.5.1 — COMPACT HEADER
   Solo compactación vertical de la zona superior en escritorio.
   NO toca tarjetas, parrilla, sidebar ni móvil.
   ========================================================= */
@media (min-width: 768px) {
    body.woocommerce-shop .hero-section,
    body.tax-product_cat .hero-section,
    body.tax-product_tag .hero-section {
        min-height: 0 !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 16px !important;
    }

    .epg-catalog-top {
        gap: 14px 28px !important;
        margin-bottom: 18px !important;
        padding-top: 0 !important;
        padding-bottom: 14px !important;
    }
}

/* =========================================================
   1.5.2 — BLOCKSY SHOP HERO OFF
   Oculta exclusivamente la cabecera hero nativa de Blocksy
   en el archivo de productos y taxonomías de producto.
   ========================================================= */
body.post-type-archive-product #main > .hero-section,
body.tax-product_cat #main > .hero-section,
body.tax-product_tag #main > .hero-section {
    display: none !important;
}

/* =========================================================
   1.6.2 — CATEGORY SHOWCASE TALL
   Tarjetas horizontales compactas. No toca grid/sidebar.
   ========================================================= */
.epg-category-showcase {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
}

.epg-category-tile {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe4e9;
    border-radius: 6px;
    background: #fff;
    color: #172333 !important;
    text-decoration: none !important;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.epg-category-tile__media {
    display: block;
    width: 100%;
    height: 155px;
    overflow: hidden;
    background: #f4f5f6;
}

.epg-category-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .28s ease;
}

.epg-category-tile__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
}

.epg-category-tile__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 52px;
    min-height: 52px;
    padding: 8px 11px;
}

.epg-category-tile__body > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.epg-category-tile__body strong {
    overflow: hidden;
    color: #172333;
    font: 600 14px/1.15 "Manrope","Inter",sans-serif;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epg-category-tile__body small {
    overflow: hidden;
    color: #98a2b3;
    font: 500 9.5px/1.2 "Manrope","Inter",sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epg-category-tile__body i {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd6dd;
    border-radius: 50%;
    color: #667085;
    font: 400 20px/1 Arial,sans-serif;
    font-style: normal;
}

@media (hover: hover) {
    .epg-category-tile:hover {
        border-color: #c9d1da;
        box-shadow: 0 7px 20px rgba(15,23,42,.05);
        transform: translateY(-1px);
    }
    .epg-category-tile:hover .epg-category-tile__media img { transform: scale(1.025); }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .epg-category-showcase { gap: 10px; }
    .epg-category-tile__media { height: 90px; }
    .epg-category-tile__body { height: 48px; min-height: 48px; padding: 7px 9px; }
    .epg-category-tile__body strong { font-size: 12.5px; }
    .epg-category-tile__body small { font-size: 8.5px; }
    .epg-category-tile__body i { flex-basis: 25px; width: 25px; height: 25px; font-size: 18px; }
}

@media (max-width: 767px) {
    .epg-category-showcase {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        margin: 0 -8px 18px;
        padding: 0 8px 5px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .epg-category-showcase::-webkit-scrollbar { display: none; }
    .epg-category-tile {
        flex: 0 0 68%;
        scroll-snap-align: start;
    }
    .epg-category-tile__media { height: 100px; }
    .epg-category-tile__body { height: 50px; min-height: 50px; padding: 8px 10px; }
    .epg-category-tile__body strong { font-size: 13.5px; }
    .epg-category-tile__body small { font-size: 9px; }
    .epg-category-tile__body i { flex-basis: 27px; width: 27px; height: 27px; font-size: 19px; }
}


/* =========================================================
   1.6.3 — CATEGORY NAV LEGIBILITY
   ========================================================= */
.epg-category-chips {
    gap: 9px !important;
}
.epg-category-chips a {
    padding: 8px 13px !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
}

@media (max-width: 767px) {
    .epg-category-chips { gap: 6px !important; }
    .epg-category-chips a {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   1.6.4 — DESKTOP DENSITY
   Más legibilidad en navegación/sidebar y menos aire superior.
   No toca tarjetas, imágenes de categoría, grid ni móvil.
   ========================================================= */
@media (min-width: 768px) {
    /* Acercar el catálogo al bloque Rewards */
    body.woocommerce-shop #main > .ct-container,
    body.tax-product_cat #main > .ct-container,
    body.tax-product_tag #main > .ct-container {
        padding-top: 4px !important;
    }

    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 4px !important;
    }

    /* Navegación horizontal de categorías */
    .epg-category-chips {
        gap: 10px !important;
    }
    .epg-category-chips a {
        padding: 8px 14px !important;
        font-size: 14.5px !important;
        line-height: 1.25 !important;
    }

    /* Sidebar de filtros: lectura cómoda en escritorio */
    .epg-filter-head strong {
        font-size: 16px !important;
    }
    .epg-filter-title {
        font-size: 14.5px !important;
        line-height: 1.3 !important;
    }
    .epg-filter-options {
        gap: 4px !important;
    }
    .epg-filter-options a {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    .epg-filter-options small {
        font-size: 11px !important;
    }
    .epg-price-filter input,
    .epg-price-filter button,
    .epg-clear-filters {
        font-size: 12.5px !important;
    }
}

/* =========================================================
   1.6.5 — CATALOG FINAL POLISH
   Último pulido de jerarquía/espaciado en escritorio.
   Estructura, showcase 155px, grid y móvil permanecen intactos.
   ========================================================= */
@media (min-width: 768px) {
    /* Tarjetas de categorías: texto más equilibrado */
    .epg-category-tile__body strong {
        font-size: 13.5px !important;
    }
    .epg-category-tile__body small {
        font-size: 11px !important;
    }

    /* Cabecera Productos + contador */
    .epg-catalog-heading {
        gap: 8px !important;
    }
    .epg-catalog-heading span {
        font-size: 11.5px !important;
        line-height: 1.2 !important;
    }

    /* Navegación horizontal */
    .epg-category-chips {
        gap: 11px !important;
    }
    .epg-category-chips a {
        padding: 8px 15px !important;
        font-size: 15px !important;
    }

    /* Sidebar: jerarquía final */
    .epg-filter-panel {
        padding: 17px 16px !important;
    }
    .epg-filter-head {
        margin-bottom: 8px !important;
    }
    .epg-filter-head strong {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    .epg-filter-group {
        padding: 13px 0 !important;
    }
    .epg-filter-title {
        margin-bottom: 9px !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
    }
    .epg-filter-options a {
        font-size: 14px !important;
    }
    .epg-filter-options small {
        font-size: 11.5px !important;
        color: #8f99a6 !important;
    }

    /* Ordenación / botón filtros con peso visual coherente */
    .epg-ordering-wrap .epg-control-label,
    .epg-control-label {
        font-size: 11px !important;
    }
    .epg-catalog-controls .woocommerce-ordering select {
        min-height: 38px !important;
        font-size: 12.5px !important;
    }
    .epg-filter-toggle {
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
    }

    /* Ritmo vertical final */
    .epg-category-showcase {
        margin-bottom: 23px !important;
    }
    .epg-catalog-top {
        margin-bottom: 16px !important;
        padding-bottom: 14px !important;
    }
}

/* =========================================================
   1.7.0 — PRO CATALOG CARDS / CATEGORY SHOWCASE
   Scope: catalog only. Single-product related loops untouched.
   ========================================================= */
body.woocommerce-shop .epg-catalog-products ul.products li.product,
body.tax-product_cat .epg-catalog-products ul.products li.product,
body.tax-product_tag .epg-catalog-products ul.products li.product {
    min-width: 0;
    margin-bottom: 0 !important;
}
body.woocommerce-shop .epg-catalog-products .epg-card,
body.tax-product_cat .epg-catalog-products .epg-card,
body.tax-product_tag .epg-catalog-products .epg-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 12px !important;
    border: 1px solid #e9edf1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 3px 15px rgba(19,34,49,.045);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
body.woocommerce-shop .epg-catalog-products .epg-card:hover,
body.tax-product_cat .epg-catalog-products .epg-card:hover,
body.tax-product_tag .epg-catalog-products .epg-card:hover {
    box-shadow: 0 10px 26px rgba(19,34,49,.11);
    transform: translateY(-2px);
}
.epg-catalog-products .epg-card__media {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #fafafa;
}
.epg-catalog-products .epg-card__media img.epg-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform .25s ease;
}
.epg-catalog-products .epg-card:hover .epg-card__media img.epg-card__img { transform: scale(1.025); }
.epg-catalog-products .epg-card__body {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 12px 0 0 !important;
}
.epg-catalog-products .epg-card__title,
.epg-catalog-products .epg-card__title a {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
    color: #182331 !important;
    text-decoration: none !important;
}
.epg-catalog-products .epg-card__title { margin: 0 0 7px !important; }
.epg-catalog-products .epg-card__price,
.epg-catalog-products .epg-card__price .amount,
.epg-catalog-products .epg-card__price .woocommerce-Price-amount {
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    color: #121c2a !important;
}
.epg-catalog-products .epg-card__price { margin: 0 0 12px !important; }
.epg-catalog-products .epg-card__actions { margin-top: auto !important; width: 100%; padding-top: 9px; }
.epg-catalog-products .epg-card__actions .epg-card__button,
.woocommerce .epg-catalog-products .epg-card__actions a.button.epg-card__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    min-height: 39px !important;
    padding: 9px 10px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #1d2b38 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.epg-catalog-products .epg-card__actions .epg-card__button:hover,
.woocommerce .epg-catalog-products .epg-card__actions a.button.epg-card__button:hover { background: #34485b !important; }
.epg-category-showcase .epg-category-tile { border: 0 !important; border-radius: 9px !important; box-shadow: 0 4px 15px rgba(20,30,40,.055); }
.epg-category-showcase .epg-category-tile__body { background: #fff; }
@media (max-width: 767px) {
    .epg-catalog-products .epg-card { padding: 8px !important; }
    .epg-catalog-products .epg-card__body { padding-top: 9px !important; }
    .epg-catalog-products .epg-card__title, .epg-catalog-products .epg-card__title a { font-size: 12px !important; }
    .epg-catalog-products .epg-card__price, .epg-catalog-products .epg-card__price .amount { font-size: 14px !important; }
    .epg-catalog-products .epg-card__actions .epg-card__button { font-size: 11px !important; min-height: 37px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .epg-catalog-products .epg-card, .epg-catalog-products .epg-card__media img.epg-card__img { transition: none !important; }
}

/* ===========================================================
   1.7.1 — MAX PRO 26 / shop cards, fully scoped
   =========================================================== */
body.woocommerce-shop .epg-catalog-products ul.products,
body.tax-product_cat .epg-catalog-products ul.products,
body.tax-product_tag .epg-catalog-products ul.products {align-items:stretch !important;row-gap:14px !important;}
.epg-catalog-products ul.products li.product {display:flex !important;flex-direction:column !important;min-width:0 !important;}
body.woocommerce-shop .epg-catalog-products ul.products li.product .epg-card,
body.tax-product_cat .epg-catalog-products ul.products li.product .epg-card,
body.tax-product_tag .epg-catalog-products ul.products li.product .epg-card {
 width:100% !important;flex:1 !important;padding:12px !important;border:1px solid #e7ebef !important;
 border-radius:9px !important;background:#fff !important;box-shadow:0 2px 14px rgba(19,32,46,.045) !important;
}
.epg-catalog-products .epg-card__media {aspect-ratio:1 / 1 !important;background:#fff !important;}
.epg-catalog-products .epg-card__media img.epg-card__img {object-fit:contain !important;}
.epg-catalog-products .epg-card__body {flex:1 !important;padding:11px 0 0 !important;}
.epg-catalog-products .epg-card__title {margin:0 0 6px !important;min-height:2.75em;}
.epg-catalog-products .epg-card__title a {font-size:13px !important;font-weight:500 !important;color:#142033 !important;}
.epg-catalog-products .epg-card__price {margin:0 0 9px !important;}
.epg-catalog-products .epg-card__price .amount {font-size:17px !important;font-weight:750 !important;color:#142033 !important;}
.epg-catalog-products .epg-card__meta {display:flex;align-items:center;gap:6px;min-height:19px;margin:0 0 7px;color:#697586;font-size:11px;line-height:1.35;}
.epg-catalog-products .epg-card__meta-icon {font-size:16px;line-height:1;}
.epg-catalog-products .epg-card__actions {margin-top:auto !important;padding-top:7px !important;}
body.woocommerce-shop .epg-catalog-products .epg-card__actions a.epg-card__button,
body.tax-product_cat .epg-catalog-products .epg-card__actions a.epg-card__button,
body.tax-product_tag .epg-catalog-products .epg-card__actions a.epg-card__button {display:flex !important;align-items:center !important;justify-content:center !important;gap:9px !important;min-height:42px !important;background:#1c2a37 !important;color:#fff !important;font-size:12px !important;font-weight:650 !important;border-radius:6px !important;text-decoration:none !important;}
.epg-catalog-products .epg-cart-icon {width:17px;height:17px;flex:none;stroke:currentColor;}
.epg-category-showcase .epg-category-tile {overflow:hidden !important;border-radius:9px !important;border:1px solid #eef0f2 !important;}
.epg-category-showcase .epg-category-tile__body {border-radius:7px !important;}
@media(max-width:767px){
 body.woocommerce-shop .epg-catalog-products ul.products li.product .epg-card,
 body.tax-product_cat .epg-catalog-products ul.products li.product .epg-card,
 body.tax-product_tag .epg-catalog-products ul.products li.product .epg-card {padding:8px !important;}
 .epg-catalog-products .epg-card__title a {font-size:12px !important;}
 .epg-catalog-products .epg-card__price .amount {font-size:14px !important;}
 .epg-catalog-products .epg-card__meta {font-size:10px;}
 .epg-catalog-products .epg-cart-icon {width:15px;height:15px;}
}

/* 1.7.2 — Contraste accesible de acciones del catálogo.
   Sobrescribe estilos de enlaces del tema sin afectar a otras zonas. */
.epg-catalog-products .epg-card__actions a.epg-card__button,
.epg-catalog-products .epg-card__actions a.epg-card__button:link,
.epg-catalog-products .epg-card__actions a.epg-card__button:visited,
.epg-catalog-products .epg-card__actions a.epg-card__button:hover,
.epg-catalog-products .epg-card__actions a.epg-card__button:focus,
.woocommerce .epg-catalog-products .epg-card__actions a.button.epg-card__button,
.woocommerce .epg-catalog-products .epg-card__actions a.button.epg-card__button:hover {
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
}
.epg-catalog-products .epg-card__actions a.epg-card__button .epg-cart-icon {
 color: #ffffff !important;
 stroke: #ffffff !important;
}

/* MAX PRO 26 v1.7.7 — Catalog composition, scoped and deliberate.
   Purchase button selectors and behavior remain from stable v1.7.4. */
@media (min-width: 768px) {
  body.woocommerce-shop .epg-catalog-products ul.products li.product .epg-card,
  body.tax-product_cat .epg-catalog-products ul.products li.product .epg-card,
  body.tax-product_tag .epg-catalog-products ul.products li.product .epg-card {
    padding: 10px !important;
  }
  .epg-catalog-products .epg-card__media {
    aspect-ratio: 1 / 1 !important;
    border-radius: 5px !important;
  }
  .epg-catalog-products .epg-card__media img.epg-card__img {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1.08);
  }
  .epg-catalog-products .epg-card:hover .epg-card__media img.epg-card__img {
    transform: scale(1.10);
  }
  .epg-catalog-products .epg-card__body { padding-top: 10px !important; }
  .epg-catalog-products .epg-card__title { min-height: 0 !important; margin-bottom: 6px !important; }
  .epg-catalog-products .epg-card__title a { font-size: 14px !important; line-height: 1.35 !important; font-weight: 550 !important; }
  .epg-catalog-products .epg-card__price { margin-bottom: 7px !important; }
  .epg-catalog-products .epg-card__price .amount,
  .epg-catalog-products .epg-card__price .woocommerce-Price-amount { font-size: 19px !important; font-weight: 700 !important; }
}
.epg-catalog-products .epg-card__actions .epg-card__button { white-space: normal !important; }
@media (prefers-reduced-motion: reduce) {
  .epg-catalog-products .epg-card,
  .epg-catalog-products .epg-card__media img.epg-card__img { transition: none !important; }
}

/* =========================================================
   1.7.8 — MAX PRO 26 CATEGORY SHOWCASE
   Alcance exclusivo: categorias superiores del catalogo.
   ========================================================= */
@media (min-width: 1025px) {
  .epg-category-showcase { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:27px; }
  .epg-category-showcase .epg-category-tile { position:relative; border:1px solid #e9edf1 !important; border-radius:9px !important; box-shadow:0 3px 14px rgba(21,35,48,.055); }
  .epg-category-showcase .epg-category-tile__media { height:150px; }
  .epg-category-showcase .epg-category-tile__body { height:57px; min-height:57px; padding:9px 14px; background:rgba(255,255,255,.98); }
  .epg-category-showcase .epg-category-tile__body strong { font-size:17px; font-weight:650; line-height:1.2; }
  .epg-category-showcase .epg-category-tile__body small { font-size:11px; color:#8793a2; }
  .epg-category-showcase .epg-category-tile__body i { width:32px; height:32px; flex-basis:32px; font-size:22px; border-color:#d6dde5; }
}
@media (min-width:768px) and (max-width:1024px) {
  .epg-category-showcase { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
  .epg-category-showcase .epg-category-tile__media { height:115px; }
  .epg-category-showcase .epg-category-tile__body { height:53px; min-height:53px; }
}
@media (max-width:767px) {
  .epg-category-showcase .epg-category-tile { flex-basis:75%; border-radius:9px !important; }
  .epg-category-showcase .epg-category-tile__media { height:140px; }
  .epg-category-showcase .epg-category-tile__body { height:56px; min-height:56px; padding:9px 12px; }
  .epg-category-showcase .epg-category-tile__body strong { font-size:15px; }
  .epg-category-showcase .epg-category-tile__body small { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .epg-category-showcase .epg-category-tile,
  .epg-category-showcase .epg-category-tile__media img { transition:none !important; transform:none !important; }
}

/* 1.7.9 — Categorias moviles compactas: 2 visibles, desplazamiento tactil */
.epg-category-pagination { display:none; }
@media (max-width:767px) {
  .epg-category-showcase {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    overflow-x:auto !important;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory !important;
    scroll-padding-inline:0;
    -webkit-overflow-scrolling:touch;
    margin:0 0 5px !important;
    padding:0 0 3px !important;
    scrollbar-width:none;
  }
  .epg-category-showcase::-webkit-scrollbar {display:none;}
  .epg-category-showcase .epg-category-tile {
    box-sizing:border-box !important;
    flex:0 0 calc((100% - 8px)/2) !important;
    width:calc((100% - 8px)/2) !important;
    min-width:0 !important;
    scroll-snap-align:start;
    border-radius:8px !important;
  }
  .epg-category-showcase .epg-category-tile__media {height:80px !important;}
  .epg-category-showcase .epg-category-tile__body {
    height:39px !important; min-height:39px !important;
    padding:5px 7px !important; gap:4px !important;
  }
  .epg-category-showcase .epg-category-tile__body strong {font-size:12px !important;line-height:1.15 !important;}
  .epg-category-showcase .epg-category-tile__body small {font-size:9px !important;}
  .epg-category-showcase .epg-category-tile__body i {
    flex:0 0 22px !important;width:22px !important;height:22px !important;font-size:16px !important;
  }
  .epg-category-pagination {display:flex;justify-content:center;align-items:center;gap:6px;min-height:15px;margin:0 0 11px;}
  .epg-category-pagination__dot {width:6px;height:6px;border-radius:20px;background:#d0d7de;transition:width .18s ease,background .18s ease;}
  .epg-category-pagination__dot.is-active {width:17px;background:#22313d;}
}

/* 1.7.10 — Compactacion superior SOLO catalogo movil.
   Mantiene Rewards independiente y conserva el slider 1.7.9. */
@media (max-width:767px) {
  body.woocommerce-shop #main > .ct-container,
  body.tax-product_cat #main > .ct-container,
  body.tax-product_tag #main > .ct-container {
    padding-top:4px !important;
  }
  body.woocommerce-shop .site-main,
  body.tax-product_cat .site-main,
  body.tax-product_tag .site-main {
    padding-top:4px !important;
  }
  .epg-catalog-ui {margin-top:0 !important;padding-top:0 !important;}
}

/* 1.7.11 — Hierarchical sidebar categories. */
.epg-filter-options--tree .epg-cat-tree{list-style:none;margin:0;padding:0}
.epg-filter-options--tree .epg-cat-row{display:flex;align-items:center;gap:3px;min-width:0}
.epg-filter-options--tree .epg-cat-link{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;text-decoration:none}
.epg-filter-options--tree .epg-cat-link span{overflow-wrap:anywhere}
.epg-filter-options--tree .epg-cat-expand{flex:0 0 28px;width:28px;height:30px;padding:0;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#475569;cursor:pointer}
.epg-filter-options--tree .epg-cat-expand:hover,.epg-filter-options--tree .epg-cat-expand:focus-visible{background:#eef1f5}
.epg-filter-options--tree .epg-cat-expand span{font-size:21px;line-height:1;transition:transform .18s}
.epg-filter-options--tree .epg-cat-expand[aria-expanded=true] span{transform:rotate(90deg)}
.epg-filter-options--tree .epg-cat-children{margin-left:11px;padding-left:10px;border-left:1px solid #e5e9ee}
.epg-filter-options--tree .epg-cat-children[hidden]{display:none!important}
.epg-filter-options--tree .epg-cat-link.is-active{font-weight:700}

/* 1.7.12 — Controles de precio y limpieza integrados en el módulo. */
.epg-filter-head-actions {display:flex;align-items:center;gap:9px;}
.epg-filter-head .epg-clear-filters--head {display:inline-block;margin:0;padding:0;background:none;border:0;font-size:11px;color:#788492;text-decoration:none;white-space:nowrap;}
.epg-filter-head .epg-clear-filters--head:hover {color:#172333;text-decoration:underline;}
.epg-price-filter--range {display:flex;flex-direction:column;align-items:stretch;gap:11px;}
.epg-price-filter--range .epg-price-sliders {height:27px;position:relative;width:100%;margin:1px 0 0;}
.epg-price-filter--range .epg-price-track {position:absolute;left:6px;right:6px;top:12px;height:4px;border-radius:9px;background:linear-gradient(to right,#e0e5ea 0 var(--epg-start),#172333 var(--epg-start) var(--epg-end),#e0e5ea var(--epg-end) 100%);}
.epg-price-filter--range input.epg-price-range {position:absolute;top:0;left:0;width:100%;height:27px;margin:0;padding:0;border:0;background:transparent;pointer-events:none;appearance:none;-webkit-appearance:none;}
.epg-price-filter--range input.epg-price-range::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;width:15px;height:15px;background:#172333;border:2px solid #fff;box-shadow:0 0 0 1px #172333;border-radius:50%;cursor:grab;pointer-events:auto;}
.epg-price-filter--range input.epg-price-range::-moz-range-thumb {width:12px;height:12px;background:#172333;border:2px solid #fff;box-shadow:0 0 0 1px #172333;border-radius:50%;cursor:grab;pointer-events:auto;}
.epg-price-filter--range input.epg-price-range--max {z-index:2;}
.epg-price-filter--range .epg-price-values {display:flex;justify-content:space-between;gap:8px;width:100%;}
.epg-price-filter--range .epg-price-values label {display:flex;align-items:center;gap:3px;font-size:10px;color:#64748b;white-space:nowrap;}
.epg-price-filter--range .epg-price-values input {width:52px;min-width:0;height:29px;padding:3px;border:1px solid #dfe4e9;border-radius:4px;text-align:center;font-size:11px;color:#172333;}
.epg-price-filter--range button[type="submit"] {width:100%;height:32px;margin:0;color:#fff;background:#172333;border:0;border-radius:4px;font-size:11px;cursor:pointer;}

/* 1.7.13 MAX PRO 26 — Controles y filtros activos; estilos dentro del módulo. */
@media (min-width: 768px) {
  .epg-catalog-layout.epg-sidebar-hidden { grid-template-columns: minmax(0,1fr) !important; }
  .epg-catalog-layout.epg-sidebar-hidden > .epg-filter-panel { display:none !important; }
  .epg-filter-toggle.is-active { border-color:#a8b6c3; background:#f4f7f9; }
}
.epg-catalog-controls { align-items:end; }
.epg-active-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 15px; font-family:Manrope,sans-serif; }
.epg-active-filters__label { font-size:11px; color:#64748b; margin-right:3px; }
.epg-active-chip { display:inline-flex; align-items:center; gap:9px; padding:6px 10px; border:1px solid #dbe3e9; border-radius:5px; color:#1e293b; background:#fff; text-decoration:none; font-size:11px; line-height:1.4; }
.epg-active-chip:hover { background:#f1f5f9; color:#142132; }
.epg-active-chip span[aria-hidden] { font-size:16px; line-height:1; }
.epg-active-clear { font-size:11px; color:#475569; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:767px) { .epg-active-filters { gap:6px; margin-bottom:10px; } .epg-active-filters__label { width:100%; } }

/* 1.7.14 — Tarjetas compactas: evita huecos flexibles entre precio y compra.
   El boton sigue dentro de la tarjeta y no se altera la foto cuadrada. */
.epg-catalog-products .epg-card__body { flex: 0 0 auto !important; }
.epg-catalog-products .epg-card__actions { margin-top: 7px !important; padding-top: 0 !important; }
.epg-catalog-products .epg-card__price { margin-bottom: 4px !important; }
.epg-catalog-products .epg-card__meta { margin-bottom: 3px !important; }

/* 1.7.15 MAX PRO 26 — Tarjetas alineadas por fila, sin alturas fijas.
   Revierte únicamente la contracción de body introducida en 1.7.14. */
.epg-catalog-products ul.products { align-items: stretch !important; }
.epg-catalog-products ul.products > li.product { align-self: stretch !important; height: 100% !important; }
.epg-catalog-products ul.products > li.product > .epg-card { height: 100% !important; display: flex !important; flex-direction: column !important; }
.epg-catalog-products .epg-card__body { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; min-height: 0; }
.epg-catalog-products .epg-card__actions { margin-top: auto !important; padding-top: 7px !important; }


/* 1.7.16 MAX PRO 26 — Jerarquia de precio y titulo, sin alterar estructura ni filtros. */
.epg-catalog-products .epg-card__title,
body.woocommerce-shop .epg-catalog-products .epg-card__title,
body.tax-product_cat .epg-catalog-products .epg-card__title,
body.tax-product_tag .epg-catalog-products .epg-card__title {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.epg-catalog-products .epg-card__price,
body.woocommerce-shop .epg-catalog-products .epg-card__price,
body.tax-product_cat .epg-catalog-products .epg-card__price,
body.tax-product_tag .epg-catalog-products .epg-card__price {
  margin: 6px 0 4px !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  color: #172333 !important;
}
.epg-catalog-products .epg-card__price .amount { font-weight: inherit; }
.epg-catalog-products .epg-card__price del,
.epg-catalog-products .epg-card__price del .amount {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #8793a0 !important;
}
@media (max-width: 767px) {
  .epg-catalog-products .epg-card__title { font-size: 12px !important; }
  .epg-catalog-products .epg-card__price { font-size: 16px !important; }
}

/* 1.7.17 — Precio visible en el importe real de WooCommerce, no solo su contenedor. */
.epg-catalog-products ul.products li.product .epg-card .epg-card__price .woocommerce-Price-amount,
.epg-catalog-products ul.products li.product .epg-card .epg-card__price .amount {
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  color: #1f2937 !important;
}
@media (max-width: 767px) {
  .epg-catalog-products ul.products li.product .epg-card .epg-card__price .woocommerce-Price-amount,
  .epg-catalog-products ul.products li.product .epg-card .epg-card__price .amount { font-size: 16px !important; }
}


/* =========================================================
   1.7.25 - Showcase de categorías: una fila permanente.
   Cuatro tarjetas visibles en escritorio, sin segunda línea.
   No afecta a la rejilla de productos ni a los relacionados.
   ========================================================= */
.epg-category-showcase-wrap { position:relative; min-width:0; }
.epg-category-arrow { display:none; }
#epg-catalog-start { scroll-margin-top:105px; }

@media (min-width:768px) {
  .epg-category-showcase-wrap > .epg-category-showcase {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:14px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
    scroll-behavior:smooth;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .epg-category-showcase-wrap > .epg-category-showcase::-webkit-scrollbar {display:none;}
  .epg-category-showcase-wrap .epg-category-tile {
    box-sizing:border-box !important;
    flex:0 0 calc((100% - 42px) / 4) !important;
    width:calc((100% - 42px) / 4) !important;
    min-width:0;
    scroll-snap-align:start;
  }
  .epg-category-showcase-wrap.is-scrollable .epg-category-arrow {
    display:grid;
    place-items:center;
    position:absolute;
    top:50%;
    z-index:2;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    padding:0;
    border:1px solid #d9e0e7;
    border-radius:50%;
    background:rgba(255,255,255,.96);
    box-shadow:0 2px 9px rgba(20,34,50,.12);
    font:500 27px/1 Arial,sans-serif;
    color:#243344;
    cursor:pointer;
  }
  .epg-category-showcase-wrap .epg-category-arrow--prev {left:7px;}
  .epg-category-showcase-wrap .epg-category-arrow--next {right:7px;}
  .epg-category-showcase-wrap .epg-category-arrow:disabled {display:none !important;}
  .epg-category-showcase-wrap .epg-category-arrow:hover:not(:disabled) {background:#f6f7f8;}
  .epg-category-showcase-wrap .epg-category-arrow:focus-visible {outline:3px solid #b99c67;outline-offset:3px;}
}
@media (min-width:768px) and (max-width:1024px) {
  .epg-category-showcase-wrap > .epg-category-showcase {gap:10px !important;}
  .epg-category-showcase-wrap .epg-category-tile {
    flex-basis:calc((100% - 30px) / 4) !important;
    width:calc((100% - 30px) / 4) !important;
  }
}
@media (max-width:767px) {
  #epg-catalog-start {scroll-margin-top:78px;}
}
@media (prefers-reduced-motion:reduce) {
  .epg-category-showcase-wrap > .epg-category-showcase {scroll-behavior:auto;}
}

/* =========================================================
   1.7.26 — Etiqueta de personalización discreta.
   No cambia tamaños, fotos, columnas ni estilo de botones.
   ========================================================= */
.epg-card__personalizable {
    position: absolute;
    z-index: 3;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid rgba(49, 57, 62, .12);
    border-radius: 5px;
    background: rgba(255, 255, 255, .94);
    color: #233241;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 1px 5px rgba(0,0,0,.07);
}
.epg-card__personalizable svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 767px) {
  .epg-card__personalizable { left: 5px; bottom: 5px; padding: 4px 5px; font-size: 9px; gap: 3px; }
  .epg-card__personalizable svg { width: 11px; height: 11px; }
}

/* El botón de personalización nunca debe heredar el carrito decorativo
   de versiones anteriores del tema/grid. Solo se muestra la cámara SVG. */
.epg-card .epg-card__button--customize::before,
.epg-card .epg-card__button--customize:not([href*="product"])::before {
    content: none !important;
    display: none !important;
}

/* 1.7.28: navegación AJAX progresiva, sin skeletons que salten de altura. */
.epg-catalog-ui.epg-is-loading .epg-catalog-products { opacity:.76; transition:opacity .12s ease; }
#epg-ajax-loading:not([hidden]) { position:fixed; left:0; top:0; z-index:2147483000; width:100%; height:3px; background:linear-gradient(90deg,#bea16a 0%,#244034 55%,#bea16a 100%); background-size:200% 100%; animation:epg-loading-slide 1s linear infinite; pointer-events:none; }
@keyframes epg-loading-slide { from{background-position:200% 0} to{background-position:0 0} }
#epg-catalog-start { scroll-margin-top:100px; }
@media (prefers-reduced-motion:reduce) {
 .epg-catalog-ui.epg-is-loading .epg-catalog-products {transition:none;}
 #epg-ajax-loading:not([hidden]) {animation:none;}
}
