* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}
.logo span {
    color: #e74c3c;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-actions a {
    color: #555;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}
.header-actions a:hover {
    color: #e74c3c;
    background: #f8f9fa;
}
.cart-icon {
    position: relative;
    font-size: 22px;
}
.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-bar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.search-bar .container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    min-width: 200px;
}
.search-bar input:focus {
    border-color: #e74c3c;
}
.search-bar select {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    background: #fff;
    outline: none;
    cursor: pointer;
}
.search-bar button {
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.search-bar button:hover {
    background: #c0392b;
}
.categories {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}
.categories .container {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}
.categories a {
    white-space: nowrap;
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 14px;
    color: #555;
}
.categories a:hover {
    background: #e74c3c;
    color: #fff;
}
.products-section {
    padding: 40px 0;
}
.products-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
}
.product-info {
    padding: 15px;
}
.product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c3e50;
}
.product-info .category {
    font-size: 12px;
    color: #999;
}
.product-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    margin: 8px 0;
}
.product-actions {
    display: flex;
    gap: 10px;
}
.product-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}
.btn-add-to-cart {
    background: #2c3e50;
    color: #fff;
}
.btn-add-to-cart:hover {
    background: #1a252f;
}
.btn-add-to-cart.added {
    background: #27ae60;
}
.btn-wishlist {
    flex: 0 0 auto;
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #ddd !important;
    color: #999;
}
.btn-wishlist:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}
.btn-wishlist.active {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .search-bar .container {
        flex-direction: column;
        align-items: stretch;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}