/*!
Theme Name: darnica
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Тема для продажи запчастей для сельхозтехники
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: darnica
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

darnica is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
    - Normalize
    - Box sizing
# Base
    - Typography
    - Elements
    - Links
    - Forms
## Layouts
# Components
    - Navigation
    - Posts and pages
    - Comments
    - Widgets
    - Media
    - Captions
    - Galleries
# plugins
    - Jetpack infinite scroll
# Utilities
    - Accessibility
    - Alignments
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Google Fonts
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
     ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* Sections
     ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Text-level semantics
     ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
     ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *        `fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
     ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
     ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #2d2d2d;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: #1a3a2a;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

p {
    margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
    border-left: 4px solid #f49c1a;
    padding-left: 1.2em;
    color: #4a4a4a;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #2d2d2d;
    color: #e0e0e0;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
    background: #f8faf8;
}

hr {
    background-color: #cbd5c0;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

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

figure {
    margin: 1em 0;
}

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

th, td {
    border: 1px solid #d0d9cc;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #eef3ea;
    font-weight: 700;
}

/* Links
--------------------------------------------- */
a {
    color: #1e6b3b;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:visited {
    color: #145a32;
}

a:hover,
a:focus,
a:active {
    color: #f49c1a;
    text-decoration: underline;
}

a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: none;
    border-radius: 6px;
    background: #f49c1a;
    color: #1a2a1a;
    font-weight: 700;
    line-height: 1;
    padding: 0.8em 1.6em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: #d4880f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    background: #b8720c;
    transform: translateY(0);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #2d2d2d;
    border: 1px solid #cbd5c0;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #1a3a2a;
    border-color: #f49c1a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 156, 26, 0.2);
}

select {
    border: 1px solid #cbd5c0;
    border-radius: 8px;
    padding: 0.7rem;
    background: #fff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
/* Контейнер для основного контента */
.container,
.site-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
    display: block;
    width: 100%;
    background-color: white;
    padding: 0.5rem 0;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
    background: #1a3a2a;
    border-radius: 0 0 8px 8px;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    display: block;
    left: auto;
}

.main-navigation ul ul a {
    width: 240px;
    padding: 0.75rem 1rem;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    left: auto;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
    color: #f0f4ed;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #f49c1a;
    text-decoration: none;
}

