/* Dflex Woo Theme - Carousel Styles */

.dflex-product-carousel-wrapper {
    margin-bottom: 40px;
    position: relative;
}

.dflex-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.dflex-carousel-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Fix Owl Carousel Height Issues with Product Cards */
.dflex-product-carousel .owl-stage {
    display: flex;
}

.dflex-product-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}

.dflex-product-carousel .dflex-product-card {
    width: 100%;
    /* Important for flex-child stretching */
}

/* Custom Arrows */
.dflex-product-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.dflex-product-carousel .owl-nav button.owl-prev,
.dflex-product-carousel .owl-nav button.owl-next {
    width: var(--dflex-carousel-nav-size, 40px);
    height: var(--dflex-carousel-nav-size, 40px);
    background: var(--dflex-carousel-nav-bg, #ffffff) !important;
    border: 1px solid #E5E2DC !important;
    border-radius: var(--dflex-carousel-nav-radius, 50px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    color: var(--dflex-carousel-nav-color, #1a1a1a) !important;
    padding: 0 !important;
    cursor: pointer;
}

.dflex-product-carousel .owl-nav button.owl-prev svg,
.dflex-product-carousel .owl-nav button.owl-next svg {
    width: 20px;
    height: 20px;
    display: block;
}

.dflex-product-carousel .owl-nav button.owl-prev:hover,
.dflex-product-carousel .owl-nav button.owl-next:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
    background: #2A3821 !important;
    color: #ffffff !important;
}

/* Dots */
.dflex-product-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.dflex-product-carousel .owl-dots .owl-dot span {
    width: var(--dflex-carousel-dots-size, 8px);
    height: var(--dflex-carousel-dots-size, 8px);
    background: var(--dflex-carousel-dots-color, #DDDDDD);
    border-radius: 50%;
    display: block;
    margin: 0 4px;
    transition: all 0.2s;
}

.dflex-product-carousel .owl-dots .owl-dot.active span {
    background: var(--dflex-carousel-dots-active-color, var(--dflex-color-primary, #E53935));
    width: calc(var(--dflex-carousel-dots-size, 8px) * 3);
    border-radius: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dflex-product-carousel .owl-nav {
        left: 0;
        right: 0;
    }
}

/* Mobile List View for Carousel */
@media (max-width: 767px) {
    .dflex-carousel-mob-list .dflex-product-card {
        flex-direction: row !important;
        align-items: center;
        min-height: 120px;
        height: auto;
    }

    .dflex-carousel-mob-list .dflex-card-image {
        width: 35%;
        max-height: 100%;
        aspect-ratio: auto;
        border-radius: 20px 0 0 20px;
        overflow: hidden;
    }

    .dflex-carousel-mob-list .dflex-card-content {
        width: 65%;
        padding: 10px 15px;
    }
    
    .dflex-carousel-mob-list .dflex-card-title {
        font-size: var(--dflex-card-title-size, 15px) !important;
        margin-bottom: 6px;
    }

    .dflex-carousel-mob-list .dflex-card-footer {
        border-top: 0;
        padding-top: 5px;
        margin-top: auto;
    }
}