body {
    --ymk--products-gap: 2em;
    --ymk--products-small-gap: 1em;
}

ul.subcategories.products.chollo {
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    padding: 0 0 1rem 0rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    position: relative;
    left: 0;
    gap: 1rem !important;
    margin-top: 2rem;
    max-width: fit-content;
    margin: 0 auto;
    justify-content: space-between;
    row-gap: 14px;
    padding: 0.5rem;
}

/* scrollbar */
ul.chollo::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

ul.chollo::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px var(--global--color-primary);
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

ul.chollo::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: var(--global--color-primary);
}

ul.chollo::-webkit-scrollbar-thumb:window-inactive {
  background: var(--global--color-primary);
}

ul.subcategories.chollo:not(.buttons) li.product-category.product, 
ul.subcategories.chollo:not(.buttons) li.product-category.product:not(.buttons){
    padding:0;
}

ul.chollo.products .product-category-img {
  /* height:111px; */
}


ul.subcategories.premia.products li {
    margin-bottom: 0rem !important;
    font-family: var(--heading--font-family);
    font-weight: 500;
}

.woocommerce ul.premia.products li.product-category a {
    align-items: center;
    background-position: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    min-height: 100%;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.woocommerce ul.premia.products li.product-category .woocommerce-loop-category__title {
    position: absolute;
    max-width: var(--responsive--aligndefault-width);
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    margin: 0;
    padding: 20px;
    border: 2px solid rgb(255 255 255);
    font-size: 22px;
    color: #FFF !important;
    margin: 0 1rem;
    height: auto;
    -webkit-transition: border 250ms ease-in-out;
    transition: border 250ms ease-in-out;
    text-align: center;
}

.woocommerce ul.premia.products .product-category-img::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    display: -ms-flexbox;
    -ms-flex-pack: center;
    -ms-flex-align: center;
  border-radius: var(--button--border-radius);
}

 body:not(.home) .product-category img,
 body:not(.home) .product-category svg {
    background: var(--global--color-background);
    color: var(--global--color-primary) !important;
}

 .product-category.active img,
 .product-category.active svg {
    background-color: var(--wp--preset--color--adicustom);
}
 
.tw-header-full.woocommerce.post-type-archive-product .content-area,
.tw-header-bg.woocommerce.post-type-archive-product .content-area,
.woocommerce.tax-product_cat .content-area,
.archive.tax-product_tag .content-area {
    max-width: var(--responsive--alignwide-width);
    max-width: none;
    width: inherit;
    padding-left: var(--responsive--alignfull-padding);
    padding-right: var(--responsive--alignfull-padding);
    margin: 0 auto;
    /* padding: 0vw; */
    /* display: flex; */
    /* align-items: flex-start; */
}

.woocommerce .content-area .site-main {
    flex: 9;
    /* background: white; */
    /* padding-top: 0; */
    /* position: relative; */
    display: block;
    max-width: var(--responsive--alignfull-width);
}

.woocommerce .content-area .site-main {
    /* margin: 0 0vw; */
    /* padding: 0; */
}

body.archive.woocommerce .content-area {
    margin-left: auto;
    margin-right: auto;
    width: var(--responsive--alignwide-width);
    max-width: var(--responsive--alignfull-width);
    padding: 0;
    max-width: none;
    width: inherit;
    padding-left: var(--responsive--alignfull-padding);
    padding-right: var(--responsive--alignfull-padding);
}

.full .woocommerce .content-area {
    max-width: none;
    padding-left: var(--responsive--alignfull-padding);
    padding-right: var(--responsive--alignfull-padding);
    margin: 0 auto;
}

li.tw-blog-card .woocommerce ul.products li.product,
.woocommerce-page ul.products li.product.hentry,
.woocommerce ul.products li.product.hentry {
    padding: 24px;
    margin-bottom: 0;
}

.woocommerce-tabs ul.products li.hentry.product.ymk-related a {
    padding:0;
}



.woocommerce ul.products.columns-1:not(.slick-slider) li.product {
    /* width: calc(100% - 16px)!important; */
    flex: calc(100% - 0px)!important;
    margin: 0 8px 16px 8px;
}

