.sc-product-carousel {
    position: relative;
    padding: 0 40px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.sc-carousel-products {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;

    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.sc-carousel-products::-webkit-scrollbar {
    display: none;
}

.sc-carousel-item {
    flex: 0 0 auto;
    width: calc((100% - 60px) / 4);
    min-width: 260px;
    box-sizing: border-box;
}

.sc-product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.sc-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.sc-product-image:hover img {
    transform: scale(1.05);
}

.group-action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 5;
    padding: 20px 0 10px;
}

.sc-product-card:hover .group-action {
    opacity: 1;
    transform: translateY(0);
}

.shop-action {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
}

.shop-action a,
.shop-action button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-action a:hover,
.shop-action button:hover {
    background: #fff;
    color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.shop-action .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.shop-action a:hover .dashicons,
.shop-action button:hover .dashicons {
    transform: scale(1.1);
}

.sc-product-content {
    padding: 15px;
    text-align: center;
}

.sc-product-title {
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: 600;
    height: 55px;
    overflow: hidden;
}

.sc-product-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sc-product-title a:hover {
    color: #80891b;
}

.sc-product-price {
    position: relative;
    font-size: 1.2em;
    font-weight: 700;
    color: #2271b1;
    background: #fff;
    margin-bottom: 5px;
    padding-bottom: 15px;
}

.sc-product-price:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 1px;
    background-color: #999;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    transition: width 0.3s ease;
}

.sc-product-card:hover .sc-product-price:after {
    width: 100px;
}

.sc-product-actions a[class*=add_to_cart_button] {
    background: 0 0;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 0;
    text-transform: uppercase;
    display: -webkit-inline-box;
    display: inline-flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    flex-direction: row-reverse;
    -webkit-box-align: center;
    align-items: center;
}

.sc-product-actions .button:hover {
    color: #d33;
    background-color: #ffffff;
}

.sc-product-actions a[class*=add_to_cart_button]:hover:before {
    -ms-transform: translateX(3px);
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}

.sc-product-actions a[class*=add_to_cart_button]:before {
    -webkit-transition: transform .3s ease;
    -webkit-transition: -webkit-transform .3s ease;
    transition: -webkit-transform .3s ease;
    transition: transform .3s ease;
    transition: transform .3s ease, -webkit-transform .3s ease;
    font-weight: 400;
    line-height: inherit;
    margin-top: -2px;
    text-shadow: 0 0 .1px;
}

.sc-product-actions a[class*=add_to_cart_button]:before {
    font-family: "freshio-icon";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    vertical-align: middle;
    content: "";
    margin-left: 5px;
}

.sc-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    z-index: 2;
}

.sc-carousel-nav:hover {
    background: #ff0000;
    border-color: #cc0000;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.sc-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 1px 4px rgba(255, 0, 0, 0.1);
}

.sc-carousel-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #333;
    transition: color 0.2s ease-in-out;
}

.sc-carousel-nav:hover .dashicons {
    color: #fff;
}

button.sc-prev.slick-prev,
button.sc-next.slick-next {
    background: #fff;
    outline: none;
}

button.sc-prev.slick-prev:focus,
button.sc-next.slick-next:focus {
    background: #fff;
    outline: none;
    border-color: #ddd;
    box-shadow: none;
}

button.sc-prev.slick-prev:hover,
button.sc-next.slick-next:hover {
    background: #ff0000;
    outline: none;
    transition: all 0.2s ease-in-out;
}

button.sc-prev.slick-prev:active,
button.sc-next.slick-next:active {
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.1s ease-in-out;
}

@media (max-width: 1366px) {
    .sc-carousel-item {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 992px) {
    .sc-carousel-item {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 576px) {
    .sc-carousel-item {
        width: 100%;
        min-width: auto;
    }

    .sc-product-carousel {
        padding: 0 20px;
    }

    .elementor-element {
        width: 100% !important;
    }
}