/* ─── Общие стили ──────────────────────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* ─── Навигация по категориям ──────────────────────────────────────────────── */
.category-nav {
    overflow-x: auto;
    white-space: nowrap;
}
.category-nav .btn {
    font-size: 0.78rem;
}

/* ─── Заголовок категории ──────────────────────────────────────────────────── */
.category-title {
    background: #e9ecef;
    border-left: 4px solid #0d6efd;
    padding: 10px 16px;
    margin: 0 0 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
    border-radius: 0 4px 0 0;
}

/* ─── Таблица каталога ─────────────────────────────────────────────────────── */
.catalog-table {
    font-size: 0.875rem;
    background: #fff;
}
.catalog-table thead th {
    background: #f1f3f5;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}
.catalog-table tbody tr:hover {
    background-color: #f0f7ff;
}

/* ─── Миниатюра оборудования ───────────────────────────────────────────────── */
.eq-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: block;
    margin: auto;
}
.eq-thumb-placeholder {
    width: 60px;
    height: 60px;
    background: #f1f3f5;
    border-radius: 4px;
    border: 1px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: auto;
}

/* ─── Название и описание позиции ──────────────────────────────────────────── */
.item-name {
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.35;
}
.item-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 3px;
    line-height: 1.4;
}

/* ─── Мобильные карточки ───────────────────────────────────────────────────── */
.mobile-item {
    background: #fff;
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
}
.mobile-item:last-child {
    border-bottom: none;
}

.mobile-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}
.mobile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #adb5bd;
}

.mobile-meta {
    margin-top: 8px;
    font-size: 0.8rem;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f3f5;
    gap: 8px;
}
.meta-row:last-child { border-bottom: none; }
.meta-label { color: #868e96; flex-shrink: 0; }
.meta-value { font-weight: 500; text-align: right; color: #495057; }

.qty-badge {
    background: #e8f5e9;
    color: #2b8a3e;
    padding: 1px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.78rem;
}

.mobile-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mobile-link-btn {
    display: block;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
}
.mobile-link-btn:hover {
    background: #e7f1ff;
    border-color: #0d6efd;
}

/* ─── Блок категории ───────────────────────────────────────────────────────── */
.category-block {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
