* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        
        :root {
            --background: hsl(0 0% 100%);
            --foreground: hsl(222.2 84% 4.9%);
            --card: hsl(0 0% 100%);
            --card-foreground: hsl(222.2 84% 4.9%);
            --primary: hsl(222.2 47.4% 11.2%);
            --primary-foreground: hsl(210 40% 98%);
            --secondary: hsl(210 40% 96%);
            --secondary-foreground: hsl(222.2 84% 4.9%);
            --muted: hsl(210 40% 96%);
            --muted-foreground: hsl(215.4 16.3% 46.9%);
            --accent: hsl(210 40% 96%);
            --accent-foreground: hsl(222.2 84% 4.9%);
            --destructive: hsl(0 84.2% 60.2%);
            --destructive-foreground: hsl(210 40% 98%);
            --border: hsl(214.3 31.8% 91.4%);
            --input: hsl(214.3 31.8% 91.4%);
            --ring: hsl(222.2 84% 4.9%);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--background);
            color: var(--foreground);
            line-height: 1.5;
            padding-top: 80px; /* Account for fixed navbar */
        }
        
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        /* Navbar Styles */
       
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
        }

        .navbar .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        .nav-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            height: 60px;
        }
        
        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .nav-button {
            background: none;
            border: none;
            color: var(--foreground);
            cursor: pointer;
            transition: color 0.3s;
            padding: 8px;
            border-radius: 6px;
        }
        
        .nav-button:hover {
            color: var(--muted-foreground);
            background-color: var(--muted);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 300;
            letter-spacing: 0.2em;
            color: var(--foreground);
            text-decoration: none;
            flex: 1;
            text-align: center;
        }
        
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .nav-icon {
            position: relative;
            color: var(--foreground);
            text-decoration: none;
            transition: color 0.3s;
            padding: 8px;
            border-radius: 6px;
        }
        
        .nav-icon:hover {
            color: var(--muted-foreground);
            background-color: var(--muted);
        }
        
        .nav-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            background-color: var(--foreground);
            color: var(--background);
            font-size: 10px;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            font-weight: 600;
        }
        
        .search-bar {
            display: none;
            border-top: 1px solid var(--border);
            padding: 1rem 0;
        }
        
        .search-bar.active {
            display: block;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: transparent;
            outline: none;
            transition: border-color 0.3s;
            font-size: 16px; /* Prevents zoom on iOS */
        }
        
        .search-input:focus {
            border-color: var(--foreground);
        }
        

        .menu-dropdown {
            display: none;
            border-top: 1px solid var(--border);
            padding: 1rem 0;
            opacity: 0;
            transform-origin: top;
            transform: scaleY(0);
            transition:
                opacity 200ms ease,
                transform 200ms ease;
        }

        .menu-dropdown.active,
        .menu-dropdown.fading {
            display: block;
        }

        .menu-dropdown.active {
            opacity: 1;
            transform: scaleY(1);
        }

        .menu-dropdown.fading {
            opacity: 0;
        }
        
        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
        }
        
        .menu-link {
            color: var(--muted-foreground);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 0.5rem 0;
            transition: color 0.3s;
        }
        
        .menu-link:hover {
            color: var(--foreground);
        }
        
        /* Hero Section */
        .hero {
            padding: 2rem 1rem 4rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            min-height: 70vh;
            display: flex;
            align-items: center;
            padding-top: 1rem !important; 
        }
        
        .hero-content {
            max-width: 600px;
            margin: 0 auto;
            width: 100%;
        }
        
        .hero h1 {
            font-size: clamp(2rem, 8vw, 4rem);
            font-weight: 300;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
        }

        .hero .gradient-text {
            display: block;
            margin-top: -1rem;
            font-weight: 600;
            color: #3d3d3d;
        }
    
        .hero p {
            font-size: clamp(1rem, 4vw, 1.5rem);
            color: var(--muted-foreground);
            margin-bottom: 2rem;
            font-weight: 300;
        }
        
        .hero-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .btn-primary {
            background-color: #000;
            color: #fff;    
            padding: 1rem 2rem;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.05em;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            width: 100%;
            max-width: 300px;
            text-align: center;
            touch-action: manipulation; /* Improves touch responsiveness */
        }
        
        .btn-primary:hover,
        .btn-primary:active {
            background-color: hsl(225, 10%, 16%);
            transform: translateY(-1px);
        }
        
        .btn-outline {
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: 0.9rem 2rem;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.05em;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            width: 100%;
            max-width: 300px;
            text-align: center;
            touch-action: manipulation;
        }
        
        .btn-outline:hover,
        .btn-outline:active {
            background-color: #000;
            color: #fff;
            transform: translateY(-1px);
        }
        
        .hero-bg {
            position: absolute;
            inset: 0;
            z-index: -1;
        }
        
        .hero-bg-element {
            position: absolute;
            border-radius: 50%;
            filter: blur(3rem);
        }
        
        .hero-bg-1 {
            top: 5rem;
            left: 2.5rem;
            width: 18rem;
            height: 18rem;
            background: var(--muted);
            opacity: 0.2;
        }
        
        .hero-bg-2 {
            bottom: 5rem;
            right: 2.5rem;
            width: 24rem;
            height: 24rem;
            background: var(--muted);
            opacity: 0.1;
        }
        
        /* Products Section */
        .products-section {
            padding: 2rem 0;
        }
        
        .filter-bar {
            background-color: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        
        .search-container {
            position: relative;
            max-width: 100%;
        }
        
        .search-container input {
            padding-left: 2.5rem;
            padding-right: 1rem;
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--background);
            font-size: 16px; /* Prevents zoom on iOS */
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted-foreground);
            width: 1rem;
            height: 1rem;
        }
        
