/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  Child Theme de Blocksy con personalización estilo MercadoLibre
 Author:       Tu Nombre
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

:root {
    --color-primary:        #20aea8;
    --color-primary-dark:   #178a85;
    --color-primary-light:  rgba(32, 174, 168, 0.08);
    --color-primary-lighter: rgba(32, 174, 168, 0.16);
    --color-primary-focus:  rgba(32, 174, 168, 0.12);

    --color-secondary:      #00a650;
    --color-secondary-dark: #008a42;
    --color-secondary-hover: #008a42;
    --color-secondary-light: #e6f7ee;
    --color-secondary-border: #b3dfc4;

    --color-text-primary:   #262b60;
    --color-text-secondary: #3a3f6e;
    --color-text-tertiary:  #555a80;
    --color-text-muted:     #8a8fa8;
    --color-text-light:     #aaa;
    --color-text-lighter:   #bbb;

    --color-danger:         #e74c3c;
    --color-dark:           #262b60;
    --color-dark-secondary: #1e2250;

    --color-border:         #e0e0e0;
    --color-border-light:   #ebebeb;
    --color-border-lighter: #f0f0f0;
    --color-border-lightest: #f5f5f5;
    --color-bg-light:       #fafafa;
    --color-bg-lighter:     #f9f9f9;
    --color-bg-lightest:    #f5f5f5;

    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-full: 999px;

    --spacing-xs:  4px;
    --spacing-sm:  8px;
    --spacing-md:  12px;
    --spacing-lg:  16px;
    --spacing-xl:  20px;
    --spacing-2xl: 24px;

    --font-size-xs:   10px;
    --font-size-sm:   12px;
    --font-size-base: 14px;
    --font-size-md:   15px;
    --font-size-lg:   16px;
    --font-size-xl:   18px;
    --font-size-2xl:  20px;
    --font-size-3xl:  22px;
    --font-size-4xl:  36px;

    --transition-fast:    0.15s ease;
    --transition-smooth:  0.2s ease;
    --transition-default: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Futura Cyrillic ── */
@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicBook.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicDemi.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FuturaCyrillic';
    src: url('./fonts/FuturaCyrillicHeavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CTA WRAPPER — DOS BOTONES ESTILO ML
   ============================================================ */
.woo-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    margin-top: 14px !important;
    width: 100%;
}

/* Ocultar selector de cantidad nativo */
.single-product form.cart .quantity,
.single-product .quantity {
    display: none !important;
}

/* Ocultar estrellas/rating */
.single-product .woocommerce-product-rating {
    display: none !important;
}

/* Ocultar solapa de Valoraciones */
.woocommerce-tabs .reviews_tab,
#tab-reviews {
    display: none !important;
}


/* ============================================================
   PRECIO PRINCIPAL DEL PRODUCTO — estilo ML con fuente Inter
   ============================================================ */
.single-product .summary .price {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #222 !important;
    line-height: 1.1;
    margin: 6px 0 4px 0 !important;
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Inter', -apple-system, "Segoe UI", sans-serif !important;
}

/* Precio tachado — rojo visible */
.single-product .summary .price del {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #e74c3c !important;
    text-decoration: line-through !important;
    text-decoration-color: #e74c3c !important;
    text-decoration-thickness: 2px !important;
    opacity: 1 !important;
    font-family: 'Inter', sans-serif !important;
}

.single-product .summary .price del .woocommerce-Price-amount {
    color: #e74c3c !important;
}

/* Precio de oferta activo */
.single-product .summary .price ins {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #222 !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
}

/* Símbolo $ — mismo tamaño y baseline que el número */
.single-product .summary .price ins .woocommerce-Price-currencySymbol,
.single-product .summary .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-size: 26px !important;
    font-weight: 800 !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
    margin-right: 2px;
}

/* $ del precio tachado */
.single-product .summary .price del .woocommerce-Price-currencySymbol {
    font-size: 15px !important;
    font-weight: 500 !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
}

.single-product .product {
    max-width: 1100px !important;
    margin-inline: auto !important;
}

.single-product .woocommerce-product-gallery,
.single-product .ml-gallery-wrapper {
    max-width: 420px !important;
}

.single-product .product_title,
.single-product h1.product_title {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}


/* ============================================================
   META (SKU / CATEGORÍA) — inline, debajo de descripción corta
   ============================================================ */
.single-product .product_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px !important;
    color: #aaa;
    margin: 6px 0 12px 0 !important;
    padding: 6px 0 !important;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.single-product .product_meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
    font-size: 12px;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in {
    color: #aaa;
}

.single-product .product_meta span span,
.single-product .product_meta a {
    color: #888;
    font-size: 12px;
}

.single-product .product_meta a:hover {
    color: #3483fa;
    text-decoration: underline;
}


/* ============================================================
   CUOTAS MERA — Alternativa 2: Tarjetas internas
   ============================================================ */

