/*GUIA DE ESTILOS*/

:root{
    --color-greynostyles: #E6E6E6;
    --color-greynostyles2: #D0D0D0;
}
/*
--e-global-color-primary: #FA3718; -- rojo
    --e-global-color-secondary: #0022CC; -- azul
    --e-global-color-text: #000000; -- negro
    --e-global-color-accent: #0022CC; --azul
    --e-global-color-22cf03d: #696969; -- gris oscuro
    --e-global-color-57dd307: #8B8B8B; -- gris claro
    --e-global-color-fca1fd1: #F2F2F2; -- gris mas claro
    --e-global-color-f0f4f2b: #FFFFFF; -- blanco

*/

/*MENU PRINCIPAL CUSTOM*/
ul.menu-principal{
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-left: 40px;
}

ul.menu-principal > li > a,
ul.menu-principal > li.productos-cat > a{
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--e-global-color-22cf03d);
    position: relative;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

ul.menu-principal .categorias {
    position: absolute;
    top: 33px;
    z-index: 20;
    background: var(--e-global-color-f0f4f2b);
    max-width: 350px;
    border: 1px solid var(--color-greynostyles);
    border-radius: 12px;
    transition: .3s;
    width: 100%;
} 

ul.menu-principal div.subcategorias-one,
ul.menu-principal div.subcategorias-two{
    display: flex;
    flex-direction: column;
}

ul.menu-principal div.principales a{
    display: flex;
    flex-direction: row;
    padding: 10px 15px;
    align-items: center;
    gap: 20px;
    transition: .3s;
    border-radius: 0;
    color: var(--e-global-color-22cf03d);
    position: relative;
}

ul.menu-principal div.subcategorias-one a,
ul.menu-principal div.subcategorias-two a{
    padding: 23px 20px 23px 20px;
    color: var(--e-global-color-22cf03d);
    transition: .3s;
    position: relative;
}

ul.menu-principal div.principales a:first-child,
ul.menu-principal div.subcategorias-one a:first-child,
ul.menu-principal div.subcategorias-two a:first-child{
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

ul.menu-principal div.principales a:last-child,
ul.menu-principal div.subcategorias-one a:last-child,
ul.menu-principal div.subcategorias-two a:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.img-cat {
    background: var(--e-global-color-fca1fd1);
    border-radius: 50px;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subcategorias-one,
.subcategorias-two{
    position: absolute;
    right: -94.3%;
    background: var(--e-global-color-f0f4f2b);
    top: -1px;
    z-index: 222222;
    border: 1px solid var(--color-greynostyles);
    height: calc(100% + 2px);
    max-height: 702px;
    overflow-y: auto;
    width: 95%;
    z-index: 9999;
}

.subcategorias-two{
    right: calc(-94.3% * 2);
}

.menu-principal .oculto,
ul.menu-principal div.subcategorias-one.oculto,
ul.menu-principal div.subcategorias-two.oculto,
.buscador-popup-resultados.oculto,
.buscador-popup-categorias.oculto{
    display: none;
}

ul.menu-principal > li:not(.active) > a:hover,
ul.menu-principal > li:not(.active):hover > a{
    color: var(--e-global-color-text);
}

ul.menu-principal > li:not(.active):hover > a{
    background: var(--e-global-color-fca1fd1);
}

ul.menu-principal > li.active > a{
    color: var(--e-global-color-accent);
    border-bottom: 2px solid var(--e-global-color-accent);
    border-radius: 0;
}

ul.menu-principal div.principales a:hover,
ul.menu-principal div.subcategorias-one a:hover,
ul.menu-principal div.subcategorias-two a:hover{
    background: var(--e-global-color-fca1fd1);
    color: var(--e-global-color-text);
}

ul.menu-principal div.subcategorias-one a:hover,
ul.menu-principal div.subcategorias-two a:hover{
    border-radius: 0;
}

.menu-principal li.productos-cat:hover .categorias{
    display: block;
}

ul.menu-principal div.principales a span,
ul.menu-principal div.subcategorias-one a span{
    position: absolute;
    right: 0;
    top: 6px;
    padding: 20px;
    width: 100%;
    display: flex;
    align-content: end;
    justify-content: end;
}

ul.menu-principal .categorias.nivel2,
ul.menu-principal .categorias.nivel3{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

ul.menu-principal .categorias.nivel2 .subcategorias-one,
ul.menu-principal .categorias.nivel3 .subcategorias-two{
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/*HEADER*/


#oferta-timer,
#oferta-timer a,
#oferta-timer a:focus,
#oferta-timer a:focus-visible,
#oferta-timer a:focus-within {
  color: var(--e-global-color-f0f4f2b);
  font-weight: 500;
  font-size: 1rem;
}

#oferta-timer a{
    border-bottom: 1.5px solid var(--e-global-color-f0f4f2b);
}


.buscador-main,
.buscador-popup-input{
    position: relative;
}

.buscador-popup-input{
    display: flex;
    margin: 20px 20px 0px 20px;
    gap: 0 20px;
    justify-content: center;
    align-items: center;
}

.buscador-popup-input .cerrar-popup-buscador{
    cursor: pointer;
}

.buscador-main svg.lupa,
.buscador-popup-input svg.lupa{
	position: absolute;
	top: 14px;
	left: 19px;
}

.buscador-main input#buscador_main,
.buscador-popup-input input#buscador_main_popup{
    padding-left: 36px;
    border-radius: 25px;
    border: none;
    background: var(--e-global-color-fca1fd1);
    color: var(--e-global-color-22cf03d);
    padding: 12px 19px 12px 50px;
    width: 100%;
    max-width: 100%;
}

.buscador-popup-input input#buscador_main_popup{
    background: #fff;
}

