/* ============================================
   INNER-PAGES.CSS — Все внутренние страницы
   Синий: #1f559b | Акцент: #fd6513 (только CTA)
   ============================================ */

/* ==================== */
/* PAGE HERO            */
/* ==================== */
.page-hero {
    position: relative;
    padding: 110px 0 72px;
    background: var(--bg-dark);
    overflow: hidden;
    margin-top: 0;
    min-height: 320px;
}
.page-hero-sm {
    min-height: 300px;
}

.page-hero-video {
    position: absolute;
    inset: -5px;
    z-index: 0;
    overflow: hidden;
}
.page-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.35) contrast(1.15) saturate(0.4);
    transform: scale(1.02);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(6, 13, 23, 0.92) 0%,
        rgba(10, 20, 40, 0.7) 35%,
        rgba(15, 25, 45, 0.6) 55%,
        rgba(6, 13, 23, 0.88) 100%
    );
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .section-title {
    color: #FFFFFF;
    font-size: clamp(2.1rem, 3.4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    line-height: 1.18;
}

.page-hero .section-subtitle {
    color: #CBD5E1;
    font-size: 1.2rem;
    max-width: 720px;
    line-height: 1.75;
}

/* Хлебные крошки в hero */
.page-hero .breadcrumbs {
    margin-bottom: 0;
}
.page-hero .breadcrumbs-item {
    color: rgba(255, 255, 255, 0.5);
}
.page-hero .breadcrumbs-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.page-hero .breadcrumbs-item a:hover {
    color: #60A5FA;
}
.page-hero .breadcrumbs-item:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.2);
}
.page-hero .breadcrumbs-item.active {
    color: #FFFFFF;
}

/* ==================== */
/* ХЛЕБНЫЕ КРОШКИ       */
/* ==================== */
.breadcrumbs {
    padding: 18px 0;
    font-size: 0.95rem;
}
.breadcrumbs-list {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumbs-item {
    color: var(--text-muted);
}
.breadcrumbs-item a {
    color: var(--text-light);
}
.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--border);
}
.breadcrumbs-item.active {
    color: var(--dark);
    font-weight: 600;
}

/* ==================== */
/* СЕТКА КАТАЛОГА       */
/* ==================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: start;
}

/* ==================== */
/* САЙДБАР              */
/* ==================== */
.catalog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Баннер */
.sidebar-banner {
    background: linear-gradient(135deg, #1f559b 0%, #153d6f 100%);
    border-radius: var(--radius-xl);
    padding: 30px 26px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.sidebar-banner::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.sidebar-banner-content {
    position: relative;
    z-index: 1;
}
.sidebar-banner-content svg {
    margin-bottom: 14px;
    opacity: 0.7;
    width: 28px;
    height: 28px;
}
.sidebar-banner-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
    line-height: 1.3;
}
.sidebar-banner-content p {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.9;
    margin-bottom: 18px;
}
.sidebar-banner-content .btn-primary {
    background: #FFFFFF;
    color: #1f559b;
    border-color: #FFFFFF;
    width: 100%;
    text-align: center;
    justify-content: center;
}
.sidebar-banner-content .btn-primary:hover {
    background: #EDF2F8;
    border-color: #EDF2F8;
    color: #153d6f;
}

/* Виджет */
.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.sidebar-widget-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 16px;
}
.sidebar-widget-title svg {
    color: #1f559b;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Поиск в сайдбаре */
.search-input-wrap {
    position: relative;
}
.search-input-wrap .form-input {
    padding-right: 48px;
}
.search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f559b;
    border: none;
    color: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.search-submit:hover {
    background: #153d6f;
}

/* Категории в сайдбаре */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li {
    margin-bottom: 3px;
}
.sidebar-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar-categories li a:hover {
    background: rgba(31, 85, 155, 0.04);
    color: #1f559b;
}
.sidebar-categories li.active a {
    background: rgba(31, 85, 155, 0.08);
    color: #1f559b;
    font-weight: 600;
}
.count {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}
.sidebar-categories li.active .count {
    background: rgba(31, 85, 155, 0.12);
    color: #1f559b;
}

/* Фильтр чекбокс */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}
.filter-checkbox input {
    display: none;
}
.filter-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}
.filter-checkbox input:checked + .filter-checkbox-custom {
    background: #1f559b;
    border-color: #1f559b;
}
.filter-checkbox input:checked + .filter-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 7px;
    height: 11px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==================== */
