image.png/* Sticky Product Button Styles */
.spb-sticky-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.spb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.spb-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.spb-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.spb-product-details {
    flex: 1;
    min-width: 0;
}

.spb-product-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spb-product-price {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.spb-product-price .amount {
    font-weight: 600;
    color: #2c5aa0;
}

.spb-button {
    background: #2c5aa0;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    white-space: nowrap;
    flex-shrink: 0;
}

.spb-button:hover:not(:disabled) {
    background: #1e3a5f;
    transform: translateY(-1px);
}

.spb-button:active:not(:disabled) {
    transform: translateY(0);
}

.spb-button:disabled,
.spb-button.disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.spb-button.loading {
    background: #f39c12;
    cursor: wait;
    position: relative;
}

.spb-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spb-button.success {
    background: #27ae60;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .spb-sticky-button {
        padding: 12px 15px;
    }
    
    .spb-container {
        gap: 10px;
    }
    
    .spb-product-image {
        width: 40px;
        height: 40px;
    }
    
    .spb-product-name {
        font-size: 14px;
    }
    
    .spb-product-price {
        font-size: 13px;
    }
    
    .spb-button {
        padding: 10px 18px;
        font-size: 14px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .spb-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .spb-product-info {
        width: 100%;
        justify-content: center;
    }
    
    .spb-button {
        width: 100%;
        min-width: auto;
    }
    
    .spb-product-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
    }
}

/* RTL Support */
.rtl .spb-container {
    direction: rtl;
}

.rtl .spb-product-info {
    flex-direction: row-reverse;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .spb-sticky-button {
        background: #1a1a1a;
        border-top-color: #333;
        color: #fff;
    }
    
    .spb-product-name {
        color: #fff;
    }
    
    .spb-product-price {
        color: #ccc;
    }
}

/* Animation for showing/hiding */
.spb-sticky-button {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.spb-sticky-button[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility improvements */
.spb-button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .spb-sticky-button,
    .spb-button,
    .spb-button::after {
        transition: none;
        animation: none;
    }
} 