/*
Theme Name: SweetArmyBakery_8839
Theme URI: https://sweetarmy.ru
Author: Полякова Дарья
Author URI: https://sweetarmy.ru
Description: Тема для сайта «Домашние десерты: рецепты и секреты». Уютный дизайн с рецептами тортов, пирожных, советами по выбору ингредиентов и инвентаря.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sweetarmybakery
*/

/* === ПЕРЕМЕННЫЕ === */
:root {
    --cream-bg: #FEF7E8;
    --raspberry: #C4455A;
    --caramel: #E2A55E;
    --dark-text: #2E2A24;
    --card-bg: #FFF9EF;
    --cookie-border: #D9C5A7;
    --light-separator: #F0E6D3;
    --raspberry-hover: #a83a4c;
    --caramel-light: #f0c88a;
    --shadow-soft: 0 2px 12px rgba(46,42,36,0.08);
    --shadow-card: 0 4px 18px rgba(46,42,36,0.10);
    --radius-btn: 20px;
    --radius-card: 16px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
}

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--cream-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--raspberry);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover, a:focus {
    color: var(--caramel);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--raspberry);
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}

table, th, td {
    border: 1px solid var(--cookie-border);
}

th, td {
    padding: 0.6em 0.9em;
    text-align: left;
}

th {
    background: var(--card-bg);
    font-family: var(--font-heading);
    color: var(--raspberry);
}

blockquote {
    border-left: 4px solid var(--caramel);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--card-bg);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-style: italic;
}

/* === КНОПКИ === */
.bakery-btn {
    display: inline-block;
    padding: 0.6em 1.6em;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--raspberry);
    text-align: center;
    line-height: 1.4;
}

.bakery-btn-primary {
    background: var(--raspberry);
    color: #fff;
}

.bakery-btn-primary:hover,
.bakery-btn-primary:focus {
    background: var(--caramel);
    border-color: var(--caramel);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194,69,90,0.2);
}

.bakery-btn-outline {
    background: var(--card-bg);
    color: var(--raspberry);
}

.bakery-btn-outline:hover,
.bakery-btn-outline:focus {
    background: var(--raspberry);
    color: #fff;
    transform: translateY(-2px);
}

/* === ШАПКА === */
.bakery-site-header {
    background: var(--card-bg);
    border-bottom: 3px solid var(--caramel);
    position: relative;
    z-index: 100;
}

.bakery-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
}

.bakery-logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.bakery-logo-area img,
.bakery-logo-area svg {
    max-height: 56px;
    width: auto;
}

.bakery-site-identity {
    flex: 1;
    min-width: 0;
}

.bakery-site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--raspberry);
    margin-bottom: 0.15em;
    line-height: 1.2;
}

.bakery-site-title a {
    color: inherit;
}

.bakery-site-title a:hover {
    color: var(--caramel);
}

.bakery-site-tagline {
    font-style: italic;
    color: #7a6e5f;
    font-size: 0.82rem;
    line-height: 1.4;
    border-bottom: 2px solid var(--caramel-light);
    padding-bottom: 0.3em;
    display: inline-block;
}

/* === ПОИСК В ШАПКЕ === */
.bakery-header-search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bakery-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4em;
    color: var(--raspberry);
    font-size: 1.3rem;
    transition: color 0.25s;
    line-height: 1;
}

.bakery-search-toggle:hover {
    color: var(--caramel);
}

.bakery-search-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--card-bg);
    border: 2px solid var(--caramel);
    border-radius: var(--radius-card);
    padding: 0.7em;
    display: none;
    z-index: 200;
    box-shadow: var(--shadow-card);
    min-width: 260px;
}

.bakery-search-dropdown.is-open {
    display: flex;
    animation: bakerySlideDown 0.3s ease;
}

@keyframes bakerySlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bakery-search-dropdown input[type="search"] {
    flex: 1;
    padding: 0.5em 0.8em;
    border: 1px solid var(--cookie-border);
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #fff;
    color: var(--dark-text);
    outline: none;
}

