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

html {
    margin-top: 0px !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif !important;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

html * {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.contentInner {
    max-width: 1240px;
    width: 100%;
}

@media screen and (max-width: 1536px) {
    .contentInner {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1440px) {
    .contentInner {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1240px) {
    .contentInner {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media screen and (max-width: 768px) {
    .contentInner {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 390px) {
    .contentInner {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

select.custom-select-reset {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}
select.custom-select-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

select.custom-select-reset:focus {
    outline: none;
    box-shadow: none;
}

select.custom-select-reset::-ms-expand {
    display: none;
}

/* Custom dropdown wrapper list */
.custom-select-wrapper {
    position: relative;
}
.selected-display {
    border-radius: 10px;
    background: #F9F9F9;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}
.custom-select-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    z-index: 2000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.custom-select-list.open-up {
    bottom: 100%;
    top: auto;
}
.custom-select-list .item {
    padding: 10px 12px;
    cursor: pointer;
}
.custom-select-list .item:hover {
    background: #f3f4f6;
}

.validation-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 6px;
}


.transition-opacity {
    transition: opacity 0.5s;
}

/* Desktop Menu Styles */
.desktop-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: start;
}

.desktop-menu > ul > li {
    position: relative;
}

.desktop-menu .menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    color: #1A1A1A;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.desktop-menu .menu-link .menu-arrow {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.desktop-menu .menu-link .menu-arrow svg path {
    transition: fill 0.3s ease;
}

.desktop-menu > ul > li:hover > .menu-link,
.desktop-menu > ul > li:hover > .menu-link .menu-text {
    color: #337430;
}

.desktop-menu > ul > li:hover > .menu-link .menu-arrow svg path {
    fill: #337430;
}

/* Submenu Level 1 */
.desktop-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    min-height: 255px;
    max-height: auto;
    background: white;
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    overflow: visible;
}

.desktop-menu > ul > li:hover > .sub-menu {
    display: flex;
}

.desktop-menu .sub-menu li {
    width: 100%;
    /* keep li static so nested absolute submenu positions relative to the parent .sub-menu (column top) */
    position: static;
}

.desktop-menu .sub-menu .menu-link {
    width: 100%;
    justify-content: space-between;
    padding: 8px;
    text-transform: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.desktop-menu .sub-menu .menu-link:hover {
    background: #FBF8F5;
    color: #337430;
}

.desktop-menu .sub-menu .menu-link:hover .menu-arrow svg path {
    fill: #337430;
}

/* Horizontal submenu (columns) */
.desktop-menu .sub-menu .sub-menu {
    position: absolute;
    left: calc(100% - 12px);
    top: 0;
    z-index: 1002;
    display: none;
    padding-left: 24px;
}

.desktop-menu .sub-menu .sub-menu::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 90%;
    background: #B3B3B3;
    z-index: 999;
}

.desktop-menu .sub-menu li:hover > .sub-menu,
.desktop-menu .sub-menu li > .sub-menu:hover {
    display: flex;
}

.desktop-menu .sub-menu li {
    position: static;
}


/* Mobile Menu Styles */
.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sp_menu{
    background: white;
    height: 100vh;
    overflow-y: auto;
}

#sp_menu > li:not(:last-child) {
    border-bottom: 1px solid #B3B3B3;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu .menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-menu .menu-link-mobile {
    flex: 1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400 !important;
    color: #000000 !important;
    transition: color 0.3s ease;
    padding: 16px 0;
}

.mobile-menu .submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu .toggle-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.mobile-menu .toggle-icon.rotated {
    transform: rotate(-90deg);
}

.mobile-menu .toggle-icon svg path {
    transition: fill 0.3s ease;
}

.mobile-menu .sub-menu-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-left: 12px;
    margin-top: 12px;
    position: relative;
}

.mobile-menu .sub-menu-mobile.active {
    display: flex;
}

/* Submenu line separator for mobile */
.mobile-menu .sub-menu-mobile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 95%;
    background: #EBDBCC;
}

.mobile-menu .sub-menu-mobile .menu-link-mobile {
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
}

/* Active state for mobile menu items */
.mobile-menu .has-submenu-mobile.active > .menu-item-wrapper .menu-link-mobile,
.mobile-menu .has-submenu-mobile.active > .menu-item-wrapper .submenu-toggle {
    color: #337430 !important;
}

.mobile-menu .has-submenu-mobile.active > .menu-item-wrapper {
    padding: 8px 12px;
    margin: 0 -12px;
}

.mobile-menu .has-submenu-mobile.active > .menu-item-wrapper .toggle-icon svg path {
    fill: #337430 !important;
}

/* Persistent current state for mobile menu items */
.mobile-menu #sp_menu .current-menu-item > .menu-item-wrapper .menu-link-mobile,
.mobile-menu #sp_menu .current-menu-ancestor > .menu-item-wrapper .menu-link-mobile {
    color: #337430 !important;
}
.mobile-menu #sp_menu .current-menu-item > .menu-item-wrapper .toggle-icon svg path,
.mobile-menu #sp_menu .current-menu-ancestor > .menu-item-wrapper .toggle-icon svg path {
    fill: #337430 !important;
}

.mobile-menu .has-submenu-mobile.active > .menu-item-wrapper .toggle-icon.arrow-down {
    transform: rotate(180deg);
}

.mobile-menu .has-submenu-mobile.active > .menu-item-wrapper .toggle-icon.rotated {
    transform: rotate(90deg) !important;
}

/* Hide Google Translate top banner and prevent page offset when widget is used */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate,
div.skiptranslate {
    display: none !important;
}

/* Ensure Google Translate doesn't push page content down */
html, body {
    margin-top: 0 !important;
    top: 0 !important;
}

/* Hide modal nav arrows immediately when single-slide mode is set */
[id$="-modal"][data-single-slide="true"] .arrow-left,
[id$="-modal"][data-single-slide="true"] .arrow-right {
    display: none !important;
}


.slick-dots {
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
}

/* Product Search Results Dropdown */
.search-product-results {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #F9FAFB;
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #F3F4F6;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-type-badge {
    font-size: 11px;
    font-weight: 500;
    color: #337430;
    background-color: #F0F7EF;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.search-type-header {
    padding: 12px 15px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #337430;
    background-color: #FAFAFA;
    border-bottom: 2px solid #337430;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

.search-results-list::-webkit-scrollbar {
    width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
    background: #F1F1F1;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.is-over-footer .floating-btn {
    background-color: white !important;
}

.is-over-footer .floating-btn svg path {
    fill: #337430 !important;
}