/* Small menu. */
.menu-toggle {
    background: #f49c1a;
    color: #1a3a2a;
    border: none;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.5rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.menu-toggle:hover {
    background: #d4880f;
    color: #fff;
}

.main-navigation.toggled ul {
    display: block;
}

@media screen and (min-width: 37.5em) {

    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
        justify-content: center;
    }

    .main-navigation ul ul {
        display: none;
        position: absolute;
    }

    .main-navigation ul li:hover > ul,
    .main-navigation ul li.focus > ul {
        display: block;
    }
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/* Posts and pages (карточки товаров)
--------------------------------------------- */
.sticky {
    display: block;
}

.post,
.page {
    margin: 0 0 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /*padding: 1.5rem;*/
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /*padding: 40px;*/
}
.woocommerce .page, .woocommerce .product {
    padding: 40px !important;
}

.post:hover,
.page:hover {
    /*transform: translateY(-4px);*/
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Стиль для карточки товара (предполагаем класс .product) */
.product,
.type-product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product img {
    width: 100%;
    height: auto;
    display: block;
}

.product .price {
    color: #f49c1a;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.add-to-cart-button,
.woocommerce .button {
    background: #1e6b3b;
    color: #fff;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.add-to-cart-button:hover,
.woocommerce .button:hover {
    background: #f49c1a;
    color: #1a2a1a;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
    background: #eef3ea;
    padding: 0.5rem;
    border-radius: 8px;
}

/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 1.5em;
    background: #fff;
    padding: 1.2rem;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.widget-title {
    font-size: 1.25rem;
    border-left: 4px solid #f49c1a;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 700;
}

.widget select {
    max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

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

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

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* Дополнительные стили для интернет-магазина запчастей */
.breadcrumbs {
    font-size: 0.85rem;
    color: #6b7a66;
    margin-bottom: 1rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.badge {
    display: inline-block;
    background: #f49c1a;
    color: #1a3a2a;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.footer-widgets {
    background: #1a3a2a;
    color: #cbdcc2;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer {
    background: #0f281c;
    color: #a0b89a;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}
.site-branding img {
    width: 150px;
}/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/

/* Хедер - логотип и меню в одну строку */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1a3a2a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Контейнер для шапки - выравнивание по центру */
.site-header .container,
.site-header > .site-branding {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Блок с логотипом и названием */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Логотип */
.custom-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.custom-logo {
    max-width: 70px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Текст названия */
.branding-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f49c1a 0%, #f49c1a 30%, #ffdd99 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.site-title a:hover {
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffb347 0%, #f49c1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.site-description {
    font-size: 11px;
    color: #a0b89a;
    margin: 3px 0 0;
    letter-spacing: 0.3px;
}

/* Навигация - выравниваем по правому краю */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: #f49c1a;
    transform: translateY(-2px);
}

/* Активный пункт меню */
.current-menu-item a {
    color: #f49c1a !important;
    position: relative;
}

.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #f49c1a;
}

/* Кнопка мобильного меню */
.menu-toggle {
    background: #f49c1a;
    color: #1a3a2a;
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: #d4880f;
    color: #fff;
}

/* Отступ для основного контента */
.site-main {
    padding-top: 40px;
}

.front-page .site-main {
    padding-top: 0;
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .site-title a {
        font-size: 20px;
    }
    
    .custom-logo {
        max-width: 55px;
        max-height: 55px;
    }
    
    .main-navigation a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .site-header {
        padding: 10px;
    }
    
    .site-header .container,
    .site-header > .site-branding {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .custom-logo {
        max-width: 45px;
        max-height: 45px;
    }
    
    .site-title a {
        font-size: 16px;
        white-space: normal;
    }
    
    .site-description {
        font-size: 9px;
    }
    
    .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .site-main {
        padding-top: 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .site-title a {
        font-size: 14px;
    }
    
    .custom-logo {
        max-width: 35px;
        max-height: 35px;
    }
    
    .main-navigation a {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/

/* Хедер - фон на всю ширину */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    width: 100%;
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Контейнер для контента шапки - центрирование */
.site-header .header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Блок с логотипом и названием */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Логотип */
.custom-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.custom-logo {
    max-width: 105px;
    max-height: 105px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Текст названия */
.branding-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f49c1a 0%, #f49c1a 30%, #ffdd99 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.site-title a:hover {
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffb347 0%, #f49c1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.site-description {
    font-size: 11px;
    color: #a0b89a;
    margin: 3px 0 0;
    letter-spacing: 0.3px;
}

/* Навигация - выравниваем по правому краю */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: black;
}

.main-navigation a:hover {
    color: #f49c1a;
    transform: translateY(-2px);
}

/* Активный пункт меню */
.current-menu-item a {
    color: #f49c1a !important;
    position: relative;
}

.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #f49c1a;
}

/* Кнопка мобильного меню */
.menu-toggle {
    background: #f49c1a;
    color: #1a3a2a;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: none;
}

.menu-toggle:hover {
    background: #d4880f;
    color: #fff;
}

/* Отступ для основного контента */
.site-main {
    padding-top: 40px;
}

.front-page .site-main {
    padding-top: 0;
}

/* Десктопная версия - меню видно всегда */
@media screen and (min-width: 769px) {
    .main-navigation ul {
        display: flex !important;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .site-header .header-container {
        padding: 10px 20px;
    }
    
    .site-title a {
        font-size: 20px;
    }
    
    .custom-logo {
        max-width: 50px;
        max-height: 50px;
    }
    
    .main-navigation a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .site-header .header-container {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .custom-logo {
        max-width: 40px;
        max-height: 40px;
    }
    
    .site-title a {
        font-size: 16px;
        white-space: normal;
    }
    
    .site-description {
        font-size: 9px;
    }
    
    /* Мобильное меню */
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .main-navigation {
        width: 100%;
        order: 4;
        justify-content: center;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        padding: 12px;
        display: block;
    }
    
    .site-main {
        padding-top: 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .site-title a {
        font-size: 13px;
    }
    
    .custom-logo {
        max-width: 35px;
        max-height: 35px;
    }
    
    .site-description {
        display: none; /* Скрываем описание на очень маленьких */
    }
}/*--------------------------------------------------------------
# About Page Styles
--------------------------------------------------------------*/

.about-page {
    padding-bottom: 60px;
}

/* Hero секция */
.about-hero,.gallery-header,.page-title{
    text-align: center;
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #f8faf8 0%, #eef3ea 100%);
    border-radius: 24px;
    margin-bottom: 50px;
}

.about-hero .page-title,.gallery-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #1a3a2a;
    position: relative;
    display: inline-block;
}

.about-hero .page-title:after,.gallery-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f49c1a;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a6a5a;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Основные блоки */
.about-block {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.block-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f49c1a20, #f49c1a08);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.block-content h2 {
    color: #1a3a2a;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.block-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Специализация - сетка */
.specialization-block {
    margin-bottom: 50px;
}

.specialization-block h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1a3a2a;
    position: relative;
}

.specialization-block h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f49c1a;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.spec-item {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e0e8e0;
    cursor: pointer;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #f49c1a;
}

.spec-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.spec-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a3a2a;
}

.spec-item p {
    font-size: 0.85rem;
    color: #718096;
}

/* Статистика */
.stats-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 100%);
    padding: 50px 30px;
    border-radius: 24px;
    margin-bottom: 50px;
    text-align: center;
}

.stat-item {
    color: #fff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #f49c1a;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Бренды */
.brands-block {
    margin-bottom: 50px;
    text-align: center;
}

.brands-block h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #1a3a2a;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.brand-item {
    background: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a3a2a;
    border: 1px solid #d0d9cc;
    transition: all 0.3s ease;
}

.brand-item:hover {
    background: #f49c1a;
    color: #1a3a2a;
    transform: scale(1.05);
    border-color: #f49c1a;
}

/* Преимущества */
.advantages-block {
    margin-bottom: 50px;
}

.advantages-block h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1a3a2a;
    position: relative;
}

.advantages-block h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f49c1a;
}

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

.advantage-item {
    background: #fff;
    padding: 25px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a3a2a;
}

.advantage-item p {
    font-size: 0.85rem;
    color: #718096;
}

/* Заключительный блок */
.conclusion-block {
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 100%);
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    margin-top: 20px;
}

.conclusion-content p {
    color: #e0e8e0;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.conclusion-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f49c1a;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #f49c1a;
    color: #1a3a2a;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #fff;
    color: #1a3a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Адаптив */
@media (max-width: 768px) {
    .about-hero .page-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-block {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .block-icon {
        margin: 0 auto;
    }
    
    .block-content h2 {
        font-size: 1.4rem;
    }
    
    .specialization-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-block {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .conclusion-block {
        padding: 30px 20px;
    }
    
    .conclusion-message {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-block {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        gap: 10px;
    }
    
    .brand-item {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
/*--------------------------------------------------------------
# Единый контейнер для ВСЕХ страниц
--------------------------------------------------------------*/

/* Ограничиваем ширину основного контента */
.site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* На главной странице убираем отступ сверху */
.front-page .site-main {
    padding-top: 0;
}

/* Для страницы с товарами */
.woocommerce {
    max-width: 100%;
    margin: 0;
    padding: 0;
}



/* Адаптив сетки */
@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products {
        grid-template-columns: 1fr;
    }
    
    .site-main {
        padding: 20px 15px 40px;
    }
}

/* Карточка товара */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8eee5;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #f49c1a;
}

/* Изображение */
.product-image {
    aspect-ratio: 1 / 1;
    background: #f5f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Информация */
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Цена */
.product-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f49c1a;
    margin: 10px 0;
}

/* Кнопка */
.add-to-cart-btn {
    background: #1a3a2a;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 40px;
    margin-top: auto;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #f49c1a;
    color: #1a3a2a;
}

.catalog-title {
    display: none;
}
.woocommerce-shop .woocommerce-breadcrumb {
    display: none;
}
/*--------------------------------------------------------------
# News Page Styles
--------------------------------------------------------------*/

/* Hero секция */
.news-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8faf8 0%, #eef3ea 100%);
    border-radius: 24px;
    margin-bottom: 40px;
}

.news-hero .page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a3a2a;
    position: relative;
    display: inline-block;
}

.news-hero .page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f49c1a;
    border-radius: 2px;
}

.news-subtitle {
    font-size: 1.1rem;
    color: #4a6a5a;
    margin-top: 20px;
}

/* Фильтр категорий */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: #1a3a2a;
    margin-right: 10px;
}

.filter-link {
    padding: 6px 16px;
    border-radius: 20px;
    background: #f5f7f5;
    color: #4a6a5a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.filter-link:hover {
    background: #f49c1a;
    color: #1a3a2a;
}

.filter-link.active {
    background: #1a3a2a;
    color: #fff;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Карточка новости */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e8eee5;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #f49c1a;
}

/* Изображение */
.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f7f5;
}

.news-image a {
    display: block;
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f49c1a;
    color: #1a3a2a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Контент новости */
.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #6b7a66;
    margin-bottom: 12px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.2rem;
    margin: 0 0 12px;
    line-height: 1.4;
}

.news-title a {
    color: #1a3a2a;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #f49c1a;
}

.news-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e6b3b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.news-read-more .arrow {
    transition: transform 0.3s ease;
}

.news-read-more:hover {
    color: #f49c1a;
}

.news-read-more:hover .arrow {
    transform: translateX(5px);
}

/* Пагинация */
.news-pagination {
    text-align: center;
    margin-top: 20px;
}

.news-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-pagination ul li {
    display: inline-block;
}

.news-pagination ul li a,
.news-pagination ul li span {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a3a2a;
    transition: all 0.3s;
}

.news-pagination ul li .current {
    background: #f49c1a;
    border-color: #f49c1a;
    color: #1a3a2a;
}

.news-pagination ul li a:hover {
    background: #f49c1a;
    border-color: #f49c1a;
    color: #1a3a2a;
}

/* Сообщение если новостей нет */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.no-news p {
    color: #6b7a66;
    font-size: 1.2rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-hero .page-title {
        font-size: 1.8rem;
    }
    
    .news-subtitle {
        font-size: 0.95rem;
    }
    
    .news-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-filter {
        gap: 8px;
        padding: 12px 15px;
    }
    
    .filter-link {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 30px 15px;
    }
    
    .news-hero .page-title {
        font-size: 1.5rem;
    }
    
    .news-content {
        padding: 15px;
    }
}
/*--------------------------------------------------------------
# Gallery Page Styles
--------------------------------------------------------------*/

.gallery-page {
    padding: 40px 0 60px;
}

/* Hero секция */
.gallery-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8faf8 0%, #eef3ea 100%);
    border-radius: 24px;
    margin-bottom: 40px;
}

.gallery-hero .page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a3a2a;
    position: relative;
    display: inline-block;
}

.gallery-hero .page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f49c1a;
    border-radius: 2px;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #4a6a5a;
    margin-top: 20px;
}

