/* Custom CSS for TechBox - Mobile-First Premium Experience */

/* Enhanced Mobile Variables */
:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --secondary-color: #ef4444;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --border-color: #2d2d2d;
    --light-text: #f8fafc;
    --accent-color: #dc2626;
    
    /* Mobile-specific spacing */
    --mobile-padding: 1rem;
    --mobile-margin: 0.75rem;
    --touch-target: 44px; /* Apple's recommended minimum touch target */
    
    /* Animation variables */
    --bounce-in: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --slide-in: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --smooth-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Mobile Reset - SIMPLIFIED */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.3);
}

/* Allow text selection for inputs and content */
input, textarea, p, span, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    user-select: text;
}

/* Button and link elements - no text selection */
button, a, .btn {
    -webkit-user-select: none;
    user-select: none;
}

/* Mobile Search Enhancements */
.mobile-search-container {
    position: relative;
    flex: 1;
    max-width: 250px;
    margin: 0 16px;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: white;
    font-size: 16px; /* Prevents zoom on iOS */
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Clear Search Button */
.mobile-clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 38, 38, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-clear-search-btn:hover {
    background: rgba(220, 38, 38, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Search Loading */
.mobile-search-loading {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Header Improvements */
.mobile-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    padding-top: env(safe-area-inset-top, 0);
    z-index: 9999;
}

.mobile-header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(220, 38, 38, 0.4);
}

.mobile-safe-area-top {
    padding-top: env(safe-area-inset-top, 0);
}

/* Mobile Hero Slider Fixes */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 60vh !important;
        overflow: hidden;
    }
    
    .slide {
        position: relative;
        width: 100%;
        height: 60vh;
        display: flex;
        align-items: center;
    }
    
    .slide .absolute.inset-0 {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        transform: none !important;
    }
    
    /* Fix mobile hero content positioning */
    .slide-text-content {
        position: relative;
        z-index: 10;
        padding: 2rem 1rem;
        text-align: left;
        max-width: 100%;
    }
    
    .slide-text-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .slide-text-content p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile slider indicators */
    .hero-indicators {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 12px !important;
        z-index: 10 !important;
    }
    
    .hero-indicator {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        background: transparent !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        outline: none !important;
    }
    
    .hero-indicator.active,
    .hero-indicator:focus {
        background: rgba(220, 38, 38, 0.9) !important;
        border-color: #dc2626 !important;
        transform: scale(1.2) !important;
    }
    
    /* Prevent image scaling on mobile */
    .slide .absolute.inset-0 {
        background-attachment: scroll !important;
    }
}

/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    /* Minimum touch target sizes */
    button, .btn, a[role="button"], input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.2s ease;
    }
    
    /* Enhanced button feedback */
    button:active, .btn:active, a[role="button"]:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Product cards for mobile */
    .product-card, .mobile-product-card {
        border-radius: 16px;
        overflow: hidden;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        margin-bottom: 16px;
        position: relative;
    }
    
    .product-card:active, .mobile-product-card:active {
        transform: scale(0.98);
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
        border-color: var(--primary-color);
    }
    
    /* Enhanced product images */
    .product-card img, .mobile-product-card img {
        width: 100%;
        height: 200px;
        object-fit: contain; /* Changed from cover to contain to prevent cutoff */
        object-position: center;
        border-radius: 12px 12px 0 0;
        background: rgba(255, 255, 255, 0.02);
    }
    
    /* Product info padding */
    .product-card .product-info, .mobile-product-card .product-info {
        padding: 16px;
    }
    
    /* Product titles */
    .product-card h3, .mobile-product-card h3 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--light-text);
        line-height: 1.3;
    }
    
    /* Product prices */
    .product-card .price, .mobile-product-card .price {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary-color);
        margin: 8px 0;
    }
    
    /* Product descriptions */
    .product-card .description, .mobile-product-card .description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Mobile category filters */
    .mobile-category-filter {
        display: flex;
        gap: 8px;
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-category-filter::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-category-btn {
        background: rgba(220, 38, 38, 0.1);
        border: 1px solid rgba(220, 38, 38, 0.3);
        color: var(--light-text);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        white-space: nowrap;
        transition: all 0.2s ease;
        min-width: 80px;
        text-align: center;
    }
    
    .mobile-category-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }
    
    /* Mobile search results */
    .mobile-search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(220, 38, 38, 0.2);
        border-top: none;
        border-radius: 0 0 16px 16px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .mobile-search-results::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-search-results::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-search-results::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    /* Mobile page spacing */
    .mobile-page-content {
        padding-top: calc(80px + env(safe-area-inset-top, 0));
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
        padding-left: env(safe-area-inset-left, 16px);
        padding-right: env(safe-area-inset-right, 16px);
    }
}

