/* ============================================ */
/* ШАПКА САЙТА                                  */
/* ============================================ */
#masthead {
    background: #fff !important;
    border-bottom: 2px solid #e5e7eb !important;
    display: block !important;
    padding: 0 !important;
}

#masthead *,
#masthead *::before,
#masthead *::after {
    box-sizing: border-box;
}

#main-header {
    max-width: 1290px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.site-header-inner-wrap {
    display: flex !important;
    flex-direction: column !important;
}

.site-header-upper-wrap {
    border-bottom: 1px solid #f3f4f6 !important;
}

.site-main-header-wrap {
    width: 100% !important;
}

.site-main-header-inner-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 0 !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
}

/* Логотип */
.site-header-main-section-left {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.site-branding,
.site-branding a {
    display: flex !important;
    align-items: center !important;
}

.site-branding img {
    display: block !important;
    width: 150px !important;
    height: auto !important;
}

/* Центр */
.site-header-main-section-center {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

#primary-menu,
.primary-menu-container .menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

#primary-menu li,
.primary-menu-container .menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#primary-menu li a,
.primary-menu-container .menu li a {
    display: block !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-decoration: none !important;
    border-radius: 0.375rem !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}

#primary-menu li a:hover,
.primary-menu-container .menu li a:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

/* Правая часть */
.site-header-main-section-right {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Корзина */
.header-cart-wrap,
.header-cart-inner-wrap {
    display: flex !important;
    align-items: center !important;
}

#cart-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cart-menu li {
    list-style: none !important;
}

.header-cart-button {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}

.header-cart-button svg {
    width: 22px !important;
    height: 22px !important;
}

.header-cart-total {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
}

/* Поиск */
.search-toggle-open-container {
    display: flex !important;
    align-items: center !important;
}

.search-toggle-open {
    display: flex !important;
    align-items: center !important;
    padding: 8px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #1f2937 !important;
}

.search-toggle-open svg {
    width: 20px !important;
    height: 20px !important;
}

/* ============================================ */
/* НИЖНЕЕ МЕНЮ — ВО ВСЮ ШИРИНУ                  */
/* ============================================ */
.site-bottom-header-wrap {
    background: #f9fafb !important;
    border-top: 1px solid #f3f4f6 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.site-bottom-header-wrap .site-header-row-container-inner,
.site-bottom-header-wrap .site-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.site-bottom-header-wrap nav {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.secondary-menu-container,
.site-bottom-header-wrap .header-menu-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

#secondary-menu,
.secondary-menu-container .menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    max-width: 1290px !important;
    width: 100% !important;
}

#secondary-menu li,
.secondary-menu-container .menu li {
    list-style: none !important;
    margin: 0 !important;
}

#secondary-menu li a,
.secondary-menu-container .menu li a {
    display: block !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

#secondary-menu li a:hover,
.secondary-menu-container .menu li a:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

/* ============================================ */
/* МОБИЛЬНАЯ ШАПКА                              */
/* ============================================ */
#mobile-header {
    display: none !important;
}

/* ============================================ */
/* КОНТЕЙНЕР                                    */
/* ============================================ */
.site-container {
    max-width: 1290px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
}

/* ============================================ */
/* ГЛАВНАЯ СТРАНИЦА                             */
/* ============================================ */

/* Слайдер */
.home-slider {
    border-radius: 0 0 0.375rem 0.375rem;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-bottom: 40px;
    overflow: hidden;
}

.home-slider-desktop {
    display: block;
}

.home-slider-mobile {
    display: none;
}

.home-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.home-slide {
    min-width: 100%;
    position: relative;
    background: #1f2937;
    background-size: cover;
    background-position: center;
}

.home-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.home-slide a {
    position: relative;
    z-index: 2;
    display: block;
    text-decoration: none;
}

.home-slide-content {
    max-width: 1290px;
    margin: 0 auto;
    padding: 80px 150px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.home-slide-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

.home-slide-content p {
    font-size: 20px;
    margin: 0 0 30px;
    color: #d1d5db;
    line-height: 1.4;
}

.home-slide-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 14px 32px;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
    width: fit-content;
}

.home-slide-btn:hover {
    background: #1d4ed8;
}

/* Навигация слайдера */
.home-slider-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1290px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.home-slider-prev,
.home-slider-next {
    position: static;
    transform: none;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.home-slider-prev:hover,
.home-slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Точки */
.home-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.home-slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.home-slider-dots span.active {
    background: #fff;
}

/* Заголовок каталога */
.home-catalog-title {
    text-align: center;
    margin-bottom: 30px;
}

.home-catalog-title h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

/* Сетка категорий */
.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.home-cat-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.home-cat-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.home-cat-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 20px 20px 0 20px !important;
}

.home-cat-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.375rem;
    margin-bottom: 0;
}

.home-cat-item h4 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.home-cat-item span {
    display: none;
}

/* Карта */
.home-map {
    margin-bottom: 40px;
}

.home-map h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

iframe {
    border-radius: 0.375rem 0.375rem 0.375rem 0.375rem;
}

/* ============================================ */
/* ФУТЕР                                        */
/* ============================================ */
.site-footer {
    background: #1f2937;
    color: #d1d5db;
    margin-top: 0px;
}

.site-top-footer-wrap {
    padding: 50px 0 30px;
}

.site-top-footer-inner-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.site-footer-section {
    flex: 1 1 180px;
    min-width: 200px;
}

.footer-widget-area h2 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-widget-area p,
.footer-widget-area a {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.footer-widget-area a:hover {
    color: #fff;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: 6px;
}

.footer-widget-area ul li a {
    text-decoration: none;
}

.footer-social-inner-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.social-button:hover {
    color: #fff;
}

.social-button svg {
    width: 20px;
    height: 20px;
    fill: #9ca3af;
}

.social-button:hover svg {
    fill: #fff;
}

.site-bottom-footer-wrap {
    border-top: 1px solid #374151;
    padding: 20px 0;
    text-align: center;
}

.site-bottom-footer-wrap p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

/* ============================================ */
/* АДАПТИВ (планшет)                            */
/* ============================================ */
@media (max-width: 1024px) {
    .home-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-slide-content {
        padding: 50px 40px;
        min-height: 300px;
    }

    .home-slide-content h2 {
        font-size: 32px;
    }
}

/* ============================================ */
/* АДАПТИВ (мобильный)                          */
/* ============================================ */
@media (max-width: 768px) {
    #main-header {
        display: none !important;
    }

    #mobile-header {
        display: block !important;
    }

    #mobile-header .site-main-header-inner-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 0 !important;
    }

    #mobile-header .site-branding img {
        width: 120px !important;
        height: auto !important;
    }

    .mobile-toggle-open {
        display: flex !important;
        align-items: center !important;
        padding: 10px !important;
        background: #f3f4f6 !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    .home-slider-desktop {
        display: none;
    }

    .home-slider-mobile {
        display: block;
    }

    .home-slide-content {
        padding: 50px 20px !important;
        min-height: 400px !important;
        text-align: center !important;
    }

    .home-slide-content h2 {
        font-size: 26px !important;
    }

    .home-slide-content p {
        font-size: 15px !important;
    }

    .home-slide-btn {
        margin: 0 auto !important;
        padding: 10px 24px !important;
        font-size: 14px !important;
    }

    .home-slider-nav {
        padding: 0 10px;
    }

    .home-slider-prev,
    .home-slider-next {
        font-size: 16px !important;
        padding: 8px 12px !important;
    }

    .home-categories {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-cat-item a {
        padding: 0 !important;
    }

    .home-cat-item h4 {
        font-size: 14px !important;
        padding: 12px 10px !important;
    }

    .site-top-footer-inner-wrap {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .site-footer-section {
        min-width: 100% !important;
    }
}
/* ============================================ */
/* ВЫЕЗЖАЮЩЕЕ МЕНЮ                              */
/* ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-close {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
}

.mobile-menu-close svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-body {
    padding: 20px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #f9fafb;
}

.mobile-menu-list li a:hover {
    color: #2563eb;
}

.mobile-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 0;
}

.mobile-menu-cats li a {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.product-card img,
.product img,
.w-full.h-60,
img.wp-post-image {
    border-radius: 0.375rem !important;
    object-fit: contain !important;
}