.buscador-main input#buscador_main:focus-visible,
.buscador-popup-input input#buscador_main_popup:focus-visible,
.buscador-popup-input input#buscador_main_popup{
	outline:var(--e-global-color-secondary) auto 2px;
}

.buscador-main input#buscador_main:focus-visible ~ svg,
.buscador-popup-input input#buscador_main_popup:focus-visible ~ svg,
.buscador-popup-input input#buscador_main_popup ~ svg{
	fill: var(--e-global-color-secondary);
}

.right-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.buscador-main {
    width: 100%;
    max-width: 90%;
}

/*Buscador Modificacion*/

body.popup-on:before{
    content: "";
    background: #00000080;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 8;
}

.buscador-popup {
    display: none;
    position: absolute;
    top: -20px;
    right: 0;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
    min-width: 900px;
    z-index: 9;
}

.buscador-popup-categorias strong,
.buscador-popup-productos strong,
.buscador-popup-resultados strong{
    padding: 20px 24px 8px 24px;
    display: block;
}

.productos-interes{
    padding: 20px 24px 8px 24px;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.buscador-popup-productos .productos-interes .card-producto{
    max-width: calc(100% / 4 - 8px);
}

.productos-interes .card-producto .contenedor-img-btn{
    height: 200px;
}

.productos-interes .card-producto h5{
    font-size: 16px;
}

.buscador-popup-categorias ul,
.buscador-popup-resultados ul{
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.buscador-popup-categorias li,
.buscador-popup-resultados li{
    cursor: pointer;
    color: var(--e-global-color-secondary);
    transition: .3s;
    padding:10px 24px;
}

.buscador-popup-categorias li:hover,
.buscador-popup-resultados li:hover{
    background: var(--e-global-color-fca1fd1);
}

.buscador-popup-categorias li a,
.buscador-popup-categorias li a:hover,
.buscador-popup-resultados li a,
.buscador-popup-resultados li a:hover{
    color: var(--e-global-color-22cf03d);
    font-weight: 600;
    width: 100%;
    display: block;
}

ul.resultados-productos p {
    padding: 0px 24px;
    color: var(    --e-global-color-57dd307);
}

.buscador-popup-productos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.buscador-popup-productos .producto {
    width: 100px;
    text-align: center;
    font-size: 14px;
}

.buscador-popup-productos img {
    max-width: 100%;
    border-radius: 5px;
}

/* Animación opcional */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/*Continua HEADER...*/

.btn-carrito {
    min-width: 22px;
    max-width: 10%;
    position: relative;
}

.btn-carrito span {
    position: absolute;
    background: var(--e-global-color-primary);
    color: #fff;
    width: 20px;
    height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 13px;
    top: -8px;
    right: -10px;
}

.contenedor-slider-lv{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

.contenedor-slider-lv::before {
  content: "";
  position: absolute;
  inset: 0; 
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.contenido-overflow {
    position: absolute;
    left: 65px;
    bottom: 60px;
    z-index: 2;
}

.contenedor-slider-lv .titulo{
    font-size: 60px;
    color: var(--e-global-color-f0f4f2b);
    font-weight: 700;
}

.contenedor-slider-lv .subtitulo{
    font-size: 24px;
    color: var(--e-global-color-f0f4f2b);
    font-weight: 500;
}

a.btn-primary-dols,
button.btn-primary-dols,
button.btn-primary-dols:hover,
.btn-primary-dols,
.btn-primary-dols:hover,
button.btn-primary-dols.continuar-checkout,
button.btn-primary-dols.continuar-checkout:hover,
.elementor-widget-woocommerce-checkout-page a.btn-primary-dols{
    font-weight: 700;
    padding: 14px 20px;
    background-color: transparent;
    color: var(--e-global-color-f0f4f2b);
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    border: 0;
    display: inline-block;
    z-index: 2;
}

button.btn-primary-dols.continuar-checkout{
    width: 100%;
}

.btn-primary-dols::after {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--e-global-color-secondary);
  transition: width 0.3s ease;
  border-radius: 35px;
  z-index: -1;
}

.btn-primary-dols::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--e-global-color-primary);
    transition: width 0.3s ease;
    border-radius: 35px;
    z-index: -1;
}

.btn-primary-dols.add-to-cart-fdols{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 18px !important;
    overflow: visible;
    width: 100%;
}

.btn-primary-dols:hover::after {
  width: 100%;
}

.btn-primary-dols.add-to-cart-fdols:hover{
    padding: 14px 82px;
    overflow: visible;
    display: flex;
}

.btn-primary-dols:hover,
.elementor-widget-woocommerce-checkout-page a.btn-primary-dols:hover{
  color: white;
}

.contenido-overflow a.btn-primary-dols{
    margin-top: 40px;
    display: inline-block;
}


.dols-link{
    color: var(--e-global-color-secondary);
    transition: .4s;
    font-size: 18px;
    font-weight: 700;
}

.dols-link:hover span{
    color: var(--e-global-color-secondary);
    border-bottom: 1px solid  var(--e-global-color-secondary);
}

.contenedor-oferta.img {
    position: relative;
    border-radius: 8px;
}

.contenedor-oferta.img::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    pointer-events: none;
    z-index: 0;
    border-radius: 8px;
}