/* Фильтр */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 24px;
    background: #f5f7f5;
    border: 1px solid #e0e8e0;
    border-radius: 30px;
    color: #4a6a5a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #f49c1a;
    color: #1a3a2a;
    border-color: #f49c1a;
}

.filter-btn.active {
    background: #1a3a2a;
    color: #fff;
    border-color: #1a3a2a;
}

/* Сетка галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Элемент галереи */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    background: #f5f7f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Оверлей */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 42, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    background: #f49c1a;
    color: #1a3a2a;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.gallery-zoom:hover {
    background: #fff;
    transform: scale(1.05);
}

.zoom-icon {
    font-size: 1.2rem;
}

.gallery-caption {
    color: #fff;
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
    opacity: 0.8;
}

/* Сообщение если нет изображений */
.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
}

.no-images p {
    color: #6b7a66;
    font-size: 1.1rem;
}

.no-images code {
    background: #f5f7f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Кнопка загрузить ещё */
.gallery-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #1a3a2a;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #f49c1a;
    color: #1a3a2a;
    transform: translateY(-2px);
}

/* Модальное окно */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

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

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: #f49c1a;
    transform: rotate(90deg);
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

#modal-caption {
    color: #fff;
    font-size: 1rem;
    margin-top: 20px;
    text-align: center;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
    background: #f49c1a;
    color: #1a3a2a;
}