.bakery-search-dropdown input[type="search"]:focus {
    border-color: var(--raspberry);
}

.bakery-search-dropdown button[type="submit"] {
    background: var(--raspberry);
    border: none;
    color: #fff;
    padding: 0.5em 0.9em;
    border-radius: var(--radius-btn);
    margin-left: 0.4em;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.25s;
}

.bakery-search-dropdown button[type="submit"]:hover {
    background: var(--caramel);
}

/* === НАВИГАЦИЯ === */
.bakery-main-nav {
    background: var(--cream-bg);
    border-bottom: 1px solid var(--light-separator);
}

.bakery-main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1280px;
    margin: 0 auto;
    gap: 0.3rem;
}

.bakery-main-nav li {
    position: relative;
}

.bakery-main-nav a {
    display: block;
    padding: 0.75em 1.5em;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-text);
    transition: color 0.25s, background 0.25s;
    border-radius: var(--radius-btn);
}

.bakery-main-nav a:hover,
.bakery-main-nav .current-menu-item > a,
.bakery-main-nav .current_page_item > a {
    color: var(--raspberry);
    background: var(--card-bg);
}

/* Мобильное меню */
.bakery-burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    flex-direction: column;
    gap: 5px;
}

.bakery-burger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--raspberry);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.bakery-burger-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.bakery-burger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.bakery-burger-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === КОНТЕЙНЕРЫ === */
.bakery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bakery-content-wide {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

.bakery-layout-with-sidebar {
    display: flex;
    gap: 3%;
    align-items: flex-start;
}

.bakery-primary-content {
    flex: 0 0 67%;
    max-width: 67%;
    min-width: 0;
}

.bakery-sidebar-area {
    flex: 0 0 27%;
    max-width: 27%;
    min-width: 0;
}

.bakery-full-width {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.bakery-breadcrumbs {
    padding: 1em 0;
    font-size: 0.85rem;
    color: #7a6e5f;
}

.bakery-breadcrumbs a {
    color: var(--raspberry);
}

.bakery-breadcrumbs a:hover {
    color: var(--caramel);
}

.bakery-breadcrumbs .crumb-separator {
    margin: 0 0.4em;
    color: var(--cookie-border);
}

/* === ГЛАВНАЯ СТРАНИЦА === */

/* Блок-приветствие */
.bakery-hero-welcome {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--cream-bg) 100%);
    border-radius: var(--radius-card);
    margin-bottom: 2.5rem;
    border: 1px solid var(--light-separator);
}

.bakery-hero-welcome h2 {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

.bakery-hero-welcome p {
    max-width: 640px;
    margin: 0 auto 1.2em;
    color: #6b5f52;
    font-size: 1.05rem;
}

/* Категории-плитки */
.bakery-category-tiles {
    margin-bottom: 3rem;
}

.bakery-category-tiles h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bakery-tiles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.bakery-tile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em 1em;
    background: var(--card-bg);
    border: 2px solid var(--light-separator);
    border-radius: var(--radius-card);
    text-align: center;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-text);
}

.bakery-tile-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(196,69,90,0.12);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: var(--radius-card);
}

.bakery-tile-item:hover::after {
    opacity: 1;
}

.bakery-tile-item:hover {
    border-color: var(--raspberry);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.bakery-tile-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5em;
    position: relative;
    z-index: 1;
}

.bakery-tile-label {
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Секция подсказок */
.bakery-tips-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.bakery-tip-card {
    background: var(--card-bg);
    border: 1px solid var(--light-separator);
    border-radius: var(--radius-card);
    padding: 1.5em;
    text-align: center;
    transition: box-shadow 0.3s;
}

.bakery-tip-card:hover {
    box-shadow: var(--shadow-card);
}

.bakery-tip-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

.bakery-tip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4em;
}

