/* Discount Sliders Styles - Digikala Style */

.daily-discounts-section,
.monthly-discounts-section {
    position: relative;
}

/* Hero Section Discount Cards */
.discount-card-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.discount-card-hero:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hero Section Swiper Navigation */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    color: #dc3545;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    background: #fff;
    color: #dc3545;
}

.hero-section .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.hero-section .swiper-pagination-bullet-active {
    background: #fff;
}

.section-header {
    margin-bottom: 2rem;
}

/* Swiper Container */
.daily-discounts-swiper,
.monthly-discounts-swiper {
    width: 100%;
    height: auto;
    padding: 20px 0 50px 0;
    position: relative;
}

/* Product Card */
.discount-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.discount-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4056;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Product Info Without Image */
.product-info-no-image {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.product-sku {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.product-sku i {
    color: #00bfd6;
}

/* Price Section */
.price-section {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.price-type-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.price-type-badge i {
    font-size: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.original-price {
    font-size: 14px;
    color: #81858b;
    text-decoration: line-through;
}

.discount-percentage {
    font-size: 14px;
    color: #ef4056;
    font-weight: bold;
}

.discounted-price {
    font-size: 18px;
    font-weight: bold;
    color: #00bfd6;
}

.discount-amount {
    font-size: 13px;
    color: #00a049;
}

/* Quantity Section */
.quantity-section {
    margin: 12px 0;
}

.quantity-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.quantity-label i {
    color: #00bfd6;
}

.quantity-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.quantity-input:focus {
    border-color: #00bfd6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 191, 214, 0.1);
}

/* Add to Cart Section */
.add-to-cart-section {
    margin-top: auto;
    padding-top: 12px;
}

.add-to-cart-btn {
    width: 100%;
    background: #00bfd6;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #00a8bf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 214, 0.3);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Product Info */
.product-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.brand-name {
    font-size: 12px;
    color: #81858b;
    margin-bottom: 8px;
}

/* Price Section */
.price-section {
    margin-top: auto;
    padding-top: 8px;
}

.original-price {
    font-size: 12px;
    color: #81858b;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.discounted-price {
    font-size: 18px;
    font-weight: bold;
    color: #00bfd6;
    margin-bottom: 4px;
}

.discount-amount {
    font-size: 11px;
    color: #00a049;
    display: block;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #00bfd6;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #00bfd6;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 191, 214, 0.3);
}

.swiper-button-next {
    right: -20px;
}

.swiper-button-prev {
    left: -20px;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #00bfd6;
    opacity: 0.3;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .daily-discounts-swiper,
    .monthly-discounts-swiper {
        padding: 20px 0 40px 0;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .discount-card {
        margin: 0 5px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: 36px;
    }
    
    .discounted-price {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        padding-top: 100%;
    }
    
    .product-info {
        padding: 10px;
    }
}

/* Loading State */
.swiper-slide .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty State */
.empty-discounts {
    text-align: center;
    padding: 3rem 1rem;
    color: #81858b;
}

.empty-discounts i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