/* Анимация появления при загрузке */
.gallery-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-hero .page-title {
        font-size: 1.8rem;
    }
    
    .gallery-subtitle {
        font-size: 0.95rem;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .modal-close {
        top: 20px;
        right: 25px;
        font-size: 2rem;
    }
    
    .modal-prev,
    .modal-next {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-hero {
        padding: 30px 15px;
    }
    
    .gallery-hero .page-title {
        font-size: 1.4rem;
    }
    
    .gallery-zoom {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .gallery-caption {
        font-size: 0.7rem;
    }
}
/* Скрываем стили ошибки WordPress на всех страницах */
body:not(.error404) {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Видео на всю ширину */
.video-container {
    max-width: 100%;
}

.video-container video {
    width: 100% !important;
    height: auto !important;
}

/* Для шорткода video */
.wp-video {
    max-width: 100% !important;
    width: 100% !important;
}

.wp-video video {
    width: 100% !important;
    height: auto !important;
}
/* Скрываем элементы управления видео */
.wp-video .mejs-controls {
    display: none !important;
}

/* Или скрываем всё сразу */
.wp-video .mejs-container {
    background: transparent !important;
}

/* Если хотите оставить только кнопку паузы/воспроизведения */
.wp-video .mejs-controls .mejs-time {
    display: none !important;
}

.wp-video .mejs-controls .mejs-time-rail {
    display: none !important;
}

.wp-video .mejs-controls .mejs-fullscreen-button {
    display: none !important;
}

.wp-video .mejs-controls .mejs-volume-button {
    display: none !important;
}

.posted-on {
  display: none;
}
.entry-meta {
  display: none;
}

#comments {
  display: none;
}
.cat-links {
    display: none;
}
#dgwt-wcas-search-input-1 {
    text-align: center;
}
/* ПРОСТЫЕ СТИЛИ ДЛЯ ТОВАРОВ */
.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    padding: 0 !important;
}

