/* ملف CSS ثابت للأزرار والألوان - لا يتغير عند رفع قاعدة البيانات */

/* أزرار إضافة للسلة وأطلب الآن - ثابتة */
.add-to-cart, .buy-now {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    white-space: nowrap;
    text-align: center;
}

.add-to-cart {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 2px solid #000;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    color: #000;
}

.buy-now {
    background: #000000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.buy-now:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #FFD700;
}

/* أزرار المنتجات الجديدة */
.app-actions .add-to-cart, 
.app-actions .buy-now {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    white-space: nowrap;
    text-align: center;
}

.app-actions .add-to-cart {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.app-actions .add-to-cart:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.app-actions .buy-now {
    background: #000000;
    color: #FFD700;
}

.app-actions .buy-now:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* أزرار صفحة المنتج */
.product-action-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    white-space: nowrap;
    text-align: center;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 2px solid #000;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    color: #000;
}

.buy-now-btn {
    background: #000000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.buy-now-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #FFD700;
}

/* زر المنتجات المشابهة */
.btn-similar-products {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #000;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-similar-products:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    border-color: #333;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* زر اطلب الآن */
.custom-order-btn {
    border-radius: 15px;
    padding: 8px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #000;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: attention 3s infinite;
}

.custom-order-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    border-color: #333;
}

.custom-order-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #E6C200, #FF8C00);
    border-color: #000;
}

/* أزرار البحث */
.btn-outline-primary {
    border: 2px solid #FFD700;
    color: #FFD700;
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #000;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* أزرار التصفية */
.btn-filter {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #000;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    border-color: #333;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* تجاوب الأزرار */
@media (max-width: 768px) {
    .add-to-cart, .buy-now,
    .app-actions .add-to-cart, 
    .app-actions .buy-now,
    .product-action-btn {
        padding: 10px 14px;
        font-size: 11px;
        min-height: 40px;
    }
    
    .app-actions .product-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .add-to-cart, .buy-now,
    .app-actions .add-to-cart, 
    .app-actions .buy-now,
    .product-action-btn {
        padding: 8px 12px;
        font-size: 10px;
        min-height: 36px;
        gap: 4px;
    }
}

/* رسوم متحركة */
@keyframes attention {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.05);
    }
    10% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.05);
    }
    20%, 100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.custom-order-btn span {
    display: inline-block;
    animation: bounce 2s infinite;
}

/* إجبار الألوان - مهم جداً */
.add-to-cart, .add-to-cart-btn, .app-actions .add-to-cart, .btn-similar-products, .btn-filter, .btn-outline-primary:hover, .custom-order-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000 !important;
    border-color: #000 !important;
}

.buy-now, .buy-now-btn, .app-actions .buy-now {
    background: linear-gradient(135deg, #000 0%, #333 100%) !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
}

/* التأكد من عدم تغيير الألوان */
.add-to-cart:hover, .add-to-cart-btn:hover, .app-actions .add-to-cart:hover, .btn-similar-products:hover, .btn-filter:hover, .custom-order-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%) !important;
    color: #000 !important;
}

.buy-now:hover, .buy-now-btn:hover, .app-actions .buy-now:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%) !important;
    color: #FFD700 !important;
}