.woo-cuotas-wrapper {
    margin: 14px 0 !important;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.woo-cuotas-titulo {
    background: #ffffff;
    border-bottom: 1px solid #edf1f6;
    padding: 12px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #7a8799 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contenedor interno con padding para las tarjetas */
.woo-cuotas-wrapper > *:not(.woo-cuotas-titulo) {
    padding: 6px 10px;
}

.cuota-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px !important;
    margin: 0 !important;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 12px;
    margin-bottom: 6px !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cuota-item:last-child {
    margin-bottom: 0 !important;
}

.cuota-item:hover {
    border-color: #d0dae6;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.cuota-item--contado {
    border-color: #d6e8ff;
    background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 100%);
}

.cuota-item--contado:hover {
    border-color: #b3d0f5;
    box-shadow: 0 4px 18px rgba(38, 43, 96, 0.10);
}

.cuota-izq {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.cuota-num {
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1;
    min-width: 28px !important;
    color: #1e2a3f;
}

.cuota-precio-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cuota-item--contado .cuota-num {
    font-size: 18px !important;
    color: #262b60;
}

.cuota-item--contado .cuota-precio--contado {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #262b60;
}

.cuota-precio-tachado {
    font-size: 12px;
    color: #b0bac6;
    text-decoration: line-through;
    margin-right: 4px;
}

.cuota-precio {
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1;
    color: #1e2a3f;
}

.cuota-por-mes {
    font-size: 11px;
    color: #8a96a4;
    align-self: flex-end;
    margin-bottom: 1px;
}

.cuota-der {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 100px;
}

.cuota-total-lbl {
    font-size: 10px;
    color: #b0bac6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cuota-total-val {
    font-size: 13px !important;
    font-weight: 700;
    color: #3d4a5c;
}

.cuota-cftea {
    font-size: 10px;
    color: #b0bac6;
    display: block;
    margin-top: 2px;
}

/* Badge 10% OFF */
.cuota-badge-off {
    display: inline-flex;
    align-items: center;
    background: #00a650;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0, 166, 80, 0.25);
}

/* Badge Sin interés */
.cuota-badge-sininteres {
    display: inline-flex;
    align-items: center;
    background: #eaf8f1;
    color: #00a650;
    border: 1px solid #c2e8d4;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 480px) {
    .woo-cuotas-wrapper > *:not(.woo-cuotas-titulo) {
        padding: 6px 8px;
    }

    .cuota-item {
        padding: 10px 12px !important;
        border-radius: 10px;
    }

    .cuota-num {
        font-size: 14px !important;
        min-width: 22px !important;
    }

    .cuota-precio {
        font-size: 14px !important;
    }

    .cuota-der {
        min-width: 85px;
    }

    .cuota-total-val {
        font-size: 12px !important;
    }
}


/* ============================================================
   BANNER DE ENVÍO
   ============================================================ */
.woo-envio-banner {
    margin-top: 8px !important;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #00a650;
    font-size: 13px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.woo-envio-banner svg {
    flex: 0 0 18px;
    color: #00a650;
}

.woo-envio-banner span {
    color: #00a650;
}


/* ============================================================
   GALERÍA ESTILO MERCADO LIBRE — miniaturas verticales izquierda
   ============================================================ */

.single-product .ml-gallery-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 420px !important;
    align-items: flex-start !important;
}

.single-product .ml-gallery-thumbs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 380px !important;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    flex-shrink: 0;
}

.single-product .ml-gallery-thumbs::-webkit-scrollbar { width: 3px; }
.single-product .ml-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.single-product .ml-thumb {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: unset !important;
    box-sizing: border-box !important;
}

.single-product .ml-thumb:hover  { border-color: #3483fa !important; }
.single-product .ml-thumb.active {
    border-color: #3483fa !important;
    box-shadow: 0 0 0 1px #3483fa !important;
}

.single-product .ml-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    max-height: unset !important;
}

.single-product .ml-main-img-wrap {
    position: relative !important;
    flex: 1 !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 380px !important;
    max-height: 380px !important;
    min-height: unset !important;
    border: 1px solid #ebebeb !important;
    cursor: crosshair !important;
}

.single-product .ml-main-img-wrap .ml-main-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: opacity 0.2s ease !important;
    will-change: transform !important;
    max-width: 90% !important;
    max-height: 360px !important;
}

.single-product .ml-main-img-wrap.ml-zooming {
    cursor: crosshair !important;
}

.single-product .ml-main-img.fade { opacity: 0 !important; }

/* Badge de descuento */
.single-product .ml-sale-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 9 !important;
}

@media (hover: none) {
    .single-product .ml-main-img-wrap {
        cursor: zoom-in !important;
    }
}

/* RESPONSIVE galería — mobile vuelve a layout vertical */
@media (max-width: 767px) {
    .single-product .ml-gallery-wrapper {
        flex-direction: column !important;
    }

    .single-product .ml-gallery-thumbs {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: unset !important;
        width: 100% !important;
    }

    .single-product .ml-thumb {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 58px !important;
    }

    .single-product .ml-main-img-wrap {
        height: 300px !important;
        max-height: 300px !important;
        width: 100% !important;
    }

    .single-product .ml-main-img {
        max-height: 280px !important;
    }
}

@media (max-width: 480px) {
    .cuota-num {
        font-size: 18px;
    }
    .cuota-precio {
        font-size: 15px;
    }
}


/* ============================================================
   BREADCRUMB — truncar título largo con CSS
   ============================================================ */
.woocommerce-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
    color: #999;
    gap: 2px;
}

.woocommerce-breadcrumb > span:last-child,
.woocommerce-breadcrumb a:last-of-type {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .woocommerce-breadcrumb > span:last-child,
    .woocommerce-breadcrumb a:last-of-type {
        max-width: 140px;
    }
}


/* ============================================================
   CARDS DE PRODUCTO — GRILLA ESTILO ML
   ============================================================ */

ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.ml-product-card {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #ebebeb !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: box-shadow 0.2s ease !important;
    padding: 0 !important;
}

.ml-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
}

.ml-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ml-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    display: block !important;
}

.ml-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #00a650 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 164, 168, 0.25) !important;
    letter-spacing: 0.5px !important;
    z-index: 2;
}

.ml-card-info {
    padding: 6px 6px 2px 6px !important;
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    flex: 1;
}

.ml-card-title {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ml-card-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
}

.ml-card-price-old {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
}

.ml-card-price-old .woocommerce-Price-currencySymbol,
.ml-card-price-current .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    vertical-align: baseline !important;
}

.ml-card-price-current {
    font-size: 15px !important;
    font-weight: 700;
    color: #222;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1;
}

.ml-card-cuota {
    font-size: 10px !important;
    color: #00a650 !important;
    margin: 2px 0 0 0 !important;
}

.ml-card-cuota strong {
    color: #00a650;
}

.ml-card-cta {
    padding: 4px 6px 6px 6px !important;
}

.ml-card-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #3483fa !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
}

.ml-card-btn:hover {
    background: #2968c8 !important;
    color: #FFFFFF !important;
}

/* Responsive cards */
@media (max-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 767px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .ml-card-price-current {
        font-size: 18px;
    }

    .ml-card-title {
        font-size: 13px !important;
    }

    .ml-card-cuota {
        font-size: 11px !important;
    }

    .ml-card-btn {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ml-card-info {
        padding: 8px 8px 4px 8px;
    }

    .ml-card-cta {
        padding: 6px 8px 8px 8px;
    }
}


/* ============================================================
   CARRITO ESTILO MERCADO LIBRE
   ============================================================ */

.woocommerce-cart .ml-cart-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 24px !important;
    align-items: start !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

.ml-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    overflow: hidden;
}