/* АКТИВНЫЕ ФИЛЬТРЫ     */
/* ==================== */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}
.filter-chip button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}
.filter-chip button:hover {
    color: #fd6513;
}
.filter-clear-all {
    font-size: 0.92rem;
    color: #1f559b;
    font-weight: 600;
    margin-left: auto;
    text-decoration: none;
}
.filter-clear-all:hover {
    color: #fd6513;
}

/* ==================== */
/* ТУЛБАР               */
/* ==================== */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    padding: 18px 22px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}
.catalog-count {
    font-size: 1rem;
    color: var(--text-muted);
}
.catalog-count strong {
    color: var(--dark);
}
.catalog-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кастомный select */
.sort-select {
    padding: 11px 40px 11px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.98rem;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.3s ease;
}
.sort-select:focus {
    border-color: #1f559b;
    box-shadow: 0 0 0 3px rgba(31, 85, 155, 0.08);
    outline: none;
}

/* Переключатель вида */
.view-switch {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.view-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.view-btn.active {
    background: var(--bg-white);
    color: #1f559b;
    box-shadow: var(--shadow-xs);
}
.view-btn:hover:not(.active) {
    color: var(--text);
}

/* ==================== */
/* СЕТКА ТОВАРОВ        */
/* ==================== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity 0.3s ease;
}
.catalog-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}
.catalog-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Вид списком */
.catalog-grid.list-view {
    grid-template-columns: 1fr !important;
}
.catalog-grid.list-view .equipment-card-link {
    flex-direction: row !important;
    align-items: stretch;
}
.catalog-grid.list-view .equipment-card-image {
    width: 240px;
    flex-shrink: 0;
}
.catalog-grid.list-view .equipment-card-info {
    flex: 1;
}
.catalog-grid.list-view .equipment-card-action {
    display: flex;
    align-items: center;
    padding-right: 22px;
}

/* Карточка товара */
.equipment-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
}
.equipment-card:hover {
    box-shadow: 0 12px 40px rgba(10, 20, 40, 0.1);
    transform: translateY(-4px);
    border-color: rgba(31, 85, 155, 0.2);
}
.equipment-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.equipment-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-light);
}
.equipment-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.equipment-card:hover .equipment-thumb {
    transform: scale(1.05);
}
.equipment-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}
.equipment-card-info {
    padding: 22px;
    flex: 1;
}
.equipment-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    line-height: 1.35;
}
.equipment-card:hover .equipment-card-title {
    color: #1f559b;
}
.equipment-card-sku {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.equipment-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f559b;
}
.equipment-card-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.equipment-card-old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
}
.equipment-card-price-request {
    color: #1f559b;
    font-weight: 600;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.equipment-card-action {
    padding: 0 22px 22px;
}

/* Бейджи */
.equipment-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}
.equipment-badge.in-stock {
    background: #10B981;
    color: #FFFFFF;
}
.equipment-badge.on-order {
    background: #1f559b;
    color: #FFFFFF;
}
.equipment-badge.new {
    background: #8B5CF6;
    color: #FFFFFF;
}
.equipment-badge + .equipment-badge {
    top: 50px;
}

/* Кнопка быстрого просмотра */
.quick-view-btn-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f559b;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}
.quick-view-btn-icon svg {
    width: 22px;
    height: 22px;
}
.equipment-card:hover .quick-view-btn-icon {
    opacity: 1;
}
.quick-view-btn-icon:hover {
    background: #1f559b;
    color: #FFFFFF;
    border-color: #1f559b;
    box-shadow: 0 6px 16px rgba(31, 85, 155, 0.25);
}

/* ==================== */
/* ПОДКАТЕГОРИИ         */
/* ==================== */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.subcategory-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.subcategory-card:hover {
    border-color: rgba(31, 85, 155, 0.2);
    box-shadow: 0 6px 20px rgba(10, 20, 40, 0.06);
    transform: translateY(-2px);
}
.subcategory-icon {
    width: 50px;
    height: 50px;
    background: rgba(31, 85, 155, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f559b;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.subcategory-icon svg {
    width: 24px;
    height: 24px;
}
.subcategory-card:hover .subcategory-icon {
    background: #1f559b;
    color: #FFFFFF;
}
.subcategory-info {
    flex: 1;
}
.subcategory-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
    line-height: 1.35;
}
.subcategory-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.subcategory-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}
.subcategory-card:hover .subcategory-arrow {
    color: #1f559b;
    transform: translateX(4px);
}