/* Improved body styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--dark-bg);
    color: var(--light-text);
}

/* Ensure no horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    main {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Mobile Typography Scale */
html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Mobile-first product grid improvements */
.mobile-product-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .mobile-product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .mobile-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1280px) {
    .mobile-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Quick Filter Buttons */
.quick-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    color: #9ca3af;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.quick-filter-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.4);
    color: #f3f4f6;
    transform: translateY(-2px);
}

.quick-filter-btn.active {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.quick-filter-btn .count {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.quick-filter-btn.active .count {
    background: #dc2626;
    color: white;
}

/* View Toggle Buttons */
.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.view-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.view-btn.active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.2);
}

/* Mobile Responsive Quick Filters */
@media (max-width: 768px) {
    .quick-filter-btn {
        padding: 10px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    .quick-filter-btn span:not(.count) {
        display: none;
    }
    
    .quick-filter-btn.active span:not(.count) {
        display: inline;
    }
    
    .quick-filter-btn .count {
        font-size: 11px;
        padding: 1px 6px;
        min-width: 20px;
    }
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Product Cards */
.product-card {
    backdrop-filter: blur(8px);
}

.product-card:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(220, 38, 38, 0.1);
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Keep consistent card sizing across all devices */
    
    .product-card a,
    .product-card button {
        min-height: 44px; /* Apple's recommended touch target */
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Mobile-specific product grid */
    .mobile-product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* MOBILE PRODUCT CARD IMAGES - PROPER IMPLEMENTATION */
    .mobile-product-card .mobile-product-image,
    .mobile-product-card .aspect-square {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.9), rgba(30, 30, 30, 0.8)) !important;
        border: 1px solid rgba(220, 38, 38, 0.1) !important;
        padding: 12px !important;
    }
    
    .mobile-product-card .mobile-product-image img,
    .mobile-product-card .aspect-square img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        max-width: 90% !important;
        max-height: 90% !important;
        border-radius: 8px !important;
        transition: transform 0.3s ease !important;
    }
    
    .mobile-product-card:hover .mobile-product-image img,
    .mobile-product-card:hover .aspect-square img {
        transform: scale(1.05) !important;
    }
    
    /* CATEGORY CARDS ON MOBILE - PROPER FIX */
    .grid .relative.overflow-hidden {
        height: 160px !important;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.8), rgba(30, 30, 30, 0.6)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px !important;
    }
    
    .grid .relative.overflow-hidden img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px !important;
        max-width: 95% !important;
        max-height: 95% !important;
    }
    
    /* More specific mobile category targeting */
    /* Keep consistent styling across all screen sizes */
    
    /* Grid container adjustments for mobile */
    .grid .group {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Image containers in category cards */
    .grid .group .relative.overflow-hidden {
        height: 200px !important;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.9), rgba(30, 30, 30, 0.8)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px !important;
        border-radius: 1rem !important;
    }
    
    /* Images in category cards */
    .grid .group .relative.overflow-hidden img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 0.75rem !important;
        max-width: 90% !important;
        max-height: 90% !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Content areas in category cards */
    .grid .group > div {
        padding: 1.25rem !important;
    }
    
    /* Typography adjustments */
    .grid .group h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
    
    .grid .group h3 i {
        font-size: 1.5rem !important;
        margin-right: 0.75rem !important;
    }
    
    .grid .group p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Button adjustments */
    .grid .group a {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge adjustments */
    .grid .group span[class*="bg-red-600"] {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.75rem !important;
    }
    
    /* Product Detail Page Image Fix */
    #mainProductImage {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 12px !important;
        background: transparent !important;
    }
    
    .aspect-square {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #000000 !important;
        border: 1px solid rgba(220, 38, 38, 0.2) !important;
    }
    
    .aspect-square .w-full.h-full.relative {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Quick filters mobile optimization */
    .quick-filter-btn {
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Sort select mobile styling */
    #sortSelect {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 8px;
    }
}

/* Smooth Scroll with Mobile Optimization */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Account for fixed header */
}

/* Modern Mobile Navigation */
.mobile-header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--smooth-out);
}

