/* Mablex Store - Custom CSS Enhancements */

/* Enhanced Shadow Classes */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-shadow-hover:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Product Card Animations */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Brand Carousel */
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-carousel-track {
    animation: scrollBrands 25s linear infinite;
}

.brand-carousel-track:hover {
    animation-play-state: paused;
}

/* Flash Sale Badge Animation */
@keyframes flashPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.2);
    }
}

.flash-badge {
    animation: flashPulse 2s infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Enhanced Table Styling */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: rgba(245, 158, 11, 0.05);
}

.table-modern td {
    border-bottom: 2px solid #f3f4f6;
}

/* Enhanced Form Inputs */
.form-input-enhanced {
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
}

.form-input-enhanced:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-dark {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #000000 0%, #1f2937 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Toast Notifications */
.toast-enter {
    transform: translateX(100%);
    opacity: 0;
}

.toast-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.toast-exit {
    transform: translateX(0);
    opacity: 1;
}

.toast-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.qty-selector button {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-selector button:hover {
    background: #f3f4f6;
}

.qty-selector input {
    width: 3rem;
    text-align: center;
    border: none;
    border-left: 2px solid #e5e7eb;
    border-right: 2px solid #e5e7eb;
    font-weight: 600;
}

/* Floating Labels */
.floating-label-group {
    position: relative;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    background: white;
    padding: 0 0.25rem;
    color: #F59E0B;
}

.floating-label-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: #9ca3af;
}

/* Mobile Menu Animation */
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu-enter {
    animation: slideIn 0.3s ease-out;
}

.mobile-menu-backdrop-enter {
    animation: fadeIn 0.3s ease-out;
}

/* Price Tag Style */
.price-tag {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.75rem 0.25rem 0.5rem;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.price-tag::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    border: 0.75rem solid transparent;
    border-right-color: #F59E0B;
    border-left: 0;
}

/* Discount Badge */
.discount-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    font-weight: 700;
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Newsletter Input */
.newsletter-input {
    position: relative;
}

.newsletter-input input {
    padding-right: 8rem;
}

.newsletter-input button {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Hide scrollbar for horizontal scrolling carousels */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Can add dark mode styles here if needed */
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
