/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e6f3ff;
    color: #1e2a3a;
    line-height: 1.6;
    padding-bottom: 60px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   ШАПКА (HEADER)
   ============================================ */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 119, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0077ff;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 16px;
    font-weight: 400;
    color: #4a6f8a;
    display: block;
}

.logo a {
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.header-contacts {
    text-align: right;
}

.header-contacts a {
    color: #1e2a3a;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.header-contacts a:hover {
    color: #0077ff;
}

.header-contacts p {
    color: #4a6f8a;
    font-size: 14px;
}

.cart-link {
    position: relative;
    color: #1e2a3a;
    font-size: 24px;
    transition: 0.3s;
    text-decoration: none;
}

.cart-link:hover {
    color: #0077ff;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e94f4f;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.btn-call {
    background-color: #0077ff;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
    white-space: nowrap;
}

.btn-call:hover {
    background-color: #005fcc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4);
}

/* ============================================
   КАТАЛОГ В ШАПКЕ
   ============================================ */
.catalog-row {
    background: white;
    border-bottom: 1px solid #d4e8ff;
    box-shadow: 0 2px 8px rgba(0, 119, 255, 0.05);
}

.catalog-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.catalog-dropdown {
    position: relative;
    display: inline-block;
}

.catalog-dropdown>a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0077ff;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.catalog-dropdown>a:hover {
    background: #005fcc;
}

.catalog-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    min-width: 260px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 0;
    z-index: 200;
    border: 1px solid #d4e8ff;
}

.catalog-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content .category {
    padding: 0 18px;
}

.dropdown-content .category>a {
    display: block;
    font-weight: 700;
    color: #003366;
    padding: 10px 0 6px;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #e6f3ff;
}

.dropdown-content .category ul {
    list-style: none;
    padding: 4px 0 10px 12px;
}

.dropdown-content .category ul li a {
    color: #4a6f8a;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    transition: 0.2s;
}

.dropdown-content .category ul li a:hover {
    color: #0077ff;
}

.catalog-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.catalog-links a {
    color: #1e2a3a;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
}

.catalog-links a:hover {
    color: #0077ff;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 14px;
    color: #4a6f8a;
    padding: 20px 0 10px;
}

.breadcrumb a {
    color: #1e2a3a;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #0077ff;
}

.breadcrumb i {
    font-size: 10px;
    color: #a0b3d0;
}

.breadcrumb .current {
    color: #0077ff;
    font-weight: 600;
}

/* ============================================
   КАРТОЧКА ТОВАРА
   ============================================ */
.product-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 119, 255, 0.12);
    padding: 40px;
    margin: 20px 0 30px;
    border: 1px solid #d4e8ff;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.gallery-col {
    display: flex;
    flex-direction: column;
}

.gallery-main {
    position: relative;
    background: #f8fcff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2efff;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 30px;
}

