* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: linear-gradient(135deg, #2c3e50, #1a2632);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header h1 {
    font-size: 1.8rem;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
nav a:hover { color: #f1c40f; }
.search-form {
    display: flex;
    gap: 5px;
}
.search-form input {
    padding: 6px 12px;
    border: none;
    border-radius: 30px;
}
.search-form button {
    background: #f1c40f;
    border: none;
    padding: 6px 15px;
    border-radius: 30px;
    cursor: pointer;
}
main {
    display: flex;
    gap: 30px;
    margin: 40px auto;
}
.sidebar {
    width: 220px;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sidebar ul {
    list-style: none;
}
.sidebar li a {
    display: block;
    padding: 8px 0;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.sidebar li a.active, .sidebar li a:hover {
    color: #e67e22;
}
.products-area {
    flex: 1;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    padding: 15px;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}
.product-card h3 {
    font-size: 1.2rem;
    margin: 12px 0 8px;
}
.price {
    color: #e67e22;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 8px 0;
}
.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn:hover {
    background: #2980b9;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a {
    background: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #2c3e50;
    border: 1px solid #ddd;
}
.pagination a.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}
.product-detail {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 40px auto;
    max-width: 1200px;
}
.product-image {
    flex: 1;
}
.product-image img {
    width: 100%;
    border-radius: 20px;
}
.product-info {
    flex: 1;
}
.product-info .price {
    font-size: 1.8rem;
    margin: 15px 0;
}
.description {
    margin: 20px 0;
    line-height: 1.8;
}
footer {
    background: #1a2632;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}
@media (max-width: 768px) {
    main { flex-direction: column; }
    .sidebar { width: 100%; }
    .product-detail { flex-direction: column; }
    nav { flex-direction: column; align-items: stretch; }
}