/* Custom styles for Sirius Group */

/* Product card hover effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.status-in-stock {
    background-color: #10B981;
    color: white;
}

.status-on-order {
    background-color: #F59E0B;
    color: white;
}

.status-in-transit {
    background-color: #3B82F6;
    color: white;
}

/* Cart item animations */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item-removing {
    opacity: 0;
    transform: translateX(-100%);
}

/* Form validation styles */
.form-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* QR Code styles */
.qr-code {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Success page animations */
.success-animation {
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.warning {
    border-left: 4px solid #F59E0B;
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Delivery option cards */
.delivery-option {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    border-color: #3B82F6;
    background-color: #F8FAFC;
}

.delivery-option.selected {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

/* Payment method cards */
.payment-method {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #3B82F6;
    background-color: #F8FAFC;
}

.payment-method.selected {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #F9FAFB;
}

/* Order code display */
.order-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1F2937;
    background: #F3F4F6;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

/* WhatsApp button */
.whatsapp-btn {
    background: #25D366;
    color: white;
    border-radius: 8px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Copy button */
.copy-btn {
    background: #6B7280;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #4B5563;
}

.copy-btn.copied {
    background: #10B981;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Warning modal specific styles */
.warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #FEF3C7;
    border-radius: 50%;
    margin-bottom: 16px;
}

.warning-icon i {
    font-size: 24px;
    color: #F59E0B;
}

.cart-separation-list {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.separation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
}

.separation-item:last-child {
    border-bottom: none;
}

.separation-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.separation-item-photo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.separation-item-details {
    display: flex;
    flex-direction: column;
}

.separation-item-name {
    font-weight: 500;
    color: #1F2937;
    font-size: 0.875rem;
}

.separation-item-status {
    font-size: 0.75rem;
    color: #6B7280;
}

.separation-item-quantity {
    font-weight: 600;
    color: #1F2937;
}

/* Search highlight */
.search-highlight {
    background-color: #FEF3C7;
    padding: 2px 4px;
    border-radius: 4px;
}
