@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background: #f5f5f5;
}

body, p, a, h1, h2, h3 {
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1550px;
    min-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.header__wrapper {
    display: flex;
    flex-wrap: wrap;
}

.first__header {
    background: #007457;
    text-align: center;
}

.logo img {
    width: 250px;
    height: 120px;
    object-fit: contain;
}

.second__header {
    background: #fff;
    box-shadow: 0 2px 5px #ccc;
}

.second__header .header__wrapper {
    justify-content: space-between;
    align-items: center;
}

.main__banner {
    margin-top: 5px;
}

.main__banner img {
    width: 100%;
    max-width: 1920px;
    height: 100%;
    max-height: 800px;
    object-fit: cover;
}

.footer__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.header__theth {
    background: #007457;
}

.main-menu-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-menu-wrapper li {
    position: relative;
    padding: 15px 10px;
    list-style: none;
}

.main-menu-wrapper li:last-child {
    border-right: none;
}

.main-menu-wrapper ul.sub-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    min-width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 3;
}

.main-menu-wrapper li:hover > ul.sub-menu {
    display: block;
}

ul#menu-menu_main {
    display: flex;
    list-style: none;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0;
    margin: 0;
}

ul#menu-menu_main li a {
    text-decoration: none;
    color: #000;
}

ul#menu-menu_main li:hover {
    background: #fff;
}

ul#menu-menu_main li:hover a {
    color: #007457;
}

ul.sub-menu li a {
    color: #007457 !important;
}

ul.sub-menu li:hover a {
    color: #007457 !important;
    text-decoration: underline !important;
}

.main-menu-wrapper ul.sub-menu li {
    border-right: none !important;
}

ul#menu-menu_main > li.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

ul#menu-menu_main > li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #000;
    transition: transform 0.3s ease, color 0.3s ease;
}

ul#menu-menu_main > li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
    color: #007457;
}

ul#menu-menu_main ul.sub-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

ul#menu-menu_main ul.sub-menu li.menu-item-has-children > a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #007457;
    transition: color 0.3s ease;
}

ul#menu-menu_main ul.sub-menu li.menu-item-has-children:hover > a::after {
    color: #005a40;
}

