/* ====================================================
   Green Land — New Header + Hero Banner Styles
   ==================================================== */

/* ====== GLOBAL FONTS ====== */
body,
input,
textarea,
select,
button {
    font-family: 'Lato', Arial, Helvetica, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
}

/* ====== OVERRIDE OLD SITE CONTAINERS (only when hero is present) ====== */
body:has(.hero) #content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
}

body:has(.hero) #content > .clearfix {
    display: none;
}

body:has(.hero) .wrapper-green {
    overflow: visible !important;
}

/* Remove border-radius from category grid images */
.category-grid__img-wrap,
.category-grid__img-wrap img {
    border-radius: 0 !important;
}

/* Constrain content sections AFTER hero */
body:has(.hero) #content > *:not(.hero):not(.container-new):not(.clearfix) {
    box-sizing: border-box;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* ====== NEW HEADER ====== */
.header-new {
    background: #fff;
    padding: 0 50px;
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-new__inner {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.header-new__wrapper {
    position: relative;
}

/* Logo */
.header-new__logo {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.header-new__logo-img {
    height: 35px;
    width: auto;
    display: block;
}

/* Mini logo (mobile only) */
.header-new__mini-logo {
    display: none;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-new__mini-logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* Search */
.header-new__search {
    flex: 0 1 280px;
    position: relative;
}

.header-new__search input[type="text"],
.header-new__search-input {
    width: 100%;
    padding: 9px 40px 9px 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.header-new__search input[type="text"]::placeholder,
.header-new__search-input::placeholder {
    color: #aaa;
}

.header-new__search input[type="text"]:focus,
.header-new__search-input:focus {
    border-color: #65BB7F;
}

.header-new__search-btn,
.header-new__search input[type="submit"],
.header-new__search button[type="submit"],
.header-new__search .search-btn,
.header-new__search .thal-searchform__btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.header-new__search-btn svg,
.header-new__search button svg,
.header-new__search .search-btn svg,
.header-new__search .thal-searchform__btn svg {
    width: 16px;
    height: 16px;
    stroke: #888;
}

/* Ensure search wrapper is positioned for absolute children */
.header-new__search,
.header-new__search form {
    position: relative;
}

/* Contacts row */
.header-new__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-new__contact-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.header-new__contact-item:hover {
    color: #65BB7F;
}

.header-new__contact-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    line-height: 1.3;
}

.header-new__contact-value {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.header-new__telegram {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-new__telegram:hover {
    color: #65BB7F;
}

.header-new__telegram svg {
    width: 18px;
    height: 18px;
}

/* Cart */
.header-new__cart {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    flex-shrink: 0;
    transition: color 0.2s;
}

.header-new__cart:hover {
    color: #65BB7F;
}

.header-new__cart-icon {
    position: relative;
}

.header-new__cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.header-new__cart-info {
    display: flex;
    flex-direction: column;
}

.header-new__cart-label {
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
}

.header-new__cart-total {
    font-size: 14px;
    font-weight: 600;
}

/* Hide old Bitrix basket icons/images inside new cart */
.header-new__cart-info img,
.header-new__cart-info svg,
.header-new__cart-info .fa,
.header-new__cart-info i[class*="fa"],
.header-new__cart-info [class*="icon"] {
    display: none !important;
}

/* Restyle Bitrix basket component text inside new cart */
.header-new__cart-info a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    line-height: 1.3;
}

.header-new__cart-info span:first-of-type,
.header-new__cart-info .bx_cart_num,
.header-new__cart-info [id*="basket"] span:first-child {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

.header-new__cart-info span + span,
.header-new__cart-info .bx_cart_summ,
.header-new__cart-info [id*="basket"] span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Hide old mobile burger from .navline on inner pages */
.navline .mobileMenuBtn {
    display: none !important;
}

/* Raise z-index for old navline dropdown menus */
.navline {
    position: relative;
    z-index: 100;
}

/* ====== STICKY NAV BAR (appears on scroll) ====== */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav__inner {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 24px;
    box-sizing: border-box;
}

.sticky-nav__logo {
    flex-shrink: 0;
}

.sticky-nav__logo-img {
    height: 28px;
    display: block;
}

.sticky-nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.sticky-nav__item {
    position: relative;
}

.sticky-nav__link {
    text-decoration: none;
    color: #333;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 20px 14px;
    display: block;
}

.sticky-nav__link:hover {
    color: #65BB7F;
}

/* Dropdown submenus */
.sticky-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 610;
}

.sticky-nav__item:hover .sticky-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sticky-nav__dropdown a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.sticky-nav__dropdown a:hover {
    background: #f5f5f5;
    color: #65BB7F;
}

.sticky-nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sticky-nav__search {
    position: relative;
    flex: 1 1 360px;
    max-width: 500px;
}

.sticky-nav__search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sticky-nav__search-input {
    width: 30vw !important;
    height: 36px !important;
    display: inline-block !important;
    padding: 9px 40px 9px 16px;
    border: 1px solid #65BB7F;
    border-radius: 0;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.sticky-nav__search-input:focus {
    border-color: #4a9e65;
    box-shadow: none !important;
    outline: none !important;
}

.sticky-nav__search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.sticky-nav__search-submit svg {
    width: 18px;
    height: 18px;
    stroke: #65BB7F;
}

.sticky-nav__search-submit:hover svg {
    stroke: #4a9e65;
}

.sticky-nav__cart a {
    display: flex;
    align-items: center;
    color: #333;
    transition: color 0.2s;
}

.sticky-nav__cart a:hover {
    color: #65BB7F;
}

.sticky-nav__cart svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.burger-new--sticky {
    display: none;
}

@media (max-width: 768px) {
    .sticky-nav__inner {
        padding: 0 16px;
        height: 50px;
        gap: 12px;
        justify-content: space-between;
    }

    .sticky-nav__logo {
        order: 0;
        flex: 1;
        text-align: center;
    }

    .sticky-nav__logo-img {
        height: 22px;
        margin: 0 auto;
    }

    .sticky-nav__menu {
        display: none;
    }

    .sticky-nav__right {
        order: 1;
    }

    .burger-new--sticky {
        display: flex;
        order: -1;
    }
}

/* ====== SEPARATOR LINE ====== */
.separator-new {
    border: none;
    border-top: 2px solid #65BB7F;
    margin: 0 0 20px 0;
    padding: 0;
}

.container-new--after-header {
    margin-top: 40px;
}

/* ====== CONTAINER ====== */
.container-new {
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

/* ====== BURGER MENU ====== */
.burger-new {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.burger-new span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.burger-new.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-new.active span:nth-child(2) {
    opacity: 0;
}
.burger-new.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.mobile-overlay.open {
    display: block;
}

/* Mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu__back {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
}

.mobile-menu__back svg {
    width: 24px;
    height: 24px;
    stroke: #555;
}

.mobile-menu__levels {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mobile-menu__level {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    background: #fff;
}

.mobile-menu__level--main {
    transform: translateX(0);
}

.mobile-menu__level--sub {
    transform: translateX(100%);
}

.mobile-menu__level--main.shifted {
    transform: translateX(-100%);
}

.mobile-menu__level--sub.active {
    transform: translateX(0);
}

.mobile-menu__list {
    list-style: none;
}

.mobile-menu__item {
    border-bottom: 1px solid #eee;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-decoration: none;
    color: #333;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.mobile-menu__link:hover {
    color: #65BB7F;
}

.mobile-menu__chevron {
    width: 20px;
    height: 20px;
    stroke: #aaa;
    flex-shrink: 0;
}

.mobile-menu__sub-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    width: 100%;
}

.mobile-menu__sub-back svg {
    width: 18px;
    height: 18px;
    stroke: #555;
}

.mobile-menu__sub-list {
    list-style: none;
}

.mobile-menu__sub-list a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f3f3f3;
}

.mobile-menu__sub-list a:hover {
    color: #65BB7F;
}

.mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu__footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.mobile-menu__footer-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-menu__footer-label {
    font-size: 11px;
    color: #aaa;
}

.mobile-menu__socials {
    display: flex;
    gap: 14px;
    padding-top: 8px;
}

.mobile-menu__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu__socials a:hover {
    background: #65BB7F;
    color: #fff;
}

.mobile-menu__socials svg {
    width: 18px;
    height: 18px;
}

/* ====== HERO SECTION ====== */
.hero {
    display: flex;
    height: 580px;
    margin: 30px 0;
}

/* --- Left: Category Links --- */
.hero__nav {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    border-right: 2px solid #65BB7F;
}

.hero__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
    cursor: default;
    pointer-events: none;
}

.hero__nav-link--direct {
    cursor: pointer;
    pointer-events: auto;
}

.hero__nav-link .arrow {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hero__nav-item {
    position: relative;
    cursor: pointer;
}

.hero__nav-item:hover .hero__nav-link {
    color: #65BB7F;
}

.hero__nav-item:hover .hero__nav-link .arrow {
    transform: translate(3px, -3px);
}

/* --- Submenu Dropdown --- */
.hero__submenu {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    transform: translateX(-6px);
    width: 280px;
    max-height: 580px;
    overflow-y: auto;
    background: rgba(244, 247, 240, 0.97);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 0;
    padding: 22px 26px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

.hero__submenu::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 14px;
    height: 100%;
}

.hero__nav-item:hover .hero__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hero__nav-item:nth-child(1) .hero__submenu { left: calc(70% + 10px); }
.hero__nav-item:nth-child(2) .hero__submenu { left: calc(55% + 10px); }
.hero__nav-item:nth-child(3) .hero__submenu { left: calc(80% + 10px); }
.hero__nav-item:nth-child(4) .hero__submenu { left: calc(65% + 10px); }

.hero__submenu li {
    margin-bottom: 4px;
}

.hero__submenu li:last-child {
    margin-bottom: 0;
}

.hero__submenu a {
    text-decoration: none;
    color: #444;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 6px 10px;
    border-radius: 0;
    transition: all 0.15s ease;
}

.hero__submenu a:hover {
    color: #65BB7F;
    background: rgba(94, 104, 33, 0.08);
    padding-left: 14px;
}

.hero__submenu-title {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: #65BB7F;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: none;
    opacity: 0.7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
}

/* --- Right: Hero Slider --- */
.hero__slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-left: 40px;
}

.hero__slide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform;
}

.hero__slide.active {
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.hero__slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.hero__slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform;
}

.hero__slide.prev .hero__slide-bg {
    transform: translateX(30%);
}

.hero__slide.entering .hero__slide-bg {
    transform: translateX(-30%);
}

.hero__slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.40) 40%, rgba(0,0,0,0.05) 100%);
}

.hero__slide-title,
.hero__slide-text,
.hero__slide-btn {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 1s cubic-bezier(0, 0.87, 0.58, 1), opacity 0.5s ease;
}

.hero__slide.active .hero__slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero__slide.active .hero__slide-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero__slide.active .hero__slide-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.hero__slide-title {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero__slide-text {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
    margin-bottom: 20px;
}

.hero__slide-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #65BB7F;
    color: #fff;
    text-decoration: none;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
    align-self: flex-start;
}

.hero__slide-btn:hover {
    background: #52a86b;
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
}

.hero__dot.active {
    background: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .hero__nav {
        flex: 0 0 30%;
        padding: 0 30px;
    }

    .hero__nav-link {
        font-size: 26px;
    }

    .hero__slide-content {
        padding: 40px 40px;
    }
}

@media (max-width: 1100px) {
    .header-new__contacts {
        gap: 16px;
    }
    .header-new__search {
        flex: 0 1 200px;
    }
}

@media (max-width: 900px) {
    .header-new__contact-item,
    .header-new__telegram {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-new {
        padding: 0 16px;
    }

    .header-new__inner {
        height: 56px;
        gap: 12px;
    }

    .header-new__logo {
        display: none;
    }

    .header-new__mini-logo {
        display: flex;
        order: 2;
    }

    .header-new__search {
        flex: 1;
        order: 0;
    }

    #search_div_frame {
        left: -30vw !important;
        width: 260% !important;
        box-sizing: border-box !important;
    }

    .header-new__contacts {
        display: none;
    }

    .header-new__cart-info {
        display: none;
    }

    .burger-new {
        display: flex;
        order: -1;
    }

    .container-new {
        padding: 0 20px;
    }

    .container-new--after-header {
        margin-top: 0;
    }

    .hero {
        flex-direction: column;
        height: auto;
        margin: 0 0 20px 0;
    }

    .hero__nav {
        display: none;
    }

    .hero__slider {
        margin-left: 0;
        min-height: 75vh;
    }

    .hero__slide-content {
        padding: 30px;
    }

    .hero__slide-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero__slide-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero__slide-btn {
        font-size: 14px;
        padding: 10px 24px;
    }
}