.bakery-tip-card p {
    font-size: 0.88rem;
    color: #6b5f52;
    margin-bottom: 0;
}

/* Секция последних записей */
.bakery-latest-posts {
    margin-bottom: 3rem;
}

.bakery-latest-posts > h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* === СЕТКА КАРТОЧЕК === */
.bakery-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* === КАРТОЧКА ЗАПИСИ === */
.bakery-recipe-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bakery-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.bakery-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light-separator);
}

.bakery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--cookie-border);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    filter: drop-shadow(0 0 6px rgba(217,197,167,0.5));
}

.bakery-card-thumb .bakery-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--cookie-border);
    background: var(--cream-bg);
}

.bakery-card-body {
    padding: 1.2em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bakery-card-meta {
    font-size: 0.78rem;
    color: #9a8d7e;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.7em;
    flex-wrap: wrap;
}

.bakery-card-category {
    background: var(--cream-bg);
    padding: 0.15em 0.6em;
    border-radius: 10px;
    font-weight: 600;
    color: var(--raspberry);
    font-size: 0.75rem;
}

.bakery-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 0.5em;
    line-height: 1.35;
}

.bakery-card-title a {
    color: inherit;
}

.bakery-card-title a:hover {
    color: var(--raspberry);
}

.bakery-card-excerpt {
    font-size: 0.88rem;
    color: #5a5248;
    flex: 1;
    margin-bottom: 0.8em;
    line-height: 1.6;
}

.bakery-card-excerpt p:last-child {
    margin-bottom: 0;
}

/* Рейтинг ягодками */
.bakery-berry-rating {
    display: flex;
    gap: 0.2em;
    margin-bottom: 0.6em;
}

.bakery-berry-rating .berry-filled {
    color: var(--raspberry);
}

.bakery-berry-rating .berry-empty {
    color: var(--cookie-border);
}

/* «Пряничный след» — overlay при наведении */
.bakery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(254,247,232,0.96) 0%, rgba(254,247,232,0) 100%);
    padding: 2em 1.2em 1em;
    display: flex;
    justify-content: center;
    gap: 1.5em;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    pointer-events: none;
}

.bakery-recipe-card:hover .bakery-card-overlay {
    transform: translateY(0);
}

.bakery-overlay-item {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
}

.bakery-overlay-icon {
    font-size: 1.1rem;
}

/* Карточка «Подробнее» */
.bakery-card-readmore {
    margin-top: auto;
}

.bakery-card-readmore a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--raspberry);
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: gap 0.25s;
}

.bakery-card-readmore a:hover {
    gap: 0.6em;
    color: var(--caramel);
}

/* === САЙДБАР === */
.bakery-sidebar-area .widget {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 1.3em;
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-separator);
}

.bakery-sidebar-area .widget-title,
.bakery-sidebar-area .widgettitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--raspberry);
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--caramel-light);
}

.bakery-sidebar-area .widget ul {
    list-style: none;
    padding: 0;
}

.bakery-sidebar-area .widget li {
    padding: 0.4em 0;
    border-bottom: 1px solid var(--light-separator);
}

.bakery-sidebar-area .widget li:last-child {
    border-bottom: none;
}

.bakery-sidebar-area .widget a {
    font-size: 0.9rem;
}

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

.bakery-pagination a,
.bakery-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0.3em 0.7em;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bakery-pagination a {
    background: linear-gradient(145deg, var(--card-bg), var(--cream-bg));
    color: var(--dark-text);
    border: 2px solid var(--cookie-border);
}

.bakery-pagination a:hover {
    background: linear-gradient(145deg, var(--caramel-light), var(--caramel));
    border-color: var(--caramel);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226,165,94,0.25);
}

.bakery-pagination .current {
    background: linear-gradient(145deg, var(--raspberry), var(--raspberry-hover));
    color: #fff;
    border: 2px solid var(--raspberry);
    box-shadow: 0 3px 10px rgba(196,69,90,0.2);
}

