:root {
    --primary: #ff5000;
    --primary-hover: #e64500;
    --bg: #f4f7f9;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.search-wrapper {
    display: flex;
    background: #f1f3f5;
    border-radius: 25px;
    padding: 2px 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.search-wrapper:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255,80,0,0.2);
}

.search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px;
    width: 250px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 30px 5%;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.price-tag {
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-img-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
}


.product-img-link:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}