.ces-product-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.ces-product-slider {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.ces-product-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.ces-product-slider .swiper-slide {
    height: auto;
    display: flex;
}

.ces-product-card {
    width: 100%;
    background: #FFF6EF;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ces-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ces-product-image-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.ces-product-image {
    display: block;
    /* overflow: hidden; */
    border-radius: 10px;
    position: relative;
}

.ces-product-image img {
    width: 100%;
    height: 320px;
    object-fit: fill;
    border-radius: 10px;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.ces-product-image .ces-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.ces-product-card:hover .ces-product-image img:first-child {
    opacity: 0;
}

.ces-product-card:hover .ces-product-image .ces-hover-image {
    opacity: 1;
}

.ces-product-card:hover .ces-product-image img {
    transform: scale(1.05);
}

.ces-sale-badge,
.ces-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.ces-sale-badge.ces-badge-preset1 {
    background: #ff4444;
    color: #fff;
    border-radius: 4px;
}

.ces-sale-badge.ces-badge-preset2 {
    background: #ffeb3b;
    color: #333;
    border-radius: 20px;
}

.ces-sale-badge.ces-badge-preset3 {
    background: #4caf50;
    color: #fff;
    border-radius: 0;
    transform: rotate(-5deg);
}

.ces-stock-badge {
    background: #757575;
    color: #fff;
    top: auto;
    bottom: 10px;
    left: 10px;
}

.ces-product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ces-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    min-height: 45px;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.ces-product-card a:hover .ces-product-title {
    color: #2b6cff;
}

.ces-product-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: #6f6f6f;
    font-size: 14px;
}

.ces-product-author {
    font-style: italic;
}

.ces-product-rating {
    display: inline-flex;
    align-items: center;
}

.ces-product-rating .star-rating {
    font-size: 14px;
}

.ces-product-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ces-product-price {
    font-weight: 700;
    font-size: 18px;
    color: #e63946;
    margin: 10px 0 0;
}

.ces-product-savings {
    background: #e8f7ea;
    color: #2f7a32;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ces-product-price del {
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.ces-add-to-cart {
    display: inline-block;
    background: #FF7800;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid #fff;
}

.ces-add-to-cart:hover {
    background: #fff;
    color: #FF7800 !important;
    border-color: #FF7800;
    transform: translateY(-2px);
}

.ces-product-slider .swiper-button-next,
.ces-product-slider .swiper-button-prev {
    color: #2b6cff;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ces-product-slider .swiper-button-next:after,
.ces-product-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 700;
}

.ces-product-slider .swiper-button-next:hover,
.ces-product-slider .swiper-button-prev:hover {
    background: #2b6cff;
    color: #fff;
}

.ces-product-slider .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.ces-product-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.ces-product-slider .swiper-pagination-bullet-active {
    background: #2b6cff;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .ces-product-image img {
        height: 240px;
    }
    
    .ces-product-title {
        font-size: 15px;
        min-height: 40px;
    }
}

@media (max-width: 768px) {
    .ces-product-card {
        padding: 15px;
    }
    
    .ces-product-image img {
        height: 200px;
    }
    
    .ces-product-title {
        font-size: 14px;
        min-height: auto;
    }
    
    .ces-product-price {
        font-size: 16px;
    }
    
    .ces-add-to-cart {
        padding: 10px 20px;
        font-size: 13px;
    }
}
