/**
 * OEM ASTRA J — Header Utility Bar (scoped)
 * Language · Sign In · My Garage · Cart
 * Load last. Do not split overrides into other CSS files.
 */

:root {
  /* ~17cm desktop LTR — room for utility cluster (lang · sign in · garage · cart) */
  --header-search-width-desktop: 678px;
  --header-search-width-desktop-rtl: 717px;
  --header-search-width-catalog: 573px;
  --header-search-width-catalog-rtl: 640px;
  /* Unified header cell system — matches .nav-search + .nav-shop-btn */
  --nav-cell-radius: 0;
  --nav-cell-h: var(--nav-bar-cell-h, var(--nav-search-h, 40px));
  --nav-util-btn-h: var(--nav-bar-cell-h, var(--nav-search-h, 40px));
  --nav-util-font-size: 11px;
  --nav-util-pad-x: 10px;
  --nav-util-gap: 6px;
  --nav-garage-icon-svg: 20px;
  --nav-garage-icon-box: 22px;
  --nav-garage-label-gap: 3px;
  --nav-lang-chevron-gap: 4px;
  --nav-util-radius: var(--nav-cell-radius);
  --nav-util-bg: #111111;
  --nav-util-gold: #f6c343;
  --nav-util-gold-border: rgba(246, 195, 67, 0.55);
  --nav-util-gold-hover: #f6c343;
  --nav-util-gold-glow: transparent;
  --nav-bar-cell-h: var(--nav-search-h, 40px);
}