.gallery-main img {
    max-width: 100%;
    max-height: 580px;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s;
    object-fit: contain;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-main .zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: rgba(0, 119, 255, 0.85);
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 40px;
    pointer-events: none;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f9ff;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active-thumb {
    border-color: #0077ff;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
}

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

.brand-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-badge {
    background: #eef3fc;
    color: #1e2a3a;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 16px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.brand-badge i {
    color: #0077ff;
}

.brand-badge-link {
    text-decoration: none;
}

.brand-badge-link:hover .brand-badge {
    background: #0077ff;
    color: white;
}

.brand-badge-link:hover .brand-badge i {
    color: white;
}

.sku {
    color: #4a6f8a;
    font-size: 13px;
    font-weight: 500;
    background: #f2f5fa;
    padding: 4px 14px;
    border-radius: 40px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #003366;
    line-height: 1.25;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f5a623;
    font-size: 18px;
}

.product-rating span {
    color: #4a6f8a;
    font-size: 14px;
}

.price-block {
    background: #f6faff;
    padding: 18px 24px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid #d4e8ff;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #0077ff;
}

.product-price small {
    font-size: 18px;
    font-weight: 500;
    color: #4a6f8a;
    margin-left: 6px;
}

.old-price {
    font-size: 18px;
    color: #8897b4;
    text-decoration: line-through;
    margin-left: 8px;
}

.badge-discount {
    background: #e94f4f;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 16px;
    border-radius: 40px;
    margin-left: 8px;
}

.installment {
    color: #1e2a3a;
    font-size: 14px;
    background: #eef3fc;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 500;
}

.installment i {
    color: #0077ff;
    margin-right: 6px;
}

.installment.out-of-stock {
    color: #e94f4f;
}

.product-description {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin: 8px 0 12px;
    padding: 0;
}

.product-features li {
    padding: 6px 0 6px 28px;
    position: relative;
    border-bottom: 1px solid #f0f5fb;
    font-size: 15px;
}

.product-features li::before {
    content: "✔";
    color: #0077ff;
    position: absolute;
    left: 0;
    top: 6px;
    font-weight: 700;
}

.action-buttons {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 14px !important;
    width: 100% !important;
}

.action-buttons .btn-primary,
.action-buttons .btn-outline {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 20px !important;
}

.btn-primary {
    background-color: #0077ff;
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #005fcc;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 119, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #d4e8ff;
    padding: 16px 28px;
    border-radius: 50px;
    color: #1e2a3a;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: #0077ff;
    background: #f6faff;
    color: #0077ff;
}

.btn-outline i {
    color: #0077ff;
}

.action-secondary-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
}

.action-secondary-grid .btn-compare,
.action-secondary-grid .btn-analog,
.action-secondary-grid .btn-kit {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 10px !important;
}

.btn-compare,
.btn-analog,
.btn-kit {
    background: transparent;
    border: 1px solid #d4e8ff;
    padding: 12px 24px;
    border-radius: 50px;
    color: #1e2a3a;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-compare:hover,
.btn-analog:hover,
.btn-kit:hover {
    border-color: #0077ff;
    background: #f6faff;
    color: #0077ff;
}

.btn-compare i,
.btn-analog i,
.btn-kit i {
    color: #0077ff;
}

.delivery-short-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
    border-top: 1px solid #e8effa !important;
    padding-top: 14px !important;
    margin-top: 4px !important;
    width: 100% !important;
}

.delivery-short-grid span {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #1e2a3a !important;
    text-align: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: default !important;
    background-color: transparent !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.delivery-short-grid span i {
    color: #0077ff !important;
    font-size: 16px !important;
}

.delivery-short {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #1e2a3a;
    border-top: 1px solid #e8effa;
    padding-top: 14px;
    margin-top: 4px;
}

.delivery-short span i {
    color: #0077ff;
    margin-right: 6px;
}

/* ============================================
   ВКЛАДКИ
   ============================================ */
.tabs-section {
    margin-top: 32px;
    border-top: 2px solid #e6f3ff;
    padding-top: 28px;
}

.tabs-nav {
    display: flex;
    gap: 36px;
    border-bottom: 2px solid #e2eaf7;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #5e6f8c;
    padding: 6px 4px 14px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    color: #003366;
    border-bottom-color: #0077ff;
}

.tab-btn:hover {
    color: #003366;
}

.tab-content {
    display: none;
    padding: 24px 0 8px;
    animation: fade 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    0% {
        opacity: 0.4;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.desc-text {
    font-size: 16px;
    line-height: 1.8;
    color: #1f2f4a;
}

.desc-text p {
    margin-bottom: 18px;
}

.desc-text ul {
    padding-left: 22px;
    margin: 14px 0 20px;
}

.desc-text ul li {
    margin-bottom: 10px;
}

.desc-text h3 {
    margin-top: 22px;
    margin-bottom: 12px;
    font-size: 18px;
    color: #003366;
}

.specs-wrapper {
    margin: 0 -5px;
    padding: 0 5px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8fcff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2efff;
}

.specs-table tr {
    border-bottom: 1px solid #e2efff;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 24px;
    font-size: 15px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #003366;
    width: 35%;
    background: #f0f9ff;
}

.specs-table td:last-child {
    color: #1e2a3a;
}

.brand-link {
    color: #0077ff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.brand-link:hover {
    color: #005fcc;
    text-decoration: underline;
}

/* ============================================
   БЛОКИ "С ЭТИМ ТОВАРОМ ПОКУПАЮТ" И "АНАЛОГИ"
   ============================================ */
.related-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8effa;
}

.related-block h3 {
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.related-item {
    background: #f8fcff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.08);
    border: 1px solid #e2efff;
    transition: all 0.3s;
    text-align: center;
    padding: 16px 10px 18px;
}

.related-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 119, 255, 0.15);
    border-color: #0077ff;
}

.related-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    background: #f8fcff;
    border-radius: 10px;
    margin-bottom: 10px;
}

