/*
Theme Name: Storefront Child
Template: storefront
Version: 1.0.0
*/

<style>
.product-description-wrapper {
    max-width: 100%;
    margin: 30px 0;
}


/* Стили для FAQ */
.faq-section {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.faq-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.3em;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question strong {
    color: #2c3e50;
    font-size: 1em;
}

.faq-toggle {
    font-size: 1.2em;
    font-weight: bold;
    color: #4A36B2;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #495057;
    line-height: 1.6;
    border-top: 1px solid #e9ecef;
}

/* Активное состояние FAQ */
.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Стили для гарантий */
.guarantee-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.guarantee-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3em;
    text-align: center;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.guarantee-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.guarantee-content h4 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1.1em;
}

.guarantee-content p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    font-size: 0.9em;
}

/* Адаптивность для новых блоков */
@media (max-width: 768px) {
    .faq-section,
    .guarantee-section {
        padding: 20px 15px;
    }
    
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Стили для подсказки о времени вышивания */
.stitching-info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.tooltip-icon {
    cursor: help;
    color: #666;
    font-size: 13px;
    font-weight: bold;
    user-select: none;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    z-index: 1000;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.stitching-info-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .tooltip-content {
        position: fixed;
        top: 50%; /* Изменено с bottom на top */
        left: 20px;
        right: 20px;
        transform: translateY(-50%); /* Центрируем по вертикали */
        margin-bottom: 0;
        white-space: normal;
        text-align: center;
        min-width: auto;
        max-width: none;
        bottom: auto; /* Убираем bottom positioning */
    }
    
    .tooltip-content::after {
        display: none;
    }
    
    .tooltip-icon {
        font-size: 16px;
        padding: 8px;
        margin: -8px;
    }
    
    /* Для тач-устройств */
    .stitching-info-tooltip {
        cursor: pointer;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .tooltip-content {
        font-size: 11px;
        padding: 10px;
        top: 40%; /* Еще выше на очень маленьких экранах */
    }
}
/* Минимальные стили для автоматических блоков */
.auto-specs-section {
    margin: 0 0 30px 0;
}

.auto-specs-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.auto-included-section {
    margin: 30px 0 0 0;
}

.auto-included-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.included-list-simple {
    display: grid;
    gap: 8px;
}

.included-item {
    padding: 2px 0;
}

/*адаптивность для мобильных*/
@media (max-width: 768px) {
    .auto-specs-section table {
        display: block;
    }
    
    .auto-specs-section tr {
        display: block;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .auto-specs-section td {
        display: block;
        padding: 2px 0;
    }
    
    .auto-specs-section td:first-child {
        font-weight: 600;
    }
}

/* Ярлык "Доступен в коллекции" в каталоге */
.collection-badge-catalog {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.collection-badge-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Важно: убедимся, что карточка товара имеет relative positioning */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* Ссылка на коллекцию на странице товара */
.collection-link-single {
    margin: 15px 0;
    padding: 5px 15px;      /* убираем вертикальные отступы */
    background: #f8f9fa;
    border-left: 3px solid #00C896;
    }

.collection-link-single a {
    color: #00C896;
    font-weight: 600;
    text-decoration: none;
}

.collection-link-single a:hover {
    text-decoration: underline;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .collection-badge-catalog {
        top: 5px;
        left: 5px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .collection-link-single {
        padding: 12px;
        margin: 10px 0;
    }
}

/* Добавляет значок стрелки после ссылки, которая откроется в новой вкладке */
a[target="_blank"]::after {
    content: " ↗"; /* Можно использовать символ или ссылку на изображение */
    font-size: 0.8em; /* Делает значок немного меньше основного текста */
    margin-left: 5px; /* Добавляет небольшой отступ */
    text-decoration: none; /* Убирает подчёркивание у самого значка */
    display: inline-block;
}

/* Стили для бейджа "Большой размер" в каталоге */
.large-size-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* Размещаем в правом верхнем углу */
    z-index: 20;
    line-height: 1;
    background: #FF6B6B; /* Запрашиваемый красный цвет */
    color: white !important;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
    /* pointer-events: none; - Не нужно, так как это не ссылка */
}

/* Стили для нового форматирования названий товаров */
.product-title-wrapper {
    line-height: 1.3;
}

.product-main-title {
    display: block;
    font-size: 1em;
    margin-bottom: 2px;
}

.product-params-container {
    font-size: 0.85em;
    color: #666;
    line-height: 1.2;
}

.product-param-line {
    margin: 1px 0;
}
/* Стили для страницы товара - еще мельче */
.single-product .product-params-container {
    font-size: 0.65em;
}

.single-product .product-param-line {
    margin: 0.5px 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-params-container {
        font-size: 0.8em;
    }
    
    .product-param-line {
        margin: 0.5px 0;
    }
}

/* Стили для калькуляторов */
.calculators-page {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-container {
    background: #f8f9fa;
    padding: 15px 30px;
    margin: 5px 0;
    border-radius: 12px;
    border: 2px solid #4A36B2;
	 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator-container h2 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.calculator-container p {
    color: #666;
    margin-bottom: 5px;
}

.calculator-form {
    max-width: 600px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 1px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 5px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
	box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #4A36B2;
    outline: none;
	box-shadow: 0 0 0 3px rgba(74, 54, 178, 0.1);
}

.calculator-container button {
    background: #4A36B2;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.calculator-container button:hover {
    background: #3a2a8a;
	transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.result {
    margin-top: 10px;
    padding: 5px 15px;
    background: white;
    border-radius: 8px;
    border-left: 2px solid #4A36B2;
}

.result h3 {
    margin: 0 0 10px 0;
    color: #4A36B2;
	font-size: 1.3em;
}

/* Стили для ввода размеров в одну строку */
.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-inputs input {
    flex: 1;
    text-align: center;
}

.dimension-separator {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    min-width: 20px;
    text-align: center;
}

/* Стили для секции цветов */
.colors-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 2px solid #4A36B2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.add-color-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
	font-weight: 600;
    transition: all 0.3s ease;
}

.add-color-btn:hover {
    background: #0284c7;
	transform: translateY(-1px);
}

.color-field {
    margin-bottom: 5px;
}

.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-group input {
    flex: 1;
	padding: 10px;
}

.color-name {
    min-width: 150px;
}

.stitches-count {
    max-width: 150px;
}

.remove-color {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
	line-height: 7px; /* равно высоте кнопки */
	text-align: center;
    padding: 0 !important;
	transition: background 0.3s ease;
}

.remove-color:hover {
    background: #ff5252;
}

/* Стили для таблицы результатов */
.threads-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
	border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.threads-table th,
.threads-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.threads-table th {
    background: #4A36B2;
    color: white;
    font-weight: 600;
	font-size: 14px;
}
.threads-table tr:hover {
    background: #f8f9fa;
}

.total-row {
    font-weight: 700;
    background: #e3f2fd;
	border-top: 2px solid #4A36B2;
}

.total-row td {
    font-size: 15px;
    font-weight: bold;
}

#download-section {
    transition: all 0.3s ease;
    margin-top: 15px;
}

#download-table-btn {
    background: #10b981;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}
}

#download-table-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .calculator-container {
        padding: 20px;
    }
    
    .dimension-inputs {
        gap: 5px;
    }
    
    .dimension-separator {
        font-size: 16px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .color-input-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .color-name,
    .stitches-count {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    .threads-table {
        min-width: 400px;
    }
    
    .calculator-form {
        overflow-x: auto;
    }
    
}
/* Стили для таблицы и кнопки скачивания в калькуляторе нити */
.threads-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-family: Arial, sans-serif;
    background: white;
    border: 1px solid #e9ecef;
}

.threads-table th,
.threads-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    line-height: 1.4;
}

.threads-table th {
    background: #4A36B2 !important;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
}

.threads-table tr:hover {
    background: #f8f9fa;
}

.total-row {
    font-weight: 700;
    background: #e3f2fd !important;
    border-top: 2px solid #4A36B2;
}

.total-row td {
    font-size: 15px;
}

#download-section {
    transition: all 0.3s ease;
}

#download-table-btn {
    transition: background 0.3s ease;
    font-weight: 600;
}