.btn-primary-dols:disabled:before,
.btn-primary-dols:disabled:after,
.btn-primary-dols:hover:disabled:before,
.btn-primary-dols:hover:disabled:after,
.btn-primary-dols:disabled{
    background: #E2E2E2;
    color: var(--e-global-color-57dd307);
    cursor: not-allowed;
}

.btn-primary-dols:hover:disabled:after{
    width: 0;
}




a.btn-secondary{
    border-radius: 35px;
    border: 1.5px solid var(--e-global-color-f0f4f2b);
    padding: 13px 25px;
    color: var(--e-global-color-f0f4f2b);
    font-size: 18px;
    transition: .3s;
}

a.btn-secondary:hover{
    color: var(--e-global-color-text);
    background: var(--e-global-color-f0f4f2b);
}

a.btn-quaternary{
    border-radius: 35px;
    border: 1.5px solid var(--color-greynostyles2);
    padding: 13px 25px;
    color: var(--e-global-color-text);
    font-size: 18px;
    transition: .3s;
    display: inline-block;
}

a.btn-quaternary:hover{
    color: var(--e-global-color-f0f4f2b);
    background: var(--e-global-color-text);
}

/*Reseñas google*/

div.ti-widget.ti-goog .ti-review-item>.ti-inner {
    border-radius: 32px !important;
    border-color: var(--color-greynostyles) !important;
}

div.ti-controls{
    display: none !important;
}

div.ti-widget.ti-goog .ti-review-item>.ti-inner{
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ti-inner * {
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 140% !important;
}

.ti-widget.ti-goog .ti-reviews-container .ti-star{
    width: 24px !important;
    height: 24px !important;
}

.ti-review-text-container.ti-review-content {
    padding-top: 20px;
}

/*Productos (Cards)*/

.grid-productos-busqueda,
.productos-interes{
    display: flex;
    gap: 10px;
}

.grid-productos-busqueda{
    flex-wrap: wrap;
    gap: 30px 20px;
}

.grid-productos-busqueda .card-producto,
.productos-interes .card-producto{
  flex: 0 0 auto;
  max-width: calc(100% / 4 - 15px);
  box-sizing: border-box;
  background: var(--e-global-color-f0f4f2b);
  gap: 20px; 
}


.card-producto a{
    color: var(--e-global-color-text);
}

.card-producto h5{
    font-weight: 600;
}

.card-producto .price{
    color: var(--e-global-color-secondary);
}

.card-producto .price.oferta{
    color: var(--e-global-color-primary);
}

.card-producto .price span.precio-antesrebaja {
    text-decoration: line-through;
    margin-right: 10px;
    color: var(--e-global-color-57dd307);
}

.card-producto .contenedor-img-btn,
.contenedor-oferta{
    text-align: center;
    border: 1.5px solid var(--color-greynostyles);
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    height: 350px;
}

.contenedor-oferta{
    background-color: var(--e-global-color-primary);
    border: none;
    border-radius: 32px;
}

.card-producto .contenedor-img-btn > a > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 5px;
}