.ml-cart-item {
    display: grid !important;
    grid-template-columns: 100px 1fr auto !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
}

.ml-cart-item:last-of-type {
    border-bottom: none !important;
}

.ml-cart-item-img {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.ml-cart-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px;
}

.ml-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ml-cart-item-title {
    font-size: 15px;
    color: #333;
    line-height: 1.3;
}

.ml-cart-item-title a {
    color: #333 !important;
    text-decoration: none !important;
}

.ml-cart-item-title a:hover {
    color: #3483fa !important;
}

.ml-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ml-cart-remove {
    font-size: 12px !important;
    color: #3483fa !important;
    text-decoration: none !important;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.ml-cart-remove:hover {
    text-decoration: underline !important;
}

.ml-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    height: 32px;
    background: #fff;
}

.ml-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: none !important;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
    padding: 0 !important;
}

.ml-qty-btn:hover:not(:disabled) {
    background: #f5f5f5 !important;
    color: #3483fa;
}

.ml-qty-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* RESTAURAR interacción en cupón WooCommerce */
.woocommerce-cart .showcoupon,
.woocommerce .showcoupon,
.cart-collaterals .showcoupon,
.coupon-toggle,
a.showcoupon {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.ml-qty-input {
    width: 40px !important;
    height: 32px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}

.ml-qty-input::-webkit-inner-spin-button,
.ml-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ml-cart-item-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
    font-family: 'Inter', sans-serif !important;
    white-space: nowrap;
    text-align: right;
    min-width: 100px;
}

/* Cupón */
.ml-coupon-wrapper {
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.ml-coupon-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: none !important;
    border: none !important;
    color: #3483fa !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-weight: 500;
}

.ml-coupon-toggle svg {
    transition: transform 0.2s ease;
}

.ml-coupon-toggle.active svg {
    transform: rotate(180deg);
}

.ml-coupon-fields {
    margin-top: 12px;
}

.ml-coupon-fields form {
    display: flex;
    gap: 8px;
}

.ml-coupon-input {
    flex: 1;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fafafa !important;
    transition: border-color 0.15s ease !important;
}

.ml-coupon-input:focus {
    border-color: #3483fa !important;
    background: #fff !important;
}

.ml-coupon-btn {
    background: #fff !important;
    border: 1.5px solid #3483fa !important;
    color: #3483fa !important;
    border-radius: 6px !important;
    padding: 9px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap;
    transition: background 0.15s ease !important;
}

.ml-coupon-btn:hover {
    background: rgba(52,131,250,0.08) !important;
}

/* Resumen de compra */
.ml-cart-summary {
    position: sticky;
    top: 24px;
}

.ml-cart-summary-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ml-summary-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 0 4px 0 !important;
    font-family: 'Inter', sans-serif !important;
    border: none !important;
    padding: 0 !important;
}

.ml-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
}

.ml-summary-row span:last-child {
    font-weight: 500;
}

.ml-discount {
    color: #00a650 !important;
    font-weight: 600 !important;
}

.ml-summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 2px 0;
}

.ml-summary-total {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

.ml-summary-total span:last-child {
    font-size: 22px !important;
    font-family: 'Inter', sans-serif !important;
    color: #222 !important;
}

.ml-coupon-ref-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #3483fa !important;
    text-decoration: none !important;
}

.ml-coupon-ref-link:hover {
    text-decoration: underline !important;
}


/* ============================================================
   SLIDER DE PRODUCTOS RELACIONADOS
   ============================================================ */
.ml-related-slider-wrapper {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 0 16px 40px 16px;
}

.ml-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ml-related-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    border: none !important;
    padding: 0 !important;
}

.ml-slider-arrows {
    display: flex;
    gap: 8px;
}

.ml-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    padding: 0 !important;
}

.ml-arrow:hover {
    border-color: #3483fa !important;
    color: #3483fa;
    box-shadow: 0 2px 8px rgba(52,131,250,0.15);
}

.ml-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.ml-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.ml-slider-track {
    display: flex;
    gap: 12px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.ml-slider-card {
    flex: 0 0 calc(20% - 10px);
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.ml-slider-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.ml-slider-card-link {
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ml-slider-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-slider-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px;
}

.ml-slider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6900;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}

.ml-slider-card-info {
    padding: 10px 10px 6px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ml-slider-title {
    font-size: 13px !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ml-slider-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
}

.ml-slider-price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.ml-slider-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.ml-slider-card-cta {
    padding: 8px 10px 10px 10px;
}

.ml-slider-add-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #3483fa !important;
    color: #fff !important;
    border: 1.5px solid #20aea8 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
}

.ml-slider-add-btn:hover {
    background: #2968c8 !important;
    color: #fff !important;
}


/* ============================================================
   RESPONSIVE CARRITO + SLIDER
   ============================================================ */
@media (max-width: 900px) {
    .woocommerce-cart .ml-cart-wrapper {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px !important;
    }

    .ml-cart-summary {
        position: static;
    }

    .ml-cart-summary { order: -1; }

    .ml-slider-card {
        flex: 0 0 calc(33.333% - 8px);
    }
}

@media (max-width: 767px) {
    .ml-cart-item {
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto !important;
    }

    .ml-cart-item-price {
        grid-column: 2 !important;
        font-size: 16px !important;
        text-align: left !important;
    }

    .ml-cart-item-img {
        width: 80px;
        height: 80px;
    }

    .ml-slider-card {
        flex: 0 0 calc(50% - 6px);
    }

    .ml-related-title {
        font-size: 17px !important;
    }
}

@media (max-width: 480px) {
    .ml-cart-item {
        padding: 14px !important;
        gap: 12px !important;
    }

    .ml-cart-summary-card {
        padding: 18px;
    }
}


/* ============================================================
   CHECKOUT — FINANCIACIÓN MERA
   ============================================================ */

.mera-financiacion-wrapper {
    padding: 4px 0 8px 0;
}

.mera-desc {
    font-size: 14px !important;
    color: #555 !important;
    margin-bottom: 16px !important;
    line-height: 1.5;
}

.mera-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    display: block;
}

.mera-cuotas-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mera-cuota-option {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    position: relative;
}

