/*
 * header.css (B11, 2026-11-26) — HEADER ONLY: font, top strip, main row (logo · search · actions).
 * Modelled on onlineyedekparca.com (Manrope; 47px strip; 111px main row; 58px pill search;
 * 56px round actions with the label on the right) in Beyazoğlu's own colours.
 * The dark menu row, brand strip and mega menu (partials/navbar, header-brands,
 * navbar-brands-mega-inner) are styled elsewhere and are not touched here.
 * ≤1023px the sticky mobile bar from responsive.css stays as it is; only the font changes.
 */

/* —— Manrope (self-hosted variable font, 400–800; OFL) ——————————————— */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-headings: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg-hdr-ink: #111726;
  --bg-hdr-line: #e2e2e2;
  --bg-hdr-pill: #f4f4f4;
  --bg-hdr-field: #f8f9fa;
}

body {
  font-family: var(--font-body);
}

/* —— Desktop (≥1024) ———————————————————————————————————————————————— */
@media (min-width: 1024px) {
  /* 1) Top strip: 47px accent band */
  [data-bg-topbar].bg-topbar {
    display: flex;
    align-items: center;
    min-height: 47px;
    padding-top: 4px;
    padding-bottom: 4px;
    box-sizing: border-box;
    background: var(--color-secondary, #c1121f);
    color: #fff;
  }

  [data-bg-topbar].bg-topbar,
  [data-bg-topbar].bg-topbar .text-xs {
    font-size: 14px;
    line-height: 21px;
  }

  [data-bg-topbar].bg-topbar > .bg-theme-container {
    gap: 24px;
  }

  [data-bg-topbar].bg-topbar a,
  [data-bg-topbar].bg-topbar .text-muted-foreground,
  [data-bg-topbar].bg-topbar .text-secondary {
    color: #fff;
  }

  [data-bg-topbar].bg-topbar > .bg-theme-container > div:first-child > a:first-child {
    font-weight: 700;
  }

  [data-bg-topbar].bg-topbar svg {
    width: 14px;
    height: 14px;
  }

  [data-bg-topbar].bg-topbar a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  [data-bg-topbar].bg-topbar .opacity-30 {
    opacity: 0.55;
  }

  [data-bg-topbar].bg-topbar .bg-topbar__pill {
    display: inline-flex;
    align-items: center;
    height: 37px;
    padding: 0 14px;
    border-radius: 7px;
    background: var(--bg-hdr-ink);
    color: #f8f9fa;
    font-weight: 600;
    text-decoration: none;
  }

  [data-bg-topbar].bg-topbar .bg-topbar__pill:hover {
    text-decoration: none;
    background: #000;
  }

  /* 2) Main row: 22 + 66 + 22 + 1px line = 111px */
  [data-bg-header-main].bg-hdr {
    padding-top: 22px;
    padding-bottom: 22px;
    background: #fff;
    border-bottom: 1px solid var(--bg-hdr-line);
  }

  .bg-hdr__row {
    gap: 24px;
    min-height: 66px;
  }

  .bg-hdr__brand {
    flex: 0 0 clamp(200px, 22%, 300px);
  }

  .bg-hdr__logo {
    display: inline-flex;
    align-items: center;
  }

  .bg-hdr__logo img {
    display: block;
    height: 66px;
    max-width: 100%;
  }

  /* Pill search: 58 tall, 4px inset, 48px field + button */
  .bg-hdr-search.bg-header-search {
    flex: 1 1 auto;
    max-width: 720px;
    align-items: center;
    height: 58px;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid var(--bg-hdr-line);
    border-radius: 800px;
    background: var(--bg-hdr-field);
    overflow: visible;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }

  .bg-hdr-search.bg-header-search:focus-within {
    border-color: var(--color-secondary, #c1121f);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.14);
  }

  .bg-hdr-search .bg-header-search__field {
    gap: 12px;
    min-height: 48px;
    padding: 0 12px 0 16px;
  }

  .bg-hdr-search .bg-header-search__icon {
    color: var(--bg-hdr-ink);
  }

  .bg-hdr-search .bg-header-search__input {
    height: 48px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--bg-hdr-ink);
  }

  .bg-hdr-search .bg-header-search__input::placeholder {
    color: #4b5563;
    opacity: 1;
  }

  .bg-hdr-search .bg-header-search__submit {
    min-height: 48px;
    height: 48px;
    padding: 0 26px;
    border-radius: 800px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .bg-hdr-search .bg-header-search__submit:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-secondary, #c1121f);
  }

  /* Round actions: 56px grey circle + 14px label on the right */
  .bg-hdr__actions {
    gap: 16px;
    margin-left: auto;
  }

  .bg-hdr-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #181818;
    text-decoration: none;
    border-radius: 999px;
  }

  .bg-hdr-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-hdr-pill);
    color: #212529;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  [data-bg-header-utilities] > a.bg-hdr-action > span.bg-hdr-action__label {
    font-family: var(--font-body);
    font-size: 14px !important;
    line-height: 21px;
    font-weight: 500;
    letter-spacing: 0;
    color: #181818;
    white-space: nowrap;
  }

  .bg-hdr-action:hover .bg-hdr-action__icon,
  .bg-hdr-action:focus-visible .bg-hdr-action__icon {
    background: #ebecee;
    color: var(--color-secondary, #c1121f);
  }

  .bg-hdr-action:focus-visible {
    outline: none;
  }

  .bg-hdr-action:focus-visible .bg-hdr-action__icon {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-secondary, #c1121f);
  }

  .bg-hdr-action__badge {
    position: absolute;
    top: 0;
    left: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 9px;
    background: var(--color-secondary, #c1121f);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 0 0 2px #fff;
  }

  .bg-hdr-action__badge[hidden] {
    display: none;
  }
}

/* Garajım / Favorilerim: icon only, like OYP's garage / theme buttons (label kept for screen readers). */
@media (min-width: 1024px) {
  [data-bg-header-utilities] > a.bg-hdr-action--icon > span.bg-hdr-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* 1024–1279: icons only (labels stay for screen readers + title tooltip) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .bg-hdr__row {
    gap: 16px;
  }

  .bg-hdr__brand {
    flex-basis: 200px;
  }

  .bg-hdr__logo img {
    height: 52px;
  }

  .bg-hdr__actions {
    gap: 8px;
  }

  [data-bg-header-utilities] > a.bg-hdr-action > span.bg-hdr-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bg-hdr-action__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .bg-hdr-action__badge {
    left: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-hdr-action__icon,
  .bg-hdr-search.bg-header-search {
    transition: none;
  }
}

/* DM Sans is no longer loaded: mobile chrome that named it explicitly follows the site font. */
[data-bg-mobile-menu-panel],
.bg-catalog-filters-sheet,
[data-bg-tabbar] {
  font-family: var(--font-body);
}
