.hdt-compare-table {
  border: 0.1rem solid rgb(var(--color-line-border)); 
  border-radius: var(--radius-input);
  color: rgb(var(--color-foreground2));
  max-height: 85vh;
  overflow: auto;
  border-radius: var(--radius-xs);
}
.hdt-compare-row{
  --spacing-x:0;
  --spacing-y:0;
}
/* .hdt-compare-value{
  line-height: 1.4;
} */
.hdt-compare-field{
  font-size: var(--text-lg);
}
.hdt-compare-field span{
  position: absolute;
  top:50%;
  transform: translateY(-50%);
}
.hdt-compare-col {
  padding: var(--spacing-1-6) var(--spacing-1);
  word-break: break-word;
  min-width:18rem;
  flex: 1!important;
}
.hdt-compare-col:not(:last-child) {
  border-inline-end: 0.1rem solid rgb(var(--color-line-border));
}
.hdt-compare-row:nth-child(2n) .hdt-compare-col {
  background-color: rgb(var(--color-foreground)/.05);
}
.hdt-compare-basic__content{
  flex: 1;
  width: 100%;
}
.hdt-compare-basic__content .hdt-compare-group-btns{
  margin-top:auto;
}
.hdt-compare-remove{text-decoration: underline;transition: 0.3s ease;}

.hdt-main-compare .hdt-placeholder-svg {
  display: block;
  fill: #222;
  background-color: #f5f5f5;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0.1rem solid #ddd;
}
.hdt-compare-image{
  padding: var(--spacing-1-8) 0;
}
.hdt-compare-image img{
  border-radius: var(--radius-product-card);
}
.hdt-compare-stock.is--in-stock{
  color:rgb(var(--color-custom-badge-background));
}
.hdt-compare-stock svg{
  margin-inline-end: var(--spacing-0-8);
  position: relative;
  top: -0.1rem;
}
.hdt-compare-title{transition: color .3s ease;}
.hdt-compare-price{margin-top: var(--spacing-1);}
.hdt-compare-price .hdt-price__list{justify-content: center;}
.hdt-compare-price .hdt-price__list .hdt-price{letter-spacing: 0;}

.hdt-compare-group-btns >div{
  margin-top: var(--spacing-2);
}
.hdt-compare-group-btns button,
.hdt-compare-group-btns a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-1);
  width: 4.2rem;
  min-height: 4.2rem;
  border: 1px solid rgb(var(--color-line-border));
  border-radius: var(--radius-button);
  transition: all .3s ease;
  position: relative;
}
.hdt-compare-group-btns button span,
.hdt-compare-group-btns a span{
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  line-height: 1;
  display: none;
}
.hdt-compare-group-btns button:before{
  content: "";
  position: absolute;
  z-index: 2;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border: solid 0.2rem currentColor;
  border-top-color: transparent;
  animation: hdt_rotator .6s linear infinite var(--hdt-anim-state, paused);
  opacity: 0;
}
.hdt-compare-group-btns button[aria-busy=true]:before{
  opacity: 1;
  --hdt-anim-state: running;
}
.hdt-compare-group-btns button[aria-busy=true] svg,
.hdt-compare-group-btns button[aria-busy=true] span{
  opacity: 0;
}
.hdt-compare-empty >*+*{
  margin-top: var(--spacing-3);
}
@media(min-width:768px){
  .hdt-compare-col {
    min-width:30rem;
  }
}
@media(min-width:1150px){
  .hdt-compare-title{
    font-size: var(--text-lg);
  }
  .hdt-compare-field{
    font-size: var(--text-2xl);
  }
  .hdt-compare-col {
    min-width:36rem;
    padding-inline-start:var(--spacing-3-4); 
    padding-inline-end:var(--spacing-3-4); 
  }
  .hdt-compare-basic__content .hdt-compare-group-btns{
    margin-bottom: var(--spacing-2-4);
  }
  .hdt-compare-group-btns button,
  .hdt-compare-group-btns a{
    width: 100%;
    padding: 0 1rem;
  }
  .hdt-compare-group-btns button span,
  .hdt-compare-group-btns a span{
    display: block;
  }
}
@media (-moz-touch-enabled: 0), (hover: hover) and (min-width: 1150px){
  .hdt-compare-group-btns button:hover{
    color: rgb(var(--color-accent));
    border-color: rgb(var(--color-accent));
  }
  .hdt-compare-title:hover,
  .hdt-compare-remove:hover{
    color: rgb(var(--color-accent));
  }

}