.woocommerce ul.products.columns-2 li.product {
    width: calc(50% - 16px)!important;
    margin: 0 8px 16px 8px;
    /* margin: 0; */
}

.woocommerce ul.products.columns-2 {
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: space-between; */
    /* row-gap: 14px; */
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.woocommerce ul.products.columns-2::after,
.woocommerce ul.products.columns-2::before,
.woocommerce-page ul.products.columns-2::after,
.woocommerce-page ul.products.columns-2::before {
    content: none;
    display: table;
}

.woocommerce ul.products.columns-2 li {
    margin: 0 !important;
    flex: 0 0 calc(50% - 8px);
    padding: .875rem !important;
}

/**/
ul.products:not(.bestdeal) li img.woocommerce-placeholder.wp-post-image,
ul.products:not(.bestdeal) li img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail,
ul.products:not(.bestdeal) li img.woocommerce-placeholder.wp-post-image {
    margin-bottom: var(--global--spacing-vertical);
    margin-top: -24px;
    margin-left: -24px;
    margin-right: -24px;
    max-width: 100%;
    max-width: none;
    min-width: calc(100% + 48px);
    width: 100%;
    grid-area: 1/1;
}

.woocommerce ul.products:not(.bestdeal).columns-2 li img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    margin-bottom: var(--global--spacing-vertical);
    margin-top: -0.875rem;
    margin-left: -0.875rem;
    margin-right: -0.875rem;
    max-width: 100%;
    max-width: none;
    min-width: calc(100% + 1.75rem);
    width: 100%;
    grid-area: 1/1;
}

.woocommerce ul.products:not(.bestdeal) li h2.woocommerce-loop-product__title {
    margin-top: 0;
    margin-bottom: calc( var(--global--spacing-unit) - 10px );
    font-size: var(--archive-heading-size,var(--global--font-size-lg));
    font-size: calc(var(--global--font-size-base)*1);
    clear: both;
    font-family: var(--heading--font-family);
    font-weight: var(--heading--font-weight);
    grid-area: 2/1;
    display: initial;
    /* font-weight: 600; */
}

.woocommerce ul.products:not(.bestdeal) li.product.hentry 
    span.price {
    margin-bottom: 0px;
}

ul.products:not(.bestdeal) a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    width: 100%;
    display: grid;
    justify-items: start;
}

body.standard ul.products:not(.bestdeal) a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    text-decoration: none;
    position: relative;
    width: 100%;
    display: grid;
    justify-items: start;
    justify-content: start;
    /* min-height: 280px; */
}

.woocommerce-page ul.products:not(.bestdeal) li.product.hentry 
a.button {
    /* display:
    none; */
}


.woocommerce-page ul.products:not(.bestdeal) li.product.hentry p {
    margin-top: 0;
    margin-bottom: var(--global--spacing-unit);
    font-size: var(--archive-heading-size,var(--global--font-size-lg));
    font-size: calc(var(--global--font-size-base)*0.95);
}

@media(max-width:480px){
    .woocommerce-page ul.products:not(.bestdeal) li.product.hentry p {
        display:none;
    }
}

/**/

li.attribute-item-all.product-search-attribute-filter-item,
li.cat-item-all.product-search-product_cat-filter-item,
span.product-search-filter-search-clear {
    display: none;
    }

.related.products ul.products, .up-sells ul.products {
    justify-content: start;
}





ul.products {
    margin: 0;
    padding: 0;
}




.wc-block-product-search .wc-block-product-search__button {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0 0 0 6px;
    border: none;
    cursor: pointer;
    background: none;
    padding: 0 0.5em;
    color: white !important;
    position: relative;
    overflow: hidden;
    border-radius: var(--button--border-radius);
    background-color: var(--content--color--link,var(--global--color-primary)) !important;
}

.wc-block-product-search input {
    border-radius: var(--button--border-radius) !important;
    border:0 !important
}

/*NEW PRODUCT GRID*/
.woocommerce ul.products:has(.slick-list){
display: block !important;
}

.woocommerce ul.products:not(.subcategories),
body.tax-pwb-brand ul.products:not(.subcategories) {
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--ymk--products-gap);
    column-gap: var(--ymk--products-gap);
    position: inherit;
    align-items: center;
}

