:root {
    --main-bg: #0f0f11;
    --card-bg: #1a1a1d;
    --accent: #00d1ff;
    --text: #ffffff;
}

body {
    margin: 0; font-family: 'Inter', sans-serif;
    background: var(--main-bg); color: var(--text);
}

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: #161618; border-bottom: 1px solid #2a2a2c;
    position: sticky; top: 0; z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--accent); }

.search-container input {
    width: 350px; padding: 12px 20px; border-radius: 25px;
    border: none; background: #252528; color: white;
}

.container { display: flex; padding: 20px 5%; }

.sidebar { width: 220px; position: sticky; top: 100px; height: fit-content; }
.category-item {
    padding: 12px; margin-bottom: 5px; border-radius: 10px;
    cursor: pointer; transition: 0.2s;
}
.category-item:hover, .category-item.active { background: #252528; color: var(--accent); }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; flex-grow: 1; margin-left: 30px;
}

.product-card {
    background: var(--card-bg); border-radius: 15px; padding: 15px;
    border: 1px solid #2a2a2c; transition: 0.3s;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.product-price { color: #2ecc71; font-weight: bold; font-size: 1.2rem; }

/* Модалка */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; }
.modal-content { background: #1a1a1d; padding: 30px; border-radius: 20px; width: 300px; }
.modal-content input { width: 100%; margin-bottom: 10px; padding: 10px; border-radius: 5px; border: none; }
.btn-success { background: #2ecc71; border: none; padding: 10px; color: white; width: 100%; cursor: pointer; }