.hdt-main-compare {
  .hdt-product-form{
    justify-content: center;
  }
  wrapp-hdt-open-modal-btn{
    display: inline-block;
  }
  .hdt-card-product__btn-ultra,
  .hdt-card-product__btn-quick-view {
    position: relative;
    border: 1px solid rgb(var(--color-accent));
    color: rgb(var(--color-accent));
    border-radius: var(--radius-button);
    padding: 0 18px;
    line-height: 40px;
    width: 100%;
    max-width: 13.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .25s ease,background-color .25s ease,border-color .25s ease,box-shadow 0s ease,opacity .25s ease;
    overflow: hidden;
    .hdt-pr-card-icon{
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      transform: translateY(100%);
      display: flex;
      transition: opacity .15s,transform .25s,-webkit-transform .25s;
      align-items: center;
      justify-content: center;
      svg.hdt-svg-pr-icon{
        width: 1.6rem;
        height: 1.6rem;
      }

    }
    span:not(.hdt-pr-card-icon){
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: inline-block;
      width: auto;
      transition: opacity .15s,transform .25s,-webkit-transform .25s;
      line-height: 40px;
    }
    &:hover{
      color: rgb(var(--hdt-btn-color,var(--color-foreground)));
      background-color: rgb(var(--hdt-btn-bg,var(--color-button)));
      border-color: rgb(var(--hdt-btn-border,var(--color-button)));
      .hdt-pr-card-icon{
        transform: translateY(0);
      }
      span:not(.hdt-pr-card-icon){
        transform: translateY(-100%);
      }
    }
  }
  .hdt-card-product__btn-ultra{
    background-color: rgb(var(--color-accent));
    color: rgb(var(--hdt-btn-color));
  }
  .hdt-quantity-wrapp{ 
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 0%;

    border-radius: var(--radius-button);
    padding-inline-end: 1px;
    margin-inline-end: -1px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    background-color: rgb(var(--hdt-btn-color)/.75);
    backdrop-filter: blur(5px);
    width: min(100%,80px);
    margin-top: 10px;
    border: 1px solid rgb(var(--color-accent));
    color: rgb(var(--color-accent));

    button{
      min-width: 24px;
      color: rgb(var(--hdt-btn-bg));
      svg{
        width: 8px;
        margin: auto;
      }
    }
    input{
      font-size: 16px;
      width: max(100%,36px);
      background-color: transparent;
      transform: scale(0.95);
      color: rgb(var(--hdt-btn-bg));
      text-align: center;
      &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }
      &::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }
      &[type="number"]{
        -moz-appearance: textfield;
      }
    }
    & ~ hdt-tooltip .hdt-card-product__btn-ultra{
      border-end-start-radius: 0;
      border-start-start-radius: 0;
      min-width: auto;

      /* container-type: inline-size;
      container-name: btn_atc; */

      @container btn_atc (max-width: 100px){
        span:not(.hdt-pr-card-icon){
          opacity: 0;
        }
        .hdt-pr-card-icon{
          transform: translateY(0);
        }
      }
    }
  }
}

.hdt-main-search{
  .hdt-main-search-content{
    width: min(700px,100%);
    margin: 0 auto;
    margin-top: 90px;
    margin-bottom: 60px;
    @media (max-width: 768px){
      margin-top: 40px;
      margin-bottom: 40px;
    }
    .hdt-search-head{
      margin-bottom: 15px;
      .hdt-search-input{
        border-radius: 0px;
        border-inline-end: 0px;
        height: 44px;
      }
      .hdt-mini-search__submit{
        width: 50px;
        border-radius: 0px;
        height: 44px;
        padding: 5px;
        svg{
          width: 18px;
          .dir--ltr &{
            transform: rotateY(180deg);
          }
        }
      }
    }
    .hdt-search-suggest{
      .hdt-search-content-title{
        padding: 15px;
        background-color: rgb(var(--color-background2)/.5);
        text-transform: uppercase;
        border: 1px solid rgb(var(--color-line-border));
      }
      .hdt-suggest-products{
        --spacing-x: 0px;
        --spacing-y: 0px;
        border-inline-start: 1px solid rgb(var(--color-line-border));
        .hdt-loop-item .hdt-loop-inner{
          padding: 15px;
          border-inline-end: 1px solid rgb(var(--color-line-border));
          border-block-end: 1px solid rgb(var(--color-line-border));
        }
      }
      .hdt-search-suggest-bottom{
        padding: 15px;
        border: 1px solid rgb(var(--color-line-border));
        border-block-start: 0px;
        a{
          text-transform: uppercase;
          gap: 5px;
          font-weight: var(--font-medium);
          transition: all .3s ease;
          &:hover{
            color: rgb(var(--color-accent));
            gap: 10px;
          }
        }
      }
    }
  }
  .hdt-article-item{
    .hdt-article-thumb{
      border-radius: var(--radius-product-media);
    }
    .hdt-article-title{
      margin-top: 15px;
    }
  }
  .hdt-page-item-inner{
    .hdt-page-label{
      background-color: rgb(var(--color-background2)/.5);
      color: rgb(var(--color-foreground));
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-product-media);      
    }
    .hdt-page-title{
      margin-top: 15px;
    }
  }
  .hdt-search-empty{
    padding: 10rem 0;
    @media (max-width: 768px){
      padding: 5rem 0;
    }
    svg#icon-h-search {
      width: 90px;
      height: auto;
    }
    .hdt-no-result-product{
      margin-top: 40px;
      width: 100%;
      border: 1px solid rgb(var(--color-warning-text));
      color: rgb(var(--color-warning-text));
      padding: 15px 55px;
      display: flex;
      align-items: center;
      text-align: start;
      gap: 15px;
      svg{
        fill:currentColor
      }
      @media (max-width: 768px){
        padding: 15px;
      }
    }
  }
}