.mobile-header.scrolled {
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Enhanced Mobile Menu Button */
.mobile-menu-btn {
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    transition: all 0.3s var(--bounce-in);
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.2), rgba(239, 68, 68, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-btn:active::before {
    opacity: 1;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Hamburger Animation */
.mobile-menu-btn .hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-menu-btn .hamburger span {
    width: 18px;
    height: 2px;
    background: var(--light-text);
    border-radius: 1px;
    transition: all 0.3s var(--bounce-in);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sliding Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s var(--slide-in);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile Menu Items */
.mobile-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--light-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 45, 45, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s var(--bounce-in);
}

.mobile-menu-item:active::before,
.mobile-menu-item:hover::before {
    width: 4px;
}

.mobile-menu-item:active {
    background: rgba(220, 38, 38, 0.1);
    padding-left: 2rem;
}

/* Enhanced Search Bar for Mobile */
.mobile-search-container {
    position: relative;
    flex: 1;
    max-width: 200px;
    margin: 0 1rem;
}

.mobile-search-input {
    width: 100%;
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(45, 45, 45, 0.6);
    border-radius: 25px;
    color: var(--light-text);
    font-size: 14px;
    transition: all 0.3s var(--smooth-out);
    backdrop-filter: blur(10px);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.mobile-search-input::placeholder {
    color: rgba(248, 250, 252, 0.6);
}



/* Touch-Optimized Buttons */
.btn-mobile {
    min-height: var(--touch-target);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--bounce-in);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-mobile:active::before {
    transform: translateX(100%);
}

.btn-mobile:active {
    transform: scale(0.98);
}

/* Primary Mobile Button */
.btn-primary-mobile {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary-mobile:active {
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

/* Secondary Mobile Button */
.btn-secondary-mobile {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: var(--light-text);
    backdrop-filter: blur(10px);
}

.btn-secondary-mobile:active {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--primary-color);
}

/* Mobile Cards with Premium Feel */
.mobile-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 45, 45, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.4s var(--smooth-out);
    position: relative;
    overflow: hidden;
}

.mobile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--bounce-in);
}

.mobile-card:active::before {
    transform: scaleX(1);
}

.mobile-card:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(220, 38, 38, 0.4);
}

/* Mobile Loading States */
.mobile-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: mobile-spin 1s ease-in-out infinite;
}

@keyframes mobile-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Container for Mobile */
.mobile-container {
    width: 100%;
    padding: 0 var(--mobile-padding);
    margin: 0 auto;
    max-width: 100%;
}

@media (min-width: 640px) {
    .mobile-container {
        max-width: 640px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .mobile-container {
        max-width: 768px;
        padding: 0 2rem;
    }
}

/* Mobile-Specific Spacing Utilities */
.mobile-space-y-4 > * + * {
    margin-top: 1rem;
}

.mobile-space-y-6 > * + * {
    margin-top: 1.5rem;
}

.mobile-space-y-8 > * + * {
    margin-top: 2rem;
}

/* Mobile Visibility Utilities */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* Enhanced Category Cards Styling - FIXED */
.category-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

/* Image Container - FORCE proper sizing */
.category-card .relative.overflow-hidden {
    height: 280px !important;
    min-height: 280px !important;
    width: 100% !important;
    position: relative !important;
    background: #000 !important;
}

/* Images - FORCE full display */
.category-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

@media (max-width: 768px) {
    .category-card .relative.overflow-hidden {
        height: 220px !important;
        min-height: 220px !important;
    }
    
    .category-card .p-6 {
        padding: 1.25rem !important;
    }
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
    
    .show-desktop {
        display: block !important;
    }
}

/* Custom CSS for TechBox */

/* Base Styles */
:root {
    --primary-color: #dc2626;
    --secondary-color: #ef4444;
    --dark-bg: #111827;
    --light-text: #f3f4f6;
}

/* Reset for better mobile experience */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive Typography */
html {
    font-size: 16px;
}

/* Keep consistent font size across all devices */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Video Styles */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video-container video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

/* Mobile Video Full Width Fix */
@media (max-width: 768px) {
    /* Ensure video takes full width on mobile */
    .hero-video-container {
        position: relative;
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        background: #000;
    }
    
    .hero-video-container video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1 !important;
    }
    
    /* Dark overlays should be above video */
    .hero-video-container > div.absolute.inset-0 {
        z-index: 2 !important;
    }
    
    /* Content/text should be above everything */
    .hero-video-container > div.relative.z-10 {
        z-index: 20 !important;
        position: relative !important;
    }
}

/* Desktop - keep cover for better fill */
@media (min-width: 769px) {
    .hero-video-container video {
        object-fit: cover !important;
    }
}

/* Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.2s ease-out forwards;
}

.animate-fade-in-delay {
    opacity: 1;
}

.animate-fade-in-delay-2 {
    opacity: 1;
}

.animate-fade-in-delay-3 {
    opacity: 1;
}

/* Mobile-First Container */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 1200px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}