/* Обновленные стили для категорий */
.category__prod {
    margin: 70px 0;
    background: #f5f5f5;
    padding: 30px 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.category-item {
    width: 100%;
    max-width: 350px;
    text-align: center;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-item img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: contain;
    padding: 15px;
}

.cat__title-home {
    background: linear-gradient(to bottom, #007457, #02e1a4);
    padding: 15px 10px;
    height: auto;
    min-height: 60px;
}

.category-item a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 10px;
}

.first__header span {
    color: #fff;
    padding: 5px;
    font-weight: 600;
}

.marquee-hover {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-hover span {
    display: inline-block;
    padding: 7px;
}

.header__contact-item {
    font-weight: 500;
}

.header__contact-label {
    font-weight: 700;
}

.header__contact {
    text-align: right;
}

.social {
    display: flex;
    gap: 10px;
}

.social-item img {
    width: 35px;
    height: 30px;
    object-fit: contain;
}

.header__contact-wrp {
    display: flex;
    align-items: center;
    gap: 25px;
}

.category__prod-title{
	width: 90%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}
.category__prod-title h1{
    font-weight: 500;
}

footer {
    background: #343a40;
    padding: 20px 0px;
}

.footer__contact-item {
    color: #007457;
    margin-bottom: 10px;
}

.contact__title {
    font-weight: 500;
    color: #939393;
}

.footer__btn p {
    color: #007457;
    padding: 10px 20px;
    border-radius: 0px 20px 0px 20px;
    background: #fff;
    font-weight: 600;
    font-size: 16px;
}

.footer__btn p:hover {
    border-radius: 20px 0px 20px 0px;
}
.copyright{
	color:#939393;
}

.soc-footer{
	margin: 20px 15px;
}
.category-container {
    margin-top: 50px;
}

.category-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tab {
    padding: 15px 15px;
    cursor: pointer;
    margin-right: 5px;
    /*border: 2px solid #007457;*/
    border-radius: 0px 20px 0 20px;
    width: 100%;
    max-width: 150px;
    font-weight: 500;
    color: #007457;
}

.category-tab.active {
    background: linear-gradient(to bottom, #007457, #02e1a4);
    margin-bottom: -1px;
    font-weight: 500;
    color: #fff;
}

.category-tab-pane {
    display: none;
    padding: 20px;
    border-top: none;
}

.category-tab-pane.active {
    display: block;
}

.category-post {
    margin-top: 30px;
    margin-bottom: 30px;
}

.category-post h3 {
    font-size: 28px;
    font-weight: 500;
}

/* Стили для details/summary с иконкой в конце строки */
details.category-post {
    margin-bottom: 1em;
    border: 1px solid #cecece;
    border-radius: 0px 20px 0 20px;
    padding: 10px;
}

details.category-post summary {
    list-style: none; /* Убираем стандартный маркер */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

/* Скрываем стандартный маркер */
details.category-post summary::-webkit-details-marker {
    display: none;
}

/* Иконка Font Awesome в конце строки */
details.category-post summary::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078"; /* Иконка стрелки вниз */
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

/* Иконка в открытом состоянии */
details.category-post[open] summary::after {
    content: "\f077"; /* Иконка стрелки вверх */
    /* Или можно использовать вращение: */
    /* transform: rotate(180deg); */
}

details.category-post summary h3 {
    margin: 0;
    flex-grow: 1;
}

details.category-post .post-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.post-content {
    margin-top: 10px;
}

.post-content p {
    padding-bottom: 10px;
}

.post-content img {
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
    display: block;
    border: 1px solid #007457;
    border-radius: 5px;
}

.category-header {
    position: relative;
    margin-top: 5px;
}

.category-image img {
    width: 100%;
    max-height: 300px;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.category-image {
    position: relative;
}

.category-image:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: 300px;
    background: #007457;
    opacity: 0.30;
    left: 0;
    top: 0;
}

.category__title {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.footer_h2 {
    color: #fff;
    padding-top: 10px;
    padding-bottom: 30px;
}

/* Добавляем эти стили в ваш существующий CSS */

/* Фиксированный header при прокрутке */
.second__header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Фиксированная навигация категорий ПОД header */
.category-tabs-nav.sticky {
    position: fixed;
    top: 124px; /* Высота header (подберите под ваш дизайн) */
    left: 0;
    right: 0;
    background: #f5f5f5;
    z-index: 999;
    padding: 10px 11%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: start;
       
}

/* Отступ для контента при фиксированных элементах */
body.sticky-header {
    padding-top: 120px; /* header + навигация (60px + 60px) */
}




/* Мобильные стили */
@media (max-width: 1279px) {
    .container {
        min-width: 100%;
        padding: 0 15px;
    }

    /* Шапка */
    .first__header, .second__header {
        padding: 10px 0;
    }

    .header__wrapper {
        flex-direction: column;
    }

    .logo img {
        width: 180px;
        height: auto;
    }

    .header__contact-wrp {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .header__contact {
        text-align: center;
    }

    .social {
        justify-content: center;
    }

    /* Главное меню */
    .main-menu-wrapper {
        flex-direction: column;
        width: 100%;
    }

    ul#menu-menu_main {
        flex-direction: column;
    }

    ul#menu-menu_main li {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .main-menu-wrapper ul.sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 15px;
    }

    /* Баннер */
    .main__banner img {
        max-height: 300px;
    }

    /* Категории товаров */
    .category-list {
        gap: 15px;
    }

    .category-item {
        max-width: 100%;
    }

    .category-item img {
        height: 180px;
    }

    .category__prod-title {
        width: 100%;
        margin-bottom: 30px;
    }

    /* Вкладки категорий */
    .category-tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-tab {
        max-width: 120px;
        padding: 10px 5px;
        font-size: 14px;
        margin-right: 3px;
        margin-bottom: 5px;
    }

    /* Подвал */
    .footer__wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer__btn {
        margin-top: 15px;
    }

    .soc-footer {
        margin: 15px 0;
        justify-content: center;
    }

    /* Заголовок категории */
    .category-image img, .category-image:after {
        max-height: 200px;
    }

    .category__title h1 {
        font-size: 24px;
    }

    /* Липкие элементы */
    .second__header.sticky {
        position: relative;
    }

    .category-tabs-nav.sticky {
        position: relative;
        top: auto;
        padding: 10px 15px;
    }

    body.sticky-header {
        padding-top: 0;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .logo img {
        width: 150px;
    }

    .main__banner img {
        max-height: 200px;
    }

    .category-tab {
        max-width: 100px;
        font-size: 12px;
        padding: 8px 3px;
    }

    .category__title h1 {
        font-size: 20px;
    }

    .cat__title-home {
        min-height: auto;
        padding: 10px;
    }

    .category-item a {
        font-size: 14px;
    }
}