/* Переменные для легкого управления цветом */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-main: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
}

body { 
    margin: 0; 
    font-family: 'Manrope', -apple-system, sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-dark); 
    -webkit-font-smoothing: antialiased;
}

.container { max-w: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* СТИЛЬНЫЙ ХЕДЕР */
header { 
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02); 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; transition: all 0.2s; padding: 6px 12px; border-radius: 8px; }
.nav-link:hover { color: var(--primary); background-color: #f1f5f9; }
.nav-link.cart-active { background: #e0e7ff; color: var(--primary); }

/* ЭФФЕКТНЫЙ КРАСИВЫЙ БАННЕР (HERO SECTION) */
.hero {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(224, 231, 255, 0.5);
    box-shadow: 0 10px 30px -15px rgba(99, 102, 241, 0.1);
}
.hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 38px; font-weight: 800; margin: 0 0 12px 0; color: var(--text-dark); letter-spacing: -0.02em; }
.hero p { font-size: 16px; color: var(--text-muted); margin: 0 auto; max-width: 600px; line-height: 1.6; }

/* ОБНОВЛЕННАЯ ПАНЕЛЬ ПОИСКА И ФИЛЬТРОВ */
.filters-panel { 
    background: white; 
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 40px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); 
    border: 1px solid #e2e8f0; 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    align-items: flex-end; 
}
.filter-group { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 240px; }
.filter-label { font-size: 13px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.03em; }
.filter-input { padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; box-sizing: border-box; width: 100%; transition: all 0.2s; font-family: inherit; background-color: #f8fafc; }
.filter-input:focus { outline: none; border-color: var(--primary); background-color: white; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

/* СОВРЕМЕННАЯ СЕТКА ТОВАРОВ */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 32px; 
    width: 100%;
}

/* КАРТОЧКА ТОВАРA */
.card { 
    background-color: #ffffff; 
    border-radius: 20px; 
    border: 1px solid #e2e8f0; 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02); 
    width: 100%; 
    box-sizing: border-box; 
}
.card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.06); 
    border-color: #cbd5e1;
}

.card-img-wrapper { width: 100%; height: 220px; overflow: hidden; position: relative; background-color: #f1f5f9; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.card:hover .card-img { transform: scale(1.05); }

.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 6px; }

.title-link { text-decoration: none; color: var(--text-dark); }
.title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.3; transition: color 0.2s; }
.title-link:hover .title { color: var(--primary); }

.description { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; line-height: 1.5; }

.card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--text-dark); display: block; }
.vendor { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.vendor-name { font-weight: 600; color: #475569; }

.btn { background-color: var(--primary); color: #ffffff; font-weight: 600; padding: 10px 20px; border-radius: 10px; border: none; font-size: 14px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn:hover { background-color: var(--primary-hover); transform: scale(1.02); }

.btn-reset { background-color: #f1f5f9; color: #475569; font-weight: 600; padding: 10px 20px; border-radius: 10px; border: 1px solid #cbd5e1; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; display: flex; align-items: center; transition: all 0.2s; }
.btn-reset:hover { background-color: #e2e8f0; }

.empty-text { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 16px; padding: 64px 0; font-weight: 500; }
.alert { background-color: var(--success); color: white; padding: 14px; border-radius: 12px; text-align: center; margin-bottom: 24px; font-size: 14px; font-weight: 600; }