/**
 * ITX Homepage Carousels - Frontend Styles
 *
 * @package ITX_Homepage_Carousels
 */

.itx-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.itx-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.itx-carousel-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 10px;
}

.itx-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Arrows */
.itx-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background 0.3s ease;
}

.itx-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.itx-carousel-arrow.prev {
    left: 10px;
}

.itx-carousel-arrow.next {
    right: 10px;
}

/* Dots Navigation */
.itx-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.itx-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.itx-carousel-dot.active,
.itx-carousel-dot:hover {
    background: #333;
}

/* Product Carousel Specific */
.itx-product-carousel .itx-carousel-slide {
    text-align: center;
}

.itx-product-carousel .product-image {
    margin-bottom: 10px;
}

.itx-product-carousel .product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.itx-product-carousel .product-title a {
    text-decoration: none;
    color: #333;
}

.itx-product-carousel .product-title a:hover {
    color: #0073aa;
}

.itx-product-carousel .product-price {
    font-size: 14px;
    color: #77a464;
    font-weight: 700;
}

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

.itx-product-carousel .add-to-cart {
    margin-top: 10px;
}

.itx-product-carousel .add-to-cart a {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.itx-product-carousel .add-to-cart a:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .itx-carousel-arrow {
        padding: 10px 15px;
        font-size: 14px;
    }
}
