/* Figma Search focused header 49:277, Desktop 49:171 / Mobile 49:240. */
.brc-header {
    position: relative;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid var(--brc-line);
    background: var(--brc-paper);
    color: var(--brc-ink);
    font-family: var(--brc-body-font);
}

.brc-header *, .brc-header *::before, .brc-header *::after { box-sizing: border-box; }
.brc-header a { color: inherit; text-decoration: none; }
.brc-header a:hover { color: var(--brc-green, #0d5645); }
.brc-header :focus-visible { outline: 3px solid var(--brc-focus); outline-offset: 3px; }
.brc-header__wrap { width: calc(100% - 80px); max-width: 1280px; margin-inline: auto; }

.brc-header__announcement { background: var(--brc-ink); color: var(--brc-white); }
.brc-header__announcement-inner { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 0; }
.brc-header__promise { flex: 1; min-width: 0; margin: 0; font-size: 12px; font-weight: 400; line-height: 16px; }
.brc-header__utility, .brc-header__public { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.brc-header__utility { gap: 12px; }
.brc-header__public a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.brc-header__announcement a:hover { color: var(--brc-white); text-decoration: underline; }
.brc-header__language { position: relative; flex: 0 0 44px; }
.brc-header__language-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 168px; padding: 8px; border: 1px solid var(--brc-line); border-radius: var(--brc-control-radius); background: var(--brc-white); color: var(--brc-ink); box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.brc-header__language-menu[hidden] { display: none; }
.brc-header__language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 14px; line-height: 1.5; white-space: nowrap; border-radius: var(--brc-control-radius); }
.brc-header__language-menu a:hover { background: var(--brc-soft); }
.brc-header__language-menu a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-position: under; }

.brc-header__main { display: grid; grid-template-columns: 44px 186px minmax(0, 1fr) auto; grid-template-rows: 72px 48px; column-gap: 24px; align-items: center; padding-bottom: 16px; }
.brc-header__brand { display: flex; align-items: center; min-height: 44px; grid-column: 2; grid-row: 1; min-width: 0; font-size: 32px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.brc-header__icon-action { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--brc-control-radius); background: transparent; color: var(--brc-ink); }
.brc-header__icon-action:hover { background: var(--brc-soft); }
.brc-header__icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.brc-header__icon img { display: block; max-width: none; }
.brc-header__catalog-link, .brc-header__catalog-toggle { grid-column: 1; grid-row: 1; }
.brc-header__catalog-toggle { display: none; }
.brc-header__categories { grid-column: 3; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; min-width: 0; }
.brc-header__categories a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.brc-header__actions { grid-column: 4; grid-row: 1; display: flex; align-items: center; gap: 24px; min-width: 0; }
.brc-header .bricolage-store-cart { position: relative; display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--brc-control-radius); color: var(--brc-ink); }
.brc-header .bricolage-store-cart:hover { background: var(--brc-soft); color: var(--brc-green); }
.brc-header .bricolage-store-cart__icon { display: block; width: 22px; height: 22px; }
.brc-header .bricolage-store-cart__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.brc-header .bricolage-store-cart__count { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; min-height: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--brc-green); color: var(--brc-white); font-size: 10px; font-weight: 700; line-height: 14px; }
.brc-header .bricolage-store-cart__count[data-count="0"] { display: none; }

.brc-header__search { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin: 0; }
.brc-header__search label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.brc-header__search-control { position: relative; }
.brc-header__search input[type="search"] { display: block; width: 100%; height: 48px; min-width: 0; margin: 0; padding: 0 48px 0 15px; border: 1px solid var(--brc-line); border-radius: var(--brc-control-radius); background: var(--brc-white); color: var(--brc-ink); font: 400 14px/1.5 var(--brc-body-font); box-shadow: none; }
.brc-header__search button { position: absolute; top: 2px; right: 2px; display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--brc-control-radius); background: transparent !important; color: var(--brc-ink) !important; }
.brc-header__search button:hover { background: var(--brc-soft) !important; color: var(--brc-ink) !important; }
.brc-header__search button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* The legacy theme applies important black backgrounds and borders to every button. */
.brc-header .brc-header__search button, .brc-header .brc-header__catalog-toggle, .brc-header .brc-header__language-toggle { border: 0 !important; box-shadow: none; font-family: var(--brc-body-font); }
.brc-header .brc-header__catalog-toggle, .brc-header .brc-header__language-toggle { margin: 0; padding: 0; background: transparent !important; color: var(--brc-ink) !important; }
.brc-header .brc-header__catalog-toggle:hover, .brc-header .brc-header__catalog-toggle:focus, .brc-header .brc-header__language-toggle:hover, .brc-header .brc-header__language-toggle:focus { background: var(--brc-soft) !important; }

@media (max-width: 1100px) {
    .brc-header__wrap { width: calc(100% - 32px); }
    .brc-header__public { display: none; }
    .brc-header__main { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: 64px 48px; column-gap: 4px; }
    .brc-header__brand { font-size: 28px; }
    .brc-header__catalog-toggle { display: inline-flex; }
    .brc-header__catalog-link, .brc-header__categories { display: none; }
    .brc-header__actions { grid-column: 3; gap: 4px; }
}

@media (max-width: 480px) {
    .brc-header__brand { font-size: 26px; }
}
@media (max-width: 374px) {
    .brc-header__brand { font-size: 24px; }
}
@media (max-width: 339px) {
    .brc-header__brand { font-size: 18px; }
}

/* Longer translated category names fit the narrow desktop row without wrapping. */
@media (min-width: 1101px) and (max-width: 1279px) {
    .brc-header__categories { column-gap: 12px; }
    .brc-header__categories a { font-size: 12px; }
}
