/**
 * Dorocraft Product Carousel Styles
 * Version: 1.0.0
 */

/* ========== Container & Layout ========== */
.dorocraft-product-carousel-wrapper {
    position: relative;
    width: 100%;
}

.dorocraft-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dorocraft-carousel-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.dorocraft-view-all {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dorocraft-view-all:hover {
    color: #000;
}

/* ========== Carousel Container ========== */
.dorocraft-carousel-container {
    position: relative;
    padding: 0 50px;
}

.dorocraft-swiper {
    overflow: hidden;
}

/* ========== Product Card ========== */
.dorocraft-product-card {
    background: #fff;
    transition: all 0.3s ease;
}

.dorocraft-product-image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 200px;
    margin-bottom: 15px;
}

.dorocraft-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* ========== Hover Effects ========== */
.hover-zoom .dorocraft-product-card:hover .dorocraft-product-image img {
    transform: scale(var(--zoom-scale, 1.08));
}

.hover-lift .dorocraft-product-card:hover {
    transform: translateY(-8px);
}

.hover-shadow .dorocraft-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-zoom-lift .dorocraft-product-card:hover {
    transform: translateY(-8px);
}

.hover-zoom-lift .dorocraft-product-card:hover .dorocraft-product-image img {
    transform: scale(var(--zoom-scale, 1.08));
}

/* ========== Product Content ========== */
.dorocraft-product-content {
    text-align: center;
}

.dorocraft-product-category {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.dorocraft-product-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.dorocraft-product-title:hover {
    color: #000;
}

.dorocraft-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.dorocraft-product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.dorocraft-product-price ins {
    text-decoration: none;
    color: #e53935;
}

.dorocraft-product-stock {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.dorocraft-product-stock.in-stock {
    color: #7ad03a;
}

.dorocraft-product-stock.out-of-stock {
    color: #a44;
}

.dorocraft-product-rating {
    margin-top: 5px;
}

.dorocraft-product-rating .star-rating {
    display: inline-block;
    font-size: 12px;
}

/* ========== Add to Cart Button ========== */
.dorocraft-add-to-cart {
    margin-top: 10px;
}

.dorocraft-add-to-cart .button {
    font-size: 12px;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dorocraft-add-to-cart .button:hover {
    background: #000;
}

/* ========== Navigation Arrows ========== */
.dorocraft-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    background: transparent;
    padding: 10px;
}

.dorocraft-nav-btn:hover {
    color: #000;
}

.dorocraft-nav-prev {
    left: 0;
}

.dorocraft-nav-next {
    right: 0;
}

.dorocraft-nav-btn i,
.dorocraft-nav-btn svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.dorocraft-nav-btn img {
    width: 20px;
    height: auto;
}

.dorocraft-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========== Pagination Dots ========== */
.dorocraft-pagination {
    margin-top: 20px;
    text-align: center;
}

.dorocraft-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.dorocraft-pagination .swiper-pagination-bullet-active {
    background: #333;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .dorocraft-carousel-container {
        padding: 0 40px;
    }
    
    .dorocraft-carousel-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .dorocraft-carousel-container {
        padding: 0 30px;
    }
    
    .dorocraft-carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dorocraft-carousel-title {
        font-size: 18px;
    }
    
    .dorocraft-product-image {
        height: 150px;
    }
    
    .dorocraft-product-title {
        font-size: 13px;
    }
    
    .dorocraft-nav-btn {
        padding: 5px;
    }
    
    .dorocraft-nav-btn i,
    .dorocraft-nav-btn svg {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

/* ========== RTL Support ========== */
[dir="rtl"] .dorocraft-view-all {
    direction: ltr;
}

[dir="rtl"] .dorocraft-nav-prev {
    left: auto;
    right: 0;
}

[dir="rtl"] .dorocraft-nav-next {
    right: auto;
    left: 0;
}

/* ========== Loading State ========== */
.dorocraft-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(20% - 16px);
    margin-right: 20px;
}

@media (max-width: 1024px) {
    .dorocraft-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc(33.333% - 10px);
        margin-right: 15px;
    }
}

@media (max-width: 767px) {
    .dorocraft-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc(50% - 5px);
        margin-right: 10px;
    }
}
