/**
 * One Product Slider - Styles
 */

/* ==============================================
   Slider Wrapper
   ============================================== */
.oe-product-slider-wrapper {
    width: 100%;
    position: relative;
}

.oe-product-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
    margin-bottom: -60px;
}

.oe-product-slider .swiper {
    overflow: hidden;
}

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

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

/* ==============================================
   Product Item
   ============================================== */
.oe-slider-product-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.oe-slider-product-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   Product Image
   ============================================== */
.oe-slider-product-image {
    position: relative;
    overflow: visible;
    background-color: #f5f1e8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    max-height: 350px;
    flex-shrink: 0;
}

.oe-slider-product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.oe-slider-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center;
    display: block;
}

/* ==============================================
   Product Content
   ============================================== */
.oe-slider-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.oe-slider-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.oe-slider-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oe-slider-product-title a:hover {
    color: #8B3A3A;
}

.oe-slider-product-rating {
    margin-bottom: 10px;
}

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

.oe-slider-product-price {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #2d5f4f;
}

.oe-slider-product-price del {
    font-size: 14px;
    color: #999;
    margin-right: 8px;
    font-weight: normal;
}

.oe-slider-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* ==============================================
   Add to Cart Button
   ============================================== */
.oe-slider-product-action {
    margin-top: auto;
}

.oe-slider-add-to-cart {
    display: inline-block;
    width: 100%;
    padding: 12px 30px;
    background-color: #8B3A3A;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.oe-slider-add-to-cart:hover {
    background-color: #6d2e2e;
    box-shadow: 0 4px 12px rgba(139, 58, 58, 0.3);
}

/* ==============================================
   Navigation Arrows
   ============================================== */
.oe-product-slider .swiper-button-prev,
.oe-product-slider .swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: #8B3A3A;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

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

.oe-product-slider .swiper-button-prev:hover,
.oe-product-slider .swiper-button-next:hover {
    background-color: #6d2e2e;
    transform: scale(1.1);
}

.oe-product-slider .swiper-button-prev.swiper-button-disabled,
.oe-product-slider .swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* ==============================================
   Scrollbar
   ============================================== */
.oe-product-slider .swiper-scrollbar,
.oe-product-slider .swiper-scrollbar-horizontal {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #8B4513 !important;
    border-radius: 10px !important;
    height: 6px !important;
    z-index: 10 !important;
}

.oe-product-slider .swiper-scrollbar-drag {
    background-color: #2d5f4f !important;
    border-radius: 20px !important;
    cursor: grab !important;
    transition: all 0.3s ease !important;
    height: 14px !important;
    top: -4px !important;
    border: 3px solid #d4a574 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    position: absolute !important;
}

.oe-product-slider .swiper-scrollbar-drag:active {
    cursor: grabbing !important;
    background-color: #1a4a3d !important;
    border-color: #c49860 !important;
    transform: scaleY(1.1) !important;
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 1024px) {
    .oe-product-slider .swiper-button-prev,
    .oe-product-slider .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .oe-product-slider .swiper-button-prev:after,
    .oe-product-slider .swiper-button-next:after {
        font-size: 16px;
    }

    .oe-slider-product-content {
        padding: 15px;
    }

    .oe-slider-product-title {
        font-size: 14px;
    }

    .oe-slider-product-price {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .oe-product-slider .swiper-button-prev,
    .oe-product-slider .swiper-button-next {
        display: none;
    }

    .oe-product-slider .swiper-scrollbar {
        margin-top: 20px;
    }

    .oe-slider-product-content {
        padding: 12px;
    }

    .oe-slider-add-to-cart {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* ==============================================
   Product Category
   ============================================== */
.oe-slider-product-category {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.oe-slider-product-category a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oe-slider-product-category a:hover {
    color: #8B3A3A;
}

/* ==============================================
   Product Excerpt
   ============================================== */
.oe-slider-product-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ==============================================
   Sale Badge
   ============================================== */
.oe-slider-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* ==============================================
   Image Hover Effects
   ============================================== */
.oe-slider-product-item.hover-effect-zoom .oe-slider-product-image img {
    transition: transform 0.5s ease;
}

.oe-slider-product-item.hover-effect-zoom:hover .oe-slider-product-image img {
    transform: scale(1.1);
}

.oe-slider-product-item.hover-effect-zoom-out .oe-slider-product-image img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.oe-slider-product-item.hover-effect-zoom-out:hover .oe-slider-product-image img {
    transform: scale(1);
}

.oe-slider-product-item.hover-effect-move:hover {
    transform: translateY(-8px);
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 768px) {
    .oe-slider-product-category {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .oe-slider-product-excerpt {
        font-size: 13px;
    }

    .oe-slider-sale-badge {
        font-size: 11px;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }
}

/* ==============================================
   Content Alignment

/* ==============================================
   Content Alignment Utilities
   ============================================== */
/* Center alignment */
.oe-slider-product-content.align-center .oe-slider-product-title,
.oe-slider-product-content.align-center .oe-slider-product-category,
.oe-slider-product-content.align-center .oe-slider-product-excerpt,
.oe-slider-product-content.align-center .oe-slider-product-price,
.oe-slider-product-content.align-center .oe-slider-product-rating {
    text-align: center;
}

.oe-slider-product-content.align-center .oe-slider-add-to-cart {
    margin-left: auto;
    margin-right: auto;
}

/* Right alignment */
.oe-slider-product-content.align-right .oe-slider-product-title,
.oe-slider-product-content.align-right .oe-slider-product-category,
.oe-slider-product-content.align-right .oe-slider-product-excerpt,
.oe-slider-product-content.align-right .oe-slider-product-price,
.oe-slider-product-content.align-right .oe-slider-product-rating {
    text-align: right;
}

.oe-slider-product-content.align-right .oe-slider-add-to-cart {
    margin-left: auto;
    margin-right: 0;
}

/* Left alignment (default) */
.oe-slider-product-content.align-left .oe-slider-add-to-cart {
    margin-left: 0;
    margin-right: auto;
}