/* تصميم قسم "خارج الصندوق" */

.out-of-box-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.out-of-box-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gift" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23gift)"/></svg>');
    opacity: 0.3;
}

.out-of-box-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    padding: 50px;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.5s ease;
}

.out-of-box-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* شريط القطري "ألعاب" */
.out-of-box-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    transform: rotate(45deg) translate(35px, -15px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(45deg) translate(35px, -15px) scale(1); }
    50% { transform: rotate(45deg) translate(35px, -15px) scale(1.05); }
}

/* العنوان الرئيسي */
.out-of-box-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.out-of-box-title {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: none;
    position: relative;
    z-index: 5;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6)); }
}

/* شبكة المنتجات */
.out-of-box-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.out-of-box-product {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg);
}

.out-of-box-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.out-of-box-product:hover::before {
    left: 100%;
}

.out-of-box-product:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-15px) scale(1.05);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.out-of-box-product .product-image {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transition: all 0.6s ease;
}

.out-of-box-product .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.out-of-box-product:hover .product-image::before {
    transform: translateX(100%);
}

.out-of-box-product .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(1.1) contrast(1.1);
}

.out-of-box-product:hover .product-image {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.out-of-box-product:hover .product-image img {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.2);
}

/* شارة مميز */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    z-index: 10;
    animation: bounce 2s infinite;
    transform-origin: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.featured-badge i {
    margin-left: 5px;
    font-size: 11px;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* فئة المنتج */
.product-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.out-of-box-product .product-info h3 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: all 0.3s ease;
    position: relative;
}

.out-of-box-product:hover .product-info h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.out-of-box-product .product-info p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.7;
    min-height: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.out-of-box-product:hover .product-info p {
    color: #475569;
    transform: translateY(-2px);
}

.out-of-box-product .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.out-of-box-product .current-price {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.out-of-box-product:hover .current-price {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.out-of-box-product .old-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.out-of-box-product:hover .old-price {
    opacity: 1;
    transform: scale(1.05);
}

/* شارة الخصم */
.discount-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.out-of-box-product .add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.out-of-box-product .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.out-of-box-product .add-to-cart-btn:hover::before {
    left: 100%;
}

.out-of-box-product .add-to-cart-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.out-of-box-product .add-to-cart-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.out-of-box-product .add-to-cart-btn i {
    margin-left: 8px;
}

/* التذييل */
.out-of-box-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.out-of-box-footer h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.out-of-box-footer p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

/* تأثيرات إضافية */
.out-of-box-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .out-of-box-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .out-of-box-title {
        font-size: 36px;
    }
    
    .out-of-box-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .out-of-box-product {
        padding: 20px;
    }
    
    .out-of-box-product .product-image {
        height: 180px;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .product-category {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .out-of-box-product .product-info h3 {
        font-size: 18px;
    }
    
    .out-of-box-product .current-price {
        font-size: 22px;
    }
    
    .out-of-box-product .old-price {
        font-size: 16px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
        gap: 30px;
    }
    
    .out-of-box-product {
        padding: 25px;
    }
    
    .out-of-box-badge {
        font-size: 12px;
        padding: 6px 15px;
        transform: rotate(45deg) translate(25px, -8px);
    }
}

@media (max-width: 480px) {
    .out-of-box-title {
        font-size: 28px;
    }
    
    .out-of-box-product .product-image {
        height: 150px;
    }
    
    .out-of-box-product .current-price {
        font-size: 20px;
    }
    
    .out-of-box-product .old-price {
        font-size: 16px;
    }
}

/* تأثيرات حركية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.out-of-box-product {
    animation: fadeInUp 0.6s ease forwards;
}

.out-of-box-product:nth-child(2) {
    animation-delay: 0.2s;
}

/* تأثير التوهج للعنوان */
.out-of-box-title {
    position: relative;
}

.out-of-box-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* تصميم الإشعارات */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.notification-success {
    border-right: 4px solid #10b981;
}

.notification-error {
    border-right: 4px solid #ef4444;
}

.notification-info {
    border-right: 4px solid #3b82f6;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notification-content span {
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 16px;
}

.notification-close:hover {
    background: #f1f5f9;
    color: #475569;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
} 