.woocommerce ul.products.columns-1:not(.subcategories)  {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    row-gap: 14px;
    column-gap: 0px;
    position: inherit;
    align-items: center;
}

.woocommerce-page ul.products li.product.hentry,
.woocommerce ul.products li.product:not(wp-block-button__link) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 24px;
    margin-bottom: 0;
    /*  flex: 0 0 calc(25% - 10.5px);*/
    /*  float: left;*/
    /* width: calc(25% - 14px)!important; */
    /*  clear: both;*/
    /*  position: relative;*/
    /*  margin: 0;*/
}

ul.subcategories.products li.wp-block-button__link.product-category a h2 {

    text-decoration: none;
    border: var(--button--border-width) solid transparent;
    border-radius: var(--button--border-radius);
    cursor: pointer;
    font-weight: var(--button--font-weight);
    font-family: var(--button--font-family);
    font-size: var(--button--font-size);
    line-height: var(--button--line-height);
    padding: var(--button--padding-vertical) var(--button--padding-horizontal);
}

ul.subcategories.products li.wp-block-button__link.product-category img {
    display:none
}

@media (hover: hover){
    .woocommerce-page ul.products li.product.hentry:not(wp-block-button__link):hover {
        scale:1.01;
    }
}

.woocommerce ul.products::after,
.woocommerce ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce-page ul.products::before {
    content: none;
    display: table;
    display:none;
}

.woocommerce ul.products.columns-1 li.product  {
    flex: 0 0 calc(100%) !important;
    width: calc(100%)!important;
}


.woocommerce ul.products.columns-2 li.product {
    flex: 0 0 calc(50% - (var(--ymk--products-gap) / 2)) !important;
}

@media( max-width:425px ){

  .woocommerce ul.products:not(.subcategories),
    body.tax-pwb-brand ul.products:not(.subcategories) {
        row-gap: var(--ymk--products-small-gap) !important;
        column-gap: var(--ymk--products-small-gap);
    }
  
  .woocommerce ul.products.columns-2 li.product {
      flex: 0 0 calc(50% - (var(--ymk--products-small-gap) / 2)) !important;
      /* margin-left: 0 !important; */
      /* margin-right: 0 !important; */
  }
}

.woocommerce ul.products.columns-3 li.product  {
    flex: 0 0 calc(33.333333% - (var(--ymk--products-gap) / 1.5)) !important;
}


.woocommerce ul.products.columns-4  li.product {
    flex: 0 0 calc( 25% - (var(--ymk--products-gap) / 1.33)) !important;
}

.woocommerce ul.products.columns-5  li.product {
    flex: 0 0 calc( 20% - (var(--ymk--products-gap) / 1.25)) !important;
}


.woocommerce ul.products.columns-6 li.product  {
    flex: 0 0 calc(16.6666666667% - (var(--ymk--products-gap) / 1.2)) !important;
}

/*HOme*/

.woocommerce ul.products:not(.subcategories) .slick-track {
    /* display: flex; */
    /* justify-content: space-between; */
    /* row-gap: 14px; */
    /* column-gap: 14px; */
}


/*Revision*/


.tw-title-center header.woocommerce-products-header,
body:not(.single-product).tw-title-center nav.woocommerce-breadcrumb,
.tw-title-center header.page-header,
.tw-title-center ul.subcategories li.product-category.product a,
.woocommerce ul.products li.product-category a {
    text-align: center !important;
}

nav.woocommerce-breadcrumb {
    margin-bottom: 0 !important;
    margin-top: 0;
}

header.woocommerce-products-header {
    margin-top: 0rem !important;
    padding-bottom: calc((var(--global--spacing-vertical)*1) + 20px);
}

.woocommerce-products-header {
    border-bottom: 0px solid var(--global--color-border);
}

header.woocommerce-products-header {
    margin-bottom: 0rem;
    display: flex;
    flex-direction: column;
    gap: 16px;        
}

header.woocommerce-products-header .term-description {
    /* color: var(--branding--color-text) !important; */
    /* margin-top: 0.7rem; */
}

h1.woocommerce-products-header__title.page-title {
    font-size: calc( var(--global--font-size-page-title) / 1.5 );
    margin-bottom:0.5rem;
}