/* ==================== */
/* ПАГИНАЦИЯ            */
/* ==================== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: flex;
}

.pagination-item a,
.pagination-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.pagination-item a:hover {
    border-color: #1f559b;
    color: #1f559b;
    background: rgba(31, 85, 155, 0.04);
}

.pagination-item.active a,
.pagination-item.active span {
    background: #1f559b;
    border-color: #1f559b;
    color: #FFFFFF;
}

/* Троеточие */
.pagination-item .dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
    min-width: auto;
    padding: 0 6px;
    pointer-events: none;
}

/* Первая/последняя/предыдущая/следующая */
.pagination-item .prev,
.pagination-item .next {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ==================== */
/* НЕТ РЕЗУЛЬТАТОВ      */
/* ==================== */
.no-results {
    text-align: center;
    padding: 70px 20px;
}
.no-results svg {
    margin-bottom: 22px;
    width: 64px;
    height: 64px;
}
.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.no-results p {
    color: var(--text-muted);
    margin-bottom: 26px;
    font-size: 1.08rem;
    line-height: 1.65;
}
.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/* КАРТОЧКА ТОВАРА      */
/* ==================== */
.product-detail {
    padding-top: 40px;
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

/* Галерея */
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.product-main-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}
.product-featured-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-badge.in-stock {
    background: #10B981;
    color: #FFFFFF;
}
.product-badge.on-order {
    background: #1f559b;
    color: #FFFFFF;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.product-thumb:hover {
    border-color: rgba(31, 85, 155, 0.3);
}
.product-thumb.active {
    border-color: #1f559b;
    box-shadow: 0 0 0 2px rgba(31, 85, 155, 0.2);
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Инфо */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 7px 14px;
    background: var(--bg-light);
    border-radius: 8px;
}
.product-meta-item strong {
    color: var(--dark);
}
.product-meta-item svg {
    opacity: 0.5;
    width: 16px;
    height: 16px;
}
.stock-ok {
    color: #10B981;
    background: rgba(16, 185, 129, 0.06);
}
.stock-order {
    color: #1f559b;
    background: rgba(31, 85, 155, 0.06);
}

.product-price-block {
    padding: 22px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 12px;
    display: block;
    margin-bottom: 6px;
}
.current-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1f559b;
    line-height: 1.15;
}
.current-price.request {
    font-size: 1.75rem;
}

.product-actions-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-compact {
    padding: 15px 26px;
    font-size: 1rem;
}

/* Характеристики */
.product-specs-compact {
    margin-top: 10px;
}
.product-specs-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
}
.product-specs-title svg {
    color: #1f559b;
    width: 20px;
    height: 20px;
}
.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    gap: 12px;
}
.spec-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}

/* ==================== */
/* ОПИСАНИЕ             */
/* ==================== */
.product-description {
    margin-bottom: 40px;
    padding: 38px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}
.product-description h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-description h2 svg {
    color: #1f559b;
    width: 24px;
    height: 24px;
}
.product-content {
    margin-top: 22px;
    line-height: 1.85;
    color: var(--text);
    font-size: 1.08rem;
}

