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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
            padding-top: 70px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* COMPACT HEADER */
        .top-header {
            background: linear-gradient(135deg, #26d0ce, #1a2980);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 8px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-compact {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 54px;
        }

        .logo-compact {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logo-icon-small {
            background: white;
            color: #26d0ce;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .logo-compact h1 {
            font-size: 1.5rem;
            color: white;
        }

        .quick-nav {
            display: flex;
            gap: 25px;
            align-items: center;
            margin: 0 20px;
            flex-grow: 1;
        }

        .quick-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            padding: 5px 0;
            position: relative;
            transition: color 0.3s;
        }

        .quick-nav a:hover {
            color: #ffde59;
        }

        .quick-nav a.active {
            color: #ffde59;
        }

        .quick-nav a.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #ffde59;
        }

        .header-right-compact {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .auth-buttons-small {
            display: flex;
            gap: 10px;
        }

        .auth-btn-small {
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
            padding: 5px 12px;
            border-radius: 15px;
            transition: all 0.2s;
        }

        .auth-btn-small.login {
            border: 1px solid rgba(255,255,255,0.5);
        }

        .auth-btn-small.register {
            background: white;
            color: #26d0ce;
        }

        .auth-btn-small:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(0,0,0,0.2);
        }

        .cart-icon-small {
            position: relative;
            cursor: pointer;
            font-size: 20px;
            color: white;
            margin-left: 5px;
        }

        .cart-count-small {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .user-menu-compact {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .user-greeting-small {
            color: white;
            font-weight: 600;
            font-size: 13px;
        }

        .user-avatar-small {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
        }

        .user-avatar-small:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .user-dropdown-compact {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            min-width: 180px;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            display: none;
            flex-direction: column;
            z-index: 1001;
            overflow: hidden;
        }

        .user-dropdown-compact.show {
            display: flex;
        }

        .user-dropdown-compact a {
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background 0.3s;
            font-size: 14px;
        }

        .user-dropdown-compact a:hover {
            background: #f8f9fa;
        }

        .user-dropdown-compact a i {
            color: #26d0ce;
            width: 16px;
        }

        .logout-btn-small {
            color: #ff4757 !important;
            border-top: 1px solid #eee;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 5px;
        }

        /* MOBILE MENU */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 1100;
            padding-top: 80px;
        }

        .mobile-menu-overlay.show {
            display: block;
        }

        .mobile-nav {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 20px;
        }

        .mobile-nav a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            padding: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .mobile-nav a i {
            width: 20px;
        }

        .close-mobile-menu {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 30px;
            cursor: pointer;
        }

        /* FEATURED FILTER BAR */
        .featured-filter-bar {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 2px;
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            position: sticky;
            top: 70px;
            z-index: 999;
        }

        .featured-filter-btn {
            padding: 6px 15px;
            border: 1.5px solid #26d0ce;
            background: white;
            color: #26d0ce;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
            font-size: 13px;
        }

        .featured-filter-btn.active,
        .featured-filter-btn:hover {
            background: #26d0ce;
            color: white;
        }

       

        /* PRODUCTS SECTION */
        .products {
            padding: 1px 0 5px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3px;
            font-size: 2rem;
            color: #2c3e50;
            padding-top: 1px;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .product-info {
            padding: 15px;
        }

        .product-info h3 {
            margin-bottom: 8px;
            color: #2c3e50;
            font-size: 16px;
        }

        .product-description {
            color: #666;
            font-size: 13px;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }

        .product-store {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .product-store i {
            color: #26d0ce;
        }

        .stock-status {
            font-size: 12px;
            margin-bottom: 10px;
        }

        .product-price {
            font-size: 1.3rem;
            font-weight: bold;
            color: #26d0ce;
            margin-bottom: 12px;
        }

        .add-to-cart {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, #26d0ce, #1a2980);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: opacity 0.3s;
        }

        .add-to-cart:hover {
            opacity: 0.9;
        }

        .add-to-cart:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

      

        /* CART MODAL */
        .cart-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: flex-end;
        }

        .cart-content {
            background: white;
            width: 300px;
            height: 100%;
            padding: 1px;
            overflow-y: auto;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
        }

        .close-cart {
            background: none;
            border: none;
            font-size: 30px;
            cursor: pointer;
            color: #333;
        }

        .cart-items {
            min-height: 200px;
        }

        .cart-item {
            display: flex;
            align-items: center;
           
            border-bottom: 1px solid #eee;
        }

        .cart-item-img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 5px;
        }

        .cart-item-details {
            flex: 1;
        }

        .cart-item-title {
            font-weight: 400;
            
        }

        .cart-item-price {
            color: #26d0ce;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .quantity-btn {
            width: 30px;
            height: 30px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
        }

        .remove-item {
            background: #ff4757;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            margin-left: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-footer {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #eee;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .checkout-btn {
            width: 100%;
            padding: 15px;
        }

        /* FOOTER */
        footer {
            background: #2c3e50;
            color: white;
            padding: 10px 0 4px;
            margin-top: 25px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3px;
            margin-bottom: 3px;
        }

        .footer-column h3 {
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 8px;
        }

        .footer-links a,
        .footer-links li {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 14px;
        }

        .footer-links a:hover {
            color: #26d0ce;
        }

        .footer-links i {
            margin-right: 8px;
            color: #26d0ce;
            width: 16px;
        }

        .social-icons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .social-icons a {
            color: white;
            font-size: 18px;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #26d0ce;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #4a6572;
            color: #ddd;
            font-size: 13px;
        }

        /* RESPONSIVE DESIGN */
        @media (max-width: 992px) {
            body {
                padding-top: 60px;
            }
            
            .top-header {
                padding: 5px 0;
            }
            
            .header-compact {
                height: 50px;
                padding: 0 10px;
            }
            
            .logo-compact h1 {
                font-size: 1.3rem;
            }
            
            .quick-nav {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .featured-filter-bar {
                top: 60px;
                padding: 10px;
            }
            
            .cart-content {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 15px;
            }
            
            .product-img {
                height: 160px;
            }
            
            .hero-compact h2 {
                font-size: 1.5rem;
            }
            
            .hero-compact p {
                font-size: 0.9rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .categories {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .featured-filter-btn {
                padding: 5px 12px;
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .product-img {
                height: 140px;
            }
            
            .product-info {
                padding: 10px;
            }
            
            .product-info h3 {
                font-size: 14px;
            }
            
            .product-description {
                font-size: 12px;
            }
            
            .product-price {
                font-size: 1.1rem;
            }
            
            .logo-compact h1 {
                font-size: 1.1rem;
            }
            
            .user-greeting-small {
                display: none;
            }
            
            .auth-btn-small {
                padding: 4px 8px;
                font-size: 12px;
            }
            
            .categories {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
          .search-wrapper {
        position: fixed;
        top: 60px; /* just below header */
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #26d0ce, #1a2980);
        padding: 10px 15px;
        z-index: 999;
    }
        }

        /* TOUCH OPTIMIZATION */
        @media (hover: none) and (pointer: coarse) {
            .featured-filter-btn,
            .add-to-cart,
            .btn,
            .quantity-btn,
            .remove-item {
                min-height: 44px;
            }
            
            .product-card,
            .category-card {
                min-height: 44px;
            }
        }

        /* ANIMATIONS */
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
    .search-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #26d0ce;
    font-size: 15px;
}
      @media (max-width: 768px) {

    .search-wrapper {
        position: fixed;
        top: 60px; /* just below header */
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #26d0ce, #1a2980);
        padding: 10px 15px;
        z-index: 999;
    }

    .search-box {
        max-width: 100%;
    }

    .search-box input {
        font-size: 16px; /* prevents iOS zoom */
        padding: 12px 42px 12px 16px;
    }

    body {
        padding-top: 120px; /* space for header + search */
    }
}