.filters-container {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    /* REMOVED: overflow-x: auto; */
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem; /* Add consistent gap */
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* Prevent shrinking */
}
        
        .filter-label {
            display: flex;
            align-items: center;
            font-size: 0.875rem;
            font-weight: 500;
            white-space: nowrap;
        }
        
        .filter-select {
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--background);
            font-size: 0.875rem;
            min-width: 120px;
        }
        
        .checkbox-container {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        
        .checkbox-container input {
            margin-right: 0.5rem;
        }
        
        .products-toolbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            gap: 1rem;
        }
        
        .products-title {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .product-card h3{
            font-weight: 400;
            padding-left: 1rem;
            padding-top: 0.5rem;
        }
        
        .toolbar-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .sort-container {
            display: flex;
            align-items: right;
        }
        
        .sort-label {
            font-size: 0.875rem;
            font-weight: 500;
            margin-right: 0.5rem;
        }
        
        .view-btn {
            padding: 0.75rem;
            border: none;
            background: var(--background);
            cursor: pointer;
            transition: all 0.3s;
            touch-action: manipulation;
        }
        
        .view-btn.active {
            background: var(--primary);
            color: var(--primary-foreground);
        }
        
        .products-grid {
            display: grid;
            gap: 1rem;
            grid-template-columns: repeat(2, 1fr);
        }
        
        .products-grid.list-view {
            grid-template-columns: 1fr;
        }
        
        /* Product Card */
        .product-card {
            position: relative;
            background-color: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s;
            cursor: pointer;
            min-height: 280px;
            display: flex;
            flex-direction: column;
        }
        
        .product-card:hover,
        .product-card:active {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }
        
        .product-badges {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .badge {
            padding: 0.25rem 0.5rem;
            font-size: 0.7rem;
            font-weight: 600;
            border-radius: 4px;
        }
        
        .badge-discount {
            background-color: var(--primary);
            color: var(--primary-foreground);
        }
        
        .badge-bestseller {
            background-color: var(--accent);
            color: var(--accent-foreground);
        }
        
        .badge-out-of-stock {
            background-color: var(--destructive);
            color: var(--destructive-foreground);
        }
        
        .wishlist-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            z-index: 10;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
            touch-action: manipulation;
            min-width: 44px; /* Minimum touch target size */
            min-height: 44px;
        }
        
        .wishlist-btn:hover,
        .wishlist-btn:active {
            background: var(--background);
            transform: scale(1.1);
        }
        
        .product-image {
            height: 250px;
            overflow: hidden;
            background: var(--muted);
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-info {
            padding: 0.75rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .product-title {
            font-weight: 400;
            color: var(--foreground);
            margin-bottom: 0.5rem;
            line-height: 1.4;
            transition: color 0.3s;
            font-size: 0.9rem;
        }
        
        .product-card:hover .product-title {
            color: var(--primary);
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .rating-stars {
            color: #fbbf24;
            width: 1rem;
            height: 1rem;
        }
        
        .rating-text {
            font-size: 0.8rem;
            color: var(--foreground);
            margin-left: 0.25rem;
        }
        
        .rating-reviews {
            font-size: 0.8rem;
            color: var(--muted-foreground);
            margin-left: 0.25rem;
        }
        
        .product-price {
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            padding-left: 1rem;
            margin-top: auto;
        }
        
        .price-current {
            font-size: 1rem;
            font-weight: 700;
            color: var(--foreground);
        }
        
        .price-original {
            font-size: 0.8rem;
            color: var(--muted-foreground);
            text-decoration: line-through;
        }

        .color-swatches {
        margin-top: 0.5rem;
        display: flex;
        gap: 0.25rem;
        }

        .color-swatch {
        margin-left: 1rem;
        margin-bottom: 1rem;
        width: 18px;
        height: 18px;
        object-fit: cover;
        border: 1.5px solid #a9a9a9;
        border-radius: 4px;
        transition: transform 0.2s ease;
        cursor: pointer;
        padding:1px
        }

        .color-swatch:hover,
        .color-swatch:active {
            transform: scale(1.1);
        }

        
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 3rem;
            margin-bottom: 2rem;
        }
        
        .pagination-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .pagination-btn {
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            background-color: #fff; 
            color: #000;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.3s;
            touch-action: manipulation;
            min-width: 44px; /* Minimum touch target size */
            min-height: 44px;
            font-size: 0.9rem;
        }
        
        .pagination-btn:hover,
        .pagination-btn:active {
            background: rgba(135, 135, 135, 0.1);
            transform: translateY(-1px);
        }
        
        .pagination-btn.active {
            background-color: #000; 
            color: #fff;            
        }
        
        /* Footer */
        .footer {
            background: rgba(244, 244, 245, 0.5);
            border-top: 1px solid var(--border);
            padding: 3rem 0 0 0;
            padding-left: 1rem !important;
            margin: 0;
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            min-height: auto;
        }
        
       .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        } 
        
        .footer-section h3 {
            font-size: 1.125rem;
            font-weight: 700;
            color: #3B82FC;
            margin-bottom: 1rem;
        }
        
        .footer-section h4 {
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .footer-section p {
            color: var(--muted-foreground);
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: var(--muted-foreground);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--primary);
        }
        
        .social-icons {
            display: flex;
            gap: 1rem;
        }
        
        .social-icon {
            color: var(--muted-foreground);
            transition: color 0.3s;
            cursor: pointer;
        }
        
        .social-icon:hover {
            color: var(--primary);
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
        }
        
        .contact-icon {
            color: var(--primary);
            margin-right: 0.75rem;
            flex-shrink: 0;
        }
        
        .footer-bottom {
            color: var(--muted-foreground);
            border-top: 1px solid var(--border);
            padding-top: 2rem;
            padding-bottom: 2rem;
            margin-top: 2rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        } 
        
        .payment-methods {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .payment-method {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }
        /* Search Results Styles */
        .search-bar {
            display: none;
            position: relative;
        }

        .search-bar.active {
            display: block;
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .search-result-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item img {
            width: 50px;
            height: 50px;
            margin-right: 0.75rem;
            object-fit: cover;
            border-radius: 6px;
        }

        .search-result-item:hover,
        .search-result-item:active {
            background-color: var(--muted);
        }

        .no-results {
            padding: 1rem;
            color: var(--muted-foreground);
            text-align: center;
        }

        .product-card-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        /* Mobile-specific responsive breakpoints */
        
        /* All mobile devices - 2 column grid */
        @media (max-width: 767px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }
            
            .product-card {
                min-height: 280px;
            }
            
            .product-image {
                height: 230px;
            }
            
            .product-card h3,
            .product-title {
                font-size: 0.8rem;
                line-height: 1.3;
            }
            
            .product-price {
                padding-left: 0.5rem;
            }
            
            .price-current {
                font-size: 0.9rem;
            }
            
            .product-swatches {
                padding-left: 0.5rem;
            }
            
            .color-swatch {
                width: 14px;
                height: 14px;
            }
  .filters-container {
        padding: 0.75rem;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-label {
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .filter-select {
        padding: 0.625rem;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--background);
        font-size: 0.875rem;
        flex: 1;
        max-width: none;
        min-width: 120px;
      }
    }
        
        /* Small mobile devices (320px and up) */
        @media (max-width: 480px) {
            body {
                padding-top: 70px;
            }
            
            .container {
                padding: 0 0.75rem;
            }
            
            .nav-content {
                padding: 0.75rem 0;
            }
            
            .logo {
                font-size: 1.25rem;
            }
            
            .hero {
                padding: 1.5rem 0.75rem 3rem;
                min-height: 60vh;
            }
            
            .hero h1 {
                font-size: 2rem;
                margin-bottom: 1rem;
            }
            
            .hero .gradient-text {
                margin-top: -0.5rem;
            }
            
            .hero p {
                font-size: 1rem;
                margin-top: 1.5rem;
                margin-bottom: 1.5rem;
            }
            
            .hero-buttons {
                gap: 0.75rem;
            }
            
            .btn-primary,
            .btn-outline {
                padding: 0.50rem 1.5rem;
                font-size: 0.9rem;
                max-width: 280px;
            }
            
    .filters-container {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
        gap: 0.5rem;
    }
    
    .filter-label {
        font-size: 0.8rem;
        min-width: fit-content;
    }
    
    .filter-select {
        padding: 0.5rem;
        font-size: 0.8rem;
        border-radius: 4px;
    }
            .products-title {
                font-size: 1.125rem;
            }
            
            .nav-badge {
                width: 14px;
                height: 14px;
                font-size: 9px;
            }
        }
        
        /* Medium mobile devices (481px to 767px) */
        @media (min-width: 481px) and (max-width: 767px) {

            .hero {
                padding-bottom: 5rem !important;
            }

            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            
            .hero-buttons {
                flex-direction: row;
                justify-content: center;
            }
            
            .btn-primary,
            .btn-outline {
                height: 4rem;
                min-width: 100px;
                padding-top: 0.25rem;
            }
            .products-title{
                display: none;
            }
            
    .filters-row {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        max-width: none;
    }
            
            .sort-container{
                margin-left: auto;
                width: auto;
                display: inline-flex;
                align-items: center;
            }

            .sort-container select {
                max-width: 170px;
            }

            .sort-label{
                white-space: nowrap;
            }
        }

        /* Tablet and up (768px and up) */
        @media (min-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
            
            .hero-buttons {
                flex-direction: row;
                justify-content: center;
            }
            
            .btn-primary,
            .btn-outline {
                width: auto;
                min-width: 180px;
            }
            
            .filters-row {
                flex-direction: row;
                align-items: center;
            }
            
            .products-toolbar {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            
            .products-title {
                text-align: left;
                font-size: 1.5rem;
            }
            
            .toolbar-right {
                justify-content: flex-end;
            }
            
            .sort-container {
                flex-direction: row;
                align-items: center;
                width: auto;
                gap: 0.5rem;
            }
            
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .footer-bottom {
                flex-direction: row;
                justify-content: space-between;
                text-align: left;
            }
        }

        /* Large screens (1024px and up) */
        @media (min-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .hero {
                padding: 4rem 1rem;
                min-height: 70vh;
            }
            
            .nav-left {
                position: absolute;
                left: 1rem;
            }
            
            .nav-right {
                position: absolute;
                right: 1rem;
            }
            
            .footer-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Touch improvements for all mobile devices */
        @media (hover: none) and (pointer: coarse) {
            /* Touch-specific styles */
            .product-card:active {
                transform: scale(0.98);
            }
            
            .btn-primary:active,
            .btn-outline:active {
                transform: scale(0.98);
            }
            
            .nav-button:active,
            .nav-icon:active {
                background-color: var(--muted);
            }
            
            /* Increase touch targets */
            .nav-button,
            .nav-icon {
                min-width: 44px;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .filter-select,
            .search-input {
                min-height: 44px;
            }
            
            .pagination-btn {
                min-width: 48px;
                min-height: 48px;
            }
        }

        /* Landscape orientation for mobile */
        @media (max-width: 767px) and (orientation: landscape) {
            .hero {
                min-height: 50vh;
                padding: 1rem 0.75rem 2rem;
            }
            
            .hero h1 {
                font-size: 1.75rem;
            }
            
            .hero p {
                font-size: 0.9rem;
                margin-bottom: 1rem;
            }
            
            .hero-buttons {
                margin-bottom: 1rem;
            }
        }

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

        

        /* Reduced motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            .hero-bg-element {
                filter: none;
            }
            
            .product-card:hover .product-image img {
                transform: none;
            }
        }

        /* Print styles */
        @media print {
            .navbar,
            .hero-bg,
            .wishlist-btn,
            .pagination {
                display: none;
            }
            
            .hero {
                page-break-after: always;
            }
            
            .product-card {
                break-inside: avoid;
                box-shadow: none;
                border: 1px solid #ccc;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
        }

        /* Additional mobile-specific enhancements */
        
        /* Sticky elements behavior on mobile */
        @media (max-width: 767px) {
            .navbar {
                position: fixed;
                will-change: transform;
            }
            
            /* Smooth scrolling for anchor links */
            html {
                scroll-behavior: smooth;
            }
            
            /* Better focus styles for keyboard navigation */
            .nav-button:focus,
            .nav-icon:focus,
            .btn-primary:focus,
            .btn-outline:focus,
            .filter-select:focus,
            .search-input:focus {
                outline: 2px solid var(--primary);
                outline-offset: 2px;
            }
            
            /* Improve readability on small screens */
            .product-card h3,
            .product-title {
                line-height: 1.3;
            }
            
            /* Better spacing for mobile content */
            .products-section {
                padding: 1rem 0;
            }
            
            .filters-container,
            .products-toolbar {
                margin-bottom: 1.5rem;
            }
            
            /* Mobile-optimized product grid spacing */
            .products-grid {
                margin-bottom: 2rem;
            }
            
            /* Ensure adequate spacing for thumb scrolling */
            .pagination-container {
                padding: 0.5rem;
            }
        }

        /* iOS Safari specific fixes */
        @supports (-webkit-touch-callout: none) {
            .search-input,
            .filter-select {
                font-size: 16px; /* Prevents zoom on iOS */
                transform: translateZ(0); /* Hardware acceleration */
            }
            
            .navbar {
                -webkit-backdrop-filter: blur(10px);
            }
            
            /* Fix for iOS Safari viewport units */
            .hero {
                min-height: 70vh;
                min-height: calc(var(--vh, 1vh) * 70);
            }
        }

        /* Android Chrome specific optimizations */
        @media screen and (-webkit-min-device-pixel-ratio: 0) {
            .product-card {
                transform: translateZ(0); /* Hardware acceleration */
            }
            
            .btn-primary,
            .btn-outline {
                transform: translateZ(0);
            }
        }