/* Custom styles that use asset URLs */
/* Note: --asset-url custom property is set dynamically via JavaScript */

/* Enhanced Add to Cart Button Styling */
.add-to-cart-btn {
    position: relative;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}

.add-to-cart-btn:disabled {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.add-to-cart-btn.loading {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    pointer-events: none;
}

.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success state */
.add-to-cart-btn.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Error state */
.add-to-cart-btn.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* Spin animation for loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Flash Sale Add to Cart Button */
.flash-sale-btn {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.25);
}

.flash-sale-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

/* Primary Color Scheme for different button variants */
.btn-primary-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.btn-primary-blue:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
}

.btn-primary-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.btn-primary-orange:hover:not(:disabled) {
    background: linear-gradient(135deg, #E48806 0%, #B45309 100%);
}

.btn-primary-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.btn-primary-green:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
}

/* Placeholder image styling */
.product-image-placeholder {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
    /* Background image will be set dynamically via CSS custom property */
}

/* Background patterns using asset URL */
.hero-pattern {
    /* Background image will be set dynamically via CSS custom property */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Custom checkout page styling with asset URL references */
.checkout-background {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Payment gateway logos with fallback */
.payment-logo-fallback {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f9fafb;
    width: 60px;
    height: 40px;
}

/* Category banners */
.category-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}

/* Utility class for dynamic background images */
.bg-asset {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Asset URL dependent styles - will be populated via JavaScript */
.use-asset-bg {
    /* Background images will be set via JavaScript using the asset URL */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Banner Button Styles */
.hero-btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
    color: #1a1a1a;
    border: none;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    font-weight: 700;
    text-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF6B35 50%, #E55D87 100%);
    box-shadow: 0 12px 40px rgba(255, 165, 0, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
}

/* Enhanced animations for hero section */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.hero-section .animate-pulse {
    animation: glow 3s ease-in-out infinite;
}

/* Trust indicators hover effects */
.hero-section .flex.items-center:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Responsive text gradient */
@media (max-width: 768px) {
    .bg-gradient-to-r.from-white.via-blue-100.to-purple-100 {
        background: linear-gradient(to right, #ffffff 0%, #dbeafe 50%, #e9d5ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
