/* OEM.az header: sürüşdürəndə yuxarıda qalan əsas sətir və «Kataloq» paneli. Rənglər mövcud OEM palitrasındandır. */
.oem-top-link { color: #fff; font-size: .875rem; text-decoration: none; opacity: .9; }
.oem-top-link:hover { color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.oem-sticky-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e3e8ef; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.oem-header-grid { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "logo catalog search actions"; align-items: center; gap: 12px 16px; padding-block: 10px; }
.oem-header-back { grid-area: back; display: none; }
.oem-sticky-header .oem-header-logo { grid-area: logo; margin: 0; padding: 0; line-height: 0; }
.oem-sticky-header .oem-header-logo img { width: 106px; height: 45px; object-fit: contain; }
.oem-catalog-btn { grid-area: catalog; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-left: 20px; padding: 0 20px; border-radius: 12px; background: var(--oem-danger, #dc3545); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color .15s ease; }
.oem-catalog-btn:hover, .oem-catalog-btn:focus-visible, .oem-catalog-btn.is-open { background: #b02a37; color: #fff; }
.oem-catalog-btn .bi { font-size: 1.05rem; line-height: 1; }
.oem-header-search { grid-area: search; flex-wrap: nowrap; width: 100%; }
.oem-header-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }

/* ---------- Kataloq paneli (kompüter) ---------- */
.oem-catalog { position: absolute; top: 100%; left: 0; right: 0; z-index: 1031; background: #fff; border-top: 1px solid #e3e8ef; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); }
.oem-catalog[hidden] { display: none; }
.oem-catalog-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-height: min(620px, calc(100vh - 130px)); padding: 0; }
.oem-catalog-shell--promo { grid-template-columns: 280px minmax(0, 1fr) 250px; }
.oem-catalog-top { display: none; }
.oem-catalog-depts { padding: 12px 10px; overflow-y: auto; background: #fafbfd; border-right: 1px solid #eef1f5; }
.oem-catalog-depts ul { list-style: none; margin: 0; padding: 0; }
.oem-catalog-dept, .oem-catalog-extra a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: 10px; color: #1f2937; font-size: .95rem; font-weight: 600; text-decoration: none; }
.oem-catalog-dept > .bi:first-child, .oem-catalog-extra .bi { flex: none; width: 22px; text-align: center; font-size: 1.15rem; color: #8a94a6; }
.oem-catalog-dept span { flex: 1; min-width: 0; }
.oem-catalog-chevron { font-size: .8rem; color: #b2bac6; }
.oem-catalog-dept:hover, .oem-catalog-dept.is-active { background: #fdecee; color: #b02a37; }
.oem-catalog-dept:hover > .bi, .oem-catalog-dept.is-active > .bi { color: #dc3545; }
.oem-catalog-depts .oem-catalog-extra { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e9edf2; }
.oem-catalog-extra a { min-height: 42px; font-weight: 500; color: #4b5563; }
.oem-catalog-extra a:hover { background: #f1f4f8; color: #1f2937; }
.oem-catalog-panes { padding: 22px 28px; overflow-y: auto; }
.oem-catalog-pane[hidden] { display: none; }
.oem-catalog-pane-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; color: #111827; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.oem-catalog-pane-title small { font-size: .85rem; font-weight: 600; color: #dc3545; }
.oem-catalog-pane-title:hover { color: #111827; }
.oem-catalog-pane-title:hover small { text-decoration: underline; text-underline-offset: 3px; }
.oem-catalog-sections { columns: 3 210px; column-gap: 28px; }
.oem-catalog-section { break-inside: avoid; margin-bottom: 20px; }
.oem-catalog-section-title { display: block; margin-bottom: 4px; color: #111827; font-weight: 700; text-decoration: none; }
.oem-catalog-section-title:hover { color: #dc3545; }
.oem-catalog-section ul, .oem-catalog-links { list-style: none; margin: 0; padding: 0; }
.oem-catalog-links { columns: 3 200px; column-gap: 28px; }
.oem-catalog-links li { break-inside: avoid; }
.oem-catalog-section li a, .oem-catalog-links a { display: inline-block; padding: 4px 0; color: #4b5563; font-size: .92rem; line-height: 1.35; text-decoration: none; }
.oem-catalog-section li a:hover, .oem-catalog-links a:hover { color: #dc3545; text-decoration: underline; text-underline-offset: 3px; }
.oem-catalog-section .oem-catalog-more { color: #dc3545; font-weight: 600; }
.oem-catalog-promo { align-self: start; display: flex; flex-direction: column; gap: 12px; margin: 18px 18px 18px 0; padding: 22px 20px; border-radius: 16px; background: linear-gradient(160deg, #e3343a, #a61b29); color: #fff; }
.oem-catalog-promo > .bi { font-size: 2rem; line-height: 1; }
.oem-catalog-promo p { margin: 0; font-size: .95rem; line-height: 1.5; }
.oem-catalog-promo .btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 10px; color: #a61b29; font-weight: 700; }
.oem-catalog-backdrop { position: fixed; inset: 0; z-index: 1020; background: rgba(15, 23, 42, .45); }
.oem-catalog-backdrop[hidden] { display: none; }
:is(.oem-sticky-header, .oem-catalog) :is(a, button, input):focus-visible { outline: 2px solid #145da6; outline-offset: 2px; }

/* Kiçik noutbukda reklam kartı gizlənir ki, bölmələrə yer qalsın. */
@media (max-width: 1199.98px) {
  .oem-catalog-shell--promo { grid-template-columns: 260px minmax(0, 1fr); }
  .oem-catalog-promo { display: none; }
}

/* ---------- Planşet və telefon: iki sətir header, tam ekran kataloq ---------- */
@media (max-width: 991.98px) {
  .oem-header-grid { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo . actions" "catalog search search"; gap: 8px 10px; padding-block: 8px; }
  .oem-catalog-btn { margin-left: 0; padding: 0 14px; }
  .oem-catalog { position: fixed; inset: 0; z-index: 1070; display: flex; flex-direction: column; border: 0; box-shadow: none; }
  .oem-catalog-shell, .oem-catalog-shell--promo { display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: none; max-height: none; }
  .oem-catalog-top { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: calc(8px + var(--oem-safe-top, 0px)) 12px 8px; border-bottom: 1px solid #e9edf2; }
  .oem-catalog-heading { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 800; color: #111827; overflow-wrap: anywhere; }
  .oem-catalog-icon-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f3f6fb; color: #182b42; font-size: 1.1rem; }
  .oem-catalog-icon-btn[hidden] { display: none; }
  .oem-catalog-depts { flex: 1; min-height: 0; padding: 10px 12px 28px; background: #fff; border: 0; }
  .oem-catalog-dept { min-height: 54px; font-size: 1.02rem; }
  .oem-catalog-dept.is-active { background: none; color: #1f2937; }
  .oem-catalog-dept.is-active > .bi:first-child { color: #8a94a6; }
  .oem-catalog-dept.is-active > .oem-catalog-chevron { color: #b2bac6; }
  .oem-catalog-panes { display: none; flex: 1; min-height: 0; padding: 16px 16px 32px; }
  .oem-catalog.is-pane .oem-catalog-depts { display: none; }
  .oem-catalog.is-pane .oem-catalog-panes { display: block; }
  .oem-catalog-pane-title { font-size: 1.15rem; }
  .oem-catalog-sections, .oem-catalog-links { columns: 2 170px; }
  .oem-catalog-section li a, .oem-catalog-links a { padding: 9px 0; font-size: 1rem; }
  .oem-catalog-promo, .oem-catalog-backdrop { display: none !important; }
  html.oem-catalog-open, html.oem-catalog-open body { overflow: hidden; }
  /* Sabit header öz qatını yaradır; açıq kataloq aşağı menyunun da üstündə olsun. */
  html.oem-catalog-open .oem-sticky-header { z-index: 1080; }
  .oem-catalog-pane-title { margin-bottom: 12px; }
  .oem-catalog-pane-title span { display: none; }
  .oem-catalog-pane-title small { font-size: .95rem; }
  .oem-catalog-section { margin-bottom: 16px; }
  .oem-catalog-section-title { font-size: 1.02rem; padding: 6px 0; }
}

/* Telefon: 1-ci sətir logo + ikonlar, 2-ci sətir geri + axtarış. «Kataloq» aşağı menyudadır. */
@media (max-width: 767.98px) {
  .oem-header-grid { grid-template-columns: 44px auto minmax(0, 1fr) auto; grid-template-areas: "logo logo . actions" "back search search search"; gap: 8px; }
  .oem-catalog-btn { display: none; }
  .oem-header-back { display: grid; width: 44px; height: 44px; flex: none; }
  .oem-sticky-header .oem-header-logo img { width: 96px; height: 41px; }
  .oem-header-actions { gap: .4rem; }
  /* Aşağı menyu açıq kataloqun altında görünür qalır, «Kataloq» ilə yenidən bağlanır. */
  .oem-catalog { bottom: calc(var(--mb-h, 64px) + var(--mb-safe, 0px)); }
  .oem-catalog-sections, .oem-catalog-links { columns: 1; }
  .mobile-bottom-bar .mb-catalog-link.is-open { color: #0d6efd; }
  html.oem-catalog-open .mobile-bottom-bar .mb-link.active:not(.mb-catalog-link) { color: #2f3742; }
}

@media (prefers-reduced-motion: reduce) {
  .oem-catalog-btn { transition: none; }
}