/* Hero Image Slider Styles - Mobile First */
.hero-slider {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slider {
        min-height: 100vh;
    }
}

/* Custom height for phone designs - Mobile Responsive */
.h-128 {
    height: 16rem;
}

@media (min-width: 768px) {
    .h-128 {
        height: 32rem;
    }
}

/* Navigation - Mobile Friendly */
.nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--dark-bg);
    transition: 0.3s;
    z-index: 1000;
    padding: 2rem;
}

.nav-menu.active {
    left: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        position: static;
        flex-direction: row;
        height: auto;
        background: none;
        padding: 0;
        width: auto;
    }
}

/* Product Cards - Mobile Optimized */
.product-card {
    width: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #1f2937;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #dc2626;
}

/* Mobile Grid Optimizations */
@media (max-width: 767px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .product-card img {
        height: 140px; /* Increased height */
        object-fit: contain; /* Changed to contain */
        object-position: center;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .product-card h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .product-card .price {
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Tablet Grid Optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .product-card img {
        height: 150px;
        object-fit: cover;
    }
}

/* Desktop Grid Optimizations */
@media (min-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-card {
        width: 100%;
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .product-card img {
        height: 180px;
        object-fit: cover;
    }
}

/* Product Card Content Styling */
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .price {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-card .status {
    color: #10b981;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-card .btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.product-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-card .btn:hover::before {
    left: 100%;
}

.product-card .btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.product-card .btn:active {
    transform: translateY(0);
}

/* Form Elements - Mobile Friendly */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Buttons - Touch Friendly */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    min-height: 44px; /* Touch target size */
    min-width: 44px;
    border: none;
    transition: all 0.3s ease;
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    padding: 0.5rem;
    background: var(--dark-bg);
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Grid System - Mobile First */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Images - Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables - Mobile Responsive */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal - Mobile Friendly */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Spacing Utilities */
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

/* Hero Image Slider Styles */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Phone Device Animations */
.phone-device {
    animation: float 6s ease-in-out infinite;
}

.phone-device:nth-child(2) {
    animation-delay: -2s;
}

.phone-device:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-15px) rotate(-15deg); }
}

.samsung-device {
    animation: float-reverse 5s ease-in-out infinite;
}

/* Accessories Animation */
.accessories-group {
    animation: pulse-accessories 4s ease-in-out infinite;
}

@keyframes pulse-accessories {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider .slide .absolute {
    position: absolute;
}

/* Slide Button Styles */
.slide-btn {
    transition: all 0.3s ease;
}

.slide-btn.active {
    opacity: 1 !important;
    transform: scale(1.2);
}

.slide-btn:hover {
    opacity: 0.8 !important;
    transform: scale(1.1);
}

/* Navigation Arrow Styles */
#prevSlide, #nextSlide {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#prevSlide:hover, #nextSlide:hover {
    backdrop-filter: blur(15px);
    transform: scale(1.1);
}

/* Legacy Slider Styles for other pages */
.slider-container {
    position: relative;
    min-height: 400px;
}

.slider-container .slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-container .slide.active {
    display: block;
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: box-shadow 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.7);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

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

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

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Form Styling */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slide-up 0.3s ease-out;
}

.notification.success {
    background-color: #059669;
}

.notification.error {
    background-color: #dc2626;
}

.notification.warning {
    background-color: #d97706;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .slider-container {
        min-height: 300px;
    }
    
    .slide h2 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Dark Mode Toggle (for future use) */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* Lazy Loading Images */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* FAQ Styles */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #4b5563;
}

.faq-answer {
    transition: all 0.3s ease;
}

/* Search Styles */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 100%;
    background-color: #374151;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.badge-success {
    background-color: #059669;
    color: white;
}

.badge-warning {
    background-color: #d97706;
    color: white;
}

.badge-error {
    background-color: #dc2626;
    color: white;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Fantasy Animations and Effects */

/* Animation Delays */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

/* Enhanced Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.glow-red {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* Hover Glow */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    transform: translateY(-5px);
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 1); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.card-hover:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* Breathing Animation */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Neon Effect */
.neon {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #fff,
        0 0 20px #ff0040,
        0 0 35px #ff0040,
        0 0 40px #ff0040,
        0 0 50px #ff0040,
        0 0 75px #ff0040;
}

/* Slide indicators */
.slide-indicator.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Cyberpunk Glitch Effect */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    animation: glitch 0.3s ease-in-out infinite alternate;
}

