/* 📱 MOBILE NOTIFICATION & ADDITIONAL STYLES */

.mobile-notification {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--info);
}

.mobile-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.mobile-notification-success {
    border-left-color: var(--success);
}

.mobile-notification-error {
    border-left-color: var(--error);
}

.mobile-notification-success i {
    color: var(--success);
}

.mobile-notification-error i {
    color: var(--error);
}

.mobile-notification i {
    font-size: 1.2rem;
    color: var(--info);
}

/* 🛍️ MOBILE PRODUCT ENHANCEMENTS */
@media screen and (max-width: 768px) {
    /* Product Quick Actions */
    .product-quick-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
        padding: 1rem 0.8rem 0.8rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-quick-actions {
        transform: translateY(0);
    }

    /* Improved Touch Targets */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile-specific animations */
    @keyframes slideInUp {
        0% {
            transform: translateY(30px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes fadeInUp {
        0% {
            transform: translateY(20px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes bounceIn {
        0%, 20%, 40%, 60%, 80% {
            animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        }
        0% {
            opacity: 0;
            transform: scale3d(0.3, 0.3, 0.3);
        }
        20% {
            transform: scale3d(1.1, 1.1, 1.1);
        }
        40% {
            transform: scale3d(0.9, 0.9, 0.9);
        }
        60% {
            opacity: 1;
            transform: scale3d(1.03, 1.03, 1.03);
        }
        80% {
            transform: scale3d(0.97, 0.97, 0.97);
        }
        100% {
            opacity: 1;
            transform: scale3d(1, 1, 1);
        }
    }

    /* Apply animations */
    .product-card {
        animation: fadeInUp 0.6s ease backwards;
    }

    .product-card:nth-child(1) { animation-delay: 0.1s; }
    .product-card:nth-child(2) { animation-delay: 0.2s; }
    .product-card:nth-child(3) { animation-delay: 0.3s; }
    .product-card:nth-child(4) { animation-delay: 0.4s; }

    .bottom-nav {
        animation: slideInUp 0.5s ease;
    }

    /* Mobile loading states */
    .loading-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }

    @keyframes loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }

    /* Sticky elements */
    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--white);
        border-bottom: 1px solid var(--gray-light);
        padding: 0.5rem 1rem;
    }

    /* Mobile modal optimizations */
    .mobile-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .mobile-modal-content {
        background: var(--white);
        width: 100%;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .mobile-modal.show .mobile-modal-content {
        transform: translateY(0);
    }

    /* Pull-to-refresh indicator */
    .pull-to-refresh {
        text-align: center;
        padding: 1rem;
        color: var(--gray-elegant);
        font-size: 0.9rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .pull-to-refresh.active {
        transform: translateY(0);
    }

    /* Mobile-specific utilities */
    .hide-on-mobile { display: none !important; }
    .show-on-mobile { display: block !important; }
    
    .text-mobile-center { text-align: center !important; }
    .text-mobile-left { text-align: left !important; }
    
    .p-mobile-0 { padding: 0 !important; }
    .p-mobile-1 { padding: 0.5rem !important; }
    .p-mobile-2 { padding: 1rem !important; }
    
    .m-mobile-0 { margin: 0 !important; }
    .m-mobile-1 { margin: 0.5rem !important; }
    .m-mobile-2 { margin: 1rem !important; }

    /* Mobile typography */
    .mobile-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .mobile-subtitle {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
    }

    .mobile-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .mobile-small {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Enhanced touch interactions */
    .product-card:active {
        transform: scale(0.98);
    }

    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    .category-filter-btn:active {
        transform: scale(0.95);
    }

    /* Mobile performance optimizations */
    .will-change {
        will-change: transform;
    }

    .gpu-accelerated {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

/* 🌃 DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    :root {
        --white: #1a1a1a;
        --charcoal: #ffffff;
        --gray-light: #2d2d2d;
        --gray-elegant: #b0b0b0;
    }

    .bottom-nav {
        background: #1a1a1a !important;
        border-top-color: #2d2d2d !important;
    }

    .search-input-wrapper {
        background: #2d2d2d !important;
    }

    .nav-links {
        background: #1a1a1a !important;
    }
}

/* 🔄 REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .bottom-nav,
    .mobile-notification {
        animation: none !important;
        transition: none !important;
    }
}

/* 📐 LANDSCAPE ORIENTATION */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1rem !important;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .bottom-nav {
        padding: 0.5rem 0 !important;
    }

    .bottom-nav-item span {
        font-size: 0.6rem !important;
    }
}