/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.woocommerce ul.products li.product{
    border-color:#F0F0F0!important;
    padding:0 0 20px 0!important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06)!important;
    overflow: hidden;
    border-radius:0px!important;
   position:relative;
}
.woocommerce ul.products li.product .button{
    border-radius:0!important;
    padding:12px 20px!important;
    position:relative;
}
.woocommerce ul.products li.product .button {
    position: relative;
    overflow: hidden;
    z-index: 1; /* crea contexto */
}

.woocommerce ul.products li.product .button::after{
    content:"";
    width:300%;
    height:310%;
    background:#D1B006;
    position:absolute;
    left:0;
    top:0;
    border-radius:100%;
    transform:translate(100%, 50%);
    transition:0.7s ease;
    z-index:-1; 
}

.woocommerce ul.products li.product .button:hover::after{
    transform:translate(-40%,-20%);
}
.woocommerce ul.products li.product::after {
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0); /* invisible */
    transition:.4s ease;
    pointer-events:none;
}

.woocommerce ul.products li.product:hover::after {
    background:rgba(0,0,0,0.2); /* oscuridad */
}

.woocommerce-product-gallery .flex-control-nav {
    display:flex;
    flex-wrap:no-wrap;
    margin-top:10px!important;
    gap:10px;
}

.woocommerce-product-gallery .flex-control-nav li{
    width:auto!important;
}

