/* تصميم الصناديق المجمعة */

.bundle-boxes-section {
    padding: 60px 0;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.bundle-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.bundle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* رأس الصندوق */
.bundle-header {
    position: relative;
}

.bundle-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.bundle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bundle-card:hover .bundle-image img {
    transform: scale(1.1);
}

.bundle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.bundle-badge.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bundle-badge.discount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bundle-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    backdrop-filter: blur(10px);
}

.bundle-category i {
    margin-left: 5px;
    color: #667eea;
}

/* محتوى الصندوق */
.bundle-content {
    padding: 25px;
}

.bundle-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.bundle-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* المنتجات في الصندوق */
.bundle-products {
    margin-bottom: 25px;
}

.bundle-products h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.product-item:hover {
    background: #e2e8f0;
}

.product-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.product-quantity {
    font-size: 12px;
    color: #718096;
}

.more-products {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.more-products i {
    color: #667eea;
}

/* التسعير */
.bundle-pricing {
    margin-bottom: 25px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 28px;
    font-weight: 800;
    color: #667eea;
}

.old-price {
    font-size: 18px;
    color: #a0aec0;
    text-decoration: line-through;
}

.value-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-value {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.savings {
    font-size: 14px;
    color: #38a169;
    font-weight: 600;
}

/* الأزرار */
.bundle-actions {
    display: flex;
    gap: 15px;
}

.bundle-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bundle-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.bundle-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.bundle-actions .btn-secondary {
    background: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.bundle-actions .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* حالة عدم وجود صناديق */
.no-bundles {
    text-align: center;
    padding: 80px 20px;
}

.no-bundles-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
}

.no-bundles h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.no-bundles p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-bundles-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-bundles-actions .btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-bundles-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.no-bundles-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.no-bundles-actions .btn-secondary {
    background: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.no-bundles-actions .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .bundle-card {
        margin: 0 10px;
    }
    
    .bundle-content {
        padding: 20px;
    }
    
    .bundle-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .bundle-actions {
        flex-direction: column;
    }
    
    .bundle-actions .btn {
        width: 100%;
    }
    
    .no-bundles-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-bundles-actions .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bundle-image {
        height: 150px;
    }
    
    .bundle-content {
        padding: 15px;
    }
    
    .bundle-title {
        font-size: 18px;
    }
    
    .bundle-description {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .old-price {
        font-size: 16px;
    }
    
    .product-item {
        padding: 8px;
    }
    
    .product-item img {
        width: 35px;
        height: 35px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-quantity {
        font-size: 11px;
    }
}

/* تأثيرات حركية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bundle-card {
    animation: fadeInUp 0.6s ease forwards;
}

.bundle-card:nth-child(2) {
    animation-delay: 0.1s;
}

.bundle-card:nth-child(3) {
    animation-delay: 0.2s;
}

.bundle-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* تأثير التوهج للصناديق المميزة */
.bundle-card:has(.bundle-badge.featured) {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

.bundle-card:has(.bundle-badge.featured):hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) border-box;
} 