.related-item .r-title {
    font-weight: 600;
    font-size: 14px;
    color: #003366;
    margin-bottom: 6px;
    min-height: 38px;
}

.related-item .r-price {
    font-weight: 700;
    color: #0077ff;
    font-size: 16px;
}

.related-item .r-btn {
    margin-top: 10px;
    background: #0077ff;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.related-item .r-btn:hover {
    background: #005fcc;
}

/* ============================================
   КАТАЛОГ (СПИСОК ТОВАРОВ) - ОСНОВНЫЕ СТИЛИ
   ============================================ */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.catalog-header h1 {
    color: #003366;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.catalog-header .count {
    color: #666;
    font-size: 14px;
    background: white;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #d4e8ff;
}

.category-filter-bar {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #d4e8ff;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-filter-bar .filter-title {
    font-weight: 600;
    color: #003366;
    font-size: 15px;
}

.category-filter-bar .filter-title i {
    color: #0077ff;
    margin-right: 8px;
}

.category-filter-bar .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f3ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #003366;
}

.category-filter-bar .filter-tag i {
    color: #0077ff;
}

.category-filter-bar .filter-reset {
    color: #e94f4f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
    margin-left: 10px;
}

.category-filter-bar .filter-reset:hover {
    color: #c0392b;
    text-decoration: underline;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.catalog-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8f0fe;
    text-align: center;
    padding: 20px 16px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.catalog-item:hover {
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.15);
    transform: translateY(-4px);
    border-color: #0077ff;
}

.catalog-item .badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.catalog-item .badge {
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.catalog-item .badge.badge-new {
    background: #27ae60;
}

.catalog-item .badge.badge-hit {
    background: #f39c12;
}

.catalog-item .product-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #f8fcff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.catalog-item .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.catalog-item:hover .product-image {
    transform: scale(1.05);
}

.catalog-item .product-name {
    font-size: 15px;
    color: #003366;
    margin: 0 0 8px 0;
    min-height: 42px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
}

.catalog-item .product-name:hover {
    color: #0077ff;
}

.catalog-item .product-description {
    font-size: 13px;
    color: #666;
    margin: 6px 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 60px;
}

.catalog-item .price-block {
    margin: 6px 0 4px;
    flex-shrink: 0;
    text-align: center;
}

.catalog-item .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #0077ff;
}

.catalog-item .product-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.catalog-item .product-stock {
    font-size: 12px;
    margin: 4px 0 8px;
    flex-shrink: 0;
}

.catalog-item .product-stock.in-stock {
    color: #27ae60;
}

.catalog-item .product-stock.out-of-stock {
    color: #e94f4f;
}

.catalog-item .product-meta {
    font-size: 12px;
    color: #888;
    margin: 2px 0;
    flex-shrink: 0;
}

.catalog-item .product-meta i {
    margin-right: 4px;
    width: 14px;
}

.catalog-item .brand-link {
    color: #666;
    text-decoration: none;
}

.catalog-item .brand-link:hover {
    color: #0077ff;
}

.catalog-item .model-code {
    font-size: 11px;
    color: #aaa;
}

.catalog-item .btn-cart {
    margin-top: auto;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    flex-shrink: 0;
}

.catalog-item .btn-cart.btn-in-stock {
    background: #0077ff;
}

.catalog-item .btn-cart.btn-in-stock:hover {
    background: #005bb5;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.catalog-item .btn-cart.btn-in-stock:active {
    transform: scale(0.95);
}