/* Sidebar de filtros (BeRocket Ajax Filters) */
body.post-type-archive-product .berocket_single_filter_widget,
body.tax-product_cat .berocket_single_filter_widget,
body.tax-product_tag .berocket_single_filter_widget {
    list-style: none !important;
    margin: 0 0 14px !important;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_sfilter,
body.tax-product_cat .berocket_single_filter_widget .bapf_sfilter,
body.tax-product_tag .berocket_single_filter_widget .bapf_sfilter {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 14px 14px 12px;
    box-shadow: 0 6px 18px rgba(20, 20, 20, 0.05);
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_head h3,
body.tax-product_cat .berocket_single_filter_widget .bapf_head h3,
body.tax-product_tag .berocket_single_filter_widget .bapf_head h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul,
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul,
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul {
    margin: 0;
    padding: 0;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul li,
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul li,
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul li {
    list-style: none !important;
    margin: 0 0 8px !important;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul li > label,
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul li > label,
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul li > label {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul li ul,
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul li ul,
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul li ul {
    margin: 8px 0 2px 20px !important;
    padding: 2px 0 0 12px !important;
    border-left: 1px solid #d8d8d8;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul li ul li,
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul li ul li,
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul li ul li {
    margin: 0 0 6px !important;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul li ul label,
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul li ul label,
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul li ul label {
    font-size: 15px;
    color: #3a3a3a;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body ul li ul input[type="checkbox"],
body.tax-product_cat .berocket_single_filter_widget .bapf_body ul li ul input[type="checkbox"],
body.tax-product_tag .berocket_single_filter_widget .bapf_body ul li ul input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body input[type="checkbox"],
body.tax-product_cat .berocket_single_filter_widget .bapf_body input[type="checkbox"],
body.tax-product_tag .berocket_single_filter_widget .bapf_body input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #9a9a9a;
    border-radius: 4px;
    background: #fff;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body input[type="checkbox"]:checked,
body.tax-product_cat .berocket_single_filter_widget .bapf_body input[type="checkbox"]:checked,
body.tax-product_tag .berocket_single_filter_widget .bapf_body input[type="checkbox"]:checked {
    background: #111;
    border-color: #111;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body input[type="checkbox"]:checked::after,
body.tax-product_cat .berocket_single_filter_widget .bapf_body input[type="checkbox"]:checked::after,
body.tax-product_tag .berocket_single_filter_widget .bapf_body input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_body label,
body.tax-product_cat .berocket_single_filter_widget .bapf_body label,
body.tax-product_tag .berocket_single_filter_widget .bapf_body label {
    color: #2c2c2c;
    font-size: 17px;
    line-height: 1.35;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_slidr_main.ui-widget-content,
body.tax-product_cat .berocket_single_filter_widget .bapf_slidr_main.ui-widget-content,
body.tax-product_tag .berocket_single_filter_widget .bapf_slidr_main.ui-widget-content,
body.post-type-archive-product .berocket_single_filter_widget .berocket_filter_price_slider.ui-widget-content,
body.tax-product_cat .berocket_single_filter_widget .berocket_filter_price_slider.ui-widget-content,
body.tax-product_tag .berocket_single_filter_widget .berocket_filter_price_slider.ui-widget-content {
    height: 6px;
    background: #d9d9d9;
    border-radius: 999px;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_slidr_main .ui-slider-range,
body.tax-product_cat .berocket_single_filter_widget .bapf_slidr_main .ui-slider-range,
body.tax-product_tag .berocket_single_filter_widget .bapf_slidr_main .ui-slider-range,
body.post-type-archive-product .berocket_single_filter_widget .berocket_filter_price_slider .ui-slider-range,
body.tax-product_cat .berocket_single_filter_widget .berocket_filter_price_slider .ui-slider-range,
body.tax-product_tag .berocket_single_filter_widget .berocket_filter_price_slider .ui-slider-range {
    background: #111 !important;
}

body.post-type-archive-product .berocket_single_filter_widget .bapf_slidr_main .ui-slider-handle,
body.tax-product_cat .berocket_single_filter_widget .bapf_slidr_main .ui-slider-handle,
body.tax-product_tag .berocket_single_filter_widget .bapf_slidr_main .ui-slider-handle,
body.post-type-archive-product .berocket_single_filter_widget .berocket_filter_price_slider .ui-slider-handle,
body.tax-product_cat .berocket_single_filter_widget .berocket_filter_price_slider .ui-slider-handle,
body.tax-product_tag .berocket_single_filter_widget .berocket_filter_price_slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    top: -5px;
    border: 2px solid #111;
    background: #fff;
    border-radius: 50%;
}

body.post-type-archive-product .berocket_single_filter_widget .irs--flat .irs-line,
body.tax-product_cat .berocket_single_filter_widget .irs--flat .irs-line,
body.tax-product_tag .berocket_single_filter_widget .irs--flat .irs-line {
    background: #d9d9d9;
    height: 6px;
}

body.post-type-archive-product .berocket_single_filter_widget .irs--flat .irs-bar,
body.tax-product_cat .berocket_single_filter_widget .irs--flat .irs-bar,
body.tax-product_tag .berocket_single_filter_widget .irs--flat .irs-bar {
    background: #111;
    height: 6px;
}

body.post-type-archive-product .berocket_single_filter_widget .irs--flat .irs-handle > i:first-child,
body.tax-product_cat .berocket_single_filter_widget .irs--flat .irs-handle > i:first-child,
body.tax-product_tag .berocket_single_filter_widget .irs--flat .irs-handle > i:first-child {
    width: 16px;
    height: 16px;
    top: -3px;
    left: -1px;
    border-radius: 50%;
    border: 2px solid #111;
    background: #fff;
}

body.post-type-archive-product .berocket_single_filter_widget .irs-from,
body.post-type-archive-product .berocket_single_filter_widget .irs-to,
body.post-type-archive-product .berocket_single_filter_widget .irs-single,
body.tax-product_cat .berocket_single_filter_widget .irs-from,
body.tax-product_cat .berocket_single_filter_widget .irs-to,
body.tax-product_cat .berocket_single_filter_widget .irs-single,
body.tax-product_tag .berocket_single_filter_widget .irs-from,
body.tax-product_tag .berocket_single_filter_widget .irs-to,
body.tax-product_tag .berocket_single_filter_widget .irs-single {
    background: #111;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    padding: 3px 6px;
}

body.post-type-archive-product .berocket_search_box_block input[type="text"],
body.post-type-archive-product .widget_product_search input[type="search"],
body.tax-product_cat .berocket_search_box_block input[type="text"],
body.tax-product_cat .widget_product_search input[type="search"],
body.tax-product_tag .berocket_search_box_block input[type="text"],
body.tax-product_tag .widget_product_search input[type="search"] {
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    background: #fff;
}

body.post-type-archive-product .berocket_search_box_button,
body.post-type-archive-product .widget_product_search button,
body.tax-product_cat .berocket_search_box_button,
body.tax-product_cat .widget_product_search button,
body.tax-product_tag .berocket_search_box_button,
body.tax-product_tag .widget_product_search button {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.post-type-archive-product .berocket_search_box_button:hover,
body.post-type-archive-product .widget_product_search button:hover,
body.tax-product_cat .berocket_search_box_button:hover,
body.tax-product_cat .widget_product_search button:hover,
body.tax-product_tag .berocket_search_box_button:hover,
body.tax-product_tag .widget_product_search button:hover {
    background: #fff;
    color: #111;
}

@media (max-width: 1024px) {
    body.post-type-archive-product .berocket_single_filter_widget .bapf_sfilter,
    body.tax-product_cat .berocket_single_filter_widget .bapf_sfilter,
    body.tax-product_tag .berocket_single_filter_widget .bapf_sfilter {
        border-radius: 8px;
        padding: 12px;
    }
}

/* Sidebar blocks (Elementor + Gutenberg widgets) */
body.post-type-archive-product .elementor-widget-container > .widget.widget_block,
body.tax-product_cat .elementor-widget-container > .widget.widget_block,
body.tax-product_tag .elementor-widget-container > .widget.widget_block {
    list-style: none !important;
    margin: 0 0 14px !important;
    padding: 0;
}

body.post-type-archive-product .elementor-widget-container .wp-block-heading,
body.tax-product_cat .elementor-widget-container .wp-block-heading,
body.tax-product_tag .elementor-widget-container .wp-block-heading {
    margin: 0;
    padding: 10px 0 6px;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}

body.post-type-archive-product .elementor-widget-container .wp-block-search__label,
body.tax-product_cat .elementor-widget-container .wp-block-search__label,
body.tax-product_tag .elementor-widget-container .wp-block-search__label {
    display: block;
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: #202020;
}

body.post-type-archive-product .elementor-widget-container .wp-block-search__inside-wrapper,
body.tax-product_cat .elementor-widget-container .wp-block-search__inside-wrapper,
body.tax-product_tag .elementor-widget-container .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.post-type-archive-product .elementor-widget-container .wp-block-search__input,
body.tax-product_cat .elementor-widget-container .wp-block-search__input,
body.tax-product_tag .elementor-widget-container .wp-block-search__input {
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    min-height: 36px;
    padding: 7px 12px;
    background: #fff;
    box-shadow: none;
}

body.post-type-archive-product .elementor-widget-container .wp-block-search__input:focus,
body.tax-product_cat .elementor-widget-container .wp-block-search__input:focus,
body.tax-product_tag .elementor-widget-container .wp-block-search__input:focus {
    outline: none;
    border-color: #111;
}

body.post-type-archive-product .elementor-widget-container .wp-block-search__button,
body.tax-product_cat .elementor-widget-container .wp-block-search__button,
body.tax-product_tag .elementor-widget-container .wp-block-search__button {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 0;
    min-height: 36px;
    padding: 7px 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.post-type-archive-product .elementor-widget-container .wp-block-search__button:hover,
body.tax-product_cat .elementor-widget-container .wp-block-search__button:hover,
body.tax-product_tag .elementor-widget-container .wp-block-search__button:hover {
    background: #fff;
    color: #111;
}

@media (max-width: 1024px) {
    body.post-type-archive-product .elementor-widget-container .wp-block-heading,
    body.tax-product_cat .elementor-widget-container .wp-block-heading,
    body.tax-product_tag .elementor-widget-container .wp-block-heading {
        font-size: 22px;
    }

    body.post-type-archive-product .elementor-widget-container .wp-block-search__inside-wrapper,
    body.tax-product_cat .elementor-widget-container .wp-block-search__inside-wrapper,
    body.tax-product_tag .elementor-widget-container .wp-block-search__inside-wrapper {
        flex-wrap: wrap;
    }

    body.post-type-archive-product .elementor-widget-container .wp-block-search__input,
    body.post-type-archive-product .elementor-widget-container .wp-block-search__button,
    body.tax-product_cat .elementor-widget-container .wp-block-search__input,
    body.tax-product_cat .elementor-widget-container .wp-block-search__button,
    body.tax-product_tag .elementor-widget-container .wp-block-search__input,
    body.tax-product_tag .elementor-widget-container .wp-block-search__button {
        width: 100%;
    }
}