#download-table-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Стили для таблицы при скачивании */
.table-for-export {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-for-export .threads-table {
    margin: 0;
}
/* Для скачиваемой таблицы шапка */
.table-for-export .threads-table th {
    color: white !important;
    background: #4A36B2 !important;
}
/* Адаптивность для мобильных - таблица на сайте */
@media (max-width: 768px) {
    .threads-table {
        font-size: 11px;
        min-width: 320px;
        display: block;
        overflow-x: auto;
    }
    
    .threads-table th,
    .threads-table td {
        padding: 6px 4px;
        line-height: 1.2;
    }
    
    .threads-table th:nth-child(1) { min-width: 80px; } /* Цвет */
    .threads-table th:nth-child(2) { min-width: 70px; } /* Крестиков */
    .threads-table th:nth-child(3) { min-width: 70px; } /* Метров */
    .threads-table th:nth-child(4) { min-width: 60px; } /* Мотков */
    .threads-table th:nth-child(5) { min-width: 100px; } /* С запасом */
    
    /* Разбиваем последнюю колонку на две строки на сайте */
    .threads-table th:nth-child(5) {
        white-space: normal;
        line-height: 1.3;
    }
    
    .threads-table td:nth-child(5) {
        text-align: center;
        line-height: 1.3;
        white-space: normal;
    }
    
    /* Принудительно разбиваем текст в последней колонке */
    .threads-table td:nth-child(5) br {
        display: block;
        content: "";
        margin: 2px 0;
    }
}

/* Для десктопов - нормальное отображение */
@media (min-width: 769px) {
    .threads-table {
        width: 100%;
        table-layout: fixed;
    }
    
    .threads-table th:nth-child(1) { width: 25%; } /* Цвет */
    .threads-table th:nth-child(2) { width: 15%; } /* Крестиков */
    .threads-table th:nth-child(3) { width: 15%; } /* Метров */
    .threads-table th:nth-child(4) { width: 15%; } /* Мотков */
    .threads-table th:nth-child(5) { width: 30%; } /* С запасом */
}
    
    /* Для скачивания на мобильных - уменьшаем ширину */
    .table-for-export {
        width: 95% !important;
        max-width: 320px;
        padding: 15px !important;
    }
    
    .table-for-export h3 {
        font-size: 14px !important;
    }
}

