/* Modern Offers Widget - Minimal Design for Demo 1 */

.mlm-offers-slider-wrapper {
    margin: 0 0 40px;
    padding: 0 40px;
}

.mlm-offers-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Swiper container */
.mlm-offers-slider {
    position: relative;
    padding: 0 60px; /* فضا برای دکمه‌های ناوبری */
}

/* Modern Offer Card - شبیه کارت محصولات */
.mlm-product-offer {
    background: white;
    border-radius: 12px;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mlm-product-offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Sale Badge */
.mlm-product-offer .sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF5252;
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

/* Image Section - نسبت ثابت مثل کارت محصولات */
.mlm-product-offer .item-header {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* نسبت 3:2 */
    background: #f5f5f5;
    overflow: hidden;
}

.mlm-product-offer .item-header a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mlm-product-offer .item-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mlm-product-offer:hover .item-header img {
    transform: scale(1.05);
}

/* Content Section */
.mlm-product-offer .offer-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Product Title */
.mlm-product-offer .offer-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px; /* ارتفاع ثابت برای 2 خط */
}

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

.mlm-product-offer .offer-title a:hover {
    color: #FFA726;
}

/* Price Section */
.mlm-product-offer .price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mlm-product-offer .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.mlm-product-offer .sale-price {
    font-size: 16px;
    font-weight: 700;
    color: #FF5252;
}

.mlm-product-offer .discount-badge {
    background: #FFE0E0;
    color: #FF5252;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* Countdown Timer */
.mlm-product-offer .countdown-section {
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.mlm-product-offer .countdown-section .icon {
    font-size: 14px;
    color: #FFA726;
    flex-shrink: 0;
}

.mlm-product-offer .countdown-label {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.mlm-product-offer .mlm-countdown {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    direction: ltr;
    flex-shrink: 1;
    min-width: 0;
}

/* Countdown plugin elements */
.mlm-product-offer .mlm-countdown > span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.mlm-product-offer .mlm-countdown .countdown-amount {
    font-size: 11px;
    font-weight: 700;
}

.mlm-product-offer .mlm-countdown .countdown-period {
    font-size: 9px;
    margin-right: 2px;
}

.mlm-product-offer .mlm-countdown .countdown-section {
    background: none;
    padding: 0;
    margin: 0;
}

/* Progress Bar - نوار خالی شونده */
.mlm-product-offer .progress-section {
    margin-top: auto;
    padding-top: 5px;
}

.mlm-product-offer .progress-label {
    font-size: 10px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mlm-product-offer .progress-bar-wrapper {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.mlm-product-offer .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA726 0%, #FF9800 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Alert for expired offers */
.mlm-product-offer .alert-danger {
    background: #FFE0E0;
    color: #FF5252;
    border-radius: 10px !important;
    padding: 10px 15px;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    margin: 0;
}

/* Purchase Button */
.mlm-product-offer .purchase-wrapper {
    margin-top: 5px;
}

.mlm-product-offer .purchase-wrapper .btn {
    background: #FFA726;
    border: none;
    border-radius: 8px !important;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3);
    width: 100%;
}

.mlm-product-offer .purchase-wrapper .btn:hover {
    background: #FB8C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 167, 38, 0.4);
}

/* Vendor Info - در پایین */
.mlm-product-offer .vendor-info {
    padding-top: 10px;
    margin-top: 5px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mlm-product-offer .item-vendor {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: color 0.3s ease;
}

.mlm-product-offer .item-vendor:hover {
    color: #FFA726;
}

.mlm-product-offer .item-vendor img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 5px;
}

.mlm-product-offer .item-vendor.verified::after {
    content: '✓';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    margin-right: 3px;
}

/* Swiper Navigation Buttons */
.mlm-offers-slider .swiper-button-next,
.mlm-offers-slider .swiper-button-prev {
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mlm-offers-slider .swiper-button-next:hover,
.mlm-offers-slider .swiper-button-prev:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.mlm-offers-slider .swiper-button-next::after,
.mlm-offers-slider .swiper-button-prev::after {
    font-size: 18px;
    color: #FFA726;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 1024px) {
    .mlm-offers-slider-wrapper {
        padding: 0 30px;
    }
    
    .mlm-offers-slider {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .mlm-offers-slider-wrapper {
        padding: 0 20px;
    }
    
    .mlm-offers-slider {
        padding: 0 45px;
    }
    
    .mlm-product-offer .offer-content {
        padding: 15px;
    }
    
    .mlm-offers-slider .swiper-button-next,
    .mlm-offers-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .mlm-offers-slider .swiper-button-next::after,
    .mlm-offers-slider .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mlm-offers-slider-wrapper {
        padding: 0 15px;
    }
    
    .mlm-offers-slider {
        padding: 0 40px;
    }
    
    .mlm-product-offer .sale-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .mlm-product-offer .offer-content {
        padding: 15px;
        gap: 12px;
    }
    
    .mlm-product-offer .offer-title {
        font-size: 14px;
    }
    
    .mlm-product-offer .sale-price {
        font-size: 16px;
    }
    
    .mlm-product-offer .purchase-wrapper .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .mlm-offers-slider .swiper-button-next,
    .mlm-offers-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .mlm-offers-slider .swiper-button-next::after,
    .mlm-offers-slider .swiper-button-prev::after {
        font-size: 14px;
    }
}