.mera-cuota-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mera-cuota-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mera-cuota-option input[type="radio"]:checked + .mera-cuota-card {
    border-color: #3483fa;
    background: rgba(52, 131, 250, 0.04);
}

.mera-cuota-option:hover .mera-cuota-card {
    border-color: #3483fa;
}

.mera-cuotas-num {
    font-size: 22px;
    font-weight: 800;
    color: #3483fa;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.mera-cuotas-monto {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    font-family: 'Inter', sans-serif;
}

.mera-cuotas-monto small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
}

.mera-cuotas-total {
    font-size: 12px;
    color: #888;
    text-align: right;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mera-cuotas-total small {
    display: block;
    font-size: 11px;
    color: #aaa;
}

.mera-sin-recargo {
    color: #00a650 !important;
    font-weight: 600 !important;
}

.mera-afiliado-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.mera-input {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    outline: none !important;
    transition: border-color 0.15s ease !important;
    background: #fff !important;
}

.mera-input:focus {
    border-color: #3483fa !important;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.12) !important;
}

.mera-input-hint {
    font-size: 12px !important;
    color: #999 !important;
}

@media (max-width: 480px) {
    .mera-cuota-card {
        grid-template-columns: 48px 1fr;
        gap: 8px;
        padding: 12px;
    }

    .mera-cuotas-total {
        display: none;
    }

    .mera-cuotas-num {
        font-size: 18px;
    }

    .mera-cuotas-monto {
        font-size: 14px;
    }
}


/* ============================================================
   EXCERPT — Descripción corta del producto, estilo card ML
   ============================================================ */
.single-product .woocommerce-product-details__short-description {
    background: #fff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin: 8px 0 12px 0 !important;
    font-size: 13px !important;
    color: #444 !important;
    line-height: 1.6 !important;
}

.single-product .woocommerce-product-details__short-description > p {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #444 !important;
}

.single-product .woocommerce-product-details__short-description > p::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233483fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.single-product .woocommerce-product-details__short-description > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.single-product .woocommerce-product-details__short-description > ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #444 !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    line-height: 1.5 !important;
}

.single-product .woocommerce-product-details__short-description > ul li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.single-product .woocommerce-product-details__short-description > ul li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300a650' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.single-product .woocommerce-product-details__short-description strong,
.single-product .woocommerce-product-details__short-description b {
    color: #222 !important;
    font-weight: 600 !important;
}

/* ============================================================
   HERO — Tienda MERA
   ============================================================ */

.mera-hero *,
.mera-hero *::before,
.mera-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mera-hero {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    width: 100%;
    font-family: inherit;
}

.mera-hero__inner {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: center;
}

/* ---- Badge ---- */

.mera-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eaf7f6;
    color: #20aea8;
    border: 1px solid #b2e0de;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.mera-badge__dot {
    width: 6px;
    height: 6px;
    background: #20aea8;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Título ---- */
.entry-header {
	margin: 32px 0 14px !important;   /* 32px arriba, 14px abajo */
}

.mera-hero h1,
.mera-hero__content h1 {
    font-size: clamp(20px, 1.6vw, 30px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #1a1a2e !important;
    margin: 32px 0 14px !important;   /* 32px arriba, 14px abajo */
    white-space: nowrap;
}

/* ---- Buscador ---- */

.mera-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mera-search input[type="search"] {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    padding: 0 12px;
    font-size: 13px;
    color: #111827;
    outline: none;
    min-width: 0;
    box-shadow: none;
    -webkit-appearance: none;
}

.mera-search input[type="search"]:focus {
    border-color: #20aea8;
    box-shadow: 0 0 0 3px rgba(32, 174, 168, .12);
}

.mera-search input[type="search"]::placeholder {
    color: #9ca3af;
}

.mera-search__btn {
    height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #4884F2;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.mera-search__btn:hover {
    background: #0451CD;
}

/* ---- Chips ---- */

.mera-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mera-chips a {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all .2s;
}

.mera-chips a:hover {
    background: #eaf7f6;
    border-color: #b2e0de;
    color: #20aea8;
}

/* ---- Card lateral ---- */

.mera-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.mera-info-card__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
}

.mera-info-card__item:last-child {
    border-bottom: none;
}

.mera-icon-wrap {
    width: 28px;
    height: 28px;
    background: #e0f4f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0c8a97;
    font-size: 14px;
}

.mera-info-card__item strong {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    line-height: 1.35;
}

.mera-wa-link {
    text-decoration: none !important;
    color: inherit;
    display: contents;
}

.mera-wa-link strong {
    color: #20aea8 !important;
}

.mera-wa-link:hover strong {
    color: #178a85 !important;
}

/* ---- Responsive 580px ---- */

@media (max-width: 580px) {
    .mera-hero {
        padding: 16px;
    }

    .mera-hero__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mera-hero__side {
        order: -1;
    }

    .mera-info-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mera-info-card__item {
        border-bottom: none;
        border-right: 1px solid #f3f4f6;
    }

    .mera-info-card__item:last-child {
        border-right: none;
        grid-column: span 1;
    }

    .mera-info-card__item:nth-child(2) {
        border-right: 1px solid #f3f4f6;
    }

    .mera-hero h1,
    .mera-hero__content h1 {
        font-size: 16px !important;
        white-space: normal;
    }
}

/* ---- Responsive 380px ---- */

@media (max-width: 380px) {
    .mera-info-card {
        display: flex;
        flex-direction: column;
    }

    .mera-info-card__item {
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
    }

    .mera-info-card__item:last-child {
        border-bottom: none;
    }
}

/* Dropdown buscador AJAX */
.mera-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #d9e4ef;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 41, 66, 0.10);
    padding: 8px;
    display: none;
    z-index: 50;
}

.mera-search-results.active { display: block; }

.mera-search-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
}

