/* =========================================================
   ZNTECH — FRONTEND 3.0 (Production)
   Совместимость с archive / taxonomy / single
   Сетка 4–3–2–1, разделённые классы, безопасные стили
   ========================================================= */


/* ------------------------------
   Глобальные переменные
------------------------------ */
:root {
    --zn-blue: #1c2c4c;
    --zn-pink: #c01c54;
    --zn-pink-dark: #9c1644;
    --zn-gray: #747c9c;
    --zn-light: #f6f7fa;
    --zn-shadow: 0 6px 24px rgba(0,0,0,0.08);
}


/* ------------------------------
   Контейнеры
------------------------------ */
.zntech-archive,
.zntech-single.container {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    padding: 25px 25px 0;
    box-sizing: border-box;
}

.ast-content-flow {
    display: block;
    width: 100%;
}


/* ------------------------------
   Хлебные крошки
------------------------------ */
.zntech-breadcrumbs {
    padding-bottom: 35px;
    font-size: 14px;
}
.zntech-breadcrumbs a { color: #5f5f5f; text-decoration: none; }
.zntech-breadcrumbs span:last-of-type { color: #9f9f9f; }


/* =========================================================
   СЕТКА — 4 → 3 → 2 → 1
========================================================= */
.zntech-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 767px) {
    .zntech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* =========================================================
   КАРТОЧКИ ТОВАРОВ (Архив / Taxonomy)
========================================================= */
.zntech-card {
    background: #fff;
    border-radius: 16px!important;
    padding: 22px;
    box-shadow: var(--zn-shadow);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

.zntech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Миниатюра списка */
.zntech-thumb-archive {
  width: 1400px;
  max-width: 100%;
  margin: 0 auto;
  padding: 35px 25px 0;
  box-sizing: border-box;
}

.zntech-thumb-archive img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zntech-about-catalog-short{
    padding-top:15px;
    
}

/* Заголовок в карточке */
.zntech-card .zntech-title {
    font-size: 14px;
    padding-bottom:25px;
    font-weight: 600;
    color: var(--zn-blue);
    margin-top: 15px;
    line-height: 1.3;
}

/* Краткое описание */
.zntech-content {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    flex-grow: 1;
}


.zntech-related h2{
    
    padding-bottom:25px;
}

.zntech-related{
    
    padding-bottom:70px;
}

/* =========================================================
   Кнопки
========================================================= */
.zntech-btn-more {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    width: 100%;
    border-radius: 6px;
    font-size:14px;
	text-align:center;
    background: #1c2c4c;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.zntech-btn-more:hover {
    background: var(--zn-pink);
    color: #fff;
}

.zntech-btn-flex-single {
    background: #f4f6fa;
    padding: 15px;
    display: flex !important;
    gap: 30px !important;
}



.zntech-btn-blue{
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    width: 100%;
    border-radius: 6px;
    font-size:14px;
	text-align:center;
    background: #1c2c4c;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}


.zntech-btn-blue:hover{
    background: #c01c54;
	  color: #fff;
		}

/* =========================================================
   Sidebar
========================================================= */
.zntech-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
}

.zntech-sidebar {
    flex: 0 0 260px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.zntech-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.zntech-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zntech-sidebar a {
    text-decoration: none;
    color: #333;
    transition: .2s;
}

.zntech-sidebar a:hover {
    color: var(--zn-pink);
}

.zntech-main {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   Пагинация
========================================================= */
.zntech-pagination {
    margin: 40px 0;
    text-align: center;
}

.zntech-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    background: #f3f4f6;
    color: var(--zn-blue);
    transition: .25s;
    text-decoration: none;
}

.zntech-pagination .current {
    background: var(--zn-blue);
    color: #fff;
}

.zntech-pagination .page-numbers:hover {
    background: var(--zn-pink);
    color: #fff;
}


/* =========================================================
   Детальная страница товара
========================================================= */
.zntech-product-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

/* Главная картинка */
.zntech-thumb-main {
    flex: 0 0 45%;
    border-radius: 12px;
}

.zntech-thumb-main img.zntech-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,.15);
}

/* Галерея */
.zntech-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.zntech-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
    transition: .25s;
}

.zntech-gallery-thumb:hover {
    transform: scale(1.05);
    border-color: #999;
}

/* Инфо блок */
.zntech-info {
    flex: 1;
    min-width: 0;
}

.zntech-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--zn-blue);
}


