@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//mercalatino.shop/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.3.8") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//mercalatino.shop/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Montserrat", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #767676;
	--wd-text-font-size: 14px;
	--wd-title-font: "Josefin Sans", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 500;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Yantramanav", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Yantramanav", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 500;
	--wd-header-el-transform: none;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(247,105,4);
	--wd-alternative-color: #fbbc34;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(209,44,44);
	--btn-accented-bgcolor-hover: rgb(191,40,40);
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: rgb(30,115,190);
	background-image: url(https://mercalatino.shop/wp-content/uploads/2021/10/grocery-popup.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
	--wd-popup-padding: 15px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(187,99,36);
	background-image: none;
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-default-box-shadow-active: none;
--btn-default-bottom: 0px;
--btn-accented-bottom-active: -1px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--wd-brd-radius: 0px;
}

@media (min-width: 1222px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: rgb(30,115,190);
}

/* ==========================================================================
   1. BOTONES Y HOVER (TIENDA Y GRID)
   ========================================================================== */
/* Desactivar tooltips de hover */
button.add_to_cart_button,
button.aux-ajax-add-to-cart,
button.woolentor-cart {
    pointer-events: auto !important; 
}

button.add_to_cart_button::before,
button.aux-ajax-add-to-cart::before,
button.woolentor-cart::before {
    content: none !important;
}

/* Botones visibles y alineación */
html body .wl-product-action,
html body .aux-action-buttons,
html body .aux-card-footer,
html body .woocommerce ul.products li.product .add-to-cart-container,
html body .woocommerce ul.products li.product .button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: auto !important;
    width: 100% !important;
    position: relative !important;
}

/* Color Naranja Global para botones de productos */
html body .wl-add-to-cart-btn,
html body .aux-ajax-add-to-cart,
html body .button.add_to_cart_button {
    background-color: #f86a04 !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   2. SINGLE POST (BLOG)
   ========================================================================== */
/* Anchos de lectura */
@media (min-width: 1025px) {
    .single-post .site-content {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }
}

@media (max-width: 767px) {
    .single-post .entry-content, 
    .single-post .entry-header,
    .single-post .comments-area {
        max-width: 290px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Tipografía y Espacios */
.single-post .entry-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5em;
}

@media (max-width: 767px) {
    .single-post .entry-content p { font-size: 16px; line-height: 1.6; }
}

.single-post .entry-header img {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: cover;
}

/* Botones del Blog */
.single-post .submit, 
.single-post #submit,
.single-post .btn {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: bold;
}

.single-post .submit:hover, .single-post #submit:hover {
    background-color: #e65c00 !important;
}

/* Espacio final antes del Footer */
.single-post .site-content { margin-bottom: 80px !important; }
.single-post .comments-area { margin-bottom: 60px; }

@media (max-width: 767px) {
    .single-post .site-content { margin-bottom: 40px !important; }
}



/* ==========================================================================
   3. PÁGINA DE BÚSQUEDA - WIDGET LUXURY ÚNICO (ANCHO CORRECTO)
   ========================================================================== */

/* A. ELIMINAR EL WIDGET DE ABAJO Y RESULTADOS NATIVOS */
.search-results .site-content > .wd-products-element, 
.search-results .shop-loop-head,
.search-results .term-description,
.search-results .title-after-description,
.search-results .products-footer {
    display: none !important;
}

/* B. MANTENER EL ANCHO CORRECTO DEL FILTRO (DONDE ESTÁ TU WIDGET) */
.search-results .filters-area {
    display: block !important;
}

/* C. FORZAR QUE TU BLOQUE OCUPE EL 100% (COMO ANTES) */
.search-results .filters-area .filter-column.wd-html-block-col,
.search-results .filters-area > div:last-child,
.search-results .shop-filters-area .woodmart-html-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
}