.mera-search-item:hover { background: #f7fbf8; }

.mera-search-item img {
    width: 56px; height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f7f7;
}

.mera-search-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mera-search-item__title {
    font-size: 14px;
    line-height: 1.35;
    color: #1c2f43;
    font-weight: 600;
}

.mera-search-item__price {
    font-size: 13px;
    color: #20aea8;
    font-weight: 700;
}

.mera-search-empty {
    padding: 14px;
    font-size: 14px;
    color: #667789;
}

/* Responsive hero */
@media (max-width: 999px) {
    .mera-shop-hero__inner {
        flex-direction: column;
        padding: 22px;
    }
    .mera-shop-hero__content h1 {
        max-width: 12ch;
        font-size: clamp(34px, 7vw, 46px);
    }
}

@media (max-width: 768px) {
    .mera-shop-hero {
        padding: 28px 20px !important;
        border-radius: 12px !important;
    }

    .mera-shop-hero__inner {
        flex-direction: column;
        gap: 24px;
    }

    .mera-shop-hero__side {
        width: 100%;
    }

    .mera-shop-hero__content h1 {
        font-size: 28px !important;
    }

    .mera-shop-search {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .mera-shop-search__box {
        width: 100% !important;
        min-width: 0 !important;
    }

    .mera-shop-search__box input,
    .mera-shop-search__box input[type="search"] {
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
        border-right: 1px solid #e5e7eb !important;
        font-size: 16px !important;
    }

    .mera-shop-search button,
    .mera-shop-search button[type="submit"] {
        width: 100% !important;
        border-radius: 8px !important;
        padding: 14px !important;
        font-size: 15px !important;
    }

    .mera-shop-chips {
        gap: 6px;
    }

    .mera-shop-chips a {
        font-size: 12px !important;
        padding: 5px 12px !important;
    }

    .mera-shop-info-card {
        padding: 0 16px !important;
    }
}

@media (max-width: 640px) {
    .mera-shop-hero {
        padding: 20px 16px !important;
    }
    .mera-shop-hero__content h1 {
        max-width: none;
        font-size: 34px;
        line-height: 1.02;
    }
    .mera-shop-hero__content p { font-size: 15px; }
    .mera-info-item { padding: 14px 0; }
    .mera-info-item strong,
    .mera-info-link { font-size: 13px; }
    .mera-info-item span,
    .mera-info-subtext { font-size: 12px; }
}


/* ============================================================
   SERVICIOS MERA — grilla informativa
   ============================================================ */

.mera-servicios {
    margin: 40px 0;
}

.mera-servicios__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mera-servicio-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mera-servicio-card:hover {
    box-shadow: 0 4px 16px rgba(32, 174, 168, 0.10);
    border-color: #c2e8e6;
}

.mera-servicio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #e0f4f3;
    border-radius: 10px;
    color: #20aea8;
}

.mera-servicio-icon svg {
    width: 22px;
    height: 22px;
    color: #20aea8;
}

.mera-servicio-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mera-servicio-body h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #262b60 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.mera-servicio-body p {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .mera-servicios__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mera-servicios__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .mera-servicio-card {
        padding: 18px 16px;
    }
}


/* ============================================================
   MINI CART DROPDOWN — Paleta MERA
   ============================================================ */

.ct-cart-content,
.blocksy-mini-cart-items,
[data-id="cart-flyout"] .ct-cart-content {
    background: #ffffff !important;
    border: 1px solid #e4e8ef !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(38, 43, 96, 0.12) !important;
    padding: 0 !important;
    overflow: hidden !important;
    min-width: 340px !important;
}

.woocommerce-mini-cart.cart_list {
    padding: 8px 12px !important;
    margin: 0 !important;
    list-style: none !important;
    max-height: 340px !important;
    overflow-y: auto !important;
}

.woocommerce-mini-cart.cart_list::-webkit-scrollbar {
    width: 4px;
}
.woocommerce-mini-cart.cart_list::-webkit-scrollbar-thumb {
    background: #d0d6e0;
    border-radius: 99px;
}

.woocommerce-mini-cart-item.mini_cart_item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 6px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    border-radius: 0 !important;
    position: relative !important;
    background: transparent !important;
}

.woocommerce-mini-cart-item.mini_cart_item:last-child {
    border-bottom: none !important;
}

.woocommerce-mini-cart-item.mini_cart_item:hover {
    background: #f7f9fc !important;
    border-radius: 8px !important;
}

.woocommerce-mini-cart-item.mini_cart_item .remove_from_cart_button {
    position: absolute !important;
    top: 8px !important;
    right: 6px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #c8cfd8 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    z-index: 1 !important;
}

.woocommerce-mini-cart-item.mini_cart_item .remove_from_cart_button:hover {
    background: #fef2f2 !important;
    color: #e74c3c !important;
}

.woocommerce-mini-cart-item.mini_cart_item img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 1px solid #eef0f4 !important;
    background: #f9fafb !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.woocommerce-mini-cart-item.mini_cart_item > a:not(.remove_from_cart_button) {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #262b60 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding-right: 24px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.woocommerce-mini-cart-item.mini_cart_item > a:not(.remove_from_cart_button):hover {
    color: #20aea8 !important;
}

