.wcs-slider {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.wcs-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.wcs-slide {
    text-align: center;
    padding: 15px;
    min-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wcs-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.wcs-slide-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wcs-slide-inner img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.wcs-slide:hover .wcs-slide-inner img {
    transform: scale(1.05);
}

.wcs-slide h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: #333;
}

.wcs-slide .price {
    font-size: 14px;
    color: #e74c3c;
}

/* Sale Badge */
.wcs-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

/* Star Rating */
.wcs-star-rating {
    margin: 5px 0;
}

.wcs-star-rating .star-rating {
    display: inline-block;
    font-size: 14px;
    color: #f1c40f;
}

.wcs-star-rating .star-rating.no-rating {
    color: #ccc !important;
}

/* Add to Cart & View Cart Button Container */
.wcs-add-to-cart {
    margin-top: 10px;
    text-align: center !important;
}

/* Add to Cart & View Cart Buttons */
.wcs-add-to-cart .button,
.wcs-add-to-cart a.button,
.wcs-add-to-cart a.button.alt,
.wcs-add-to-cart .added_to_cart.wc-forward {
    display: inline-block !important;
    background-color: #333 !important;
    color: #fff !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: background-color 0.3s !important;
    width: 120px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 10px auto 0 !important;
    position: relative !important;
    text-transform: uppercase !important;
}

/* Hover effect for both buttons */
.wcs-add-to-cart .button:hover,
.wcs-add-to-cart a.button:hover,
.wcs-add-to-cart a.button.alt:hover,
.wcs-add-to-cart .added_to_cart.wc-forward:hover {
    background-color: #555 !important;
}

/* Remove default WooCommerce icons from button (before/after) */
.wcs-add-to-cart .button::before,
.wcs-add-to-cart .button::after,
.wcs-add-to-cart a.button::before,
.wcs-add-to-cart a.button::after {
    display: none !important;
    content: none !important;
}

/* ✅ Hide Woostify SVG icon from View Cart */
.wcs-add-to-cart .added_to_cart.wc-forward .woostify-svg-icon {
    display: none !important;
}

/* ✅ Hide ALL possible cart icons from Add to Cart button */
.wcs-add-to-cart .button svg,
.wcs-add-to-cart .button .woostify-svg-icon,
.wcs-add-to-cart .button .woocommerce-cart-icon,
.wcs-add-to-cart .button [class*="icon"],
.wcs-add-to-cart .button .added_to_cart,
.wcs-add-to-cart .button::before {
    display: none !important;
    content: none !important;
}

/* Slick Slider Arrows */
.slick-prev, .slick-next {
    z-index: 1;
}

.slick-prev:before, .slick-next:before {
    color: #333;
}

/* Mobile responsive settings */
@media only screen and (max-width: 768px) {
    .wcs-slider {
        justify-content: center;
        padding: 10px;
    }

    .wcs-slide {
        margin: 0 auto;
    }

    .wcs-slide .wcs-slide-inner {
        text-align: center;
        align-items: center;
    }

    .wcs-add-to-cart {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .wcs-sale-badge {
        top: 0px;
        left: 0px;
        padding: 4px 8px;
        font-size: 16px;
    }
}

/* Space between Add to Cart and View Cart buttons on desktop only */
@media only screen and (min-width: 769px) {
    .wcs-add-to-cart a.button + .added_to_cart,
    .wcs-add-to-cart .button + .added_to_cart {
        margin-left: 10px !important; /* Adjust spacing as needed */
    }
}