/* Убедимся, что таблица не ломается на маленьких экранах */
.threads-table {
    min-width: 300px;
    overflow-x: auto;
    display: block;
}
/* Исправление прокрутки таблицы на мобильных */
@media (max-width: 768px) {
    .calculator-container {
        overflow-x: auto;
    }
    
    .threads-table {
        min-width: 200px;
        font-size: 10px;
    }
    
    .threads-table th,
    .threads-table td {
        padding: 8px 4px;
        white-space: nowrap;
    }
    
    /* Гарантируем, что таблица не выходит за пределы контейнера */
    .calculator-form {
        overflow-x: auto;
        max-width: 100%;
    }
}

/* Контейнер сетки блога - современный дизайн */
/* ===== ОСНОВНОЙ КОНТЕЙНЕР С САЙДБАРОМ СЛЕВА ===== */
.blog-with-sidebar {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.custom-sidebar-widget-area {
    width: 200px;
    flex-shrink: 0;
	color: #666666; /* Темно-серый цвет */
}
/* Делаем ссылки такого же цвета как текст */
.custom-sidebar-widget-area a {
    color: #666666;
}

/* Цвет при наведении можно оставить вашему фирменному */
.custom-sidebar-widget-area a:hover {
    color: #4A36B2;
}
.content-area-with-sidebar {
    flex: 1;
}

/* ===== ЗАГОЛОВКИ СТРАНИЦ ===== */
.page-header {
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 40px;
    
    color: 7B7B7B;
    border-radius: 10px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.category-description {
    font-style: italic;
    margin-top: 10px;
    opacity: 0.9;
}

/* ===== СЕТКА ПОСТОВ ===== */
.blog-posts-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

/* ===== КАРТОЧКА ПОСТА ===== */
.blog-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f5f5f5;
    transition: all 0.4s ease;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* ===== ЛЕЙБЛ РУБРИКИ ===== */
.blog-category-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF6B6B;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

/* ===== ИЗОБРАЖЕНИЕ ПОСТА ===== */
.blog-post-image {
    width: 100%;
    height: 0;
    padding-bottom: 60%; /* Пропорция 1:0.6 */
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.08);
}

/* ===== КОНТЕНТ КАРТОЧКИ ===== */
.blog-post-content {
    padding: 20px;
}

.blog-post-title {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2c3e50;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #FF6B6B;
}
/* Стили для просмотров и времени чтения в карточках - В ОДНУ СТРОКУ */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    color: #888;
}