.woocommerce-mini-cart-item.mini_cart_item .quantity {
    font-size: 12px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.woocommerce-mini-cart-item.mini_cart_item .quantity .woocommerce-Price-amount {
    color: #262b60 !important;
    font-weight: 700 !important;
    padding: 10px 0px;
    font-size: 20px !important;
}

.woocommerce-mini-cart__total.total {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    border-top: 1px solid #eef0f4 !important;
    background: #f9fafb !important;
}

.woocommerce-mini-cart__total.total strong {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount,
.woocommerce-mini-cart__total .woocommerce-Price-amount bdi,
.woocommerce-mini-cart__total .woocommerce-Price-amount span {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #262b60 !important;
}


/* ============================================================
   EMPTY CART
   ============================================================ */

.mera-cart-vacio {
    padding: 10px 0 40px;
}

.mera-cart-vacio__msg {
    font-size: 15px !important;
    color: #262b60 !important;
    font-weight: 500 !important;
    margin-bottom: 28px !important;
    padding: 16px 20px !important;
    background: #e0f4f3 !important;
    border-left: 4px solid #20aea8 !important;
    border-radius: 8px !important;
    line-height: 1.5 !important;
}

.cart-empty.woocommerce-info {
    display: none !important;
}


/* ============================================================
   CATEGORY HERO — Páginas de categoría MERA
   ============================================================ */

.mera-cat-hero {
    background: linear-gradient(135deg, #f0f9f8 0%, #e8f4f3 100%);
    border-bottom: 1px solid #d0e8e6;
    margin-bottom: 32px;
    padding: 36px 0 32px;
}

.mera-cat-hero__inner {
	max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mera-cat-hero__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.mera-cat-breadcrumb {
    font-size: 13px !important;
    color: #20aea8 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.mera-cat-breadcrumb:hover {
    color: #178a85 !important;
}

.mera-cat-breadcrumb__sep {
    font-size: 13px;
    color: #9ca3af;
}

.mera-cat-breadcrumb__current {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.mera-cat-hero__title {
    font-size: clamp(24px, 3vw, 36px) !important;
    font-weight: 800 !important;
    color: #262b60 !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
}

.mera-cat-hero__bajada {
    font-size: 14px !important;
    color: #4b5563 !important;
    line-height: 1.65 !important;
    margin: 0 0 16px !important;
}

.mera-cat-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mera-cat-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid #c2e4e2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #178a85;
}

.mera-cat-tag--count {
    background: #262b60;
    border-color: #262b60;
    color: #ffffff;
}

.tax-product_cat .hero-section,
.tax-product_cat .entry-header {
    display: none !important;
}

@media (max-width: 640px) {
    .mera-cat-hero {
        padding: 24px 0 20px;
    }
}


/* ============================================================
   BÚSQUEDA — Sin resultados
   ============================================================ */

.mera-search-no-results {
    text-align: center;
    padding: 60px 24px;
    max-width: 560px;
    margin: 0 auto;
}

.mera-search-no-results__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    color: #c5c8d6;
}

.mera-search-no-results h2 {
    font-size: clamp(18px, 2.5vw, 24px) !important;
    font-weight: 700 !important;
    color: #262b60 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

.mera-search-no-results h2 em {
    font-style: normal;
    color: #20aea8;
}

.mera-search-no-results > p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 28px;
}

.mera-search-no-results__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.mera-search-btn-primary {
    background: #4884F2;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s;
}

.mera-search-btn-primary:hover {
    background: #0451CD;
}

.mera-search-btn-secondary {
    background: #ffffff;
    color: #4884F2 !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s, background 0.2s;
}

.mera-search-btn-secondary:hover {
    border-color: #20aea8;
    background: #f0f9f8;
}


/* ============================================================
   HEADER — MENÚ Y CARRITO
   ============================================================ */

.ct-main-header .ct-menu > li > a,
.ct-header .ct-menu > li > a {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
}

.ct-main-header .ct-menu > li > a:hover,
.ct-main-header .ct-menu > li.current-menu-item > a {
    color: var(--color-primary) !important;
}

.ct-header-cart .cart-count,
[data-id="cart"] .cart-count {
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    padding: 0 5px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
}

.ct-header-cart {
    position: relative;
}


/* ============================================================
   CARRITO EN MENÚ MOBILE
   ============================================================ */
.mera-mobile-cart-item a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    padding: 12px 0 !important;
    text-decoration: none !important;
}

.mera-mobile-cart-item a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

.mera-mobile-cart-item svg {
    flex-shrink: 0;
    color: #fff;
    width: 22px !important;
    height: 22px !important;
}

.mera-mobile-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
    margin-left: auto;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}


/* ============================================================
   BADGE DE OFERTA PROPIO — MERA
   ============================================================ */

.mera-badge-oferta {
    display: inline-block;
    background: #00a650 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 8px rgba(0, 164, 168, 0.25) !important;
    z-index: 9;
}

ul.products li.product .mera-badge-oferta {
    position: absolute;
    top: 8px;
    left: 8px;
}

.mera-badge-oferta--single {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 18px !important;
    padding: 6px 14px !important;
    box-shadow: 0 4px 10px rgba(0, 164, 168, 0.3) !important;
    z-index: 99;
}


/* ============================================================
   INPUT DE CANTIDAD — CARRITO (.ml-qty-display)
   ============================================================ */

.ml-qty-display {
    width: 64px !important;
    height: 44px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 0 8px !important;
    border: 1.5px solid #D0D9E4 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #0F2942 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    -moz-appearance: textfield !important;
}

.ml-qty-display::-webkit-inner-spin-button,
.ml-qty-display::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.ml-qty-display:focus {
    outline: none !important;
    border-color: #00A4A8 !important;
    box-shadow: 0 0 0 3px rgba(0, 164, 168, 0.15) !important;
}


/* ============================================================
   BOTONES +/- CANTIDAD — CARRITO
   ============================================================ */

.woocommerce-cart .quantity,
td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.mera-qty-btn {
    width: 36px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #0F2942 !important;
    background: #F0F4F8 !important;
    border: 1.5px solid #D0D9E4 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 180ms ease !important;
    user-select: none !important;
    padding: 0 !important;
}

.mera-qty-btn:hover {
    background: #00A4A8 !important;
    border-color: #00A4A8 !important;
    color: #fff !important;
}

.mera-qty-btn:active {
    transform: scale(0.94) !important;
}

.mera-qty-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}


/* ============================================================
   CHECKOUT — Order review compacto
   ============================================================ */

.woocommerce-checkout #order_review .shop_table thead {
    display: none !important;
}

.woocommerce-checkout #order_review .shop_table tbody tr td,
.woocommerce-checkout #order_review .shop_table tfoot tr td,
.woocommerce-checkout #order_review .shop_table tfoot tr th {
    padding: 6px 8px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.woocommerce-checkout #order_review .cart_item .product-name {
    font-size: 13px !important;
    font-weight: 500 !important;
}

.woocommerce-checkout #order_review .product-quantity {
    color: #999 !important;
    font-size: 12px !important;
}

.woocommerce-checkout #order_review .order-total td {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    margin-bottom: 8px !important;
}


/* ============================================================
   OCULTAR BOTÓN "VER CARRITO" NATIVO DE WOOCOMMERCE
   ============================================================ */
a.added_to_cart.wc-forward {
    display: none !important;
}


/* ============================================================
   TOAST AGREGADO AL CARRITO
   ============================================================ */
.mera-cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    background: #0f2942;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 41, 66, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.mera-cart-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mera-cart-toast__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
}

.mera-cart-toast__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mera-cart-toast__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

/* Texto secundario oculto — info ya visible en el título */
.mera-cart-toast__text {
    display: none !important;
}

.mera-cart-toast__link {
    margin-left: auto;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #7dc1ff !important;
    text-decoration: none !important;
    flex-shrink: 0;
}

