body {
    background-color: #f8f9fa;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

/* ����� */
.top-line {
    background: #f4f4f4;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.header-content {
    background: #fff;
    padding: 25px 0;
}

.main-header {
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: 10;
}

.display-flex {
    display: flex;
    align-items: center;
}

.btn-red {
    background: #ee3124;
    color: #fff;
    border: none;
}

.btn-outline {
    border: 1px solid #ddd;
    background: transparent;
    padding: 8px 20px;
}

/* Обновленное меню — Вариант 1 (Светлый) */
.main-nav {
    background: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee; /* Делаем общую тонкую серую линию */
}

/* 2. Список меню */
.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

/* 3. Сами ссылки */
.nav-list li a {
    color: #333;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    position: relative; /* Нужно для позиционирования линии */
    transition: all 0.2s ease;
    
    /* Создаем невидимую линию заранее, чтобы она плавно появлялась */
    border-bottom: 3px solid transparent; 
    margin-bottom: -1px; /* Накладываем на серую линию блока .main-nav */
}

/* 4. Эффект при наведении и для активного пункта */
.nav-list li a:hover,
.nav-list li.active a {
    color: #ee3124;
    border-bottom: 3px solid #ee3124; /* Появляется красная полоска только под пунктом */
}

/* ������ */
.filter-section {
    margin: 30px 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-tabs {
    display: flex;
    background: #f1f1f1;
}
.filter-box {
    background: #fff;
    padding: 20px 25px; /* Уменьшили внутренние отступы сверху/снизу */
    border: 1px solid #eee;
    position: relative;
    /* min-height: 250px;   <-- УДАЛИ или закомментируй эту строку */
    margin-bottom: 30px;
    border-radius: 4px; /* Добавим легкое скругление для мягкости */
}

.filter-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px; /* Уменьшили отступ под заголовком */
}

.filter-footer {
    margin-top: 15px; /* Уменьшили отступ над кнопками */
}

.filter-title span {
    color: #ee3124;
}


.filter-bg-img {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-height: 150px;
    opacity: 0.8;
    z-index: 0;
}

/* ����� ������ ���� ������ �������� */
.filter-box .row {
    position: relative;
    z-index: 1;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    background: #fff;
    border-top: 3px solid #ee3124;
}

.filter-body {
    padding: 30px;
}

/* ��������� */
.cat-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    margin-bottom: 20px;
}

.cat-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cat-item img {
    max-height: 100px;
    margin-bottom: 15px;
}

.cat-item p {
    font-weight: bold;
    margin: 0;
}

.brands-section {
    margin-bottom: 30px; /* Тот самый единый отступ */
    background: #fff;
    border: 1px solid #eee; /* Рамка как у фильтров */
    border-radius: 4px;     /* Скругление как у фильтров */
    padding: 20px;          /* Внутренний отступ */
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.brand-item img {
    max-width: 100%;
    height: auto;
    max-height: 35px; /* Немного уменьшили сами логотипы для аккуратности */
    filter: grayscale(0%); /* Сразу цветные */
    opacity: 0.8; /* Но чуть приглушенные, чтобы не рябило */
    transition: all 0.3s ease;
}

.brand-item img:hover {
    filter: grayscale(0%); /* Остаются цветными */
    opacity: 1; /* Становятся максимально сочными */
    transform: scale(1.1); /* Легкое увеличение при наведении для интерактива */
}

.brands-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.brand-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    min-width: 120px;
}


.popular-products {
    padding: 0;
}

