/* ===== Emirates Store - Enhanced Responsive Buttons & UI Elements ===== */

/* RESPONSIVE BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 48px;
    user-select: none;
    background: none;
    font-family: inherit;
}

/* Button Sizes - Responsive */
.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
    border-radius: 6px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 40px;
    border-radius: 6px;
}

.btn-md {
    padding: 12px 24px;
    font-size: 16px;
    min-height: 48px;
    border-radius: 8px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 20px;
    min-height: 64px;
    border-radius: 12px;
    font-weight: 700;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: white;
    border-color: #DAA520;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border-color: #4F46E5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #3730A3 0%, #6D28D9 100%);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #DAA520;
    border-color: #DAA520;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border-color: #EF4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* WhatsApp Button - Enhanced */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-btn .icon {
    font-size: 18px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .btn-xl {
        padding: 14px 28px;
        font-size: 18px;
        min-height: 52px;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 16px;
        left: 16px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

/* Touch Optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}