.card-producto .contenedor-add-carrito {
    position: absolute;
    bottom: 25px;
    right: 25px;
}


.card-producto .contenedor-add-carrito  .custom-add-carrito{
    background: var(--e-global-color-primary);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: .2s;
}

.custom-add-carrito > p{
    display: none;
    transition: .2s;
    color: var(--e-global-color-f0f4f2b);
}

.card-producto .contenedor-add-carrito .custom-add-carrito:hover > p{
    display: flex;
    margin: 0;
}

.card-producto .contenedor-add-carrito .custom-add-carrito:hover{
    width: max-content;
    border-radius: 35px;
    padding: 17px;
    gap: 8px;
    background: #D41D00;
}

.card-producto .etiquetas-producto,
.contenedor-oferta .etiquetas-oferta{
    position: absolute;
    padding: 15px 5px 15px 15px;
    width: 95%;
    left: 5px;
    right: 5px;
    top: 5px;
    text-align: left;
}

.contenedor-oferta h4{
    color: var(--e-global-color-f0f4f2b);
}

.contenedor-oferta a,
.btn-terciary{
    color: var(--e-global-color-f0f4f2b);
    border: 1px solid var(--e-global-color-f0f4f2b);
    border-radius: 32px;
    padding: 10px 20px;
    margin-top: 25px;
    display: block;
    max-width: max-content;
    transition: .2s;
}

.contenedor-oferta a:hover{
    background-color: var(--e-global-color-f0f4f2b);
    color: var(--e-global-color-text);
}

.contenedor-oferta .texto-btn {
    position: absolute;
    bottom: 35px;
    text-align: left;
    padding: 0 30px;
}

.contenedor-oferta .etiquetas-oferta{
    text-align: right;
}


.card-producto .etiquetas-producto span,
.card-producto .etiquetas-oferta span,
.contenedor-oferta .etiquetas-oferta span,
.etiqueta-producto,
.etiqueta-descuento{
    padding: 5px 11px;
    border-radius: 8px; 
    margin-right: 5px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.etiqueta-descuento{
    background: var(--e-global-color-primary);
    color: var(--e-global-color-f0f4f2b);
    position: relative;
}

.paginacion-productos {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    align-items: center;
}

.paginacion-productos span.page-numbers.current {
    color: var( --e-global-color-f0f4f2b);
    background: var(--e-global-color-primary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.paginacion-productos a.page-numbers {
    color: var(--e-global-color-text);
}


.paginacion-productos a.next.page-numbers,
.paginacion-productos a.prev.page-numbers{
    border: 1.5px solid var(--color-greynostyles2);
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 700;
    transition: .3s;
}

.paginacion-productos a.next.page-numbers:hover,
.paginacion-productos a.prev.page-numbers:hover{
    color: var( --e-global-color-f0f4f2b);
    background: var(--e-global-color-text);
}

.productos-encontrados{
    font-weight: 500;
    color: var(--e-global-color-22cf03d);
}

/*Filtros*/

.header-grid-productos form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}


.btn-filtro{
    color: var(--e-global-color-22cf03d);
    border: 1.5px solid var(--color-greynostyles2);
    border-radius: 32px;
    padding: 13px 45px 13px 20px;
    max-width: max-content;
    user-select: none;
    cursor: pointer;
    position: relative;
    font-weight: 700;
    transition: .3s;
}

.btn-filtro:before{
    content: '';
    background-image: url(/wp-content/plugins/ferreteriadols-lv/img/menu-arrow.svg);
    display: inline-block;
    transition: transform 0.3s;
    transform: rotate(90deg);
    background-size: contain;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    position: absolute;
    right: 15px;
    top: 20px;
}

.btn-filtro .titulo{
    font-weight: 700;
    color: var(--e-global-color-text);
}

.btn-filtro:not(.active):hover{
    background: var(--e-global-color-text);
    border-color: var(--e-global-color-text);
}

.btn-filtro:not(.active):hover .titulo{
    color: var(--e-global-color-f0f4f2b);
}

.btn-filtro:not(.active):hover:before{
    filter: contrast(50);
}

.btn-filtro.active,
.popup-orden > div button.active{
    background: var(--e-global-color-fca1fd1);
}

.btn-filtro.active:before{
    transform: rotate(-90deg);
    top: 11px;
}

.popup-precio,
.popup-marcas,
.popup-orden{
    display: none;
    position: absolute;
    background: var(--e-global-color-f0f4f2b);
    z-index: 2;
    border: 1px solid var(--color-greynostyles2);
    border-radius: 32px;
    padding: 30px;
    max-width: 410px;
    top: 94px;
    z-index: 9;
    width: 100%;
}

button.restablecer,
a.restablecer,
button.restablecer:hover,
a.restablecer:hover,
button.restablecer:active,
a.restablecer:active,
button.restablecer:focus,
a.restablecer:focus,
button.restablecer:focus-within,
a.restablecer:focus-within {
    border: none;
    color: var(--e-global-color-text);
    background: transparent;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-precio.active,
.popup-marcas.active,
.popup-orden.active{
    display: block;
}

.popup-precio > div {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.popup-precio input[type=number]{
    max-width: 100px;
    width: 100%;
    border-radius: 32px;
    text-align: center;
    background: var(--e-global-color-fca1fd1);
    border: none !important;
    height: 52px;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    outline: none !important;
}

.popup-precio input[type=number]::-webkit-inner-spin-button,
.popup-precio input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.campo-euro {
  position: relative;
}

.campo-euro::after {
  content: "€";
  position: absolute;
  top: 47%;
  right: 18px;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
  pointer-events: none;
}

.campo-euro input {
  padding-left: 20px;
}


#slider-precio .noUi-tooltip {
    display: none;
}

#slider-precio .noUi-handle {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: var(--e-global-color-secondary);
    border: none;
    box-shadow: none;
    margin: auto;
    cursor: pointer;
}

#slider-precio.noUi-target{
    background: var(--color-greynostyles);
    border-radius: 30px;
    height: 6px;
}

#slider-precio .noUi-connect{
    background: var(--e-global-color-secondary);
}

