/** ==== Стили Header/Footer/Container/Root ==== */

:root {
    --black: #000000;
    --white: #FFFFFF;
    --primary: #487EB4;
    --secondary: #1F374E;
    --background: linear-gradient(180deg, #487EB4 0%, #1F374E 100%);
    --radius1: 10px;
    --radius2: 20px;
    --box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.25);
}

/* ==== Main Styles ==== */

body {
    margin: 0!important;
    font-family: 'Montserrat', sans-serif;
    background-color: #E6F9FF;;
}

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

/* Форм-элементы не наследуют font-family по умолчанию */
input,
select,
textarea,
button {
    font-family: 'Montserrat', sans-serif;
}

#page,
.site,
.site-content,
#content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#page {
    background: transparent !important;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

@media screen and (max-width: 767px) {
    .post,
    .page,
    .page-content,
    .entry-content,
    .entry-summary {
        margin: 0;
    }
}

.thebravo-page-footer {
	display: none!important;
}

/* ==== Container ==== */

.container {
    width: 100%;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 28px;
	padding-bottom: 60px;
    box-sizing: border-box;
}

@media (max-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }
}

@media (max-width: 820px) {
    .container {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

@media (max-width: 768px) {
    .container {
        max-width: 640px;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==== Header ==== */

.header {
    background: var(--background);
    position: relative;
    z-index: 1000;
}

.header__top .container {
    display: grid;
    grid-template-columns: 80px 1fr 220px;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header__top--no-burger .container {
    grid-template-columns: 1fr 220px;
}

.header__top--no-burger .container .header__logo {
    text-align: left;
}

.header__burger {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header__burger svg {
    width: 24px;
    height: 24px;
    display: block;
}

.header__logo {
    text-align: center;
}

.header__logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.header__logo img {
    display: block;
    max-height: 70px;
    width: auto;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 50px;
}

.header__cart {
    display: inline-flex;
    align-items: center;
}

.header__cart .t64hc-toggle,
.header__cart .header__cart-fallback {
    gap: 0;
}

.header__cart .t64hc-summary,
.header__cart .t64hc-arrow,
.header__cart .header__cart-fallback-total {
    display: none;
}

@media (min-width: 1025px) {
    .header__cart .t64hc-dropdown {
        top: calc(100% + 18px);
    }
}

.header__cart-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.header__cart-fallback-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.header__cart-fallback-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffffff;
    color: #27496e;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.header__cart-fallback-total {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.header__actions a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.header__actions svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    display: block;
}

.header__favorites {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
}

.header__favorites-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffffff;
    color: #27496e;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.header__nav {
    background: #d8e7ee;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 5px -5px rgba(34, 60, 80, 0.6);
}

.header__nav .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.header__nav .menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.header__nav .menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: normal;
    font-size: 20px;
    transition: all 200ms ease;
}

.header__nav .menu a:visited {
    color: #000000;
}

.header__nav .menu a:hover {
    color: var(--primary);
}

/* ── Burger nav ─────────────────────────────────── */

.burger__nav {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 47, 77, 0.12);
}

.burger__nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger__nav .menu li {
    margin: 0;
}

.burger__nav .menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #142f4d;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.burger__nav .menu a:hover,
.burger__nav .menu .current-menu-item > a {
    background: rgba(72, 126, 180, 0.1);
    color: #2d5e8f;
}

/* ── Burger ──────────────────────────────────────── */

.burger__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9998;
}

.burger__overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.burger {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: calc(100vw - 20px);
    height: 100vh;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
}

.burger.is-active {
    transform: translateX(0);
}

.burger__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #ececec;
}

.burger__title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
}

.burger__close {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.burger__close svg {
    width: 20px;
    height: auto;
}

.burger__body {
    padding: 8px 20px 20px;
    overflow-y: auto;
}

.burger__cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.burger__cats .burger__cats-item:last-child {
    border-bottom: 0;
}

.burger__cats-item {
    border-bottom: 1px solid #efefef;
}

.burger__cats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
}

.burger__cats-link {
    flex: 1 1 auto;
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: var(--black);
    font-size: 16px;
    font-weight: 500;
    transition: all 200ms ease;
}

.burger__cats-link:visited {
    color: var(--black);
}

.burger__cats-link:hover {
    color: var(--primary);
}

.burger__cats-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.burger__cats-toggle-icon {
    font-size: 24px;
    line-height: 1;
    color: #27496e;
    transition: transform 0.25s ease;
}

.burger__cats-submenu {
    display: none;
    padding: 0 0 10px 16px;
}

.burger__cats-item.is-open > .burger__cats-submenu {
    display: block;
}

.burger__cats-item.is-open > .burger__cats-row .burger__cats-toggle-icon {
    transform: rotate(45deg);
}

.burger__cats-submenu .burger__cats-link {
    font-size: 15px;
    font-weight: 400;
    padding: 11px 0;
}

/* ── Shop sidebar ── */