/* ==================== */
/* ФУТЕР КАРТОЧКИ       */
/* ==================== */
.product-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 26px;
    border-top: 1px solid var(--border-light);
}
.product-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.product-categories-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-right: 4px;
}
.cat-tag {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(31, 85, 155, 0.06);
    border: 1px solid rgba(31, 85, 155, 0.12);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f559b;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cat-tag:hover {
    background: #1f559b;
    color: #FFFFFF;
    border-color: #1f559b;
}

/* ==================== */
/* QUICK VIEW           */
/* ==================== */
.quickview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 23, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.quickview-overlay.active {
    opacity: 1;
    visibility: visible;
}
.quickview-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 860px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(6, 13, 23, 0.4);
}
.quickview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 2;
    transition: all 0.2s ease;
}
.quickview-close:hover {
    color: var(--dark);
    border-color: var(--text-muted);
}
.quickview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
}
.quickview-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quickview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.quickview-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.quickview-sku {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 6px;
}
.quickview-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f559b;
    margin-bottom: 18px;
}
.quickview-specs {
    margin-bottom: 22px;
}
.quickview-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== */
/* КНОПКИ               */
/* ==================== */
.btn-sm {
    padding: 12px 24px !important;
    font-size: 0.98rem !important;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 1200px) {
    .catalog-layout {
        grid-template-columns: 280px 1fr;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .sidebar-banner {
        grid-column: 1 / -1;
    }
    .sidebar-widget {
        margin-bottom: 0;
    }
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery {
        position: static;
    }
    .catalog-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-hero {
        padding: 80px 0 48px;
        min-height: 270px;
    }
}

@media (max-width: 768px) {
    .catalog-sidebar {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
    .product-actions-compact {
        flex-direction: column;
    }
    .product-actions-compact .btn {
        width: 100%;
        justify-content: center;
    }
    .product-meta-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-specs-grid {
        grid-template-columns: 1fr;
    }
    .product-description {
        padding: 26px;
    }
    .catalog-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .quickview-layout {
        grid-template-columns: 1fr;
    }
    .quickview-image {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        aspect-ratio: 16/9;
    }
    .quickview-info {
        padding: 24px 20px;
    }
    .quickview-content {
        padding: 26px;
    }
    .catalog-grid.list-view .equipment-card-image {
        width: 160px;
    }
    .equipment-card-title { font-size: 1.05rem; }
    .equipment-card-price { font-size: 1.25rem; }
    .equipment-card-sku { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-grid-4 {
        grid-template-columns: 1fr;
    }
    .page-hero {
        padding: 56px 0 36px;
        min-height: 220px;
    }
    .page-hero-sm {
        min-height: 200px;
    }
    .product-thumb {
        width: 62px;
        height: 62px;
    }
    .current-price {
        font-size: 1.85rem;
    }
    .product-main-image {
        aspect-ratio: 1/1;
    }
    .equipment-card-info {
        padding: 16px;
    }
    .equipment-card-title {
        font-size: 1rem;
    }
    .equipment-card-price {
        font-size: 1.18rem;
    }
    .equipment-card-sku {
        font-size: 0.88rem;
    }
    .breadcrumbs { font-size: 0.88rem; }
    .pagination-item a,
    .pagination-item span {
        min-width: 40px;
        height: 40px;
        font-size: 0.92rem;
        padding: 0 10px;
    }
}

/* ============================================
   CATALOGS PAGE — Страница каталогов PDF
   Синий: #1f559b | Акцент: #fd6513 (только CTA)
   ============================================ */

/* ==================== */
/* СЕТКА                */
/* ==================== */
.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ==================== */
/* КАРТОЧКА КАТАЛОГА    */
/* ==================== */
.catalog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    box-shadow: 0 12px 40px rgba(10, 20, 40, 0.1);
    transform: translateY(-4px);
    border-color: rgba(31, 85, 155, 0.2);
}

/* Изображение */
.catalog-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.catalog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(31, 85, 155, 0.03) 100%);
    pointer-events: none;
}

.catalog-card-image img {
    width: auto;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.05);
}

/* Инфо */
.catalog-card-info {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.catalog-card-info h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    transition: color 0.3s ease;
}

.catalog-card:hover .catalog-card-info h3 {
    color: #1f559b;
}

.catalog-card-info p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
}

/* Кнопка скачивания */
.catalog-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 14px 22px;
    background: #1f559b;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1f559b;
}

.catalog-download-btn:hover {
    background: #153d6f;
    border-color: #153d6f;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 85, 155, 0.25);
}

.catalog-download-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
}

.catalog-download-btn:hover svg {
    transform: translateY(2px);
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 1200px) {
    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .catalog-card-image {
        aspect-ratio: 2/3;
        padding: 16px;
    }
    .catalog-card-image img {
        max-height: 240px;
    }
    .catalog-card-info {
        padding: 20px;
    }
    .catalog-card-info h3 {
        font-size: 1.12rem;
    }
    .catalog-card-info p {
        font-size: 1rem;
    }
    .catalog-download-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .catalogs-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .catalog-card-image {
        aspect-ratio: 3/4;
    }
}

/* ==================== */
/* РЕЗИНА (большие экраны) */
/* ==================== */
@media (min-width: 1600px) {
    .catalogs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1920px) {
    .catalogs-grid {
        gap: 32px;
    }
    .catalog-card-info h3 {
        font-size: 1.38rem;
    }
    .catalog-card-info p {
        font-size: 1.12rem;
    }
}

