/* Figma Main Header — tIZof0NiSr1sXu4YOnxZ7h / 2299:64735.
   Tokens are scoped to the desktop header; storefront data stays dynamic. */
.site__header--figma {
    --header-fg: #15171c;
    --header-fg-subtle: #5c5e64;
    --header-text-primary: #1e1e1e;
    --header-text-secondary: #71717a;
    --header-text-placeholder: #757575;
    --header-text-warm: #4a4740;
    --header-brand-fill: #f47b1b;
    --header-brand-text: #c2410c;
    --header-white: #fff;
    --header-stone: #dcd7cd;
    --header-stone-line: #cec8bc;
    --header-stroke-subtle: #ece9e3;
    --header-divider: #15171c26;
    --header-space-4: 4px;
    --header-space-10: 10px;
    --header-space-12: 12px;
    --header-space-14: 14px;
    --header-space-16: 16px;
    --header-space-20: 20px;
    --header-space-24: 24px;
    --header-radius-3: 3px;
    --header-radius-5: 5px;
    --header-radius-6: 6px;
    --header-radius-pill: 99px;
    font-family: Manrope, sans-serif;
}

.site__header--figma .header {
    --header-gutter: max(24px, calc((100% - 1312px) / 2));
    grid-template-columns: var(--header-gutter) 221px 20px minmax(0, 1fr) 20px max-content var(--header-gutter);
    grid-template-rows: 33px 62px auto;
    color: var(--header-fg);
    background: linear-gradient(var(--header-white) 33px, var(--header-stone) 33px, var(--header-stone) 95px, transparent 95px);
    box-shadow: none;
}

.site__header--figma .header__topbar-classic-bg {
    grid-column: 1 / -1;
    background: var(--header-white);
    border-bottom: 1px solid var(--header-stroke-subtle);
}

.site__header--figma .header__topbar-classic {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-inline: 40px;
}
.site__header--figma .header__megamenu-area { grid-column: 2 / -2; }
.site__header--figma .topbar--classic {
    height: 33px;
    gap: 16px;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 12px;
}
.site__header--figma .topbar .topbar__item-text {
    margin: 0;
    padding: 0;
    color: var(--header-text-secondary);
    font-weight: 400;
    white-space: nowrap;
}
.site__header--figma .topbar__contact { display: flex; align-items: center; gap: 8px; }
.site__header--figma .topbar__contact a { color: var(--header-text-primary); font-weight: 600; }
.site__header--figma .topbar .topbar__link { color: #6b7280; font-weight: 400; }
.site__header--figma .topbar .topbar__link--accent { color: var(--header-brand-text); font-weight: 600; }
.site__header--figma .topbar .topbar__seller-link {
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    color: #6b7280 !important;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 400;
    transform: none;
}
.site__header--figma .topbar .topbar__button-label,
.site__header--figma .topbar .topbar__button-title { color: var(--header-fg-subtle); font-weight: 400; }
.site__header--figma .topbar .topbar__link:hover { color: var(--header-brand-text); text-decoration: underline; }

.site__header--figma .header__logo {
    grid-column: 2;
    align-self: center;
    min-width: 0;
    margin: 0;
}
.site__header--figma .logo { display: flex; justify-content: center; align-items: center; height: 45px; }
.site__header--figma .logo__image { width: 210px; height: 45.27px; padding: 0; overflow: hidden; }

.site__header--figma .header__search { grid-column: 4; min-width: 0; margin: 0; }
.site__header--figma .search__body {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 36px;
}
.site__header--figma .search__button--start {
    grid-column: 1;
    grid-row: 1;
    order: 0;
    gap: 9px;
    height: 34px;
    padding: 0 var(--header-space-14);
    margin: 0 var(--header-space-20) 0 0;
    border: 0;
    border-radius: var(--header-radius-5);
    background: var(--header-white);
    color: var(--header-fg);
}
.site__header--figma .search__button-title { margin: 0; font-size: 12px; font-weight: 600; line-height: normal; }
.site__header--figma .search__input {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 var(--header-space-12);
    border: 0;
    border-radius: var(--header-radius-3) 0 0 var(--header-radius-3);
    background: var(--header-white);
    color: var(--header-text-primary);
    font-size: 12px;
}
.site__header--figma .search__input::placeholder { color: var(--header-text-placeholder); opacity: 1; }
.site__header--figma .search__button--end {
    grid-column: 3;
    grid-row: 1;
    position: static;
    width: 44px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0 var(--header-radius-3) var(--header-radius-3) 0;
    background: var(--header-brand-fill);
}
.site__header--figma .search__button--end:hover { background: var(--header-brand-text); }
.site__header--figma .search__shadow,
.site__header--figma .search__box,
.site__header--figma .search__decor { display: none; }
.site__header--figma .search__dropdown--suggestions { grid-column: 2 / -1; left: 0; right: 0; }
.site__header--figma .search__dropdown--vehicle-picker { width: 440px; max-width: calc(100vw - 48px); right: auto; }

.site__header--figma .header__indicators { grid-column: 6; padding: 0; gap: 26px; align-items: center; }
.site__header--figma .header__indicators .indicator { margin: 0; }
.site__header--figma .indicator .indicator__button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 38px;
    padding: 0;
    border-radius: var(--header-radius-6);
    background: transparent;
    color: var(--header-fg);
}
.site__header--figma .indicator .indicator__icon { position: relative; width: auto; height: auto; padding: 0; }
.site__header--figma .indicator .indicator__title,
.site__header--figma .indicator .indicator__value { margin: 0; padding: 0; white-space: nowrap; }
.site__header--figma .indicator--account .indicator__button {
    display: grid;
    grid-template-columns: 21px auto;
    grid-template-rows: 11.25px 16.25px;
    align-content: center;
    justify-content: start;
    column-gap: var(--header-space-10);
}
.site__header--figma .indicator--account .indicator__icon { grid-column: 1; grid-row: 1 / 3; }
.site__header--figma .indicator--account .indicator__title { grid-column: 2; font-size: 9px; line-height: 11.25px; color: var(--header-fg-subtle); }
.site__header--figma .indicator--account .indicator__value { grid-column: 2; font-size: 13px; line-height: 16.25px; font-weight: 600; }
.site__header--figma .indicator--cart .indicator__button { gap: 9px; padding: 0 var(--header-space-16); background: var(--header-stone); }
.site__header--figma .header__cart-label { font-size: 13px; font-weight: 600; color: var(--header-text-warm); }
.site__header--figma .indicator .indicator__counter {
    display: flex !important; /* Keep zero visible, as in the design, after live count updates. */
    align-items: center;
    justify-content: center;
    top: -8px;
    right: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 4.5px;
    border-radius: var(--header-radius-pill);
    background: var(--header-brand-fill);
    color: var(--header-white);
    font-size: 9px;
    font-weight: 700;
    line-height: normal;
}
.site__header--figma .indicator .indicator__counter::before { display: none; }
.site__header--figma .indicator--cart .indicator__counter { top: -7px; right: -6px; }
.site__header--figma .indicator__content { top: calc(100% + 12px); }
.site__header--figma .indicator--account .indicator__button:hover,
.site__header--figma .indicator--wishlist .indicator__button:hover { color: var(--header-brand-text); }