/* ── Unified bar cell height + vertical alignment (desktop) ── */
@media (min-width: 901px) {
  .nav-actions-wrap {
    align-self: center !important;
    align-items: center !important;
    padding-top: 0 !important;
    min-height: var(--nav-bar-cell-h) !important;
  }

  .nav-main-actions {
    align-items: center !important;
    height: auto !important;
    min-height: var(--nav-bar-cell-h) !important;
  }

  .nav-search-wrap {
    padding-top: 0 !important;
    align-self: center !important;
    min-height: 0 !important;
  }

  .nav-search {
    height: var(--nav-bar-cell-h) !important;
    min-height: var(--nav-bar-cell-h) !important;
    max-height: var(--nav-bar-cell-h) !important;
  }

  .nav-search input,
  .nav-search-filter select,
  .nav-search-btn {
    height: var(--nav-bar-cell-h) !important;
    min-height: var(--nav-bar-cell-h) !important;
    max-height: var(--nav-bar-cell-h) !important;
  }

  .nav-shop-btn {
    align-self: center !important;
    height: var(--nav-bar-cell-h) !important;
    min-height: var(--nav-bar-cell-h) !important;
    max-height: var(--nav-bar-cell-h) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .nav-util-cluster .nav-util-btn,
  .nav-util-cluster .nav-lang-btn.nav-util-btn,
  .nav-util-cluster .nav-cart-btn {
    height: var(--nav-bar-cell-h) !important;
    min-height: var(--nav-bar-cell-h) !important;
    max-height: var(--nav-bar-cell-h) !important;
    align-self: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  html[dir="ltr"] .nav-main-actions .nav-shop-btn,
  html[dir="ltr"] .nav-main-actions .nav-search-wrap,
  html[dir="ltr"] .nav-main-actions .nav-lang-wrap,
  html[dir="ltr"] .nav-main-actions .nav-btn-auth,
  html[dir="ltr"] .nav-main-actions .nav-garage-btn,
  html[dir="ltr"] .nav-main-actions .nav-cart-btn {
    align-self: center !important;
  }

  body.is-home-page .nav-main-actions .nav-cart-btn,
  body.is-home-page .nav-util-cluster .nav-cart-btn {
    height: var(--nav-bar-cell-h) !important;
    min-height: var(--nav-bar-cell-h) !important;
    max-height: var(--nav-bar-cell-h) !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.is-home-page .nav-cart-icon-wrap {
    align-items: center !important;
  }

  body.is-home-page .nav-cart-label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important;
  }
}

/* ── Desktop search width (LTR only — single fixed variable) ── */
@media (min-width: 901px) {
  html[dir="ltr"] .nav-main-actions .nav-search-wrap {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: 1 1 auto !important;
    padding-top: 0 !important;
  }

  /* Override home-premium homepage grid (23cm search, no garage slot) */
  html[dir="ltr"] body.is-home-page .nav-main-actions {
    display: grid !important;
    grid-template-columns: 0 auto minmax(200px, 1fr) auto auto auto auto !important;
    grid-template-areas: ". shop search lang account garage cart" !important;
    align-items: center !important;
    column-gap: 10px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap !important;
  }

  html[dir="ltr"] body.is-home-page .nav-search-wrap {
    grid-area: search !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding-top: 0 !important;
  }

  html[dir="ltr"] body.is-home-page .nav-garage-btn {
    grid-area: garage !important;
  }

  html[dir="ltr"] .nav-util-cluster .nav-util-btn {
    flex-shrink: 0;
  }

  /* Unified row rhythm with shop + search */
  html[dir="ltr"] .nav-main-actions {
    column-gap: 8px !important;
    align-items: center !important;
  }

  html[dir="ltr"] .nav-trade-cluster,
  html[dir="ltr"] .nav-util-cluster {
    gap: 8px !important;
    align-items: center !important;
  }

  /* ── RTL mirror: logo fixed physical left, bar cells reversed ── */
  html[dir="rtl"] .nav-main-row,
  html[dir="rtl"] body.is-home-page .nav-main-row {
    direction: ltr !important;
  }

  html[dir="rtl"] .nav-logo,
  html[dir="rtl"] body.is-home-page .nav-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
  }

  html[dir="rtl"] .nav-logo-img {
    object-position: left center !important;
  }

  html[dir="rtl"] .nav-actions-wrap,
  html[dir="rtl"] body.is-home-page .nav-actions-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    /* Keep search/utils on row 1 top — do not center against tall logo track */
    align-self: flex-start !important;
    padding-inline-end: 0 !important;
  }

  html[dir="rtl"] .nav-main-actions,
  html[dir="rtl"] body.is-home-page .nav-main-actions,
  html[dir="rtl"] body.catalog-page-open .nav-main-actions,
  html[dir="rtl"] body.catalog-branch-mode .nav-main-actions,
  html[dir="rtl"] body.catalog-drawer-open .nav-main-actions,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-main-actions,
  html[dir="rtl"] body.catalog-drawer-push .nav-main-actions {
    display: grid !important;
    /* Same util order as EN; Shop pinned as first from the right. Logo stays left. */
    grid-template-columns: minmax(200px, 1fr) auto auto auto auto auto !important;
    grid-template-areas: "search lang account garage cart shop" !important;
    align-items: flex-start !important;
    row-gap: 0 !important;
    column-gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    direction: ltr !important;
  }

  html[dir="rtl"] .nav-util-cluster .nav-util-btn,
  html[dir="rtl"] .nav-util-cluster .nav-lang-wrap,
  html[dir="rtl"] .nav-main-actions .nav-cart-btn,
  html[dir="rtl"] .nav-main-actions .nav-garage-btn,
  html[dir="rtl"] .nav-main-actions .nav-btn-auth,
  html[dir="rtl"] .nav-main-actions .nav-account,
  html[dir="rtl"] .nav-main-actions .nav-lang-wrap,
  html[dir="rtl"] .nav-main-actions .nav-shop-btn,
  html[dir="rtl"] .nav-main-actions .nav-search-wrap {
    justify-self: center !important;
    min-width: 44px !important;
  }

  html[dir="rtl"] .nav-main-actions .nav-search-wrap {
    min-width: 0 !important;
  }

  html[dir="rtl"] .nav-main-actions .nav-shop-btn {
    min-width: max-content !important;
  }

  html[dir="rtl"] .nav-trade-cluster,
  html[dir="rtl"] .nav-util-cluster,
  html[dir="rtl"] body.is-home-page .nav-trade-cluster,
  html[dir="rtl"] body.is-home-page .nav-util-cluster {
    display: contents !important;
    flex-direction: unset !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
  }

  html[dir="rtl"] .nav-util-cluster .nav-lang-wrap,
  html[dir="rtl"] .nav-util-cluster .nav-account,
  html[dir="rtl"] .nav-util-cluster .nav-btn-auth,
  html[dir="rtl"] .nav-util-cluster .nav-garage-btn,
  html[dir="rtl"] .nav-util-cluster .nav-cart-btn,
  html[dir="rtl"] body.is-home-page .nav-util-cluster .nav-lang-wrap,
  html[dir="rtl"] body.is-home-page .nav-util-cluster .nav-account,
  html[dir="rtl"] body.is-home-page .nav-util-cluster .nav-btn-auth,
  html[dir="rtl"] body.is-home-page .nav-util-cluster .nav-garage-btn,
  html[dir="rtl"] body.is-home-page .nav-util-cluster .nav-cart-btn {
    order: unset !important;
  }

  html[dir="rtl"] .nav-shop-btn {
    grid-area: shop !important;
    align-self: center !important;
    height: var(--nav-bar-cell-h) !important;
    min-height: var(--nav-bar-cell-h) !important;
    max-height: var(--nav-bar-cell-h) !important;
  }

  html[dir="rtl"] .nav-main-actions .nav-search-wrap,
  html[dir="rtl"] body.is-home-page .nav-search-wrap {
    grid-area: search !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding-top: 0 !important;
    align-self: center !important;
  }

  html[dir="rtl"] .nav-lang-wrap {
    grid-area: lang !important;
    margin-inline-start: calc(1cm - 10px) !important;
    margin-inline-end: 0 !important;
  }

  html[dir="rtl"] .nav-account,
  html[dir="rtl"] .nav-btn-auth {
    grid-area: account !important;
  }

  html[dir="rtl"] .nav-garage-btn {
    grid-area: garage !important;
  }

  html[dir="rtl"] .nav-cart-btn {
    grid-area: cart !important;
  }

  html[dir="rtl"] .nav-search {
    direction: rtl;
  }

  html[dir="rtl"] .nav-search input {
    text-align: right;
  }

  html[dir="rtl"] .nav-util-cluster .nav-util-btn {
    direction: rtl;
  }

  html[dir="rtl"] .nav-util-cluster .nav-cart-btn .cart-badge,
  html[dir="rtl"] body.is-home-page .nav-util-cluster .nav-cart-btn .cart-badge {
    inset-inline-end: auto !important;
    inset-inline-start: auto !important;
    right: -2px !important;
    left: auto !important;
    transform: none !important;
  }

  /* RTL + catalog drawer: flex layout (grid + fixed search hides util icons) */
  html[dir="rtl"] body.catalog-page-open .nav-main-actions,
  html[dir="rtl"] body.catalog-branch-mode .nav-main-actions,
  html[dir="rtl"] body.catalog-drawer-open .nav-main-actions,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-main-actions,
  html[dir="rtl"] body.catalog-drawer-push .nav-main-actions {
    display: flex !important;
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  /* Catalog RTL: keep same grid as homepage (Shop first from the right) */
  html[dir="rtl"] body.catalog-drawer-push .nav-util-cluster,
  html[dir="rtl"] body.catalog-drawer-open .nav-util-cluster,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-util-cluster,
  html[dir="rtl"] body.catalog-page-open .nav-util-cluster,
  html[dir="rtl"] body.catalog-branch-mode .nav-util-cluster {
    display: contents !important;
  }

  html[dir="rtl"] body.catalog-drawer-push .nav-trade-cluster,
  html[dir="rtl"] body.catalog-drawer-open .nav-trade-cluster,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-trade-cluster,
  html[dir="rtl"] body.catalog-page-open .nav-trade-cluster,
  html[dir="rtl"] body.catalog-branch-mode .nav-trade-cluster {
    display: contents !important;
  }

  html[dir="rtl"] body.catalog-page-open .nav-main-actions,
  html[dir="rtl"] body.catalog-branch-mode .nav-main-actions,
  html[dir="rtl"] body.catalog-drawer-open .nav-main-actions,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-main-actions,
  html[dir="rtl"] body.catalog-drawer-push .nav-main-actions {
    display: grid !important;
    grid-template-columns: minmax(200px, 1fr) auto auto auto auto auto !important;
    grid-template-areas: "search lang account garage cart shop" !important;
    flex-direction: unset !important;
    direction: ltr !important;
  }

  html[dir="rtl"] body.catalog-drawer-push .nav-search-wrap,
  html[dir="rtl"] body.catalog-drawer-open .nav-search-wrap,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-search-wrap,
  html[dir="rtl"] body.catalog-page-open .nav-search-wrap,
  html[dir="rtl"] body.catalog-branch-mode .nav-search-wrap {
    grid-area: unset !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    z-index: 2 !important;
    padding-top: 0 !important;
  }

  html[dir="rtl"] body.catalog-drawer-push .nav-shop-btn,
  html[dir="rtl"] body.catalog-drawer-open .nav-shop-btn,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-shop-btn,
  html[dir="rtl"] body.catalog-page-open .nav-shop-btn,
  html[dir="rtl"] body.catalog-branch-mode .nav-shop-btn {
    grid-area: unset !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
  }

  html[dir="rtl"] body.catalog-drawer-push .nav-cart-btn,
  html[dir="rtl"] body.catalog-drawer-push .nav-garage-btn,
  html[dir="rtl"] body.catalog-drawer-push .nav-btn-auth,
  html[dir="rtl"] body.catalog-drawer-push .nav-account,
  html[dir="rtl"] body.catalog-drawer-push .nav-lang-wrap,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-cart-btn,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-garage-btn,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-btn-auth,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-account,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-lang-wrap {
    grid-area: unset !important;
    justify-self: auto !important;
  }

  html[dir="rtl"] body.catalog-drawer-push .nav-actions-wrap,
  html[dir="rtl"] body:has(#catalogDrawer.open) .nav-actions-wrap {
    overflow: visible !important;
    min-width: 0 !important;
  }
}

/* ── Shared premium utility button ── */
.nav-util-cluster .nav-util-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nav-util-gap);
  height: var(--nav-util-btn-h);
  min-height: var(--nav-util-btn-h);
  padding: 0 var(--nav-util-pad-x);
  background: var(--nav-util-bg);
  border: 1px solid var(--nav-util-gold-border);
  border-radius: var(--nav-util-radius);
  color: #ffffff;
  font-family: var(--font-en, Montserrat, Arial, sans-serif);
  font-size: var(--nav-util-font-size);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.nav-util-cluster .nav-util-btn:hover,
