/*=================Liquidaciones===================*/


/* === Tema en Todo el Header === */
body.term-liquidaciones{
    --primary: #e43a43;
    --primaryopacity: #ffe3e4;
}

/* === Tema Logo === */
body.term-liquidaciones header .logo img,
body.term-liquidaciones header .links img {
  filter: hue-rotate(-20deg) brightness(0.8) saturate(1.5);
}

body.term-liquidaciones header .bottom ul li:last-child a {
  position: relative;
  background: #ffffff !important;
  overflow: hidden;
  color: #000000;
}


/* === Slider de rango de precios (solo para Liquidaciones) === */
body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-bar,
body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-from,
body.term-liquidaciones div.wpfMainWrapper[data-filter="2"] #wpfBlock_2 .irs-to,
body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-single {
  background-color: var(--primary);
  border-color: var(--primary);
}

body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-handle
  > i:first-child {
  background-color: var(--primary);
}

body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-handle:hover
  > i:first-child {
  background-color: var(--primary);
}

body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-from:before,
body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-to:before,
body.term-liquidaciones
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-single:before {
  border-top-color: var(--primary);
}

/* === Taxonomy Selector - Solo para categoría Liquidaciones === */

body.term-liquidaciones #taxonomySelector a:hover,
body.category-liquidaciones #taxonomySelector a:hover {
  color: var(--primary);
  background-color: var(--primaryopacity); /* rojo con transparencia */
  border: 1px solid var(--primary);
}

body.term-liquidaciones #taxonomySelector a svg,
body.category-liquidaciones #taxonomySelector a svg {
  filter: grayscale(1) brightness(0);
  transition: var(--transition);
}

body.term-liquidaciones #taxonomySelector a:hover svg,
body.category-liquidaciones #taxonomySelector a:hover svg {
  filter: grayscale(0) brightness(1);
}





/*=================Dental===================*/
/* === Tema en Todo el Header === */
body.term-dental{
    --primary: #6abfb1;
    --primaryopacity: #e9f7f5;
}

/* === Tema Logo === */
body.term-dental header .logo img,
body.term-dental header .links img{
  filter: hue-rotate(141deg) brightness(1.12) saturate(0.5);
}

/* === Tema Dental === */
body.term-dental #showFilters .wfpTitle {
  color: var(--primary);
  border: 1px solid var(--primary);
}

body.term-dental header .bottom ul li:last-child a {
  position: relative;
  background: #ffffff !important;
  overflow: hidden;
  color: #000000;
}

/* Precios */
body.term-dental .productItem .price,
body.term-dental .productItem .price span {
  color: var(--primary);
}

/* Badge de stock */
body.term-dental .productItem .badge {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}


/* === Slider de rango de precios (solo para dental) === */
body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-bar,
body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-from,
body.term-dental div.wpfMainWrapper[data-filter="2"] #wpfBlock_2 .irs-to,
body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-single {
  background-color: var(--primary);
  border-color: var(--primary);
}

body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-handle
  > i:first-child {
  background-color: var(--primary);
}

body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-handle:hover
  > i:first-child {
  background-color: var(--primary);
}

body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-from:before,
body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-to:before,
body.term-dental
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-single:before {
  border-top-color: var(--primary);
}

/* === Taxonomy Selector - Solo para categoría dental === */


body.term-dental #taxonomySelector a:hover,
body.category-dental #taxonomySelector a:hover {
  color: var(--primary);
  background-color: var(--primaryopacity); /* rojo con transparencia */
  border: 1px solid var(--primary);
}

body.term-dental #taxonomySelector a svg,
body.category-dental #taxonomySelector a svg {
  filter: grayscale(1) brightness(0);
  transition: var(--transition);
}

body.term-dental #taxonomySelector a:hover svg,
body.category-dental #taxonomySelector a:hover svg {
  filter: grayscale(0) brightness(1);
}

/*=================Industria===================*/
/* === Tema en Todo el Header === */
body.term-industria{
    --primary: #141f24;
    --primaryopacity: #c9c9c9;
}

/* === Tema Logo === */
body.term-industria header .logo img,
body.term-industria header .links img{
	filter: grayscale(0.5) brightness(0.25) hue-rotate(171deg);
}

/* === Tema Industria === */
body.term-industria #showFilters .wfpTitle {
  color: var(--primary);
  border: 1px solid var(--primary);
}

body.term-industria header .bottom ul li:last-child a {
  position: relative;
  background: #ffffff !important;
  overflow: hidden;
  color: #000000;
}

/* Precios */
body.term-industria .productItem .price,
body.term-industria .productItem .price span {
  color: var(--primary);
}

/* Badge */
body.term-industria .productItem .badge {
  background-color: var(--primary);
}

/* Badge de preventa */
body.term-industria .productItem .badge.pre {
  background-color: rgb(216, 216, 216);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* === Slider de rango de precios (solo para industria) === */
body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-bar,
body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-from,
body.term-industria div.wpfMainWrapper[data-filter="2"] #wpfBlock_2 .irs-to,
body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-single {
  background-color: var(--primary);
  border-color: var(--primary);
}

body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-handle
  > i:first-child {
  background-color: var(--primary);
}

body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-handle:hover
  > i:first-child {
  background-color: var(--primary);
}

body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-from:before,
body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-to:before,
body.term-industria
  div.wpfMainWrapper[data-filter="2"]
  #wpfBlock_2
  .irs-single:before {
  border-top-color: var(--primary);
}

/* === Taxonomy Selector - Solo para categoría industria === */



body.term-industria #taxonomySelector a svg,
body.category-industria #taxonomySelector a svg {
  filter: grayscale(1) brightness(0);
  transition: var(--transition);
}

body.term-industria #taxonomySelector a:hover svg,
body.category-industria #taxonomySelector a:hover svg {
  filter: grayscale(0) brightness(1);
}



.discount-diff {
	position: absolute;
    top: 0;
    right: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.discount-diff::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 3.5rem solid var(--primary);
    border-left: 3.5rem solid #ffffff;
    border-radius: 0 0.5rem 0 0;
}
.discount-diff span {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 2;
    transform: translate(25%, -50%) rotate(45deg);
}
.discount-diff.pre::before {
	border-top: 3.5rem solid var(--primaryopacity);
}
.discount-diff.pre span {
    color: var(--primary);
}