/* =========================================================
   Адаптив
========================================================= */
@media (max-width: 992px) {
    .zntech-sidebar {
        display: none;
    }
    .zntech-layout {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .zntech-archive,
    .zntech-single.container {
        width: 100%;
        padding: 60px 15px 0;
    }
    .zntech-product-top {
        flex-direction: column;
    }
    .zntech-thumb-main {
        flex: 1 1 100%;
    }
    
    .zntech-btn-flex-single {

    display: block !important;
    gap: 0 !important;
}
    
    
}

@media (max-width: 480px) {
    .zntech-card {
        padding: 15px;
    }
    .zntech-card .zntech-title {
        font-size: 16px;
    }
}

.b24-form-click-btn-wrapper.\--b24-mod-center > button {
display: inline-block!important;
    padding: 8px 14px!important;
    margin: 0 3px!important;
    margin-top:5px!important;
    width: 100%!important;
    border-radius: 6px!important;
    text-align: center!important;
    background: #be195a!important;
    color: #fff!important;
    font-weight: 500!important;
    font-size:13px!important;
    text-decoration: none!important;
    transition: 0.2s!important;
}

.b24-form-click-btn-wrapper.\--b24-mod-center > button:hover {
background: #1c2c4c!important;
}

.button-tabs{
        margin-top: 15px;
    /* display: block; */
    text-align: center;
    background: var(--zn-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: .25s;
    text-decoration: none;
}

.zntech-tabs{
    
 margin-bottom: 15px;  
    
}


/* =========================================================
   Управление сеткой внутри шорткода ZNTECH PRODUCTS
========================================================= */

.zntech-products .zn-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.zntech-products .zn-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.zntech-products .zn-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.zntech-products .zn-cols-1 {
    grid-template-columns: 1fr;
}

/* адаптив */
@media (max-width: 1024px) {
    .zntech-products .zn-cols-4,
    .zntech-products .zn-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .zntech-products .zn-cols-4,
    .zntech-products .zn-cols-3,
    .zntech-products .zn-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .zntech-products .zn-cols-4,
    .zntech-products .zn-cols-3,
    .zntech-products .zn-cols-2,
    .zntech-products .zn-cols-1 {
        grid-template-columns: 1fr;
    }
}

/* Блок серии */
.zn-series-box {
    border: 1px solid #e5e7eb;
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    margin: 40px 0;
}

.zn-series-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--zn-blue);
    margin-bottom: 15px;
}

.zn-series-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.zn-series-item {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #d0d4dc;
    border-radius: 10px;
    background: #fff;
    color: #1c2c4c;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    transition: .25s;
}

.zn-series-item:hover {
    border-color: var(--zn-blue);
    color: var(--zn-blue);
}

.zn-series-item.active {
    border-color: var(--zn-pink);
    color: var(--zn-pink);
    background: #fff;
}

.zntech-faq{
    padding-bottom:70px;
    padding-top:70px;
}

.zntech-why-we {
    padding-bottom:70px;
    padding-top:70px;
}

.zntech-slider-now{
    padding-bottom:25px;
    
}

.zntech-about-catalog{
 padding-top:25px;   
}

.zntech-filters {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 12px;
}

.zntech-filter-item {
    display: flex;
    flex-direction: column;
}

.zntech-filter-item label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1c2c4c;
}

.zntech-filter-item select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #c8ceda;
    background: #fff;
    font-size: 14px;
}

/* Контейнер */
.zntech-filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

/* Заголовок секции */
.zntech-filter-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1c2c4c;
    font-size: 16px;
}

/* Кнопки */
.zntech-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zntech-option {
    padding: 8px 14px;
    background: #f5f7fa;
    border: 1px solid #d9dce1;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.zntech-option:hover {
    background: #e6eaf0;
    color: #333;
}

/* Активное значение */
.zntech-option.active {
    background: #1c2c4c;
    color: #fff;
    border-color: #1c2c4c;
}



.zntech-card { position: relative; }

.zntech-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.zntech-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
}

/* Цвета */
.zntech-badge-novinka { background:#c01c54; }
.zntech-badge-hit { background:#1c2c4c; }
.zntech-badge-pod-zakaz { background:#dd8600; }
.zntech-badge-wax { background:#444; }
.zntech-badge-wax-resin { background:#555; }


.zntech-fwidth{background:#F9F9F9;}
    
.zntech-prim {
    max-width: 1400px;
    padding:70px;
    margin: 0 auto;
}


/* =========================================================
   ВКЛАДКИ ОПИСАНИЯ ТОВАРА (SINGLE)
========================================================= */

.zntech-desc-tabs {
    margin-top: 40px;
}

.zntech-desc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.zntech-desc-tabs-nav button {
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #1c2c4c;
    border-bottom: 3px solid transparent;
    transition: .2s;
}

.zntech-desc-tabs-nav button.active {
    border-color: #c01c54;
    color: #c01c54;
}

.zntech-desc-tab {
    display: none;
    animation: fadeIn .2s ease;
}

.zntech-desc-tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ===============================
   Выравнивание карточек
================================ */

/* Фиксируем зону изображения */
.zntech-card .zntech-thumb {
    height: 180px;              /* можно 160–200 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Картинка всегда вписывается */
.zntech-card .zntech-thumb img {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Заголовок — одинаковая логика */
.zntech-card .zntech-title {
    min-height: 42px;           /* 2 строки */
}

/* Кнопку — строго вниз */
.zntech-card .zntech-btn-blue {
    margin-top: auto;
}