.nav-util-cluster .nav-util-btn:focus-visible {
  border-color: var(--nav-util-gold-hover);
  box-shadow: none;
  outline: none;
  color: #ffffff;
  background: #161616;
  opacity: 1;
  transform: none;
}

/* ── Language ── */
.nav-util-cluster .nav-lang-wrap {
  flex-shrink: 0;
}

.nav-util-cluster .nav-lang-btn.nav-util-btn {
  min-width: 0;
  width: auto;
  margin: 0;
  color: #ffffff !important;
  background: var(--nav-util-bg) !important;
  border: 1px solid var(--nav-util-gold-border) !important;
  border-radius: var(--nav-util-radius) !important;
}

body.is-home-page .nav-util-cluster .nav-lang-btn.nav-util-btn,
body.is-home-page .nav-util-cluster .nav-lang-btn.nav-util-btn:hover,
body.is-home-page .nav-util-cluster .nav-lang-btn.nav-util-btn:focus-visible {
  color: #ffffff !important;
  background: var(--nav-util-bg) !important;
  border-radius: var(--nav-util-radius) !important;
}

body.is-home-page .nav-util-cluster .nav-lang-btn:hover,
body.is-home-page .nav-util-cluster .nav-lang-btn:focus-visible {
  background: #161616 !important;
  border-color: var(--nav-util-gold-hover) !important;
}