#slider-precio .noUi-handle:after, #slider-precio .noUi-handle:before{
    background: none;
    display: none;
}

#slider-precio.noUi-horizontal .noUi-handle{
    top: -10px;
}

#slider-precio .noUi-handle.noUi-handle-upper {
    right: -1px;
}


.search-marcas {
    position: relative;
    margin-bottom: 10px;
}

.popup-marcas > div:last-child{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.popup-marcas {
    padding: 15px 25px;
}

.search-marcas input[type='text']{
    background:var(--e-global-color-fca1fd1);
    border:none;
    border-radius:32px;
    padding-left:40px;
    outline: none;
}

.lista-marcas li {
    margin-top: 12px;
    margin-left: 5px;
}

.popup-orden > div{
    display: flex;
    flex-direction: column;
}

.popup-orden {
    max-width: 300px;
    top: 56px;
    right: 0;
}

/* Oculta el checkbox nativo pero lo mantiene accesible */
.lista-marcas input[type='checkbox'] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

/* Contenedor del label (necesario para posicionar el pseudo-elemento) */
.lista-marcas label.checkbox {
  position: relative;
  padding-left: 34px; /* espacio para el nuevo checkbox */
  cursor: pointer;
  display: inline-block;
  user-select: none;
  font-weight: normal;
}

/* Cuadro azul (o gris si no está marcado) */
.lista-marcas label.checkbox::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  background-color: var(--e-global-color-f0f4f2b);
  border: 1.5px solid #D0D0D0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lista-marcas label.checkbox.is-checked::before {
  background-color: var(--e-global-color-secondary);
  border-color: var(--e-global-color-secondary);
}

.lista-marcas label.checkbox.is-checked::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 0;
  font-size: 1.13rem; /*18px*/
  color: var(--e-global-color-f0f4f2b);
  font-weight: bold;
}

.search-marcas svg.lupa {
    position: absolute;
    top: 11px;
    left: 15px;
    width: 18px;
    height: 18px;
}

ul.lista-marcas {
    list-style: none;
    padding: 0;
    overflow: auto;
    max-height: 265px;
    min-height: 265px;
}

.filtro-ordenar {
    width: 100%;
    justify-content: end;
    display: flex;
    position: relative;
}

.filtro-ordenar > div {
    max-width: 364px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: end;
}

.filtro-ordenar > div select{
    width: 265px;
    border-radius: 32px;
    height: 52px;
    border: 1.5px solid var(--color-greynostyles2);
    font-weight: 700;
}