.site__header--figma .header__navbar {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    align-self: start;
    gap: var(--header-space-4);
    width: max-content;
    max-width: calc(100vw - 48px);
    height: auto;
    min-height: 38px;
    margin-top: 3px;
    padding: var(--header-space-4);
    border: 0;
    border-radius: var(--header-radius-pill);
    background: var(--header-stone);
    box-shadow: 0 8px 18px rgba(20, 20, 24, .12);
}
.site__header--figma .header__navbar-departments { margin: 0; height: 30px; flex-shrink: 0; align-self: flex-start; }
.site__header--figma .header__navbar-departments::after { display: none; }
.site__header--figma .departments__button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    width: auto;
    padding: 0 22px;
    border: 0;
    border-radius: var(--header-radius-pill);
    background: var(--header-brand-fill);
    color: var(--header-white);
    box-shadow: 0 8px 18px rgba(255, 107, 16, .26);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.site__header--figma .departments__button-icon { position: static; display: flex; margin: 0; }
.site__header--figma .departments__button-title { margin: 0; }
.site__header--figma .header__navbar-menu { min-width: 0; flex: 0 1 auto; }
.site__header--figma .header__navbar .main-menu__list { gap: var(--header-space-4); }
.site__header--figma .header__navbar .main-menu__link {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 var(--header-space-20);
    border-radius: var(--header-radius-pill);
    color: var(--header-fg);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.site__header--figma .header__navbar .main-menu__link > svg { display: none; }
.site__header--figma .header__navbar .main-menu__link:hover { background: var(--header-white); }
.site__header--figma .header__part-request {
    display: flex;
    align-items: center;
    gap: var(--header-space-10);
    flex-shrink: 0;
    height: 30px;
    margin-left: var(--header-space-4);
    padding: 0 var(--header-space-20);
    border-left: 1px solid var(--header-divider);
    color: var(--header-fg);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.site__header--figma .header__part-request:hover { color: var(--header-brand-text); }
.site__header--figma img[src*="/assets/images/header/"] { display: block; max-width: none; flex-shrink: 0; }
.site__header--figma :is(a, button, input):focus-visible { outline: 2px solid var(--header-brand-text); outline-offset: 3px; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site__header--figma .header__navbar .main-menu__link { padding-inline: var(--header-space-12); }
}
