product-card{
    display: block;
    background-color: rgba(var(--color-background));
    height: 100%;
}
product-card .product-card-wrapper{
    display: flex;
    flex-direction: column;
    height: 100%;
}
product-card .product-card-image{
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

product-card .product-card-image .block-product-card__second-image{
    position: absolute;
    top: 0;
    left: 0;
}

product-card .product-card-image .empty-image-class{
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}
product-card .product-card-image>img,
product-card .product-card-image>svg{
    aspect-ratio: var(--aspect-ratio);
}

product-card .product-card-image>img{
    background-color: #ffffff;
}
product-card .block-product-card__second-image{
    opacity: 0;
    transition: opacity 0.3s;
}

product-card .product-card-fixed{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
}
product-card .product-add-button{
    position: absolute;
    bottom: 30px;
}

product-card:hover .block-product-card__second-image{
    opacity: 1;
}

product-card .product-card-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
product-card .block-product-card__price{
    margin-top: 16px;
}
product-card .product-card_tags{
    display:flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

product-card .product-card_tag{
    border-radius:30px;
    border:1px solid #FF744F4D;
    padding:2px 20px;
}
product-card form button{
    width: 100%;
}
product-card form button.loading .button__content{
    color: transparent;
}
product-card form button svg{
    animation: spin 1s linear infinite;
}
product-card form button.loading svg{
    color: rgb(var(--color-text));
    display: block;
    margin-block-start:0;
}

product-card .block-product-card__spec{
    margin-top: 20px;
    width: 100%;
}

product-card .block-product-card__spec .spec-item-icon{
  width: 30px;
  align-items: center;
  display: flex;
  flex-shrink: 0
}

product-card .block-product-card__spec .spec-item{
    display: flex;
    align-items: center;
}
product-card .block-product-card__spec.one .spec-item{
    padding-block: 6px;
    gap: 10px;
}

product-card .block-product-card__spec.two{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    border:1px solid rgba(var(--color-entry-line),0.3);
    padding: 10px;
}
product-card .block-product-card__spec.two .spec-item{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 5px;
    column-gap: 8px;
    align-items: center;
    padding: 4px;
}

product-card .block-product-card__spec.two .spec-item-icon {
  grid-column: 1;
  grid-row: 1/3;
}

product-card .block-product-card__spec.two .spec-item-value{
    grid-column: 2;
    grid-row: 1;
}

product-card .block-product-card__spec.two .spec-item-name {
  grid-column: 2;
  grid-row: 2;
}

product-card .block-product-card__spec.one .spec-item:not(:last-child){
    border-bottom: 1px solid rgba(var(--color-entry-line),0.4);
}

product-card .block-product-card__spec.two .spec-item:nth-child(2n-1){
    border-right:1px solid rgba(var(--color-entry-line),0.4);
}

product-card .block-product-card__spec.two .spec-item:not(:nth-last-child(-n+2)){
    border-bottom:1px solid rgba(var(--color-entry-line),0.4);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

product-card .product-add-button{
    display: none;
}

product-card:hover .product-add-button{
    display: block;
}

product-card .product-card-info{
    padding:24px 26px ;
}

.block-product-card__quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 8px;
  cursor: pointer;
  background-color: #F7F7F7;
  border: 0;
  border-radius: 50%;
}
.block-product-card__quick-add svg {
  width: 100%;
  height: 100%;
}

.block-product-card__quick-add .icon-loading {
  display: none;
  margin: 8px;
  color: rgb(255 255 255 / 100%);
  animation: animation-button-loading linear 1.5s infinite;
}
.block-product-card__quick-add.loading {
  pointer-events: none;
}
.block-product-card__quick-add.loading .icon-quick-add {
  display: none;
}
.block-product-card__quick-add.loading .icon-loading {
  display: block;
}

.block-product-card__modal-content {
  width: 80vw;
  max-width: 1200px;
  max-height: 80vh;
  overflow-y: auto;
}

.block-product-card__modal-content theme-product-detail {
  --page-padding: 40px;
  --detail-padding-inline-start: 0px !important;
  --detail-padding-inline-end: 0px !important;
  --detail-padding-block-start: 0px !important;
  --detail-padding-block-end: 0px !important;

  padding: var(--page-padding);
}

product-card .product-quick-compare-button{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 8px;
    cursor: pointer;
    background-color: #F7F7F7;
    border: 0;
    border-radius: 50%;
}


product-card .product-badges{
    background-color: #E00000;
    border-radius: 50px;
    color: #ffffff;
    padding: 4px 10px;
    position: absolute;
    top: 10px;
    left: 10px;
}

product-card .product-icons-button{
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}
@media(max-width:959px){
    product-card .product-card-image{
        margin-bottom:4vw;
    }
    product-card .product-card-title{
        margin-bottom:1.3333vw;
    }
    product-card .block-product-card__price{
        margin-bottom:4vw;
    }
    product-card .product-card_tag{
        padding:2px 14px; 
    }
    product-card .product-add-button{
        bottom:4vw;
    }
    product-card .product-card-info{
        padding: 3.2vw 3.4667vw;
    }
}