.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    padding: 1.5rem;
}
.product-card {
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 350px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.product-list > .product-card {
    width: calc((100% - 4.5rem) / 4);
}
@media (max-width: 1400px) {
    .product-list > .product-card { width: calc((100% - 3rem) / 3); }
}
@media (max-width: 1050px) {
    .product-list > .product-card { width: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 700px) {
    .product-list { flex-direction: column; }
    .product-list > .product-card { width: 100%; min-width: 0; max-width: 100%; }
}
.product-card-image {
    width: 100%;
    /* height: 100%; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-card-body {
    padding: 1rem 1rem 0.5rem 1rem;
}
.product-card-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card-desc {
    margin: 0.2em 0 0.5em 0;
    color: #888;
    font-size: 0.97rem;
    height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 1.1em;
    color: #f7b500;
}
.product-card-stars {
    font-size: 1em;
}
.product-card-rating-value {
    color: #222;
    font-size: 0.95em;
}
.product-card-review-count {
    color: #888;
    font-size: 0.92em;
}
.product-card-price-wrap {
    margin: 0.5em 0 0.2em 0;
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}
.product-card-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #222;
}
.product-card-original-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.98em;
}
.product-card-badges {
    display: flex;
    gap: 0.4em;
    margin-bottom: 0.5em;
}
.product-card-badge {
    background: #222;
    color: #fff;
    font-size: 0.85em;
    padding: 0.1em 0.5em;
    border-radius: 3px;
}
.product-card-discount {
    background: #ffe600;
    color: #d32f2f;
    font-size: 0.85em;
    padding: 0.1em 0.5em;
    border-radius: 3px;
}
.product-card-delivery {
    color: #4078c0;
    font-size: 0.97em;
    margin-bottom: 0.5em;
}
.product-card-cart-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #fff;
    border: 1px solid #4078c0;
    color: #4078c0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: background 0.2s;
}
.product-card-cart-btn:hover {
    background: #f0f6ff;
}


.header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #4078c0;
    color: #fff;
    padding: 1rem 1.5rem;
    position: relative;
    gap: 1.5rem;
}
.header-title {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 1px;
    flex-shrink: 0;
    text-align: left;
    min-width: 160px;
}
.header-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 2rem;
    padding: 0.2rem 0.5rem 0.2rem 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin: 0 1.5rem 0 0;
    min-width: 0;
    max-width: none;
}
.header-search input {
    border: none;
    outline: none;
    font-size: 1.2rem;
    background: transparent;
    color: #333;
    padding: 0.5rem 0.5rem;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}
.header-search input:focus {
    background: #f4f4f4;
}
.header-search button {
    background: #4078c0;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.4rem 1.2rem;
    font-size: 1.1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.header-search button:hover {
    background: #305a8c;
}
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    padding: 0;
    z-index: 21;
    margin-left: 0.5rem;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #4078c0;
    border-radius: 2px;
    background: #fff;
    transition: 0.3s;
}
.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: #f4f4f4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 20;
    padding: 0.5rem 0;
    border-radius: 0 0 8px 8px;
    animation: fadeInMenu 0.2s;
}
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-menu.show {
    display: flex;
}
.nav-menu a {
    color: #4078c0;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.nav-menu a:hover {
    background: #e0e7f5;
}
@media (max-width: 600px) {
    .header-title { font-size: 1.3rem; min-width: 90px; }
    .header-search { max-width: 200px; margin-right: 0.5rem; }
    .header-search input { min-width: 60px; font-size: 1rem; }
    .nav-menu { width: 100vw; right: 0; left: 0; border-radius: 0 0 8px 8px; }
}