.section-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.product-tabs {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.product-tabs li a {
    display: block;
    padding: 15px 20px;
    color: #999;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.product-tabs li.active a {
    color: #ee3124;
    border-bottom-color: #ee3124;
}

/* �������� ������ */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    position: relative;
    transition: 0.3s;
    margin-bottom: 30px;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img {
    text-align: center;
    margin-bottom: 15px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    height: 40px;
    overflow: hidden;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}

.status.available {
    color: #5cb85c;
    font-size: 12px;
}

/* ������� */
.labels {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.label-item {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 8px;
    margin-bottom: 3px;
    border-radius: 2px;
}

.label-item.promo { background: #f0ad4e; }
.label-item.new { background: #5cb85c; }
.label-item.hit { background: #5bc0de; } 

.advantages-section {
    padding: 20px 0;    /* Внутренние отступы (высота блока) */
    background: #fff;
    border: 1px solid #eee; /* Та самая серая рамка по кругу */
    border-radius: 4px;     /* Скругление углов */
    margin-bottom: 30px;    /* Единый отступ до следующего блока */
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.ad-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
}

.ad-icon {
    font-size: 24px;
    color: #999;
    margin-right: 15px;
    margin-top: 5px;
}

.ad-text strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.ad-text p {
    font-size: 12px;
    color: #777;
    margin: 0;
}

.promo-banner-item {
    background: #fff;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: 1px solid #eee;
    padding: 10px 15px 15px 15px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s; 
}

.promo-banner-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* ���� ������ �� .cat-item:hover */
}

.promo-banner-item h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.btn-more {
    font-weight: bold;
    color: #ee3124; /* ���� ��������� ������� */
    text-decoration: underline;
}

/* ������ ��������� */
.techblog-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.techblog-section .section-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.all-articles {
    color: #ee3124; /* ���� ������� ���� */
    font-weight: bold;
    text-decoration: underline;
    margin-top: 25px;
}

/* �������� ������ */
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 30px;
    transition: 0.3s;
    overflow: hidden; /* �������� ��, ��� �������� �� ������� */
}

.blog-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-img-box {
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ��������� ��������� ���� */
}

.blog-content {
    padding: 15px;
}

.blog-label {
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-name {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    height: 40px; /* ������������� ������ ��� ���� ����� ������ */
    margin-bottom: 10px;
    overflow: hidden;
}

.blog-name:hover {
    color: #ee3124;
}

.blog-date {
    display: block;
    font-size: 12px;
    color: #bbb;
}

/* �������������� ������ */
.separator-banner {
    margin: 40px 0;
}

.banner-wide img {
    width: 100%;
    border-radius: 4px;
}

/* ������ � �������� */
.about-section {
    padding: 50px 0;
    display: flex;
    align-items: center; /* ���������� ������� �� ��������� ������������ ������ */
    flex-wrap: wrap;
}

.master-photo img {
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 280px;
    margin: 0 auto;
}

.about-content h2 {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
}

.about-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.about-content .btn-red {
    padding: 12px 35px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

/* �������� ����� */
.main-footer {
    background: #000000; /* ������ ��� ��� � ���� */
    color: #fff;
    padding-top: 20px;
    margin-top: 40px;
}

.main-footer h4 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
}

/* ������ ������ */
.footer-links, .footer-contacts {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links li a:hover {
    color: #ee3124;
}

/* �������� */
.footer-contacts li {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contacts i {
    margin-right: 10px;
    color: #ee3124;
}

/* ����� �������� */
.subscribe-form {
    display: flex;
    margin-bottom: 25px;
}

.subscribe-form .form-control {
    background: #2a2e3a;
    border: none;
    color: #fff;
    border-radius: 4px 0 0 4px;
}

.subscribe-form .btn-red {
    border-radius: 0 4px 4px 0;
}

/* ������ ������ ������ */
.footer-bottom {
    background: #000000;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #000000;
}

.payment-methods img {
    max-height: 25px;
    opacity: 0.6;
}

/* Выравниваем колонки по высоте */
.row-flex {
    display: flex;
    flex-wrap: wrap;
}
.col-flex {
    display: flex;
}
/* Растягиваем белые плашки на всю высоту колонки */
.full-height-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Картинка будет по центру */
}
.full-height-card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределит контент: заголовок сверху, кнопка снизу */
}

/* Контейнер страницы */
.product-page-main { margin-top: 20px; }

/* Крошки и заголовки */
.product-breadcrumb { padding: 0 !important; margin-bottom: 15px !important; }
.product-title-row { margin-bottom: 30px; }

/* Магия выравнивания блоков */
/* Полная перезагрузка для карточки товара */
.equal-height-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
}

/* Принудительно выключаем float для флекс-колонок */
.flex-col-5, .flex-col-7 {
    display: flex !important;
    float: none !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.flex-col-5 { width: 41.66666667%; } /* Аналог col-md-5 */
.flex-col-7 { width: 58.33333333%; } /* Аналог col-md-7 */

.white-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.gallery-card {
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100%; /* Чтобы тянулась */
}