/* Energy Pulse */
@keyframes energy-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.energy-pulse {
    animation: energy-pulse 2s infinite;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-btn {
    transition: background-color 0.3s ease-in-out;
}

.slide-btn.active {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Slide Content Animation */
.slide .animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide.active .animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Background Animation */
.slide .bg-cover {
    transition: transform 7s ease-in-out;
}

.slide.active .bg-cover {
    transform: scale(1.1);
}

/* Slide Navigation Buttons */
#prevSlide, #nextSlide {
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#prevSlide:hover, #nextSlide:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Mobile-First Responsive Design */
/* Base mobile styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(220, 38, 38, 0.3);
        z-index: 1000;
        padding: 10px 0;
    }

    .mobile-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        transition: all 0.3s ease;
    }

    .mobile-nav .nav-item.active {
        color: #dc2626;
    }

    .mobile-nav .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none !important;
    }

    /* Mobile header adjustments */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(220, 38, 38, 0.3);
        z-index: 999;
        padding: 10px 0;
    }

    .mobile-header .logo {
        height: 40px;
        width: auto;
    }

    .mobile-header .search-bar {
        flex: 1;
        margin: 0 10px;
    }

    .mobile-header .search-input {
        width: 100%;
        padding: 12px 16px;
        border-radius: 25px;
        border: 1px solid rgba(220, 38, 38, 0.3);
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 16px;
    }
    
    /* Mobile product cards */
    .mobile-product-card {
        background: rgba(0, 0, 0, 0.8);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid rgba(220, 38, 38, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-product-card:active {
        transform: scale(0.98);
    }
    
    .mobile-product-image {
        width: 100%;
        height: 200px;
        object-fit: contain; /* Changed to contain */
        object-position: center;
        border-radius: 12px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.02);
    }
    
    .mobile-product-title {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .mobile-product-price {
        font-size: 24px;
        font-weight: 700;
        color: #dc2626;
        margin-bottom: 12px;
    }
    
    .mobile-product-actions {
        display: flex;
        gap: 8px;
    }
    
    .mobile-btn {
        flex: 1;
        padding: 12px 16px;
        border-radius: 12px;
        border: none;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .mobile-btn-primary {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        color: #fff;
    }
    
    .mobile-btn-secondary {
        background: rgba(220, 38, 38, 0.1);
        color: #fff;
        border: 1px solid rgba(220, 38, 38, 0.3);
    }
    
    .mobile-btn:active {
        transform: scale(0.95);
    }
    
    /* Mobile search improvements */
    .mobile-search-container {
        position: relative;
        margin: 16px 0;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 16px 20px;
        border-radius: 25px;
        border: 2px solid rgba(220, 38, 38, 0.3);
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .mobile-search-input:focus {
        border-color: #dc2626;
        outline: none;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }
    
    /* Mobile filters */
    .mobile-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 16px 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-filter-chip {
        padding: 8px 16px;
        border-radius: 20px;
        background: rgba(220, 38, 38, 0.1);
        color: #fff;
        border: 1px solid rgba(220, 38, 38, 0.3);
        white-space: nowrap;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .mobile-filter-chip.active {
        background: #dc2626;
        border-color: #dc2626;
    }
    
    /* Mobile modal improvements */
    .mobile-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .mobile-modal-content {
        background: rgba(0, 0, 0, 0.95);
        border-radius: 20px;
        padding: 24px;
        max-width: 90%;
        max-height: 90%;
        overflow-y: auto;
        border: 1px solid rgba(220, 38, 38, 0.3);
    }
    
    
    
    /* Mobile loading states */
    .mobile-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }
    
    .mobile-loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(220, 38, 38, 0.2);
        border-top: 3px solid #dc2626;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Mobile pull-to-refresh */
    .mobile-pull-refresh {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #dc2626;
        font-size: 14px;
    }
    
    /* Mobile swipe gestures */
    .mobile-swipe-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .mobile-swipe-item {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    /* Mobile touch feedback */
    .mobile-touch-feedback {
        transition: all 0.1s ease;
    }
    
    .mobile-touch-feedback:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    /* Mobile typography improvements */
    .mobile-text-large {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .mobile-text-medium {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .mobile-text-small {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
    }
    
    /* Mobile spacing */
    .mobile-spacing-xs { margin: 4px; padding: 4px; }
    .mobile-spacing-sm { margin: 8px; padding: 8px; }
    .mobile-spacing-md { margin: 16px; padding: 16px; }
    .mobile-spacing-lg { margin: 24px; padding: 24px; }
    .mobile-spacing-xl { margin: 32px; padding: 32px; }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .tablet-nav {
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

/* Desktop improvements */
@media (min-width: 1025px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

/* Hide mobile nav for desktop screens */
@media (min-width: 769px) {
    nav.mobile-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    nav.mobile-bottom-nav {
        display: none !important;
    }
}

/* PWA improvements */
@media (display-mode: standalone) {
    .pwa-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .pwa-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Enhanced Mobile Loading Animations */
.mobile-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mobile-loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.mobile-spinner-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: mobile-spin 1s linear infinite;
}

.mobile-spinner-ring:nth-child(2) {
    width: 45px;
    height: 45px;
    top: 7.5px;
    left: 7.5px;
    border-top-color: var(--secondary-color);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.mobile-spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
    border-top-color: #ef4444;
    animation-duration: 2s;
}

.mobile-loading-text {
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

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

/* Enhanced Touch Feedback */
.mobile-product-card.touched {
    transform: scale(0.98) !important;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4) !important;
    transition: all 0.2s var(--bounce-in) !important;
}

.mobile-product-card.touched::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border-radius: inherit;
    opacity: 1;
    animation: mobile-touch-pulse 0.4s ease-out;
}

@keyframes mobile-touch-pulse {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Page Transition Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.3s var(--bounce-in) forwards;
}

/* Enhanced Mobile Buttons */
button, .btn, .mobile-btn, a.btn {
    position: relative;
    overflow: hidden;
    transform-origin: center;
    transition: all 0.3s var(--smooth-out);
}

button:active, .btn:active, .mobile-btn:active, a.btn:active {
    transform: scale(0.96);
}

/* Touch Target Optimization */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-product-card {
        min-height: 44px;
        cursor: pointer;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
.high-contrast {
    --primary-color: #ff0000;
    --secondary-color: #ff4444;
    --dark-bg: #000000;
    --light-text: #ffffff;
    --border-color: #ffffff;
}

.high-contrast .mobile-product-card {
    border: 2px solid var(--light-text);
    background: var(--dark-bg);
}

.high-contrast button, .high-contrast .btn {
    border: 2px solid var(--light-text);
    font-weight: bold;
}

/* Mobile Keyboard Adjustments */
.keyboard-visible {
    --mobile-bottom-nav-height: 0px;
}

/* Enhanced Pull-to-Refresh Styles */
.mobile-refresh-indicator {
    position: fixed;
    top: -150px;
    left: 0;
    right: 0;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.8) 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s var(--smooth-out);
    opacity: 0;
}

.mobile-refresh-indicator.ready {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.mobile-refresh-spinner {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.mobile-refresh-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    font-size: 20px;
    transition: transform 0.3s var(--bounce-in);
}

.mobile-refresh-loading {
    display: none;
    position: absolute;
    inset: 0;
}

.mobile-refresh-indicator.refreshing .mobile-refresh-loading {
    display: block;
}

.mobile-refresh-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mobile-refresh-indicator.ready .mobile-refresh-text {
    color: var(--primary-color);
    opacity: 1;
}

/* Enhanced Mobile Pull-to-Refresh */
.mobile-pull-refresh {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: all 0.3s var(--smooth-out);
    opacity: 0;
}

.mobile-pull-refresh-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: mobile-pull-spin 1s linear infinite;
}

.mobile-pull-refresh.active .mobile-pull-refresh-icon {
    border-top-color: var(--primary-color);
    animation-duration: 0.5s;
}

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

/* Enhanced Mobile Search Styles */
.mobile-search-focused {
    transform: scale(1.02);
    transition: transform 0.3s var(--bounce-in);
}

.mobile-search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.mobile-search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: mobile-spin 0.8s linear infinite;
}

.mobile-clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-clear-search-btn:active {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-50%) scale(0.9);
}

.mobile-clear-search-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}



/* Enhanced Focus States for Mobile */
@media (max-width: 768px) {
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .high-dpi-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auto-dark-mode {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .landscape-compact {
        padding: 8px;
        margin: 4px;
    }
    
    .landscape-compact .mobile-product-image {
        height: 120px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Image Loading States */
.image-loading {
    position: relative;
    overflow: hidden;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Image fade in animation */
.image-fade-in {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-fade-in.loaded {
    opacity: 1;
}

/* Loading spinner for images */
.image-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Product image container */
.product-image-container {
    position: relative;
    background: linear-gradient(135deg, #1f2937, #111827);
    overflow: hidden;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(220, 38, 38, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Image placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #374151, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.5rem;
}

/* Mobile image optimizations */
@media (max-width: 768px) {
    .product-image-container {
        min-height: 300px;
    }
    
    .image-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
}

/* High DPI image optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .image-fade-in {
        transition: none;
    }
    
    .image-loading::before {
        animation: none;
    }
    
    .product-image-container::before {
        animation: none;
    }
    
    .image-spinner {
        animation: none;
    }
}

/* Mobile Product Grid Enhancements */
.mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

@media (min-width: 480px) {
    .mobile-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }
}

@media (min-width: 640px) {
    .mobile-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (min-width: 1024px) {
    .mobile-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* Remove mobile-specific card styles - use same design for all screens */

/* Mobile-Optimized Product Cards - Compact Design */
@media (max-width: 768px) {
    /* Make cards more compact on mobile */
    .group.relative.bg-black.rounded-2xl,
    .mobile-product-grid .group {
        padding: 0.75rem !important; /* Reduced from 1.5rem (p-6) */
        border-radius: 1rem !important; /* Slightly smaller radius */
    }
    
    /* Smaller product titles on mobile */
    .group h3,
    .mobile-product-grid h3 {
        font-size: 0.85rem !important; /* Smaller title */
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Smaller price on mobile */
    .group .text-2xl,
    .mobile-product-grid .text-2xl {
        font-size: 1rem !important; /* Reduced from text-2xl */
        font-weight: 700 !important;
    }
    
    /* Compact stock display */
    .group .text-sm,
    .mobile-product-grid .text-sm {
        font-size: 0.65rem !important;
    }
    
    /* Smaller buttons on mobile */
    .group a.bg-red-600,
    .group button.bg-red-600,
    .mobile-product-grid a.bg-red-600,
    .mobile-product-grid button.bg-red-600 {
        padding: 0.5rem 0.5rem !important; /* Reduced padding */
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Compact image container */
    .group .aspect-square,
    .mobile-product-grid .aspect-square {
        margin-bottom: 0.5rem !important; /* Reduced spacing */
    }
    
    /* Smaller icons */
    .group i.fas,
    .group i.far,
    .mobile-product-grid i.fas,
    .mobile-product-grid i.far {
        font-size: 0.7rem !important;
    }
    
    /* Reduce spacing between elements */
    .group .mb-2,
    .mobile-product-grid .mb-2 {
        margin-bottom: 0.3rem !important;
    }
    
    .group .mb-4,
    .mobile-product-grid .mb-4 {
        margin-bottom: 0.5rem !important;
    }
    
    .group .mb-6,
    .mobile-product-grid .mb-6 {
        margin-bottom: 0.6rem !important;
    }
    
    /* Smaller grid gap on mobile */
    .mobile-product-grid {
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }
}

/* Extra small phones - even more compact */
@media (max-width: 375px) {
    .group.relative.bg-black.rounded-2xl,
    .mobile-product-grid .group {
        padding: 0.5rem !important;
    }
    
    .group h3,
    .mobile-product-grid h3 {
        font-size: 0.75rem !important;
    }
    
    .group .text-2xl,
    .mobile-product-grid .text-2xl {
        font-size: 0.9rem !important;
    }
    
    .group a.bg-red-600,
    .mobile-product-grid a.bg-red-600 {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.4rem !important;
    }
    
    .mobile-product-grid {
        gap: 0.35rem !important;
        padding: 0.35rem !important;
    }
}

/* Mobile Product Badge */
.mobile-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    backdrop-filter: blur(10px);
    animation: mobile-badge-pulse 2s infinite;
}

@keyframes mobile-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Use same typography and spacing as desktop cards */



/* Swipe Gestures for Mobile */
.mobile-swipe-container {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-swipe-item {
    transform: translateX(0);
    transition: transform 0.3s var(--smooth-out);
}

.mobile-swipe-item.swiping {
    transition: none;
}

.mobile-swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s var(--smooth-out);
}

.mobile-swipe-item.swiped .mobile-swipe-actions {
    transform: translateX(0);
}

/* Pull to Refresh Animation */
.mobile-pull-refresh {
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.95);
    transform: translateY(-100%);
    transition: transform 0.3s var(--smooth-out);
}

.mobile-pull-refresh.active {
    transform: translateY(0);
}

.mobile-pull-refresh-icon {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: mobile-spin 1s linear infinite;
}

/* Mobile Scroll Indicators - DISABLED */
.mobile-scroll-indicator {
    display: none !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    z-index: 100;
    transition: all 0.3s var(--bounce-in);
    opacity: 0;
    transform: scale(0.8);
}

.mobile-scroll-indicator.visible {
    opacity: 1;
    transform: scale(1);
}

.mobile-scroll-indicator:active {
    transform: scale(0.9);
    background: rgba(220, 38, 38, 0.1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(45, 45, 45, 0.6);
    z-index: 50;
    padding: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s var(--bounce-in);
    position: relative;
    min-width: var(--touch-target);
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-item:active::before {
    opacity: 1;
}

.mobile-nav-item:active {
    transform: scale(0.95);
    color: var(--primary-color);
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active::before {
    opacity: 0.5;
}

.mobile-nav-icon {
    font-size: 1.2rem;
    transition: transform 0.3s var(--bounce-in);
}

.mobile-nav-item:active .mobile-nav-icon {
    transform: scale(1.1);
}

.mobile-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Mobile Toast Notifications */
.mobile-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    z-index: 1000;
    transition: all 0.4s var(--bounce-in);
    max-width: calc(100vw - 2rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mobile-toast.show {
    transform: translateX(-50%) translateY(0);
}

.mobile-toast-success {
    border-color: rgba(34, 197, 94, 0.4);
}

.mobile-toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.mobile-toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toast-icon {
    font-size: 1.2rem;
}

.mobile-toast-success .mobile-toast-icon {
    color: #22c55e;
}

.mobile-toast-error .mobile-toast-icon {
    color: #ef4444;
}

.mobile-toast-message {
    font-weight: 600;
    color: var(--light-text);
}

/* Mobile Loading Overlay */
.mobile-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-loading-content {
    text-align: center;
}

.mobile-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(220, 38, 38, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: mobile-spin 1s linear infinite;
    margin-bottom: 1rem;
}

.mobile-loading-text {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile Haptic Feedback Simulation */
@keyframes mobile-haptic-light {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes mobile-haptic-medium {
    0% { transform: scale(1); }
    25% { transform: scale(1.03); }
    75% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.mobile-haptic-light {
    animation: mobile-haptic-light 0.1s ease-out;
}

.mobile-haptic-medium {
    animation: mobile-haptic-medium 0.2s ease-out;
}

/* Safe Area Handling for iPhone */
.mobile-safe-area-top {
    padding-top: env(safe-area-inset-top, 0);
}

.mobile-safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-safe-area-left {
    padding-left: env(safe-area-inset-left, 0);
}

.mobile-safe-area-right {
    padding-right: env(safe-area-inset-right, 0);
}

/* Enhanced Focus States for Accessibility */
.mobile-focus-ring:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-focus-ring:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode optimizations for mobile */
@media (prefers-color-scheme: dark) {
    .mobile-card {
        background: rgba(20, 20, 20, 0.9);
        border-color: rgba(50, 50, 50, 0.6);
    }
    
    .mobile-product-card {
        background: rgba(20, 20, 20, 0.95);
        border-color: rgba(50, 50, 50, 0.4);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-card,
    .mobile-product-card {
        border-width: 2px;
        border-color: var(--primary-color);
    }
    
    .btn-mobile {
        border: 2px solid currentColor;
    }
}

/* Performance Optimizations - SIMPLIFIED FOR MOBILE */
/* Reduce hardware acceleration (can cause scroll issues) */
@media (min-width: 1024px) {
    /* Only enable on desktop */
    .animate-fade-in,
    .animate-fade-in-delay,
    .animate-fade-in-delay-2,
    .animate-fade-in-delay-3,
    .animate-slide-in,
    .animate-fade-in-up {
        will-change: opacity, transform;
        backface-visibility: hidden;
    }
}

/* Optimize image rendering */
img {
    image-rendering: auto;
}

/* Simple video rendering - no complex transforms */
video {
    backface-visibility: hidden;
}

/* Optimize transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Network-aware styles - DISABLED for instant loading */

/* Power saving mode */
.power-saving video {
    display: none !important;
}

.power-saving .animate-fade-in,
.power-saving .animate-slide-in {
    animation: none !important;
}

/* Reduced motion for accessibility and battery */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile-specific touch optimizations - SIMPLIFIED */
@media (hover: none) and (pointer: coarse) {
    /* Smooth scrolling only */
    * {
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
        overscroll-behavior: contain;
    }
    
    /* Remove ALL hover effects on mobile */
    *:hover {
        transform: none !important;
    }
    
    /* Remove scale animations on mobile */
    .group:hover img,
    .group:hover > * {
        transform: none !important;
    }
    
    /* Simple touch feedback - opacity only */
    button:active,
    a:active,
    .btn:active {
        opacity: 0.7;
        transition: opacity 0.1s;
    }
    
    /* Prevent accidental scrolling issues */
    body {
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading states - SIMPLIFIED for instant display */
img {
    background: transparent;
}





