/*
Theme Name: Kadence Child
Theme URI: https://example.com/kadence-child/
Template: kadence
Author: Your Name
Author URI: https://example.com
Description: Kadence Child Theme
Tags: customizable,modern,responsive-layout,gutenberg,header builder,footer builder
Version: 1.0.2.1792973793
Updated: 2026-10-26 00:16:33

*/

/* =================================================================aya
   ESTILOS MINIMALISTAS - DISTRIB NATURNALS
   ================================================================ */

/* 1. DISEÑO DE TARJETAS DE PRODUCTO (CATÁLOGO Y CATEGORÍAS) */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* Efecto hover elegante al pasar el ratón */
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(65, 171, 11, 0.1);
    border-color: #41ab0b;
}

/* 2. FOTO MÁS GRANDE Y LIMPIA */
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img {
    border-radius: 8px;
    margin-bottom: 12px;
    width: 100% !important;
    height: auto;
    object-fit: cover;
}

/* 3. REDUCIR ESPACIOS PERDIDOS Y TIPOGRAFÍA DE TÍTULOS */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px !important;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px !important;
    line-height: 1.3;
}

/* 4. DESTACAR PRECIOS */
.woocommerce ul.products li.product .price {
    color: #036010 !important;
    font-weight: 700;
    font-size: 17px !important;
    margin-bottom: 8px !important;
}

/* 5. BOTÓN DE COMPRA MINIMALISTA Y LLAMATIVO */
.woocommerce ul.products li.product .button {
    background-color: #41ab0b !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600;
    padding: 8px 12px !important;
    text-transform: uppercase;
    font-size: 17px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #036010 !important;
}


/* =================================================================
   PÁGINA DE PRODUCTO INDIVIDUAL (/producto/ashwagandha/)
   ================================================================ */

/* Título del producto individual */
.woocommerce div.product .product_title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Precio en grande y claro */
.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: #036010 !important;
    font-size: 28px !important;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Botón de añadir al carrito principal */
.woocommerce div.product.elementor-product-single form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #41ab0b !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0px 28px !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(65, 171, 11, 0.25);
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #036010 !important;
    box-shadow: 0 6px 16px rgba(3, 96, 16, 0.35);
    transform: translateY(-2px);
}

/* Reducir espacios en la descripción corta y metadatos */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 17px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.woocommerce div.product .product_meta {
    font-size: 13px;
    color: #777777;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
}
/*** ***/
/* =================================================================
   1. CORRECCIÓN DE TARJETAS Y ESPACIOS EN EL CATÁLOGO
   ================================================================ */

/* Restaurar el comportamiento seguro de la cuadrícula de WooCommerce sin afectar el footer */
.woocommerce ul.products.columns-3, 
.woocommerce ul.products.columns-4,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

/* Reset limpio para cada tarjeta de producto */
.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(65, 171, 11, 0.12);
    border-color: #41ab0b;
}

/* Imagen de la tarjeta proporcionada y limpia */
.woocommerce ul.products li.product img {
    border-radius: 6px;
    margin-bottom: 12px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* Títulos y precios en el catálogo */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px !important;
    font-weight: 600;
    color: #222222;
    margin-bottom: 6px !important;
}

.woocommerce ul.products li.product .price {
    color: #036010 !important;
    font-weight: 700;
    font-size: 15px !important;
    margin-bottom: 10px !important;
}

/* Botón de compra en la tarjeta */
.woocommerce ul.products li.product .button {
    background-color: #41ab0b !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600;
    padding: 8px 10px !important;
    font-size: 17px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #036010 !important;
}


/***** *****/
/* =================================================================
   1. FILTROS DE CATEGORÍAS Y CHECKBOXES (ESTILO MINIMALISTA)
   ================================================================ */

/* Títulos de los filtros */
.wc-block-product-filter-checkbox-list__text,
.wc-block-filter-title,
.wp-block-woocommerce-product-filter-checkboxes h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #036010 !important;
    border-bottom: 2px solid #036010 !important;
    padding-bottom: 6px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-area a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)) {
    color: #036010;
    text-decoration: none;
}
.widget-area a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)):hover {
    color: #036010;
    text-decoration: none;
	font-weight:500;
}

/* Enlaces de marcas, categorías y listas */

.widget-area ul li a,
.woocommerce.widget_product_categories ul li a,
.woocommerce.widget_layered_nav ul li a,
.wc-block-product-filter-checkbox-list__label {
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
    /* display: inline-flex !important; */
}

.widget-area ul li a:hover,
.woocommerce.widget_product_categories ul li a:hover,
.woocommerce.widget_layered_nav ul li a:hover,
.wc-block-product-filter-checkbox-list__label:hover {
   transform: translateX(3px);
}

/* Contadores de productos minimalistas */
.wc-block-product-filter-checkbox-list__count,
.widget-area .count {
    color: #777777 !important;
    font-size: 14px;
    float: right;
}

.widget-area ul {
    list-style: none;
}

/* Checkboxes personalizados y limpios */
/*
 * input[type=checkbox].wc-block-product-filter-checkbox-list__input {
    background: #e3fbf1 !important;
    border: 1px solid #41ab0b !important;
    border-radius: 4px !important;
    cursor: pointer;
}

input[type=checkbox].wc-block-product-filter-checkbox-list__input:checked {
    background: #036010 !important;
    border-color: #036010 !important;
}
*/
/**  Aqui **/
/* Checkbox */
/* Checkbox sin seleccionar */
input[type="checkbox"].wc-block-product-filter-checkbox-list__input {
    appearance: none;
    -webkit-appearance: none;

    background: #e3fbf1 !important;
    border: 1px solid #41ab0b !important;
    border-radius: 4px !important;

    width: 16px;
    height: 16px;
    cursor: pointer;

    display: grid;
    place-content: center;
    flex-shrink: 0;
    margin: 0;
}