.views-count,
.reading-time {
    font-weight: 500;
    color: #555;
}

/* Адаптивность для мета-информации */
@media (max-width: 768px) {
    .blog-post-meta {
        gap: 12px;
        font-size: 11px;
    }
    
    .meta-item i {
        font-size: 11px;
    }
}

/* ===== КНОПКА "ЧИТАТЬ" ===== */
.blog-read-more-btn {
    display: inline-block;
    background: #00C896;
    color: white;
    padding: 5px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-read-more-btn:hover {
    background: #00a87e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

/* ===== ПАГИНАЦИЯ ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.blog-pagination .page-numbers {
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current {
    background: #00C896;
    color: white;
    border-color: #00C896;
}

.blog-pagination a.page-numbers:hover {
    background: #f8f9fa;
    border-color: #00C896;
    color: #00C896;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .blog-posts-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-with-sidebar {
        flex-direction: column;
        padding: 20px 15px;
        gap: 30px;
    }
    
    .custom-sidebar-widget-area {
        width: 100%;
    }
    
    .blog-posts-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .blog-posts-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blog-post-content {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Задержки для анимации */
.blog-post-card:nth-child(1) { animation-delay: 0.1s; }
.blog-post-card:nth-child(2) { animation-delay: 0.2s; }
.blog-post-card:nth-child(3) { animation-delay: 0.3s; }
.blog-post-card:nth-child(4) { animation-delay: 0.4s; }

/* Стили для кастомной записи блога*/
.custom-single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
}

.custom-entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-categories {
    margin-bottom: 15px;
	text-align: left; /* Выравнивание по левому краю */
}

.entry-categories a {
    background: #FF6B6B;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    margin: 0 5px;
}

.entry-title {
    font-size: 36px;
    margin: 20px 0;
    color: #333;
}

.entry-meta {
    color: #666;
    font-size: 14px;
}

.entry-meta span {
    margin: 0 10px;
}

.entry-thumbnail {
    margin: 30px 0;
    text-align: center;
}

.entry-thumbnail img {
    border-radius: 8px;
	max-width: 600px; /* Максимальная ширина */
    width: 100%; /* Адаптивность */
    height: auto; /* Сохраняем пропорции */
    aspect-ratio: 1/0.6; /* Пропорция ширины к высоте 1:0.6 */
    object-fit: cover; /* Чтобы изображение заполняло область */
}

.entry-content {
    line-height: 1.8;
    font-size: 16px;
}

/* Стили для всех изображений внутри контента записи */
.entry-content img {
    max-width: 600px;
    width: 100%;
    height: auto;
    aspect-ratio: 1/0.6; /* Пропорция 1:0.6 */
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0; /* Отступы сверху и снизу */
}

/* Для центрирования изображений */
.entry-content figure {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.entry-content figure img {
    margin: 0; /* Убираем дублирующие отступы */
}

/* Для подписей под изображениями */
.entry-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.entry-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-label {
    font-weight: bold;
    margin-right: 10px;
}

.entry-tags a {
    color: #00C896;
    text-decoration: none;
}

/* Стили для улучшенной навигации */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 60px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous,
.nav-next {
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #00C896;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.1);
    transform: translateY(-2px);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.nav-inner {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: start;
}

.nav-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.nav-content {
    min-width: 0; /* Важно для обрезки длинного текста */
}

.nav-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-excerpt {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-previous,
    .nav-next {
        padding: 15px;
    }
    
    .nav-inner {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    
    .nav-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .nav-excerpt {
        font-size: 12px;
    }
}

/* Если нет изображения у записи */
.nav-previous:has(.nav-thumbnail:empty) .nav-inner,
.nav-next:has(.nav-thumbnail:empty) .nav-inner {
    grid-template-columns: 1fr;
}

.nav-previous:has(.nav-thumbnail:empty) .nav-content,
.nav-next:has(.nav-thumbnail:empty) .nav-content {
    margin-left: 0;
}
/* стили для ссылок навигации*/
/* Стили для кликабельных ссылок */
.nav-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.nav-link:hover .nav-title {
    color: #00C896; /* Изменение цвета заголовка при наведении */
}

.nav-link:hover .nav-thumbnail img {
    transform: scale(1.05); /* Легкое увеличение картинки при наведении */
}

/* Обновляем ховер эффекты */
.nav-previous:hover,
.nav-next:hover {
    border-color: #00C896;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.1);
    transform: translateY(-2px);
}

/* Убираем стандартные стили ссылок */
.nav-link:focus {
    outline: none;
}

.nav-link:focus .nav-inner {
    outline: 2px solid #00C896;
    outline-offset: 2px;
    border-radius: 4px;
}

/*отступ после хлебных крошек*/
/* Для компьютеров */
@media only screen and (min-width: 768px) {
    .storefront-breadcrumb {
        margin-bottom: 16px !important;
    }
}
/* Для мобильных устройств */
@media only screen and (max-width: 768px) {
    .storefront-breadcrumb {
        margin-bottom: 5px !important;
    }
}

/* Стили попапа */
.error-popup {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.error-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
    z-index: 10001;
}

.close-popup:hover {
    color: #FF6B6B;
}

.error-popup h3 {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
}

/* Стили формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="url"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input[type="url"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00C896;
    box-shadow: 0 0 0 2px rgba(0, 200, 150, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Кнопка отправки */
.report-btn {
    background: #00C896;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.report-btn:hover {
    background: #00a87e;
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .error-popup-content {
        margin: 10% auto;
        padding: 25px 20px;
        width: 95%;
    }
}
/* Стрелка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00C896;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}

.back-to-top:hover {
    background: #00a87e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/* Дополнительно для очень маленьких экранов */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 70px; /* Еще выше на самых маленьких экранах */
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
/* Стили для уведомления о cookies */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.8); /* Прозрачность 80% */
    color: white;
    padding: 15px 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
	backdrop-filter: blur(5px); /* Дополнительный эффект размытия */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.cookie-content a {
    color: #00C896;
    text-decoration: underline;
}

.cookie-btn {
    background: #00C896;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.cookie-btn:hover {
    background: #00a87e;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Для стандартного сайдбара */
#secondary a,
.widget-area a {
    text-decoration: none;
}

#secondary a:hover,
.widget-area a:hover {
    text-decoration: none;
    color: #4A36B2;
}

/* Стили для виджета фильтра сложности в сайдбаре */
.difficulty-filter-widget {
    margin-bottom: 20px;
}

.difficulty-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.difficulty-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 13px;
}

.difficulty-option:hover {
    border-color: #B7B7B7;
    background: #E3E3E3;
}

.difficulty-option.active {
    border-color: #B7B7B7;
    background: #E3E3E3;
}

.difficulty-option input {
    margin-right: 8px;
}

.difficulty-stars {
    font-size: 16px;
    color: #4E4E4E;
    margin-right: 8px;
    min-width: 70px;
}

.difficulty-text {
    color: #666;
    font-size: 12px;
}

.difficulty-filter-btn {
    background: #4E4E4E;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    transition: background 0.3s ease;
    margin-bottom: 5px;
}

.difficulty-filter-btn:hover {
    background: #FF6B6B;
}

.difficulty-clear-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    transition: background 0.3s ease;
}

.difficulty-clear-btn:hover {
    background: #e55a5a;
}
/* Блок активного фильтра */
.difficulty-active-filter {
    background: #E3E3E3;
    border: 1px solid #B7B7B7;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.active-filter-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 13px;
}

.active-filter-info strong {
    color: #333;
}

.difficulty-clear-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    transition: background 0.3s ease;
}

.difficulty-clear-btn:hover {
    background: #e55a5a;
}
/* Стили для пустых результатов */
.empty-results-navigation {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-results-navigation h3 {
    color: #333;
    margin-bottom: 20px;
}

.active-filter-message {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.active-filter-message .button {
    background: #00C896;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.active-filter-message .button:hover {
    background: #00A87E;
}


/* Минималистичные стили для формы заказа схемы*/
/* Стили для формы Contact Form 7 - универсальные селекторы */
.wpcf7-form {
    width: 35% !important;
    max-width: 350px;
    margin: 0 auto !important;
}

/* Альтернативные селекторы на случай если ID меняется */
form.wpcf7-form,
div.wpcf7 form,
.wpcf7 form {
    width: 35% !important;
    max-width: 350px;
    margin: 0 auto !important;
}

/* Стили для всех элементов формы */
.wpcf7-form-control-wrap {
    margin-bottom: 15px;
    display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form input[type="file"] {
    width: 100% !important;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #4A36B2;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #4A36B2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: #3a2a8a;
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .wpcf7-form,
    form.wpcf7-form,
    div.wpcf7 form,
    .wpcf7 form {
        width: 50% !important;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .wpcf7-form,
    form.wpcf7-form,
    div.wpcf7 form,
    .wpcf7 form {
        width: 70% !important;
        max-width: 450px;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form textarea,
    .wpcf7-form input[type="file"] {
        padding: 12px 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wpcf7-form,
    form.wpcf7-form,
    div.wpcf7 form,
    .wpcf7 form {
        width: 90% !important;
        max-width: none;
    }
}

/* Показываем мобильные фильтры только на мобильных */
@media (max-width: 768px) {
    .mobile-filters-container {
        display: block;
    }
}

/* Скрываем мобильные фильтры на ПК */
@media (min-width: 769px) {
    .mobile-filters-container {
        display: none;
    }
}

/* Скрываем основной сайдбар на мобильных */
@media (max-width: 768px) {
    .woocommerce-sidebar,
    #secondary {
        display: none;
    }
}

/* Стили для боковой панели */
.widget-area, 
#secondary {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 15px;
    background: #ffffff;
    margin-bottom: 20px;
}

/* Стили для полей ввода на странице checkout */
/* Постоянная фиолетовая обводка */
.wc-block-components-text-input input {
    border: 2px solid #4A36B2 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

/* Плавное поднятие при наведении */
.wc-block-components-text-input input:hover {
    box-shadow: 0 4px 8px rgba(74, 54, 178, 0.15) !important;
}

/* Активное состояние */
.wc-block-components-text-input input:focus {
    box-shadow: 0 0 0 3px rgba(74, 54, 178, 0.1) !important;
    outline: none !important;
}

/* Лейбл "Шрифт в комплекте" в каталоге - АНАЛОГИЧНО КОЛЛЕКЦИИ, НО ВНИЗУ */
.font-badge-catalog {
    position: absolute;
    top: 10px;    /* ВМЕСТО top: 10px */
    left: 10px;
    z-index: 20;
    line-height: 1;
    background: #00C896; /* Ваш цвет вместо градиента */
    color: white !important;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.font-badge-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .font-badge-catalog {
        top: 5px;    /* ВМЕСТО top: 5px */
        left: 5px;
        font-size: 10px;
        padding: 4px 8px;
    }
}