.bakery-pagination .dots {
    color: var(--cookie-border);
    border: none;
    background: none;
    min-width: auto;
}

/* === ПОДВАЛ === */
.bakery-site-footer {
    background: var(--dark-text);
    color: #d9cfc2;
    padding: 2.5rem 0 0;
    margin-top: 3rem;
}

.bakery-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.bakery-footer-col .widget {
    padding: 0;
}

.bakery-footer-col .widget-title,
.bakery-footer-col .widgettitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--caramel);
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid rgba(226,165,94,0.3);
}

.bakery-footer-col .widget ul {
    list-style: none;
    padding: 0;
}

.bakery-footer-col .widget li {
    padding: 0.3em 0;
}

.bakery-footer-col .widget a {
    color: #d9cfc2;
    font-size: 0.9rem;
    transition: color 0.25s;
}

.bakery-footer-col .widget a:hover {
    color: var(--caramel);
}

.bakery-footer-col .widget p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.bakery-footer-bottom {
    text-align: center;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(217,197,167,0.2);
    font-size: 0.85rem;
    color: #9a8d7e;
}

/* Секрет ингредиента */
.bakery-footer-secret {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(217,197,167,0.15);
    margin-top: 1rem;
}

.bakery-footer-secret-title {
    font-family: var(--font-heading);
    color: var(--caramel);
    font-size: 1rem;
    margin-bottom: 0.5em;
}

.bakery-footer-secret-text {
    font-style: italic;
    color: #b8a997;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === ОДИНОЧНАЯ ЗАПИСЬ === */
.bakery-single-header {
    margin-bottom: 1.5rem;
}

.bakery-single-header h1 {
    margin-bottom: 0.4em;
}

.bakery-post-meta {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #7a6e5f;
    margin-bottom: 1rem;
}

.bakery-post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.bakery-post-thumbnail img {
    width: 100%;
    height: auto;
    border: 3px solid var(--cookie-border);
    border-radius: var(--radius-card);
}

.bakery-post-content {
    margin-bottom: 2rem;
}

.bakery-post-content h2,
.bakery-post-content h3,
.bakery-post-content h4 {
    margin-top: 1.5em;
}

.bakery-post-content img {
    border: 3px solid var(--cookie-border);
    border-radius: var(--radius-card);
}

.bakery-post-tags {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-separator);
    font-size: 0.85rem;
}

.bakery-post-tags a {
    display: inline-block;
    background: var(--cream-bg);
    padding: 0.2em 0.7em;
    border-radius: 10px;
    margin: 0.2em;
    font-size: 0.82rem;
}

.bakery-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-separator);
    border-bottom: 1px solid var(--light-separator);
}

.bakery-post-navigation a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* === КОММЕНТАРИИ === */
.bakery-comments-area {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-separator);
}

.bakery-comments-area h2 {
    margin-bottom: 1.5rem;
}

.bakery-comment-list {
    list-style: none;
    padding: 0;
}

.bakery-comment-item {
    margin-bottom: 1.5rem;
    padding: 1.2em;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--light-separator);
}

.bakery-comment-item .children {
    list-style: none;
    padding-left: 1.5em;
    margin-top: 1em;
}

.bakery-comment-author {
    font-weight: 700;
    color: var(--raspberry);
}

.bakery-comment-date {
    font-size: 0.8rem;
    color: #9a8d7e;
}

.bakery-comment-text {
    margin-top: 0.5em;
}

.bakery-comment-form label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
    font-size: 0.9rem;
}

.bakery-comment-form input[type="text"],
.bakery-comment-form input[type="email"],
.bakery-comment-form input[type="url"],
.bakery-comment-form textarea {
    width: 100%;
    padding: 0.6em 0.9em;
    border: 1px solid var(--cookie-border);
    border-radius: var(--radius-card);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1em;
    background: #fff;
    color: var(--dark-text);
}

.bakery-comment-form input:focus,
.bakery-comment-form textarea:focus {
    outline: none;
    border-color: var(--raspberry);
}