.mera-cart-toast__link:hover {
    color: #fff !important;
}

@media (max-width: 640px) {
    .mera-cart-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        min-width: 0;
        max-width: none;
    }
}


/* ============================================================
   OCULTAR ENCABEZADOS H1 EN PÁGINAS ESPECÍFICAS
   ============================================================ */
.page-id-7 .entry-header,
.page-id-2506 .entry-header,
.page-id-19 .entry-header,
.page-id-2271 .entry-header,
.page-id-2285 .entry-header {
    display: none !important;
}
/* ============================================================
   BOTONES CTA — Ficha de producto
   ============================================================ */

/* Botón COMPRAR AHORA */
.woo-btn-buy-now {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: #3483fa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
}

.woo-btn-buy-now:hover {
    background: #2968c8 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Botón AGREGAR AL CARRITO */
.woo-btn-add-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: #fff !important;
    color: #3483fa !important;
    border: 1.5px solid #3483fa !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
}

.woo-btn-add-cart:hover {
    background: rgba(52, 131, 250, 0.06) !important;
    color: #2968c8 !important;
    border-color: #2968c8 !important;
    text-decoration: none !important;
}

/* Estado cargando AJAX */
.woo-btn-add-cart.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* Estado agregado */
.woo-btn-add-cart.added {
    background: #e8f7ee !important;
    color: #00a650 !important;
    border-color: #00a650 !important;
}


/* ============================================================
   BOTÓN FINALIZAR COMPRA — Carrito (ml-checkout-btn)
   ============================================================ */

.ml-checkout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 15px 20px !important;
    background: #3483fa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
}

.ml-checkout-btn:hover {
    background: #2968c8 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.ml-checkout-btn:active {
    transform: translateY(0) !important;
}


/* ============================================================
   BOTÓN VOLVER A LA TIENDA — debajo del checkout
   ============================================================ */

.ml-back-to-shop {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 11px 20px !important;
    background: transparent !important;
    color: #555 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    line-height: 1.3 !important;
}

.ml-back-to-shop:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
    color: #333 !important;
    text-decoration: none !important;
}

.ml-back-to-shop svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
}


/* ============================================================
   ÍCONO CARRITO HEADER — tamaño
   ============================================================ */
.ct-header-cart svg,
[data-id="cart"] svg {
    width: 28px !important;
    height: 28px !important;
}

/* ============================================================
   CARRITO — Título del producto
   ============================================================ */

.ml-cart-item-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.01em !important;
}


/* ============================================================
   CARRITO — Botón eliminar producto
   ============================================================ */

.ml-cart-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    background: transparent !important;
    color: #999 !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin-top: 4px !important;
}

.ml-cart-remove:hover {
    background: #fff0f0 !important;
    color: #e53e3e !important;
    text-decoration: none !important;
}

.ml-cart-remove:hover svg {
    stroke: #e53e3e !important;
}

.ml-cart-remove svg {
    width: 13px !important;
    height: 13px !important;
    stroke: #bbb !important;
    flex-shrink: 0 !important;
    transition: stroke 0.15s ease !important;
}

.ml-cart-remove span {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* RESTAURAR + ESTILIZAR botón Volver a la tienda */
.woocommerce-cart .return-to-shop {
    display: block !important;
    margin-top: 12px !important;
}

.woocommerce-cart .return-to-shop .button,
.woocommerce-cart .return-to-shop a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 11px 20px !important;
    background: transparent !important;
    color: #555 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.woocommerce-cart .return-to-shop .button:hover,
.woocommerce-cart .return-to-shop a:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
    color: #333 !important;
}

/* ============================================================
   SECCIÓN LOGOS / MARCAS — versión final con logos bien visibles
   ============================================================ */
.mera-logos-section {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.mera-logos-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.mera-logos-divider {
    width: 70px;
    height: 3px;
    background: #20aea8;
    margin: 0 auto 48px;
    border-radius: 2px;
}

/* ── DESKTOP: 5 logos con tamaño fijo garantizado ── */
.mera-logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 8px;
    max-width: 1300px;
    margin: 0 auto;
}