header.woocommerce-products-header.button {
    padding: 2rem !important;
}

  .woocommerce .woocommerce-products-header__title.page-title {
    margin: 0;
  }

  header.woocommerce-products-header.button .term-description {
    margin-top: 1rem;
  }

  .woocommerce .content-area .site-main {
      padding: 0;
  }  

.tw-header-bg.woocommerce .site-content {
    padding-top: calc(var(--global--spacing-vertical)*1);
}

ul.subcategories.products {
    margin-top: 0rem;
    margin-bottom: calc(var(--ymk--products-gap) * 2);
    gap: var(--ymk--products-gap);
}

@media( max-width:425px ){
  ul.subcategories.products {
      margin-bottom: calc(var(--ymk--products-small-gap) * 2);
      gap: var(--ymk--products-small-gap);
  }
}

ul.subcategories.products li {
    margin-bottom: 0rem !important;
    font-family: var(--heading--font-family);
  font-weight:500;
}

.woocommerce ul.subcategories.products.columns-2 li {
    padding:0 !important
}

.tw-title-center ul.subcategories {
    justify-content: center;
}

ul.subcategories.chollo:not(.buttons) li.product-category.product,
ul.subcategories.chollo:not(.buttons) li,
ul.subcategories.chollo:not(.buttons) li.product-category.product:not(.buttons) {
    max-width: 111px;
}

ul.subcategories.chollo.buttons li.product-category.product,
ul.subcategories.chollo.buttons li.product-category.product.buttons {
    width: auto !important;
    max-width: fit-content;
}

ul.subcategories.chollo.buttons li.product-category.product a img {
    display:none;
}

.tw-blog-card-shadow li.product-category.product.active h2.woocommerce-loop-category__title {
  color:var(--wp--preset--color--buttonback) !important !important
}

.tw-blog-card-shadow li.product-category.product.active img {
    box-shadow: 0 8px 18px 0 rgb(0 0 0 / 12%);
    transition: box-shadow 0.2s ease-in-out;
    scale:1.1;
    /* margin-bottom: 21px; */
}

.woocommerce ul.products li.product-category a h2.woocommerce-loop-category__title {
    margin-top: 8px;
    /* margin-bottom: calc( var(--global--spacing-unit) - 10px ); */
    /* font-size: var(--archive-heading-size,var(--global--font-size-lg)); */
    font-size: calc(var(--global--font-size-base)*1.1);
    /* clear: both; */
    /* font-family: var(--heading--font-family); */
    /* font-weight: var(--heading--font-weight); */
    grid-area: 2/1;
    display: initial;
    flex: 2;
}

body.ymk-hide-count mark.count {
    display: none;
}

/*Products*/

div#carga ul.products {/* justify-content: space-between; */padding-bottom: 0;}

@media only screen and (min-width: 822px) and (max-width: 1279px){
  
    .tw-blog-grid.tw-blog-card div#carga ul.products {
    /*row-gap: 24px;*/
    }
   
}

@media only screen and (min-width: 822px) and (max-width: 1279px){
    
    .tw-blog-grid .site-main ul.products {
    /* column-gap: 24px; */
    }
    .tw-blog-card .site-main ul.products {
    /*row-gap: 2em;*/
    min-width: 21%;
    }
    
}

@media only screen and (min-width: 1024px){
    
    div#carga ul.products {
    width: calc(100% - 340px);
    margin: 0;
    }
  
    div#carga ul.products {
    --responsive--aligndefault-width: 100%;
    --responsive--alignwide-width: 100%;
    }
    
}

div#carga {
    margin: 0 auto;
}

@media (min-width: 769px) {
    div#carga {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: var(--responsive--alignwide-width);
    display: flex;
    align-items: flex-start;
    margin: 0 auto;
    width: 100%;
    max-width: var(--responsive--alignwide-width);
    max-width: none;
    padding-left: var(--responsive--alignfull-padding);
    padding-right: var(--responsive--alignfull-padding);
    margin-bottom: 2rem;
    margin-top: 2rem;
    }
}

@media only screen and (min-width: 1024px){
    div#carga ul.products {
        float: left;
        width: calc(100%);
    }
}

