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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 100%);
    color: #e0e6ed;
    min-height: 100vh;
    padding-bottom: 40px;
}

.navbar {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 2rem;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #8b95a5;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #8b95a5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #8b95a5;
    font-size: 1.1rem;
}

.search-bar {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8b95a5;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tab:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.tab.active {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #0a1628;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    min-width: 300px;
}

.search-input {
    flex: 1;
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    color: #e0e6ed;
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: #5a6575;
}

.search-input:focus {
    outline: none;
    border-color: #00d4ff;
}

.search-btn {
    background: #00d4ff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.search-btn:hover {
    background: #00a8ff;
    transform: scale(1.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

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

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: #8b95a5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.quantity-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00d4ff;
}

.quantity-input {
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    text-align: center;
    padding: 0.4rem;
    border-radius: 4px;
    font-size: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: #00d4ff;
    border: none;
    color: #0a1628;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.add-to-cart-btn:hover {
    background: #00a8ff;
    transform: scale(1.02);
}

.cart-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #00d4ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s;
}

.cart-badge:hover {
    transform: scale(1.1);
}

.cart-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1628;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        min-width: 100%;
    }
}