.filtro-ordenar > div select {
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 16px;
  cursor: pointer;
}

.filtro-ordenar > div select::after {
  content: "▼"; 
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #666;
}

.popup-orden > div button,
.popup-orden > div button:active,
.popup-orden > div button:focus,
.popup-orden > div button:focus-visible,
.popup-orden > div button:focus-within{
    margin-bottom:10px;
    border-radius:32px;
    text-align:left;
    color:var(--e-global-color-text);
    border: 1.5px solid var(--color-greynostyles2);
    padding:10px 25px;
    outline:none;
    background:var(--e-global-color-f0f4f2b);
}

.popup-orden > div button:hover{
    color:var(--e-global-color-f0f4f2b);
    border-color: var(--e-global-color-text);
    background:var(--e-global-color-text);
}

/*Archive Productos (Categorias)*/


.breadcrumb-categoria a:hover,
.breadcrumb-categoria a,
.breadcrumb-producto a,
.breadcrumb-producto a:hover{
    color: var(--e-global-color-22cf03d);
}


.volver-atras-categoria img{
    transform: rotate(180deg);
    margin-top: 10px;
}

/*Single Product*/


body.single.single-product button.btn-primary-dols.add-to-cart-fdols{
    overflow: hidden;
}


.add-to-cart-form-dols,
.item-carrito .add-cantidad{
    display: flex;
    gap: 15px;
}

.item-carrito .add-cantidad{
    margin-top: 27px;
}

.add-to-cart-form-dols .input-cantidad,
.item-carrito .input-cantidad{
    border-radius: 30px;
    border: 0;
    background: var(--e-global-color-fca1fd1);
    text-align: center;
    width: 80px;
    cursor: default;
    user-select: none;
}

.item-carrito .input-cantidad{
    width: 80px;
    height: 44px;
}

/* Chrome, Safari, Edge, Opera */
.add-to-cart-form-dols .input-cantidad[type="number"]::-webkit-inner-spin-button,
.add-to-cart-form-dols .input-cantidad[type="number"]::-webkit-outer-spin-button,
.item-carrito .input-cantidad[type="number"]::-webkit-inner-spin-button,
.item-carrito .input-cantidad[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.add-to-cart-form-dols .input-cantidad[type="number"],
.item-carrito .input-cantidad[type="number"] {
  -moz-appearance: textfield;
}

#minus_quantity_dols_product,
#add_quantity_dols_product{
    background: transparent;
    border: 1px solid var(--color-greynostyles2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    width: 55px;
    height: 55px;
    user-select: none;
}

.item-carrito .add-cantidad #minus_quantity_dols_product,
.item-carrito .add-cantidad #add_quantity_dols_product{
    width: 44px;
    height: 44px;
    padding: 0;
}

#minus_quantity_dols_product.disabled,
#add_quantity_dols_product.disabled{
    background: #E2E2E2;
    border: 1px solid #E2E2E2;
    cursor: not-allowed;
}

#minus_quantity_dols_product:not(.disabled):hover,
#add_quantity_dols_product:not(.disabled):hover{
    background: var(--e-global-color-text);
}

#minus_quantity_dols_product:not(.disabled):hover svg,
#add_quantity_dols_product:not(.disabled):hover svg,
#minus_quantity_dols_product:not(.disabled):hover svg path,
#add_quantity_dols_product:not(.disabled):hover svg path{
    fill: #fff;
}

.woocommerce-notices-wrapper,
.woocommerce-notices-wrapper:focus,
.woocommerce-notices-wrapper:focus-within,
.woocommerce-notices-wrapper:focus-visible{
    outline: none;
}