.bakery-comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

.bakery-comment-form input[type="submit"] {
    background: var(--raspberry);
    color: #fff;
    border: 2px solid var(--raspberry);
    padding: 0.6em 1.8em;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.bakery-comment-form input[type="submit"]:hover {
    background: var(--caramel);
    border-color: var(--caramel);
    color: var(--dark-text);
}

/* === ФОРМА ПОИСКА === */
.bakery-search-form {
    display: flex;
    gap: 0.5em;
    max-width: 480px;
}

.bakery-search-form input[type="search"] {
    flex: 1;
    padding: 0.6em 1em;
    border: 2px solid var(--cookie-border);
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--dark-text);
}

.bakery-search-form input[type="search"]:focus {
    border-color: var(--raspberry);
    outline: none;
}

.bakery-search-form button {
    background: var(--raspberry);
    border: 2px solid var(--raspberry);
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.bakery-search-form button:hover {
    background: var(--caramel);
    border-color: var(--caramel);
    color: var(--dark-text);
}

/* === СТРАНИЦА 404 === */
.bakery-404-section {
    text-align: center;
    padding: 3rem 1rem;
}

.bakery-404-icon {
    font-size: 5rem;
    margin-bottom: 0.5em;
}

.bakery-404-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

.bakery-404-section p {
    font-size: 1.1rem;
    color: #6b5f52;
    margin-bottom: 1.5em;
}

.bakery-404-search {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5em;
}

/* === БЛОК КУКИ === */
.bakery-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--dark-text);
    color: #d9cfc2;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    font-size: 0.88rem;
}

.bakery-cookie-notice p {
    margin: 0;
    max-width: 700px;
}

.bakery-cookie-accept {
    background: var(--caramel);
    color: var(--dark-text);
    border: none;
    padding: 0.5em 1.5em;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.25s;
    white-space: nowrap;
}

.bakery-cookie-accept:hover {
    background: var(--raspberry);
    color: #fff;
}

.bakery-cookie-notice.is-hidden {
    display: none;
}

/* === БЛОГ (page-blog) === */
.bakery-blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bakery-blog-header h1 {
    margin-bottom: 0.3em;
}

.bakery-blog-header p {
    color: #7a6e5f;
}

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

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

    .bakery-tips-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .bakery-layout-with-sidebar {
        flex-direction: column;
    }

    .bakery-primary-content,
    .bakery-sidebar-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bakery-footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .bakery-header-top {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .bakery-header-top {
        padding: 0.8rem 1rem;
    }

    .bakery-container {
        padding: 0 1rem;
    }

    .bakery-content-wide,
    .bakery-full-width {
        width: 95%;
    }

    .bakery-posts-grid {
        grid-template-columns: 1fr;
    }

    .bakery-tiles-grid {
        display: flex;
        overflow-x: auto;
        gap: 0.8rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5em;
    }

    .bakery-tile-item {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }

    .bakery-tips-strip {
        grid-template-columns: 1fr;
    }

    .bakery-footer-widgets {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .bakery-burger-btn {
        display: flex;
    }

    .bakery-main-nav {
        display: none;
    }

    .bakery-main-nav.is-open {
        display: block;
    }

    .bakery-main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .bakery-main-nav a {
        text-align: center;
        padding: 0.8em;
        border-bottom: 1px solid var(--light-separator);
    }

    .bakery-post-navigation {
        flex-direction: column;
    }

    .bakery-hero-welcome {
        padding: 2rem 0.8rem;
    }

    .bakery-hero-welcome h2 {
        font-size: 1.5rem;
    }

    .bakery-site-title {
        font-size: 1.15rem;
    }
}

/* === ВСПОМОГАТЕЛЬНЫЕ === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.bakery-section-pad {
    padding: 2rem 0;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: #7a6e5f;
    text-align: center;
    font-style: italic;
    padding-top: 0.3em;
}