@media only screen and (max-width: 375px){
    .woocommerce div:not(.slick-list) ul.products[class*=columns-] li.product,
    .woocommerce-page div:not(.slick-list) ul.products[class*=columns-] li.product {
        /* width: auto!important; */
        /* min-width: 100%; */
        margin-left: auto;
        margin-right: auto;
    }
    
    li.tw-blog-card .woocommerce ul.products li.product, .woocommerce-page ul.products li.product.hentry, .woocommerce ul.products li.product.hentry {
        padding: 14px;
    }
  
    ul.products:not(.bestdeal) li img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
        margin-bottom: var(--global--spacing-vertical);
        margin-top: -14px;
        margin-left: -14px;
        margin-right: -14px;
        min-width: calc(100% + 28px);
    }
}


/*
** Tags as categories in shortcode
*/
ul.sub-cats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    width:fit-content;
    margin: 0 auto;
    margin-top: 0.7rem;
}

ul.sub-cats li::marker{
  content:none
}

ul#sub-cats li {
    flex: 1;
    display: flex;
    /* min-width: 83px; */
    flex-wrap: nowrap;
    justify-content: center;
}

ul#sub-cats li a {
    display: flex;
    align-content: space-around;
    flex-direction: column-reverse;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

ul.sub-cats li h4 {
  color:inherit !important;
  font-weight: var(--heading--font-weight);
  font-size: 12px;
  text-decoration: none;
  color: var(--global--color-primary);
  width: auto;
}

ul.product-tag-filter h4 {
  color:inherit !important;
}

ul.sub-cats li a {
    display: flex;
    align-items:center;
    justify-content: center;
    flex-direction: column-reverse;
    text-decoration:none;
    font-size: calc(var(--global--font-size-base)*0.8);
    /* clear: both; */
    /* font-family: var(--heading--font-family); */
}

ul.sub-cats li a span {
    width: 50px;
    height: 50px;
    display: block;
    background: var(--global--color-primary);
    margin-bottom: calc( var(--global--spacing-unit) - 10px );
}

ul.sub-cats li a:hover span {
scale:1.2
}

ul.sub-cats li.chosen a {
color:var(--content--color--link,var(--global--color-primary));
}


ul.sub-cats li.chosen a span {
background: var(--content--color--link,var(--global--color-primary));  
}

ul.sub-cats li a:before {
 content: none !important;
}

@media(max-width:768px){
  .term-description ul#sub-cats {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      padding: 0 0 1rem 0rem;
      overflow-x: scroll;
      overflow-y: hidden;
      position: relative;
      left: 0;
      justify-content: space-between;
      max-width: fit-content;
      align-items: flex-start;
  }
}

@media (hover: hover){
    ul#sub-cats li a:hover span {
        scale: 1.1;
    }
}

/*
** Sub Cats Tags Toggle
*/
ul.help.sub-cats {
    display:flex;
    flex-direction:column;
    row-gap: 0.2rem;
    padding-inline-start: 0;
    margin: 0;
}

ul.help.sub-cats li {
    display:flex;
    flex-direction: column;
    padding: 0rem;
    align-items: inherit;
}

ul.help.sub-cats a {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: left;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 1rem;
    column-gap:1rem;

    border: 1px solid #ddd;
    margin: 0;
    height: auto;
    cursor: pointer;
    transition: all 0.2s;
    padding: 1em;
}

ul.help.sub-cats li h4 {
  flex:12;
  font-size: var(--global--font-size-base);
  margin: 0;
  font-weight: var(--heading--font-weight-strong);
  letter-spacing: var(--heading--letter-spacing-h4);
  line-height: var(--heading--line-height-h4);
  color: var(--global--color-primary) !important;
}

ul.help.sub-cats li a span{
    width: 30px;
    height: 30px;
    display: block;
    background: var(--global--color-primary);
    margin-bottom: 0;
    flex:1;
}

ul.help.sub-cats p {
    border: 1px solid #ddd;
    margin: 0;
    height: auto;
    cursor: pointer;
    transition: all 0.2s;
    padding: 1em;
}

ul.help.sub-cats .nada a:before {
content:none !important;
}


/*
** YMK Auto submenu
** Ocultamos para mmenu
*/
.ymk_sim p.menu-item-description {
    display:none;
}

.woocommerce ul.products li.product-category {
    padding: 0 !important;
}