/* Pilgino header and footer for all pages of the theme. */
:root body .main-header.main-header .header-lower,
:root body .main-header.main-header .sticky-header,
:root body .mobile-menu .menu-box {
    background: var(--pg-paper, #fbf7f0) !important;
    border-bottom: 1px solid #e5ddd0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

:root body .header-lower::before,
:root body .sticky-header::before,
:root body .mobile-menu .menu-box::before { display: none; }

:root body .main-menu .navigation > li > a {
    font-family: "Figtree", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #23201c !important;
}

:root body .main-menu .navigation > li:hover > a,
:root body .main-menu .navigation > li > a:hover { color: #a40a0a !important; }

:root body .main-menu .navigation > li.menu__dropdown > a::after {
    content: "";
    position: static;
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px 3px 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    background: none;
    opacity: .6;
    transform: rotate(45deg);
    vertical-align: middle;
}

:root body .main-menu .navigation > li.menu__dropdown:hover > a::after { opacity: 1; }

:root body .main-menu .navigation .menu__dropdown-content {
    background: var(--pg-paper, #fbf7f0);
    border: 1px solid #e5ddd0;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(35, 32, 28, .08);
}

:root body .main-menu .navigation .menu__dropdown-content .menu__dropdown-content .menu__dropdown-content {
    border: 0;
    box-shadow: none;
}

:root body .main-menu .navigation .menu__dropdown-content a {
    font-family: "Figtree", Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    color: #23201c !important;
}

:root body .main-menu .navigation .menu__dropdown-content a:hover { color: #a40a0a !important; }
:root body .main-menu .navigation .menu__dropdown-content li.menu__dropdown > a::after { color: #a40a0a; }

:root body .mobile-menu .navigation li { border-color: #e5ddd0 !important; }
:root body .mobile-menu .navigation li > a,
:root body .mobile-menu .navigation li ul li > a,
:root body .mobile-menu .menu-box a,
:root body .mobile-menu .dropdown-btn,
:root body .mobile-menu .close-btn { color: #23201c !important; }
:root body .mobile-menu .navigation li > a::before { border-color: #e5ddd0 !important; }

:root body .mobile-nav-toggler { color: #23201c; }
:root body .mobile-nav-toggler .icon-bar { background-color: #23201c; }

:root body .header-phone,
:root body .main-header .menu-right-content button {
    background: #fff;
    border: 1px solid #e5ddd0;
    box-shadow: none;
    color: #23201c;
}

/* The footer starts where the page text starts. Tailwind sets this container with important in a layer, only an earlier layer beats it. */
@layer theme {
    @media (min-width: 768px) {
        .main-footer .auto-container { max-width: 1240px !important; padding-inline: 24px !important; }
    }
}

:root body .main-footer h3 { font-weight: 500; }
:root body .main-footer .logo-widget .text p { font-size: 16px !important; }

:root body .main-footer .social-links { display: flex; gap: 8px; }
:root body .main-footer .social-links li { margin: 0; }

:root body .main-footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 0;
    color: #fff !important;
    line-height: 1;
}

:root body .main-footer .social-links a:hover { background: #f09001; border-color: #f09001; color: #23201c !important; }
:root body .main-footer .social-links i { position: static; font-size: 16px; line-height: 1; color: inherit; }

/* Lower header */
:root body .main-header .header-lower,
:root body .main-header .sticky-header { padding: 0; }

:root body .main-header .outer-box { height: 76px; }
:root body .main-header .logo-box { display: flex; align-items: center; height: 76px; padding: 0; }
:root body .main-header .logo-box .logo img { height: 56px; width: auto; transform: none; }
:root body .main-menu { height: 76px; }
:root body .main-menu .navigation { align-items: center; height: 76px; }

/* Language switcher */
:root body .pg-lang__toggle.search-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: 40px;
    padding: 0 8px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #23201c;
    font: 600 15px/1 "Figtree", Arial, sans-serif;
}

:root body .pg-lang__toggle.search-box-btn:hover { color: #a40a0a; }
:root body .pg-lang__toggle svg { display: block !important; }
:root body .pg-lang .dropdown-menu { min-width: 170px; padding: 8px 0; background: var(--pg-paper, #fbf7f0); border: 1px solid #e5ddd0; border-radius: 0; box-shadow: 0 8px 24px rgba(35, 32, 28, .08); }
:root body .pg-lang .dropdown-item { padding: 0; background: none; }
:root body .pg-lang .dropdown-item a { padding: 8px 16px; font: 500 16px/1.4 "Figtree", Arial, sans-serif; color: #23201c; }
:root body .pg-lang .dropdown-item a:hover { background: #f6f0e6; color: #a40a0a; }
:root body .pg-lang .dropdown-item a.is-current { font-weight: 700; color: #a40a0a; }

/* Country flag in front of menu item titles */
:root body .menu-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

/* Desktop dropdowns with flags: titles on one line, dropdown grows to fit */
:root body .main-menu .navigation .menu__dropdown-content:has(> li > a > .menu-flag) {
    width: max-content;
    min-width: 250px;
}

:root body .main-menu .navigation .menu__dropdown-content a:has(> .menu-flag) {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 32px;
}

:root body .menu-flag { flex-shrink: 0; }