.mera-logo-item {
    width: 220px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.mera-logo-item:hover {
    opacity: 1;
}

.mera-logo-item img {
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.2s ease;
}

.mera-logo-item:hover img {
    filter: grayscale(0%);
}

/* ── TABLET: logos un poco más chicos ── */
@media (max-width: 900px) {
    .mera-logo-item {
        width: 160px;
        height: 100px;
    }
}

@media (max-width: 540px) {
    .mera-logos-section {
        padding: 36px 12px;
    }

    .mera-logos-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* Fila 1: primeros 3 logos */
    .mera-logos-grid::before {
        content: none;
    }

    .mera-logo-item {
        width: 33.333%;
        height: 80px;
        padding: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Agrupar con JS no es necesario — usamos wrapping manual */
    .mera-logos-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Los primeros 3 ocupan 1/3 cada uno → fila completa */
    .mera-logo-item:nth-child(1),
    .mera-logo-item:nth-child(2),
    .mera-logo-item:nth-child(3) {
        flex: 0 0 33.333%;
    }

    /* Los últimos 2 ocupan 1/3 pero se centran solos */
    .mera-logo-item:nth-child(4),
    .mera-logo-item:nth-child(5) {
        flex: 0 0 33.333%;
    }

    /* Forzar que los últimos 2 formen su propia fila centrada */
    .mera-logo-item:nth-child(4) {
        margin-left: 16.666%; /* (100% - 33%×2) / 2 */
    }
}

.mera-logos-section {
    padding: 60px 40px;
    text-align: center;
    background: #fff;

    /* ↓ Esto rompe el contenedor padre de Blocksy */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

/* Footer — padding interno del contenido */

.ct-footer {
    padding-top: 40px !important;
    background: #fafbfc !important;
}

.ct-breadcrumbs{
    padding-top: 40px !important;

}

/* ============================================================
       MERA — Página Gracias
       ============================================================ */
    .mera-gracias-wrap {
        font-family: inherit;
        color: #2d3748;
        max-width: 860px;
        margin: 0 auto;
        padding: 40px 16px 60px;
    }

    /* Hero confirmación */
    .mera-gracias-hero {
        text-align: center;
        margin-bottom: 40px;
    }
    .mera-gracias-check {
        width: 64px;
        height: 64px;
        margin: 0 auto 20px;
    }
    .mera-gracias-check svg {
        width: 64px;
        height: 64px;
    }
    .mera-gracias-titulo {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 800;
        color: #1a2e38;
        margin: 0 0 12px;
    }
    .mera-gracias-subtitulo {
        font-size: 16px;
        color: #6b7a87;
        line-height: 1.6;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Card detalle pedido */
    .mera-gracias-card {
        background: #ffffff;
        border: 1.5px solid #e8f0ef;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 40px;
    }
    .mera-gracias-card__header {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f7fafa;
        border-bottom: 1.5px solid #e8f0ef;
        padding: 14px 20px;
        font-size: 14px;
        font-weight: 700;
        color: #1a2e38;
    }
    .mera-gracias-card__header svg { color: #20aea8; flex-shrink: 0; }
    .mera-gracias-wc-placeholder {
        padding: 24px 20px;
        font-size: 13px;
        color: #9ca3af;
        font-style: italic;
    }

    /* Próximos pasos */
    .mera-gracias-pasos {
        margin-bottom: 48px;
    }
    .mera-gracias-pasos__header {
        text-align: center;
        margin-bottom: 28px;
    }
    .mera-gracias-pasos__header h2 {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        font-weight: 700;
        color: #1a2e38;
        margin: 0;
    }
    .mera-gracias-pasos__grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .mera-gracias-paso {
        display: flex;
        align-items: flex-start;
        gap: 18px;
        background: #ffffff;
        border: 1.5px solid #e8f0ef;
        border-radius: 12px;
        padding: 20px 22px;
        transition: box-shadow 0.2s ease;
    }
    .mera-gracias-paso:hover {
        box-shadow: 0 4px 16px rgba(32,174,168,0.10);
    }
    .mera-gracias-paso__num {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: linear-gradient(135deg, #0a4f5e, #20aea8);
        color: #fff;
        font-size: 15px;
        font-weight: 800;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mera-gracias-paso__body h3 {
        font-size: 15px;
        font-weight: 700;
        color: #1a2e38;
        margin: 0 0 6px;
    }
    .mera-gracias-paso__body p {
        font-size: 14px;
        color: #5a6a75;
        line-height: 1.6;
        margin: 0;
    }

    /* Strip stats */
    .mera-gracias-strip {
        margin-bottom: 40px;
    }

    /* CTAs */
    .mera-gracias-cta {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .mera-gracias-btn-primary {
        background: #4884F2;
        color: #fff;
        padding: 12px 28px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        transition: opacity 0.2s;
    }
    .mera-gracias-btn-primary:hover { color: #fff; }
    .mera-gracias-btn-secondary {
        background: #f7fafa;
        color: #1a2e38;
        border: 1.5px solid #e8f0ef;
        padding: 12px 28px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: border-color 0.2s, background 0.2s;
    }
    .mera-gracias-btn-secondary:hover { border-color: #20aea8; background: #edf7f6; color: #1a2e38; }

    /* Responsive */
    @media (max-width: 600px) {
        .mera-gracias-wrap { padding: 28px 14px 48px; }
        .mera-qs-hero__divider { width: 100%; height: 1px; }
        .mera-gracias-paso { padding: 16px 16px; gap: 14px; }
    }

}

.woo-cuotas-wrapper {
    margin: 12px 0;
    font-size: 14px;
}

.woo-cuotas-titulo {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
}

.cuota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.cuota-row--dividida {
    border-bottom: 1px solid #eee;
}

.cuota-row__izq {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cuota-nx-precio {
    font-size: 17px;
    font-weight: 500;
    color: #111;
}

.cuota-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
    width: fit-content;
}

.cuota-pill--verde {
    background: #d4f7e4;
    color: #0A7A45;
}

.cuota-row__der {
    color: #888;
    font-size: 14px;
}

.cuota-nx-precio .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

/* ── Disclaimer IA */
.mera-ia-disclaimer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e9eaf0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.mera-ia-disclaimer__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Ocultar fila de envío completa en el carrito de Blocksy */
.woocommerce-cart .ml-summary-row:has(.woocommerce-shipping-methods),
.woocommerce-cart .ml-summary-row:has(.ct-shipping-heading) {
    display: none !important;
}

/* Fallback para navegadores sin soporte :has() */
.woocommerce-cart .ct-shipping-heading,
.woocommerce-cart #shipping_method,
.woocommerce-cart .woocommerce-shipping-destination {
    display: none !important;
}

/* Ocultar también el label "Envío" del span padre si queda vacío */
.woocommerce-cart .ml-summary-row:has(#shipping_method) {
    display: none !important;
}

/* ================================================
   MERA — Métodos de envío en el CHECKOUT
   ================================================ */

/* Ocultar heading "Shipment" en inglés */
.ct-shipping-heading {
    display: none !important;
}

/* Ocultar dirección de envío calculada */
.woocommerce-shipping-destination {
    display: none !important;
}

/* Lista de métodos */
#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* ── Card por método */
#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: border-color 0.18s, background 0.18s !important;
    margin: 0 !important;
}

#shipping_method li:hover {
    border-color: #a5b4fc !important;
    background: #f8faff !important;
}

#shipping_method li:has(input:checked) {
    border-color: #262b60 !important;
    background: #eef0fb !important;
}

/* ── Radio button custom */
#shipping_method input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 50% !important;
    background: #fff !important;
    transition: border-color 0.18s, background 0.18s !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

#shipping_method input[type="radio"]:checked {
    border-color: #262b60 !important;
    background: #262b60 !important;
    box-shadow: inset 0 0 0 3px #fff !important;
}

/* ── Label */
#shipping_method label {
    flex: 1 !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* ── Badge "Gratis" para retiro en oficina y envío gratis */
#shipping_method li:has(input[value="local_pickup:6"]) label::after,
#shipping_method li:has(input[value="free_shipping:5"]) label::after {
    content: "Gratis";
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    background: #d1fae5 !important;
    padding: 2px 10px !important;
    border-radius: 999px !important;
}

.woocommerce-checkout-payment .place-order .woocommerce-terms-and-conditions-wrapper {
    font-size: 12px !important;
}
