/********** Product Small **********/
#main .product.product-small {
}
#main .product.product-small .col-inner {
    --item-space: 15px;
    box-shadow: 0 0 15px 2px rgba(0, 0, 0, .161);
    height: 375px;
    border-radius: var(--sgce-border-radius);
}
#main .row-products .product-small .product-small.box {
}

@media (min-width: 550px) {
    #main .product.product-small .col-inner {
        height: 445px;
    }
}
@media (min-width: 850px) {
    #main .product.product-small .col-inner {
        height: 432px;
    }
}

/********** SGCE Product Attributes and Variations **********/
.sgce-product-attributes-variations {
    width: 100%;
}
.sgce-product-attributes-variations {
    display: flex;
    justify-content: center;
    padding: var(--sgce-space-1) var(--sgce-space-2) 0 var(--sgce-space-2);
    min-height: 30px;
}
.sgce-product-attributes-variations.attribute-2 {
    /* justify-content: space-between; */
}
.sgce-product-attributes-variations .attribute-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 0 5px;
    /* min-width: 50%; */
}
.sgce-product-attributes-variations.attribute-2 .attribute-options.color {
    margin-right: auto;
}
.sgce-product-attributes-variations .attribute-options .attribute-option {
    margin: 0 0 var(--sgce-space-1) 0;
    padding: 0 5px;
    font-size: var(--sgce-font-size-sm);
    border-radius: var(--sgce-border-radius);
    line-height: 25px;
    height: 25px;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--sgce-primary-color);
}
.sgce-product-attributes-variations .attribute-options .attribute-option .option-inner {
    display: block;
    text-transform: none;
    margin-bottom: 2px;
}
.sgce-product-attributes-variations .attribute-options .attribute-option .option-inner .color-image {
    width: fit-content;
    height: 100%;
    display: block;
}
.sgce-product-attributes-variations .attribute-options .attribute-option.color {
    width: 25px;
}
.sgce-product-attributes-variations .attribute-options .attribute-option.color span {
    display: none;
}
.sgce-product-attributes-variations .attribute-options .attribute-option.image {
    width: 25px;
}
.sgce-product-attributes-variations .attribute-options .attribute-option.image img {
    height: 25px;
}
.sgce-product-attributes-variations .attribute-options .attribute-option.color-option:not(.text) {
    padding: 0;
}
.sgce-product-attributes-variations .attribute-options .attribute-option.color-option:not(.text):before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 1px solid #fff;
    background: transparent;
    border-radius: var(--sgce-border-radius);
}
.sgce-product-attributes-variations .attribute-options .attribute-option.selected {
    background: var(--sgce-accent-color);
    color: #fff;
    transform: scale(1.1);
}
.sgce-product-attributes-variations .attribute-options .attribute-option.color-option:not(.text).selected {
    transform: scale(1.25);
}

/********** Product Thumbnail **********/
.product-small .box-image {
    overflow: unset;
}
.product-small .box-image .attachment-woocommerce_thumbnail {
    object-fit: cover;
    border-top-left-radius: var(--sgce-border-radius);
    border-top-right-radius: var(--sgce-border-radius);
}


/********** Product Title **********/
.product-small .box-text {
    padding: var(--sgce-space-2) var(--sgce-space-2) var(--sgce-space-3) var(--sgce-space-2);
}
.product-small .box-text .title-wrapper {}
.product-small .box-text .title-wrapper .name a {
    font-size: var(--sgce-font-size);
    color: var(--sgce-text-color);
    font-weight: var(--sgce-bold-weight);
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

/********** Product Price **********/
.product-small .price-wrapper {
    margin: var(--sgce-space-2) 0;
    font-size: var(--sgce-font-size);
}
.product-small .price-wrapper .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sgce-space-1);
    /* padding: 0 40px; */
}
.product-small .price-wrapper .price del {margin-right: auto;}
.product-small .price-wrapper .price del span {
    opacity: 1;
    font-size: calc(var(--sgce-font-size) - 2px);
    font-weight: 300;
}
.product-small .price-wrapper .price del span bdi {
}
.product-small .price-wrapper .price ins {}
.product-small .price-wrapper .price ins span {
    color: var(--sgce-accent-color);
    font-size: var(--sgce-font-size);
}

@media (min-width: 550px) {
    .product-small .price-wrapper .price {
        display: flex;
        justify-content: center;
        flex-direction: row;
    }
}
@media (min-width: 850px) {}

/********** Product Thong Tin Bo Sung Row **********/
.wrap-product-thong-tin-bo-sung {
    margin-top: 10px;
}
.wrap-product-thong-tin-bo-sung .product-thong-tin-bo-sung-row-item {
    margin-top: 5px;
}
.wrap-product-thong-tin-bo-sung .product-thong-tin-bo-sung-row-item span {
    /* border: 1px solid var(--sgce-border-color); */
    padding: 0px 5px 3px 5px;
    display: inline-block;
    /* border-radius: var(--sgce-border-radius); */
}


/********** Product Thumbnail Ribbon **********/
.product-ribbon-wrapper {
    position: absolute;
}
.product-ribbon-wrapper.bottom {
    bottom: 0;
}
.product-ribbon-wrapper.left {
    left: 0;
}
.product-ribbon-wrapper .product-ribbon {
    position: relative;
    color: #fff;
    margin: 12px 0;
    display: flex;
    z-index: 1;
}
/* Phần style chung cho ribbon */
.product-ribbon-wrapper .product-ribbon span:before {
    background: linear-gradient(var(--sgce-accent-color) 0 0) bottom/100% 5px no-repeat var(--sgce-accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    content: "";
    padding: 15px 22px;
    position: absolute;
    width: calc(100% + 12px);
    z-index: -1;
}

/* Ribbon Left */
.product-ribbon-wrapper.left .product-ribbon span:before {
    /* border-end-end-radius: 15px; */
    /* border-start-end-radius: 5px; */
    -webkit-clip-path: polygon(
        0 0,100% 0,100% calc(100% - 5px),
        5px calc(100% - 5px),5px 100%,0 calc(100% - 5px)
    );
    clip-path: polygon(
        0 0,100% 0,100% calc(100% - 7px),
        5px calc(100% - 7px),5px 100%,0 calc(100% - 5px)
    );
    left: -4px;
}

/* Ribbon Right */
.product-ribbon-wrapper.right .product-ribbon span:before {
    /* border-end-start-radius: 15px; */
    /* border-start-start-radius: 8px; */
    -webkit-clip-path: polygon(
        0 0,100% 0,100% calc(100% - 5px),
        calc(100% - 5px) 100%,calc(100% - 5px) calc(100% - 5px),0 calc(100% - 5px)
    );
    clip-path: polygon(
        0 0,100% 0,100% calc(100% - 7px),
        calc(100% - 7px) 100%,calc(100% - 7px) calc(100% - 7px),0 calc(100% - 7px)
    );
    right: -7px;
}
.product-ribbon-wrapper .product-ribbon span {
    position: relative;
    font-size: var(--sgce-font-size);
}