/* ==================== */
/* ИНФО-КАРТОЧКИ (менеджер + доставка) */
/* ==================== */
.product-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Карточка менеджера */
.product-manager-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(31, 85, 155, 0.03);
    border: 1px solid rgba(31, 85, 155, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.product-manager-card:hover {
    border-color: rgba(31, 85, 155, 0.2);
    box-shadow: 0 4px 16px rgba(31, 85, 155, 0.06);
}

.product-manager-avatar {
    width: 50px;
    height: 50px;
    background: #1f559b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}
.product-manager-avatar svg {
    width: 24px;
    height: 24px;
}

.product-manager-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-manager-name {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--dark);
}

.product-manager-role {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Карточка доставки */
.product-delivery-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.product-delivery-card:hover {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.06);
}

.product-delivery-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    flex-shrink: 0;
}
.product-delivery-icon svg {
    width: 24px;
    height: 24px;
}

.product-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-delivery-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--dark);
}

.product-delivery-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Адаптив */
@media (max-width: 768px) {
    .product-info-cards {
        flex-direction: row;
        gap: 12px;
    }
    .product-manager-card,
    .product-delivery-card {
        flex: 1;
    }
    .product-manager-name,
    .product-delivery-title { font-size: 1rem; }
    .product-manager-role,
    .product-delivery-desc { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .product-info-cards {
        flex-direction: column;
    }
}





/* ==================== */
/* ТАБЛИЦЫ В КОНТЕНТЕ   */
/* ==================== */

.product-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.04);
    font-size: 1.05rem;
}

.product-content table td,
.product-content table th {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    line-height: 1.55;
}

.product-content table tr:last-child td {
    border-bottom: none;
}

/* Первая колонка — лейбл */
.product-content table td:first-child {
    background: rgba(31, 85, 155, 0.03);
    color: var(--dark);
    font-weight: 600;
    width: 45%;
    border-right: 1px solid var(--border-light);
}

/* Вторая колонка — значение */
.product-content table td:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ========== ШАПКА ТАБЛИЦЫ ========== */
/* th — семантический заголовок */
.product-content table th {
    background: linear-gradient(135deg, #1f559b 0%, #153d6f 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    padding: 16px 20px;
}

/* Первая строка, если она td (типа "Технические данные") */
.product-content table tr:first-child td {
    background: linear-gradient(135deg, #1f559b 0%, #153d6f 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    padding: 16px 20px;
}

/* Пустая вторая td в шапке тоже красим */
.product-content table tr:first-child td:empty {
    background: linear-gradient(135deg, #1f559b 0%, #153d6f 100%) !important;
    color: #FFFFFF !important;
}

/* ========== HOVER — ТОЛЬКО ДЛЯ ОБЫЧНЫХ СТРОК ========== */
/* Пропускаем первую строку (шапку), чтобы она не теряла градиент */
.product-content table tbody tr:not(:first-child):hover td {
    background: rgba(31, 85, 155, 0.05);
}

.product-content table tbody tr:not(:first-child):hover td:first-child {
    background: rgba(31, 85, 155, 0.1);
    color: #1f559b;
}

/* Если у тебя таблица БЕЗ thead, и первая строка это шапка —
   так же безопасно ховерим строки со 2-й по счёт */
.product-content table tr:hover:not(:first-child) td:not([style*="background"]) {
    transition: background 0.2s ease;
}

/* Адаптив */
@media (max-width: 640px) {
    .product-content table {
        font-size: 0.98rem;
        margin: 22px 0;
    }
    .product-content table td,
    .product-content table th {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .product-content table {
        font-size: 0.95rem;
    }
    .product-content table td,
    .product-content table th {
        padding: 11px 12px;
        display: block;
        width: 100% !important;
    }
    .product-content table td:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 6px;
        background: rgba(31, 85, 155, 0.04) !important;
        color: #1f559b !important;
    }
    .product-content table tr:first-child td {
        border-radius: 0;
    }
    /* На мобилке первая строка (шапка) тоже остаётся синей */
    .product-content table tr:first-child td:first-child {
        background: linear-gradient(135deg, #1f559b 0%, #153d6f 100%) !important;
        color: #FFFFFF !important;
    }
}

/* Разделитель "/" между тегами категорий */
.cat-separator {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 4px;
    opacity: 0.5;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Кликабельный телефон менеджера */
.product-manager-role {
    color: #1f559b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    margin-top: 2px;
}

.product-manager-role:hover {
    color: #fd6513;
}