/* D. LIMPIEZA VISUAL DEL CONTENEDOR */
.search-results .shop-filters-area {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* E. AJUSTE DE ANCHO DE PÁGINA (PC 1400px / Móvil 290px) */
.search-results .main-page-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

@media (max-width: 767px) {
    .search-results .main-page-wrapper {
        max-width: 290px !important;
    }
}


/* ==========================================================================
   4. PÁGINA DE MI CUENTA (MY ACCOUNT) - ANCHO PERSONALIZADO
   ========================================================================== */

/* 1. Ajuste para Escritorio (PC) */
@media (min-width: 1025px) {
    .woocommerce-account .main-page-wrapper,
    .woocommerce-account .container,
    .woocommerce-account .site-content {
        max-width: 1400px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 2. Ajuste para Móvil (290px) */
@media (max-width: 767px) {
    .woocommerce-account .main-page-wrapper,
    .woocommerce-account .container,
    .woocommerce-account .site-content {
        max-width: 290px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Evitar que el menú de la cuenta se vea apretado en 290px */
    .woocommerce-MyAccount-navigation {
        margin-bottom: 20px !important;
    }
}

/* 3. Asegurar que no haya barras laterales ocultas robando espacio */
.woocommerce-account .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* ==========================================================================
   ESPACIADO GLOBAL DEFINITIVO (HEADER-CONTENIDO-FOOTER)
   ========================================================================== */

/* 1. Forzar separación de la cabecera (Header) */
.main-page-wrapper {
    margin-top: 50px !important;    /* Espacio exterior arriba */
    margin-bottom: 70px !important; /* Espacio exterior abajo */
    padding-top: 20px !important;   /* Refuerzo interno */
}

/* 2. Atacar el contenedor de contenido para evitar choques con el Footer */
.site-content, 
#main-content {
    margin-bottom: 60px !important;
    margin-top: 20px !important;
}

/* 3. Ajuste para páginas de WooCommerce (Carrito, Checkout, Cuenta) */
/* Estas páginas suelen ignorar los márgenes generales de Woodmart */
.woocommerce-cart .main-page-wrapper, 
.woocommerce-checkout .main-page-wrapper, 
.woocommerce-account .main-page-wrapper,
.search-results .main-page-wrapper {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
}

/* 4. Ajuste para Móvil (Reducimos a la mitad para no perder espacio) */
@media (max-width: 767px) {
    .main-page-wrapper {
        margin-top: 30px !important;
        margin-bottom: 40px !important;
        padding-top: 10px !important;
    }
    
    .site-content {
        margin-bottom: 30px !important;
    }
}

/* 5. Eliminar cualquier margen negativo que Woodmart use para "pegar" secciones */
.main-page-wrapper, .site-content, .container {
    box-sizing: border-box !important;
}





/* ALINEAR PRECIOS EN WOOLENTOR LUXURY PRODUCT GRID - MERCALATINO */
.woolentor-product-card.woolentor-luxury-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* El contenedor de contenido (título + precio + acciones) se estira al 100% */
.woolentor-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

/* El título ocupa todo el espacio disponible y crece */
.woolentor-product-title {
    flex-grow: 1 !important;
    margin-bottom: 0 !important;   /* evita espacio extra innecesario abajo del título */
    line-height: 1.4;              /* opcional: ajusta si quieres controlar el espaciado entre líneas */
}

/* El precio se pega siempre al fondo */
.woolentor-product-price {
    margin-top: auto !important;
    padding-top: 8px !important;   /* pequeño espacio arriba del precio para que respire - ajusta o quita si no te gusta */
}

/* Opcional: el bloque de acciones (botón agregar) también al fondo si quieres */
.woolentor-product-actions {
    margin-top: auto !important;   /* si el botón está dentro del content, esto lo empuja abajo */
}@media (min-width: 1025px) {
	body .main-page-wrapper {
    padding-bottom: 60px !important;   /* o 80px, 100px según quieras */
}

.site-content {
    margin-bottom: 60px !important;
}
}

@media (max-width: 576px) {
	body .main-page-wrapper {
    padding-bottom: 40px !important;   /* menos en móvil para no exagerar */
}
}