.nav-util-cluster .nav-lang-btn .lang-globe {
  display: none !important;
}

.nav-util-cluster .nav-util-btn__flag {
  width: 22px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-util-cluster .nav-util-btn__flag .lang-flag-icon,
.nav-mobile-actions .nav-util-btn__flag .lang-flag-icon {
  width: 22px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.nav-mobile-actions .nav-lang-btn .lang-globe {
  display: none;
}

.nav-mobile-actions .nav-util-btn__flag--mobile {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

.nav-mobile-actions .nav-util-btn__flag--mobile .lang-flag-icon {
  width: 20px;
  height: 14px;
}

.nav-util-cluster .nav-util-btn__chevron,
.nav-util-cluster .nav-lang-btn .lang-chevron {
  display: block !important;
  width: 10px;
  height: 10px;
  stroke: var(--nav-util-gold);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-inline-start: var(--nav-lang-chevron-gap);
}

/* ── Sign In / My Garage labels ── */
.nav-util-cluster .nav-util-btn__label,
.nav-util-cluster .nav-lang-btn #langBtnLabel,
.nav-util-cluster .nav-lang-btn #langBtnLabelMobile {
  display: inline;
  font-size: var(--nav-util-font-size);
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
}

html[dir="rtl"] .nav-util-cluster .nav-util-btn__label {
  font-family: var(--font-ar, Arial, sans-serif);
}

.nav-util-cluster .nav-util-btn--auth .nav-pill-text {
  display: none !important;
}

/* ── Icon cluster (outline 18px) ── */
.nav-util-cluster .nav-util-btn__icon,
.nav-util-cluster .nav-pill-icon.nav-util-btn__icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 0;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  padding: 0;
  margin: 0;
}

.nav-util-cluster .nav-util-btn__icon svg,
.nav-util-cluster .nav-pill-icon.nav-util-btn__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── My Garage refinements (icon scale, gold stroke, tighter label gap) ── */
.nav-util-cluster .nav-util-btn.nav-util-btn--garage {
  gap: var(--nav-garage-label-gap) !important;
}

.nav-util-cluster .nav-util-btn--garage .nav-util-btn__icon {
  width: var(--nav-garage-icon-box);
  height: var(--nav-garage-icon-box);
  min-width: var(--nav-garage-icon-box);
  min-height: var(--nav-garage-icon-box);
  color: var(--nav-util-gold);
  position: relative;
}

.nav-util-cluster .nav-util-btn--garage .nav-util-btn__icon svg {
  width: var(--nav-garage-icon-svg);
  height: var(--nav-garage-icon-svg);
  fill: currentColor !important;
  stroke: none !important;
}

.nav-util-cluster .nav-util-btn--garage .nav-util-btn__icon svg path {
  fill: currentColor !important;
  stroke: none !important;
}

.nav-util-cluster .nav-util-btn--garage:hover .nav-util-btn__icon svg,
.nav-util-cluster .nav-util-btn--garage:focus-visible .nav-util-btn__icon svg {
  fill: currentColor !important;
  stroke: none !important;
}

.nav-util-cluster .nav-garage-status {
  position: absolute;
  top: -1px;
  inset-inline-end: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  border: 1px solid var(--nav-util-bg);
  display: none;
  pointer-events: none;
}

.nav-util-cluster .nav-garage-status.is-visible {
  display: block;
}

.nav-util-cluster .nav-auth-initials {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-gold, #f6c343);
  font-family: var(--font-en, system-ui, sans-serif);
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-util-cluster .nav-util-btn--auth:has(.nav-auth-initials) .nav-util-btn__label {
  display: none;
}

/* ── Cart ── */
.nav-util-cluster .nav-cart-btn.nav-util-btn {
  width: auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: var(--nav-util-gap);
  padding: 0 var(--nav-util-pad-x);
}

.nav-util-cluster .nav-util-btn__icon-wrap,
.nav-util-cluster .nav-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  line-height: 0;
  overflow: visible;
}

.nav-util-cluster .nav-cart-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.75;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.nav-util-cluster .nav-cart-btn svg .nav-cart-wheel {
  fill: currentColor;
  stroke: none;
}

.nav-util-cluster .nav-cart-btn .cart-badge {
  top: -2px;
  inset-inline-start: auto;
  inset-inline-end: auto;
  right: -2px;
  left: auto;
  min-width: 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: #e11d2e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-en, Montserrat, Arial, sans-serif);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transform: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 18px;
}

html[dir="ltr"] .nav-util-cluster .nav-cart-btn .cart-badge {
  inset-inline-start: auto;
  inset-inline-end: auto;
  right: -2px;
  left: auto;
}

.nav-util-cluster .nav-cart-label {
  display: inline !important;
  color: #ffffff;
  font-size: var(--nav-util-font-size);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  font-family: var(--font-en, Montserrat, Arial, sans-serif);
}

body.catalog-page-open .nav-util-cluster .nav-cart-label,
body.catalog-branch-mode .nav-util-cluster .nav-cart-label,
body.catalog-drawer-open .nav-util-cluster .nav-cart-label,
body:has(#catalogDrawer.open) .nav-util-cluster .nav-cart-label,
body.catalog-drawer-push .nav-util-cluster .nav-cart-label {
  display: inline !important;
}

html[dir="rtl"] .nav-util-cluster .nav-cart-label {
  font-family: var(--font-ar, Arial, sans-serif);
}

/* ── Override home-premium / storefront compact util sizing (desktop) ── */
@media (min-width: 901px) {
  :root {
    /* Garage house mark — restored to full desktop util size */
    --nav-garage-icon-svg: 24px;
    --nav-garage-icon-box: 26.4px;
  }

  .nav-util-cluster {
    display: flex !important;
    align-items: center;
    gap: var(--nav-util-gap) !important;
    flex-shrink: 0;
  }

  body.is-home-page .nav-util-cluster .nav-util-btn,
  body.is-home-page .nav-util-cluster .nav-lang-btn.nav-util-btn,
  body.catalog-page-open .nav-util-cluster .nav-util-btn,
  body.catalog-branch-mode .nav-util-cluster .nav-util-btn,
  body.catalog-drawer-open .nav-util-cluster .nav-util-btn,
  body.catalog-drawer-push .nav-util-cluster .nav-util-btn {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    font-size: var(--nav-util-font-size) !important;
    gap: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #4a5568 !important;
    box-shadow: none !important;
  }

  body.is-home-page .nav-util-cluster .nav-lang-btn:hover,
  body.is-home-page .nav-util-cluster .nav-util-btn:hover,
  body.catalog-page-open .nav-util-cluster .nav-util-btn:hover {
    color: #1a2332 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.is-home-page .nav-main-actions .nav-account.nav-pill-btn,
  body.is-home-page .nav-util-cluster .nav-cart-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    box-shadow: none !important;
  }

  body.is-home-page .nav-util-cluster .nav-pill-icon,
  body.is-home-page .nav-util-cluster .nav-util-btn__icon {
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
  }

  body.is-home-page .nav-util-cluster .nav-util-btn--garage .nav-util-btn__icon,
  body.catalog-page-open .nav-util-cluster .nav-util-btn--garage .nav-util-btn__icon,
  body.catalog-branch-mode .nav-util-cluster .nav-util-btn--garage .nav-util-btn__icon {
    display: none !important;
  }

  body.is-home-page .nav-util-cluster .nav-util-btn--garage,
  body.catalog-page-open .nav-util-cluster .nav-util-btn--garage,
  body.catalog-branch-mode .nav-util-cluster .nav-util-btn--garage,
  body.catalog-drawer-open .nav-util-cluster .nav-util-btn--garage,
  body.catalog-drawer-push .nav-util-cluster .nav-util-btn--garage {
    gap: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 4px !important;
  }

  body.is-home-page .nav-util-cluster .nav-garage-btn .nav-util-btn__label,
  body.is-home-page .nav-util-cluster .nav-util-btn--garage .nav-util-btn__label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  body.is-home-page .nav-util-cluster .nav-pill-icon svg {
    width: 21.6px !important;
    height: 21.6px !important;
  }

  body.is-home-page .nav-util-cluster .nav-cart-btn svg {
    width: 25.92px !important;
    height: 25.92px !important;
    stroke: currentColor !important;
  }

  body.is-home-page .nav-util-cluster .nav-cart-icon-wrap,
  body.is-home-page .nav-util-cluster .nav-util-btn__icon-wrap {
    width: 24px !important;
    height: 24px !important;
  }

  /* Cart icon wrap +20% (24 → 28.8); other util wraps stay 24 */
  body.is-home-page .nav-util-cluster .nav-cart-icon-wrap {
    width: 28.8px !important;
    height: 28.8px !important;
  }

  body.is-home-page .nav-util-cluster .nav-cart-btn .cart-badge {
    top: -2px !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    right: -2px !important;
    left: auto !important;
    background: #e11d2e !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    min-width: 18px !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 18px !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  }

  /* Desktop: hide util labels (icons only) — garage keeps label under icon */
  body.is-home-page .nav-util-cluster .nav-cart-label,
  body.is-home-page .nav-util-cluster .nav-util-btn:not(.nav-garage-btn):not(.nav-util-btn--garage) .nav-util-btn__label,
  body.is-home-page .nav-util-cluster .nav-lang-btn #langBtnLabel,
  .nav-util-cluster .nav-cart-label,
  .nav-util-cluster .nav-util-btn:not(.nav-garage-btn):not(.nav-util-btn--garage) .nav-util-btn__label,
  .nav-util-cluster .nav-lang-btn #langBtnLabel {
    display: none !important;
  }

  html[dir="ltr"] .nav-util-cluster .nav-lang-wrap {
    grid-area: lang;
    margin-inline-start: 0;
  }

  html[dir="ltr"] .nav-util-cluster .nav-btn-auth,
  html[dir="ltr"] .nav-util-cluster .nav-account {
    grid-area: account;
  }

  html[dir="ltr"] .nav-util-cluster .nav-garage-btn {
    grid-area: garage;
  }

  html[dir="ltr"] .nav-util-cluster .nav-cart-btn {
    grid-area: cart;
  }

  /* LTR: utility grid cells stay compact icon hit-targets */
  html[dir="ltr"] .nav-main-actions .nav-lang-wrap,
  html[dir="ltr"] .nav-main-actions .nav-account,
  html[dir="ltr"] .nav-main-actions .nav-btn-auth,
  html[dir="ltr"] .nav-main-actions .nav-garage-btn,
  html[dir="ltr"] .nav-main-actions .nav-cart-btn,
  html[dir="ltr"] .nav-main-actions .nav-util-btn,
  html[dir="ltr"] .nav-main-actions .nav-lang-btn.nav-util-btn {
    min-width: 44px !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile: square lang tab to match header cells */
@media (max-width: 900px) {
  .nav-util-cluster {
    display: none !important;
  }

  .nav-mobile-actions .nav-lang-btn {
    border-radius: var(--nav-cell-radius, 0) !important;
    border: 1px solid var(--nav-util-gold-border, rgba(246, 195, 67, 0.55)) !important;
    height: var(--nav-cell-h, 40px) !important;
    min-height: var(--nav-cell-h, 40px) !important;
  }

  .nav-mobile-actions .nav-btn-auth,
  .nav-mobile-actions .nav-cart-btn {
    border-radius: var(--nav-cell-radius, 0) !important;
  }
}