.e-woocommerce-notices-wrapper,
.woocommerce-notices-wrapper{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

a.restore-item {
    visibility: hidden;
}

.e-woocommerce-notices-wrapper div.woocommerce-message,
.e-woocommerce-notices-wrapper div.woocommerce-error,
.woocommerce-notices-wrapper div.woocommerce-message,
.woocommerce-notices-wrapper div.woocommerce-error{
    margin: 0;
    border-radius: 12px;
    background: var(--e-global-color-accent);
    color: #fff;
    border: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.woocommerce-error{
    display: none;
}

.e-woocommerce-notices-wrapper div.woocommerce-error,
.woocommerce-notices-wrapper div.woocommerce-error{
    justify-content: start;
}

.e-woocommerce-notices-wrapper div.woocommerce-error,
.woocommerce-notices-wrapper div.woocommerce-error{
    background: var(--e-global-color-primary);
}

.e-woocommerce-notices-wrapper div.woocommerce-message a.button,
.woocommerce-notices-wrapper div.woocommerce-message a.button{
    background: transparent;
    border: 0;
    color: #fff;
    padding: 0;
    text-align: right;
}

.e-woocommerce-notices-wrapper div.woocommerce-message > * ,
.woocommerce-notices-wrapper div.woocommerce-message > * {
    max-width: 50%;
    width: 100%;
}


.e-woocommerce-notices-wrapper div.woocommerce-message::before,
.e-woocommerce-notices-wrapper div.woocommerce-error::before,
.woocommerce-notices-wrapper div.woocommerce-message::before,
.woocommerce-notices-wrapper div.woocommerce-error::before{
    content: "";
    width: 25px;
    background: url(/wp-content/plugins/ferreteriadols-lv/img/cart-msg.svg);
    height: 25px;
    background-size: contain;
    margin-top: -1px;
    background-repeat: no-repeat;
}

.e-woocommerce-notices-wrapper div.woocommerce-error::before,
.woocommerce-notices-wrapper div.woocommerce-error::before{
    background: url(/wp-content/plugins/ferreteriadols-lv/img/error-msg.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.e-woocommerce-notices-wrapper div.woocommerce-message a.button::after ,
.woocommerce-notices-wrapper div.woocommerce-message a.button::after{
    content: " >";
    position: absolute;
    top: -4px;
    font-size: 23px;
    right: -22px;
    font-weight: 400;
}

.info-referencia-producto{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-referencia-producto span{
    color: var(--e-global-color-22cf03d);
    font-weight: 700;
}

.info-referencia-producto p{
    color: var(--e-global-color-text);
    font-weight: 500;
    display: inline;
}

.info-referencia-producto a{
    color: var(--e-global-color-accent);
    font-weight: 700;
    border-bottom: 1.5px solid transparent;
    transition: .3s;
}

.info-referencia-producto a:hover{
    color: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
}

.info-detalles-producto details{
    border-top: 1.5px solid var(--color-greynostyles);
}

.info-detalles-producto details summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  position: relative;
  padding: 20px 0;
}

.info-detalles-producto details summary h5{
    font-weight: 700;
    margin: 0;
}

.info-detalles-producto details p{
    color: var( --e-global-color-22cf03d);
}

.info-detalles-producto details summary::-webkit-details-marker {
  display: none;     
}

.info-detalles-producto details summary::before {
    content: '';
    background-image: url("/wp-content/plugins/ferreteriadols-lv/img/menu-arrow.svg");
    display: inline-block;
    transition: transform 0.3s;
    transform: rotate(90deg);
    background-size: contain;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 25px;
}

.info-detalles-producto details[open] summary::before {
    transform: rotate(-90deg);
    top: 17px;
}

.info-detalles-producto details[open] .contenido {
  max-height: 500px;
  transition: max-height 2s ease;
}

.info-detalles-producto details .contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 2s ease;
}


.info-detalles-producto details:last-of-type {
  border-bottom: 1.5px solid var(--color-greynostyles);
}

/*Página de Carrito*/

.carrito-page{
    display: flex;
    gap: 40px;
}

.carrito-items {
    max-width: 70%;
    width: 100%;
    height: max-content;
    border-top: 1px solid var(--color-greynostyles);
    position: relative;
}

.resumen-compra {
    max-width: 30%;
    width: 100%;
}

.item-carrito {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-greynostyles);
}

.item-carrito .img img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.item-carrito .info {
  flex: 1;
}

.item-carrito .nombre{
    display: flex;
    align-items: center;
    gap: 0 12px;
}

.item-carrito .nombre a {
  font-weight: 600;
  font-size: 16px;
  color: var(--global-color-text);
  text-decoration: none;
}

.item-carrito .precio-cantidad {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
  font-size: 1rem; /*16px*/
  color: var( --e-global-color-secondary);
  font-weight: 600;
}

.rebajado.precio-cantidad {
    color: var(--e-global-color-primary);
}

.rebajado span.precio-antesrebaja {
    color: var(--e-global-color-57dd307);
    text-decoration: line-through;
}

.item-carrito .add-cantidad input.input-cantidad:focus,
.item-carrito .add-cantidad input.input-cantidad:focus-visible{
    border-color: transparent;
    outline: none;
}

.item-carrito .subtotal {
  margin-top: 5px;
  font-size: 1rem; /*16px*/
  color: var(--e-global-color-text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: end;
}

.item-carrito .subtotal .delete-product-cart{
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    transition: .3s;
}

.item-carrito .subtotal .delete-product-cart:hover{
    background: var( --e-global-color-text);
}

.item-carrito .subtotal .delete-product-cart:hover path{
    fill: var(--e-global-color-f0f4f2b);
}

a.boton-continuar-comprando.btn-quaternary{
    margin-top: 30px;
}

a.finalizar-compra{
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.totales,
.codigo-promocional {
    border: 1.5px solid var(--color-greynostyles);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.codigo-promocional{
    margin-bottom: 20px;
}

.totales p{
    margin:0;
    display: flex;
    justify-content: space-between;
}

p.subtotal strong,
p.total strong{
    color: var(--e-global-color-text);
    font-weight: 600;
}

p.subtotal span.woocommerce-Price-amount.amount{
    font-weight: 600;
    color: var(--e-global-color-22cf03d);
}


p.total{
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px solid var(--color-greynostyles);
}

p.total strong {
    font-size: 20px;
}

p.total strong span {
    color: var(--e-global-color-22cf03d);
    font-weight: 500;
    display: block;
    font-size: 16px;
}

p.total span.woocommerce-Price-amount.amount{
    font-weight: 700;
    color: var(--e-global-color-secondary);
    font-size: 20px;
}

.iconos-info p {
    font-weight: 500;
    margin: 8px 0;
    color: var(--e-global-color-22cf03d);
    display: flex;
    align-items: center;
    gap: 10px;
}


.codigo-promocional .contenido {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.codigo-promocional .contenido input{
    border-radius: 8px;
    border: 1px solid var(--color-greynostyles2);
    outline: none;
}

.codigo-promocional .contenido input.error{
    border-color: var(--e-global-color-primary);
}

.text-error{
    color: var(--e-global-color-primary);
    margin-top: 8px;
}

.text-success{
    color: var(--e-global-color-secundary);
    margin-top: 8px;
}

button.btn-primary-dols.btn-ok-cupon{
    min-width: 52px;
    width: 52px;
    height: 52px;
    border: none;
    text-decoration: none;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.codigo-promocional details summary{
    list-style: none; 
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.codigo-promocional details summary::-webkit-details-marker {
  display: none;     
}

.codigo-promocional details summary::before {
    content: '';
    background-image: url("/wp-content/plugins/ferreteriadols-lv/img/menu-arrow.svg");
    display: inline-block;
    transition: transform 0.3s;
    transform: rotate(90deg);
    background-size: contain;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    position: absolute;
    right: 26px;
    top: 31px;
}

.codigo-promocional details[open] summary::before {
    transform: rotate(-90deg);
    top: 21px;
}

.descuento > span{
    color: var(--e-global-color-primary);
    font-weight: 600;
}

.descuento span.etiqueta-descuento:after {
    content: "+";
    position: absolute;
    right: -19px;
    top: -2px;
    color: var(--e-global-color-text);
    font-size: 23px;
    transform: rotate(45deg);
    cursor: pointer;
    font-weight: 400;
    transition: .3s;
}

.descuento span.etiqueta-descuento:hover:after{
    color: var(--e-global-color-primary);
}

/*Loader General*/

.cargando{
    position: fixed;
    z-index: 99;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}


.loader-general-dols {
    width: 100px;
    height: 100px;
    border: 6px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-general-dols::after,
.loader-general-dols::before {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--e-global-color-primary);
  width: 12px;
  height: 12px;
  transform: translate(150%, 150%);
  border-radius: 50%;
}

.loader-general-dols::before {
  left: auto;
  top: auto;
  right: 0;
  bottom: 0;
  transform: translate(-150%, -150%);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 



p.not-found {
    text-align: center;
    font-size: 40px;
    padding: 40px;
    margin: 0;
    color: var(--e-global-color-text);
}


/*Contacto*/

a.a-contacto {
    display: flex;
    align-items: center;
    gap: 10px;
}

a.a-politica,
a.a-politica:hover{
    color: var(--e-global-color-text);
    border-bottom: 1.5px solid var(--e-global-color-text);
}



/*Animación Logo*/

#logo_header{
    cursor: pointer;
}

div#logo_anim {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

#logo_header:hover #logo_anim{
    opacity: 1;
}

/*Responsive*/

@media(max-width: 1030px){
    .carrito-page{
        flex-direction: column;
        padding: 20px;
    }

    .carrito-page div{
        max-width: 100%;
    }
}