.shop-sidebar {
    width: 280px;
    flex: 0 0 280px;
}

@media (max-width: 1280px) {
    .header__nav .menu a {
        font-size: 16px;
    }

    .shop-sidebar {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .header__nav .menu {
        gap: 15px;
    }

    .header__nav .menu a {
        font-size: 14px;
    }

    .header__logo img {
        max-height: 50px;
    }

    .header__actions {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .header__top .container {
        grid-template-columns: 60px 1fr 160px;
    }

    .header__top--no-burger .container {
        grid-template-columns: 1fr 160px;
    }

    .header__nav .menu {
        flex-wrap: wrap;
    }

    .cps-country-selector--footer label {
        text-align: left!important;
    }
}

@media (max-width: 768px) {
    .header__top {
        grid-template-columns: 52px 1fr auto;
        gap: 12px;
    }

    .header__top--no-burger {
        grid-template-columns: 1fr auto;
    }

    .header__logo img {
        max-height: 74px;
    }

    .header__actions {
        gap: 12px;
    }

    .header__search,
    .header__favorites,
    .header__account {
        display: none !important;
    }

    .header__nav {
        display: none;
    }

    .burger {
        width: 320px;
    }

    .burger__nav {
        display: inherit;
    }

    body {
        padding-bottom: 64px;
    }

    .header__top .container {
        grid-template-columns: 60px 1fr 60px;
    }

    .mobile-search-overlay__box .t64wss-panel {
        padding-top: 20px!important;
    }

    .mobile-search-overlay__close {
        top: 10px!important;
    }

    .header__top .container {
        padding-right: 36px;
    }
}

@media (max-width: 440px) {
    .header__logo img {
        max-height: 64px;
    }
}

/* ==== Mobile Bottom Bar ==== */

.mobile-bottom-bar {
    display: none;
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
}

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

.mobile-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mobile-search-overlay__box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 14px 16px 18px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mobile-search-overlay__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

/* Smart search inside overlay — flatten absolute positioning */
.mobile-search-overlay__box .t64wss-wrap {
    position: static;
    display: block;
    width: 100%;
}

.mobile-search-overlay__box .t64wss-toggle {
    display: none !important;
}

.mobile-search-overlay__box .t64wss-panel {
    position: static !important;
    display: block !important;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    min-width: 0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        align-items: stretch;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--background);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-bottom-bar__btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 10px 4px;
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        background: none;
        border: 0;
        cursor: pointer;
        font-size: 11px;
        font-family: inherit;
        position: relative;
        transition: color 0.15s ease;
    }

    .mobile-bottom-bar__btn:visited {
        color: rgba(255, 255, 255, 0.75);
    }

    .mobile-bottom-bar__btn:hover,
    .mobile-bottom-bar__btn:active {
        color: #fff;
    }

    .mobile-bottom-bar__btn svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .mobile-bottom-bar__btn svg path,
    .mobile-bottom-bar__btn svg circle {
        stroke: currentColor;
    }

    .mobile-bottom-bar__badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 20px);
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        border-radius: 999px;
        background: #fff;
        color: #27496e;
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }
}

/* ==== Footer ==== */

.footer {
    background: var(--background);
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    display: block;
    position: relative;
    overflow: hidden;
}

.footer .container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.footer__col.footer__col--nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer__col a,
.footer__contacts-value a,
.footer__bottom-nav a,
.footer__developer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer__col a:hover,
.footer__contacts-value a:hover,
.footer__bottom-nav a:hover,
.footer__developer a:hover {
    opacity: 0.74;
}

.footer__col--contacts {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer__contacts-title {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 700;
    color: #ffffff;
}

.footer__contacts-value {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
}

.footer__middle {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__bottom-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.footer__bottom-nav li {
    position: relative;
    margin: 0;
}

.footer__bottom-nav li:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.9);
}

.footer__developer {
    color: #ffffff;
    white-space: nowrap;
}

.footer__developer-name {
    margin-left: 4px;
    display: inline-block;
}

.footer__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 50px;
}

.footer__socials-link {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    text-decoration: none;
    flex: 0 0 54px;
}

.footer__socials-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer__socials-link svg {
    display: block;
    fill: #27496e;
    width: 24px;
    height: auto;
}

.footer__copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .footer__col--contacts {
        grid-column: 1 / -1;
        text-align: left;
    }

    .footer__middle {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__col--contacts {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer__col--contacts {
        text-align: left;
    }

    .footer__bottom-nav ul {
        display: block;
    }

    .footer__bottom-nav li {
        display: inline;
    }

    .footer__socials {
        gap: 14px;
        flex-wrap: wrap;
    }

    .footer__socials-link {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .footer__col.footer__col--nav ul {
        gap: 10px;
    }

    .footer__socials-link svg {
        width: 22px;
    }

    .footer__socials {
        margin-top: 25px;
    }

    .footer__copyright {
        margin-top: 15px;
    }
}