/* Checkbox seleccionado */
input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked {
    background: #036010 !important;
    border-color: #036010 !important;
}

/* Símbolo de verificación blanco */
input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Estado de enfoque mediante teclado */
input[type="checkbox"].wc-block-product-filter-checkbox-list__input:focus-visible {
    outline: 2px solid #41ab0b;
    outline-offset: 2px;
}
/* FIN */


/* =================================================================
   2. FILTRO DE PRECIOS MODERNO (SLIDER Y HANDLES)
   ================================================================ */

/* Contenedor y pista base del slider de precios */
.wc-block-product-filter-price-slider,
.wp-block-woocommerce-product-filter-price-slider {
    margin-top: 10px;
}

/* Barra de fondo de la línea de precios */
.wc-block-product-filter-price-slider__range {
    height: 4px !important;
    background-color: #e0e0e0 !important;
    border-radius: 4px !important;
    margin: 20px 0 15px 0 !important;
}

/* Inputs de rango internos de WooCommerce Blocks */
.wc-block-product-filter-price-slider__range input[type=range] {
    accent-color: #036010 !important; /* Fuerza el color principal en navegadores modernos */
}

/* Personalización de los Círculos / Puntos de control (handles) para WebKit (Chrome, Safari, Edge) */
.wc-block-product-filter-price-slider__range input[type=range]::-webkit-slider-thumb {
    appearance: none;
    background-color: #036010 !important; /* Verde oscuro corporativo */
    border: 2px solid #ffffff !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.1s ease;
}

.wc-block-product-filter-price-slider__range input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: #41ab0b !important;
}

/* Personalización para Firefox */
.wc-block-product-filter-price-slider__range input[type=range]::-moz-range-thumb {
    background-color: #036010 !important;
    border: 2px solid #ffffff !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Texto indicador de precios y botones de acción del filtro */
.wc-block-product-filter-price-slider__amount,
.wc-block-product-filter__actions button,
.wp-block-button__link.wc-block-product-filter__button {
    font-size: 13px !important;
    color: #444444 !important;
}

/* Botón de aplicar filtro de precios */
.wc-block-product-filter__actions button,
.wp-block-button__link.wc-block-product-filter__button {
    background-color: #41ab0b !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

/* =================================================================
   BOTÓN DE FILTRO DESPLEGABLE (GRANDE E IDENTIFICABLE)
   ================================================================ */

/* Contenedor principal del acordeón/detalles */
details.wp-block-details {
    margin-bottom: 20px;
}

/* Transformar el resumen (summary) en un botón sólido y llamativo */
.wp-block-details summary {
    background-color: #41ab0b !important; /* Verde vivo principal */
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    list-style: none; /* Oculta la flecha por defecto del navegador en algunos casos */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(65, 171, 11, 0.2);
    transition: all 0.25s ease;
    border: none !important;
    outline: none !important;
}

/* Efecto hover (al pasar el ratón) */
.wp-block-details summary:hover {
    background-color: #036010 !important; /* Verde oscuro corporativo */
    box-shadow: 0 6px 14px rgba(3, 96, 16, 0.3);
    transform: translateY(-2px);
}

/* Opcional: Estilo para cuando el menú de filtros esté abierto (activo) */
details.wp-block-details[open] summary {
    background-color: #036010 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Contenedor interno que se despliega con los filtros */
details.wp-block-details[open] > *:not(summary) {
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.primary-sidebar.widget-area .widget-title {
    font-weight: normal;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    background: none;
  }

.dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
	border-color: #d3d7d7 !important;  /*** #eaeaea ***/
}

.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp.dgwt-wcas-search-focused input[type=search].dgwt-wcas-search-input:hover, .dgwt-wcas-tpd-image {
    background-color: #fff;
	border-color: #41ab0b !important;
}
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
   background-color: #FFF !important;
}
/**/
/* =================================================================
   FORZAR ELIMINACIÓN DE ESPACIOS EN LA BARRA LATERAL
   ================================================================ */

/* 1. Apuntar directamente a cualquier contenedor de sidebar común en WordPress */
aside, 
.widget-area, 
#secondary, 
.woocommerce-sidebar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Forzar que cualquier bloque, párrafo o grupo dentro del sidebar no tenga márgenes grandes */
aside *, 
.widget-area *, 
#secondary *, 
.woocommerce-sidebar * {
    margin-top: 0px !important;
    margin-bottom: 4px !important; /* Espacio mínimo entre elementos internos */
}

/* 3. Específico para los bloques de WooCommerce y sus listas en la barra lateral */
aside .wp-block, 
.widget-area .wp-block,
#secondary .wp-block,
.woocommerce-sidebar .wp-block,
aside .widget, 
.widget-area .widget,
#secondary .widget {
    margin-top: 0 !important;
    margin-bottom: 8px !important; /* Espacio entre cada filtro o widget */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 4. Compactar específicamente los espacios de los títulos de los filtros */
aside h2, aside h3, aside .wp-block-heading,
.widget-area h2, .widget-area h3, .widget-area .wp-block-heading,
#secondary h2, #secondary h3, #secondary .wp-block-heading {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-bottom: 2px !important;
}

/* 5. Compactar las listas de opciones (categorías, atributos) */
aside ul, aside ol,
.widget-area ul, .widget-area ol,
#secondary ul, #secondary ol {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

aside ul li,
.widget-area ul li,
#secondary ul li {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

