/* public/assets/css/style.css */
* { box-sizing: border-box; outline: none; }
body { background-color: #121212; color: #e0e0e0; font-family: 'Inter', sans-serif; margin: 0; padding: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 14px; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

/* HEADER */
.top-bar { background-color: #1a1a1a; height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

/* LAYOUT */
.main-wrapper { display: flex; margin-top: 60px; min-height: calc(100vh - 60px); }
.sidebar { width: 260px; background-color: #151515; border-right: 1px solid #222; padding: 20px; position: fixed; top: 60px; bottom: 0; left: 0; overflow-y: auto; z-index: 900; }
.content { margin-left: 260px; padding: 30px; width: calc(100% - 260px); flex: 1; background: #121212; }

/* MENU */
.nav-menu { display: flex; flex-direction: column; gap: 5px; }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #aaa; border-radius: 8px; font-weight: 500; }
.nav-menu a:hover { background-color: #252525; color: #fff; }
.nav-menu a.active { background-color: #252525; color: #4dabf7; font-weight: bold; border-left: 3px solid #4dabf7; }

/* GRID & CARDS */
.hot-widget-grid, .products-grid-modern { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hot-card, .prod-card-modern, .card { background: #1e1e1e; border: 1px solid #333; border-radius: 10px; overflow: hidden; position: relative; transition: transform 0.2s; }
.hot-card:hover, .prod-card-modern:hover { transform: translateY(-5px); border-color: #555; }
.hot-img, .prod-img-box { height: 200px; background: #252525; display: flex; align-items: center; justify-content: center; position: relative; }
.hot-img img, .prod-img-box img { width: 100%; height: 100%; object-fit: cover; }
.hot-info, .prod-info, .card-body { padding: 15px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: #1e1e1e; border-radius: 10px; overflow: hidden; border: 1px solid #333; }
.news-img { width: 100%; height: 180px; object-fit: cover; background: #252525; }
.news-content { padding: 15px; }
.timer-box { color: #ff6b6b; font-weight: bold; font-size: 14px; margin-bottom: 10px; }

/* TEXT & BTNS */
.grid-title { font-size: 22px; font-weight: 700; margin: 0 0 20px 0; color: white; }
.btn-primary, .btn-buy-modern { padding: 8px 15px; background: #4dabf7; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: #3b8dc4; }
.btn-logout { display: block; width: 100%; padding: 10px; margin-top: 15px; border: 1px solid #ff6b6b; color: #ff6b6b; text-align: center; border-radius: 6px; }
.btn-logout:hover { background: #ff6b6b; color: white; }

/* FORMS */
.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 10px; background: #252525; border: 1px solid #444; color: white; border-radius: 6px; }
label { display: block; margin-bottom: 5px; color: #aaa; font-size: 13px; }

/* PROFILE & TABLES */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.profile-card { text-align: center; padding: 30px; }
.profile-avatar-upload { width: 100px; height: 100px; border-radius: 50%; background-size: cover; background-position: center; margin: 0 auto 15px; border: 3px solid #333; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid #333; text-align: left; }
.data-table th { color: #888; font-size: 12px; text-transform: uppercase; }

/* FOOTER & MOBILE */
.site-footer { margin-left: 260px; background: #151515; border-top: 1px solid #333; padding: 30px; color: #666; font-size: 12px; }
@media (max-width: 768px) {
    .sidebar { width: 60px; padding: 10px 5px; } 
    .sidebar .nav-menu a span { display: none; }
    .content, .site-footer { margin-left: 60px; width: calc(100% - 60px); }
    .profile-layout { grid-template-columns: 1fr; }
}

/* --- НОВЫЕ СТИЛИ ДЛЯ КАТЕГОРИЙ (ПЛИТКИ) --- */
.all-cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 20px; }

.cat-tile-styled {
    background-color: #333333;
    color: #ffffff;
    border-radius: 12px;
    padding: 20px 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
    border: 1px solid #444;
}

.cat-tile-styled:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); background-color: #444; border-color: #666; }

.cat-tile-icon { width: 60px; height: 60px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
.cat-tile-icon svg { width: 100%; height: 100%; }
.cat-tile-name { font-weight: 600; font-size: 14px; line-height: 1.3; }

/* Адаптивность для плиток */
@media (max-width: 1200px) { .all-cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .all-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { 
    .all-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-tile-styled { padding: 15px 5px; }
    .cat-tile-icon { width: 50px; height: 50px; margin-bottom: 10px; }
    .cat-tile-name { font-size: 13px; }
}
/* --- НОВЫЙ КАТАЛОГ (PRO VERSION) --- */

/* Заголовок и навигация */
.catalog-header {
    margin-bottom: 20px;
}
.catalog-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

/* Быстрые категории (Chips) */
.category-chips-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
    padding-bottom: 5px;
    /* Скрываем скроллбар */
    scrollbar-width: none; 
}
.category-chips-wrapper::-webkit-scrollbar { display: none; }

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #252525;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 50px;
    color: #aaa;
    margin-right: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.cat-chip:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}
.cat-chip.active {
    background: #4dabf7;
    color: #fff;
    border-color: #4dabf7;
}

/* Панель фильтров (Toolbar) */
.filter-toolbar {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}
.filter-group.search-group { flex: 2; min-width: 250px; }
.filter-group.action-group { flex: 0; min-width: auto; }

.filter-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.filter-input, .filter-select {
    width: 100%;
    background: #121212;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s;
}
.filter-input:focus, .filter-select:focus {
    border-color: #4dabf7;
}

.btn-filter-apply {
    background: #4dabf7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    height: 42px; /* Подгонка под высоту инпутов */
    margin-top: 19px; /* Компенсация лейбла */
}
.btn-filter-apply:hover { background: #3b8dc4; }

/* Улучшенная сетка товаров */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.pro-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.pro-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Бейджики */
.badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.badge-sale { background: #ff6b6b; color: white; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 4px; }
.badge-hot { background: #f1c40f; color: #000; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 4px; }

/* Кнопка "В избранное" */
.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: 0.2s;
    z-index: 2;
}
.btn-wishlist:hover { background: #ff6b6b; color: white; }

.pro-img {
    height: 220px;
    width: 100%;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.pro-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.pro-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pro-cat-name { font-size: 11px; color: #666; margin-bottom: 5px; text-transform: uppercase; }
.pro-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; line-height: 1.4; color: #fff; }
.pro-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.pro-price { font-size: 18px; font-weight: 700; color: #fff; }
.pro-old-price { font-size: 13px; color: #666; text-decoration: line-through; margin-right: 5px; }

.btn-add-cart {
    background: #333;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-add-cart:hover { background: #4dabf7; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px dashed #444;
}
.empty-icon { font-size: 60px; margin-bottom: 20px; display: block; }
.empty-text { font-size: 18px; color: #fff; margin-bottom: 10px; }
.empty-sub { color: #888; margin-bottom: 20px; }

/* Адаптив фильтра */
@media (max-width: 768px) {
    .filter-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .filter-group { width: 100%; }
    .btn-filter-apply { width: 100%; margin-top: 5px; }
}