.catalog-item .btn-cart.btn-out-of-stock {
    background: #f39c12;
}

.catalog-item .btn-cart.btn-out-of-stock:hover {
    background: #d68910;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.catalog-item .btn-cart.btn-out-of-stock:active {
    transform: scale(0.95);
}

.catalog-item .btn-cart i {
    margin-right: 6px;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination-top {
    margin-bottom: 30px;
}

.pagination-bottom {
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination .page-info {
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8f0fe;
}

.pagination .btn-page {
    background: white;
    border: 2px solid #0077ff;
    color: #0077ff;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination .btn-page:hover:not(:disabled) {
    background: #0077ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.pagination .btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

.pagination .btn-page:disabled:hover {
    background: white;
    transform: none;
    box-shadow: none;
}

.pagination .btn-page i {
    font-size: 14px;
}

/* ============================================
   ПУСТОЙ КАТАЛОГ
   ============================================ */
.empty-catalog {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-catalog i {
    font-size: 56px;
    color: #d4e8ff;
    margin-bottom: 20px;
    display: block;
}

.empty-catalog h3 {
    color: #003366;
    margin-bottom: 10px;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-form {
    background: white;
    max-width: 520px;
    width: 100%;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-form .modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    transition: 0.3s;
    line-height: 1;
}

.modal-form .modal-close-btn:hover {
    color: #0077ff;
    transform: rotate(90deg);
}

.modal-form h3 {
    font-size: 26px;
    color: #003366;
    margin-bottom: 8px;
}

.modal-form .modal-sub {
    color: #4a6f8a;
    font-size: 15px;
    margin-bottom: 24px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d4e8ff;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.3s;
    background: #fafcff;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

.modal-form textarea {
    min-height: 90px;
    resize: vertical;
}

.modal-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: #0077ff;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.3);
}

.modal-form .btn-submit:hover {
    background: #005fcc;
    transform: translateY(-2px);
}

/* ============================================
   ПОДВАЛ (FOOTER)
   ============================================ */
footer {
    background-color: #1e2a3a;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #90caf9;
}

.footer-col p,
.footer-col a {
    color: #b0c4de;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #0077ff;
}

.copyright {
    text-align: center;
    border-top: 1px solid #2a3a4a;
    padding-top: 20px;
    color: #6a7e9a;
    font-size: 14px;
}

/* ============================================
   СТИЛИ ДЛЯ ФИЛЬТРА WDR
   ============================================ */
.filter-bar-wrapper {
    margin-bottom: 25px;
}

.filter-wdr {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #d4e8ff;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-wdr form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.filter-wdr-select {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-wdr-select label {
    font-weight: 600;
    color: #003366;
    font-size: 14px;
    white-space: nowrap;
}

.filter-wdr-select label i {
    color: #0077ff;
    margin-right: 6px;
}

.filter-wdr-select select {
    padding: 10px 16px;
    border: 1px solid #d4e8ff;
    border-radius: 30px;
    font-size: 14px;
    color: #1e2a3a;
    background: #fafcff;
    cursor: pointer;
    min-width: 200px;
    transition: 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230077ff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.filter-wdr-select select:hover {
    border-color: #0077ff;
}

.filter-wdr-select select:focus {
    outline: none;
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

.filter-reset-wdr {
    color: #e94f4f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #fee;
    background: #fff5f5;
}

.filter-reset-wdr:hover {
    color: #c0392b;
    background: #fee;
    text-decoration: none;
}

/* ============================================
   ПОИСК С АВТОПОДСТАНОВКОЙ
   ============================================ */

/* Контейнер поиска - шире */
.search-container {
    position: relative;
    z-index: 1000;
    width: 380px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f0f4f8;
    border-radius: 30px;
    padding: 0 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.search-box:focus-within {
    background: white;
    border-color: #0077ff;
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
}

.search-box i {
    color: #888;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #1e2a3a;
    min-width: 0;
}

.search-box input::placeholder {
    color: #999;
}

/* Кнопка очистки */
.search-clear-btn {
    display: none;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.search-clear-btn:hover {
    color: #e94f4f;
}

.search-clear-btn.visible {
    display: block;
}

/* Результаты поиска */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999 !important;
    padding: 8px 0;
    border: 1px solid #d4e8ff;
}

.search-results.active {
    display: block;
}

.search-results .result-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
    color: #1e2a3a !important;
    border-bottom: 1px solid #f0f4f8 !important;
    gap: 12px !important;
}

.search-results .result-item:last-child {
    border-bottom: none !important;
}

.search-results .result-item:hover {
    background: #f0f7ff !important;
}

.search-results .result-item .result-icon {
    font-size: 20px !important;
    color: #0077ff !important;
    flex-shrink: 0 !important;
    width: 32px !important;
    text-align: center !important;
}

.search-results .result-item .result-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.search-results .result-item .result-name {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #003366 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.search-results .result-item .result-category {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: 2px !important;
}

.search-results .result-item .result-price {
    font-weight: 700 !important;
    color: #0077ff !important;
    font-size: 15px !important;
    margin-left: 12px !important;
    white-space: nowrap !important;
}

.search-results .result-item .result-price .currency {
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 400 !important;
}

.search-results .loading-state {
    padding: 20px !important;
    text-align: center !important;
    color: #888 !important;
}

.search-results .no-results {
    padding: 20px !important;
    text-align: center !important;
    color: #888 !important;
    font-size: 14px !important;
}

.search-results .view-all {
    display: block !important;
    padding: 12px 16px !important;
    text-align: center !important;
    background: #f8faff !important;
    color: #0077ff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
    border-radius: 0 0 12px 12px !important;
    border-top: 1px solid #eef5ff !important;
}

.search-results .view-all:hover {
    background: #eef5ff !important;
}

/* Стили для скроллбара */
.search-results::-webkit-scrollbar {
    width: 6px !important;
}

.search-results::-webkit-scrollbar-track {
    background: #f0f4f8 !important;
    border-radius: 12px !important;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c0d4e8 !important;
    border-radius: 12px !important;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a0b8d0 !important;
}

/* ============================================
   АДАПТИВ ДЛЯ ФИЛЬТРА WDR
   ============================================ */
@media (max-width: 768px) {
    .filter-wdr {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }

    .filter-wdr form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-wdr-select {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-wdr-select select {
        width: 100%;
        min-width: unset;
    }

    .filter-reset-wdr {
        text-align: center;
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .search-container {
        width: 280px;
    }

    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .catalog-item {
        min-height: 380px;
    }
}

@media (max-width: 820px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card {
        padding: 24px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-right {
        justify-content: center;
        gap: 20px;
    }

    .header-contacts {
        text-align: center;
    }

    .gallery-main {
        min-height: 320px;
    }

    .gallery-main img {
        max-height: 400px;
    }

    .catalog-menu {
        gap: 16px;
        justify-content: center;
    }

    .catalog-links {
        gap: 14px;
        justify-content: center;
    }

    .specs-table td {
        padding: 12px 16px;
        font-size: 14px;
    }

    .container {
        padding: 0 20px;
    }

    .tabs-nav {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search-container {
        width: 100%;
        max-width: 400px;
        order: 10;
    }

    .search-results {
        max-height: 300px !important;
        top: calc(100% + 4px) !important;
        left: -10px !important;
        right: -10px !important;
        border-radius: 12px !important;
    }

    .action-secondary-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .action-secondary-grid .btn-kit {
        grid-column: span 2 !important;
    }

    .delivery-short-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .delivery-short-grid span:last-child {
        grid-column: span 2 !important;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .catalog-item {
        min-height: 340px;
        padding: 14px 12px;
    }

    .catalog-item .product-name {
        font-size: 14px;
        min-height: 38px;
    }

    .catalog-item .product-price {
        font-size: 18px;
    }

    .catalog-header h1 {
        font-size: 22px;
    }

    .catalog-item .product-description {
        font-size: 12px;
        min-height: 50px;
    }

    .pagination .btn-page {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pagination .page-info {
        font-size: 12px;
        padding: 6px 12px;
    }

    .category-filter-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .price-block {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 16px;
    }

    .gallery-thumbs img {
        width: 60px;
        height: 60px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .related-item {
        padding: 12px 8px;
    }

    .related-item img {
        height: 60px;
    }

    .product-title {
        font-size: 24px;
    }

    .modal-form {
        padding: 28px 20px;
    }

    .catalog-dropdown .dropdown-content {
        min-width: 200px;
    }

    .tab-btn {
        font-size: 15px;
        padding: 6px 2px 10px;
    }

    .specs-table td {
        padding: 10px 12px;
        font-size: 13px;
        display: block;
        width: 100% !important;
    }

    .specs-table td:first-child {
        background: #f0f9ff;
        font-weight: 700;
        padding-bottom: 4px;
    }

    .specs-table td:last-child {
        padding-top: 4px;
    }

    .specs-table tr {
        display: block;
        padding: 8px 0;
    }

    .gallery-main {
        min-height: 240px;
        padding: 16px;
    }

    .gallery-main img {
        max-height: 300px;
    }

    .header-right {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .search-container {
        max-width: 100%;
    }

    .search-box input {
        font-size: 13px;
        padding: 8px 0;
    }

    .search-results .result-item {
        padding: 8px 12px !important;
    }

    .search-results .result-item .result-name {
        font-size: 13px !important;
    }

    .search-results .result-item .result-price {
        font-size: 13px !important;
    }

    .action-buttons {
        grid-template-columns: 1fr !important;
    }

    .action-secondary-grid {
        grid-template-columns: 1fr !important;
    }

    .action-secondary-grid .btn-kit {
        grid-column: span 1 !important;
    }

    .delivery-short-grid {
        grid-template-columns: 1fr !important;
    }

    .delivery-short-grid span:last-child {
        grid-column: span 1 !important;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .catalog-item {
        min-height: 300px;
        padding: 10px 8px;
        border-radius: 12px;
    }

    .catalog-item .product-name {
        font-size: 12px;
        min-height: 32px;
    }

    .catalog-item .product-price {
        font-size: 15px;
    }

    .catalog-item .product-old-price {
        font-size: 11px;
    }

    .catalog-item .product-description {
        font-size: 11px;
        min-height: 40px;
        margin: 4px 0 6px;
    }

    .catalog-item .btn-cart {
        font-size: 12px;
        padding: 8px 12px;
    }

    .catalog-item .badge {
        font-size: 8px;
        padding: 2px 8px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination .btn-page {
        padding: 6px 12px;
        font-size: 11px;
    }

    .pagination .page-info {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 400px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .container {
        padding: 0 12px;
    }
}

/* ============================================================
   БЛОК БРЕНДОВ
   ============================================================ */
.brandsblock__items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #d4e8ff;
    border-bottom: 1px solid #d4e8ff;
    background: #f8fcff;
    border-radius: 16px;
    padding: 20px 30px;
}

.brandsblock__item {
    flex: 0 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2efff;
}

.brandsblock__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.15);
    border-color: #0077ff;
}

.brandsblock__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 100px;
    min-height: 50px;
}

.brandsblock__link img {
    max-width: 110px;
    max-height: 39px;
    object-fit: contain;
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.brandsblock__link:hover img {
    filter: grayscale(0);
}

/* Адаптив */
@media (max-width: 768px) {
    .brandsblock__items {
        gap: 10px;
        padding: 15px;
        justify-content: center;
    }

    .brandsblock__item {
        flex: 0 0 auto;
        padding: 5px 8px;
    }

    .brandsblock__link img {
        max-width: 80px;
        max-height: 30px;
    }
}

@media (max-width: 480px) {
    .brandsblock__items {
        gap: 8px;
        padding: 10px;
    }

    .brandsblock__link img {
        max-width: 60px;
        max-height: 25px;
    }
}
.header-icon-link .fa-comment-dots {
    color: #25D366;
    /* Цвет как у WhatsApp для узнаваемости */
}

     /* ============================================================
       ФИКСАЦИЯ ТОЛЬКО ВЕРХНЕЙ СТРОКИ ШАПКИ
       ============================================================ */