.products li.product {
    width: calc(33.333% - 17px) !important;
    list-style: none !important;
    margin: 0 !important;
}

/* Карточка товара */
.woo-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eee5;
    height: 100%;
}

.woo-product-image {
    aspect-ratio: 1/1;
    background: #f8faf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.woo-product-info {
    padding: 15px;
}

.woo-product-info .product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.woo-product-info .product-title a {
    color: #1a3a2a;
    text-decoration: none;
}

.woo-product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #f49c1a;
    margin-bottom: 12px;
}

.woo-product-info .add-to-cart-btn,
.woo-product-info .add_to_cart_button {
    background: #1a3a2a;
    color: #fff;
    padding: 10px;
    border-radius: 30px;
    text-align: center;
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.woo-product-info .add-to-cart-btn:hover,
.woo-product-info .add_to_cart_button:hover {
    background: #f49c1a;
    color: #1a3a2a;
}

/* Режим списка */
.products.list-view {
    flex-direction: column !important;
}

.products.list-view li.product {
    width: 100% !important;
}

.products.list-view .woo-product-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    padding: 15px !important;
}

.products.list-view .woo-product-image {
    width: 150px !important;
    height: 150px !important;
    flex-shrink: 0 !important;
}

.products.list-view .woo-product-info {
    flex: 1 !important;
}

/* Адаптив */
@media (max-width: 768px) {
    .products li.product {
        width: calc(50% - 13px) !important;
    }
    
    .products.list-view .woo-product-card {
        flex-direction: column !important;
    }
    
    .products.list-view .woo-product-image {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .products li.product {
        width: 100% !important;
    }
}

/* Кнопки переключения */
.gridlist-toggle {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    justify-content: flex-end !important;
}

.gridlist-toggle button {
    padding: 8px 20px !important;
    background: #f5f7f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #4a6a5a !important;
}

.gridlist-toggle button.active {
    background: #1a3a2a !important;
    color: #fff !important;
    border-color: #1a3a2a !important;
}

.gridlist-toggle button:hover {
    background: #f49c1a !important;
    border-color: #f49c1a !important;
}
