:root { --primary: #007bff; --secondary: #28a745; --gray: #6c757d; --light: #f8f9fa; --dark: #343a40; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #fff; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.hidden { display: none !important; }

header { position: sticky; top: 0; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 100; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; flex-wrap: wrap; }
.logo { font-weight: bold; font-size: 1.5rem; color: var(--primary); }
.menu { display: flex; gap: 1.5rem; list-style: none; }
.menu a { text-decoration: none; color: var(--dark); font-weight: 500; }
.search-bar input { padding: 0.5rem 1rem; border: 1px solid #ddd; border-radius: 4px; width: 100%; max-width: 250px; }
.icons span { font-size: 1.2rem; cursor: pointer; }

.hero { margin: 2rem 0; }
.slider { position: relative; border-radius: 12px; overflow: hidden; height: 400px; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider-content { position: absolute; bottom: 10%; left: 5%; background: rgba(0,0,0,0.7); color: white; padding: 1.5rem; border-radius: 8px; max-width: 500px; }
.slider-content h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.main-feed, .category-grid, .search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-card h3 { padding: 1rem; font-size: 1.1rem; }
.product-card p { padding: 0 1rem; font-size: 0.9rem; color: var(--gray); }
.price { padding: 0 1rem 1rem; font-weight: bold; color: var(--primary); }
.btn-primary, .btn-secondary { display: block; margin: 0.5rem 1rem 1rem; padding: 0.75rem; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }

.sidebar { background: var(--light); padding: 1.5rem; border-radius: 12px; }
.sidebar h4 { margin-bottom: 1rem; font-size: 1.2rem; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.sidebar a { text-decoration: none; color: var(--dark); }

footer { background: var(--light); padding: 3rem 0 1rem; margin-top: 4rem; text-align: center; }
.newsletter input { padding: 0.75rem; width: 250px; border: 1px solid #ddd; border-radius: 8px; margin-right: 0.5rem; }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .slider { height: 300px; }
    .slider-content { left: 50%; transform: translateX(-50%); text-align: center; width: 90%; }
    .search-bar { order: 3; margin-top: 1rem; max-width: 100%; }
}