/**
 * OEM ASTRA J — Dark hero / nav + light content bands (homepage)
 */

:root {
  --light-bg: #f2f3f6;
  --light-bg-elevated: #ffffff;
  --light-border: rgba(0, 0, 0, 0.08);
  --light-border-strong: rgba(0, 0, 0, 0.12);
  --light-text: #121418;
  --light-text-muted: #5c6570;
  --light-shadow: 0 8px 28px rgba(15, 20, 30, 0.08);
  --light-shadow-sm: 0 4px 14px rgba(15, 20, 30, 0.06);
}

/* ── Light section band ── */
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

.section-light .section-label {
  color: var(--light-text-muted);
  letter-spacing: 0.18em;
}

.section-light .section-title {
  color: var(--light-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-light .section-title em {
  color: var(--red);
  font-style: normal;
}

.section-light .muted,
.section-light .top-parts-swipe-hint {
  color: var(--light-text-muted);
}

/* ── Catalog CTA on light ── */
.section-light.mob-card--actions {
  background: var(--light-bg);
}

.section-light .mob-catalog-cta-main,
.section-light .btn-hero-contact.mob-catalog-cta-main {
  background: var(--light-text);
  color: #fff;
  border: none;
  box-shadow: var(--light-shadow);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-light .mob-catalog-cta-main:active {
  transform: scale(0.98);
}

/* ── Top selling section — dark theme ── */
#topParts.top-selling-section {
  background: #0a0a0a;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#topParts.top-selling-section .section-label {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.22em;
}

#topParts.top-selling-section .top-parts-head-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#topParts.top-selling-section .top-parts-head-title em {
  color: #fff;
  font-style: normal;
  font-weight: inherit;
}

html[dir="ltr"] #topParts.top-selling-section .top-parts-head-title {
  text-transform: none;
  letter-spacing: -0.02em;
}

#topParts.top-selling-section .section-head {
  scroll-margin-top: calc(
    var(--nav-total-h) + var(--nav-logo-over) - var(--nav-clearance-trim) + 8px
  );
}

#topParts.top-selling-section .top-parts-swipe-hint {
  color: rgba(255, 255, 255, 0.35);
}

#topParts.top-selling-section .top-part-slot-empty {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.35);
}

.section-light .mob-card-body--marquee {
  background: var(--light-bg-elevated);
  border: 1px solid var(--light-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-light .product-card {
  background: var(--light-bg-elevated);
  border-color: var(--light-border);
  box-shadow: var(--light-shadow-sm);
}

.section-light .product-card:hover {
  border-color: rgba(215, 25, 32, 0.35);
  box-shadow: var(--light-shadow);
}

.section-light .product-card .product-img-wrap {
  background: #f8f9fb;
}

.section-light .product-card .product-name,
.section-light .product-card .product-name-ar,
.section-light .product-card .product-name-en {
  color: var(--light-text);
}

.section-light .product-card .product-meta-row,
.section-light .product-card .product-brand-row {
  color: var(--light-text-muted);
}

.section-light .product-card .product-card-brand-name {
  color: var(--light-text-muted);
}

.section-light .product-card .product-compat-tag {
  color: var(--light-text-muted);
}

.section-light .product-card .product-compat-tag--14 {
  background: #6e0f14;
  border-color: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.section-light .product-card .product-compat-pill--16 {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(180, 140, 20, 0.55);
  color: #8a6914;
}

.section-light .product-card .product-compat-pill--14 {
  background: linear-gradient(180deg, #ff7b7b 0%, #ef4444 100%);
  border-color: #fca5a5;
  color: #fff;
}

.section-light .product-card .product-compat-pill-sep {
  color: #9ca3af;
}

.section-light .product-card .product-compat-sep {
  color: var(--light-text-muted);
}

.section-light .product-card .product-price,
.section-light .product-card .product-price--inline,
.section-light .product-card .product-price--single,
.section-light .product-card .product-price-sale {
  color: var(--price-final-on-light, #3b82f6);
  font-size: 28px;
  font-weight: 400;
}

.section-light .product-card .product-price span,
.section-light .product-card .product-price--inline span,
.section-light .product-card .product-price--single span,
.section-light .product-card .product-price-sale span {
  color: #555E6B;
}

.section-light .product-card .product-price-compare {
  color: #6b7280;
  text-decoration: none;
}

.section-light .product-card .product-price-compare-amt {
  text-decoration: line-through;
}

.section-light .product-card .product-price-badge {
  color: #D71920;
  background: none;
}

body.catalog-branch-mode .product-card .product-price-sale,
body.catalog-page-open .product-card .product-price-sale,
body.catalog-branch-mode .product-card .product-price--single,
body.catalog-page-open .product-card .product-price--single {
  font-size: 28px;
  font-weight: 500;
  color: var(--price-final, #93c5fd);
  line-height: 1;
  letter-spacing: -0.01em;
  transform: none;
}

body.catalog-branch-mode .product-card .product-price-compare,
body.catalog-page-open .product-card .product-price-compare {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transform: none;
  text-decoration: none;
}

body.catalog-branch-mode .product-card .product-price-compare-amt,
body.catalog-page-open .product-card .product-price-compare-amt {
  text-decoration: line-through;
}

body.catalog-branch-mode .product-card .product-price-badge,
body.catalog-page-open .product-card .product-price-badge {
  font-size: 18px;
  font-weight: 800;
  color: #D71920;
  background: none;
  padding: 0;
  border-radius: 0;
  transform: none;
}

body.catalog-branch-mode .product-card .product-price-block,
body.catalog-page-open .product-card .product-price-block {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px 8px;
  justify-content: flex-end;
}

.section-light .product-card .product-card-brand-logo {
  filter: none;
}

.section-light .product-card .product-name-en {
  color: var(--light-text-muted);
}

.section-light .product-card .product-meta-label {
  color: #6b7280;
}

.section-light .product-card .product-meta-val {
  color: var(--light-text);
}

.section-light .product-card .product-details .product-meta-row {
  color: var(--light-text-muted);
}

.section-light .product-card .product-details .product-meta-val {
  color: var(--light-text);
}

.section-light .product-card .product-details .product-desc {
  color: #4b5563;
}

.section-light .product-card .product-card-specs-table {
  border-color: var(--light-border);
}

.section-light .product-card .product-card-specs-table thead th {
  background: #f3f4f6;
  color: #6b7280;
}

.section-light .product-card .product-card-specs-table tbody th {
  color: #6b7280;
}

.section-light .product-card .product-card-specs-table tbody td {
  color: var(--light-text);
}

.section-light .product-card .product-card-specs-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.section-light .product-card .product-tag {
  color: #8a6914;
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(184, 137, 26, 0.38);
}

.section-light .product-card .brand-country {
  color: var(--light-text-muted);
}

.section-light .product-card .product-warranty {
  color: #3d4654;
  background: rgba(10, 25, 70, 0.07);
  border-color: rgba(10, 25, 70, 0.14);
}

.section-light .item-tabs {
  background: var(--light-bg-elevated);
  border-color: var(--light-border);
}

.section-light .item-tab {
  color: var(--light-text-muted);
  border-color: var(--light-border);
}

.section-light .item-tab.active {
  background: var(--light-text);
  color: #fff;
  border-color: var(--light-text);
}

.section-light .catalog-breadcrumb,
.section-light .catalog-breadcrumb a {
  color: var(--light-text-muted);
}

.section-light .catalog-breadcrumb a:hover {
  color: var(--light-text);
}

.section-light .btn-all-gold {
  color: var(--red-dark);
  border-color: rgba(215, 25, 32, 0.25);
  background: rgba(215, 25, 32, 0.06);
}

/* ── Why us on light ── */
.section-light .why-card {
  background: var(--light-bg-elevated);
  border: 1px solid var(--light-border);
  box-shadow: var(--light-shadow-sm);
}

.section-light .why-card:hover {
  border-color: rgba(215, 25, 32, 0.22);
  box-shadow: var(--light-shadow);
}

.section-light .why-icon {
  background: rgba(215, 25, 32, 0.08);
}

.section-light .why-title {
  color: var(--light-text);
}

.section-light .why-text {
  color: var(--light-text-muted);
}

#why.section-light,
#why.section-light .section-head {
  scroll-margin-top: calc(var(--nav-total-h) + 24px);
}

/* ── Desktop: full-width light bands ── */
@media (min-width: 768px) {
  .section-light.section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-light .section-inner {
    max-width: 1320px;
  }

  .section-light.mob-card--actions {
    padding: 28px 0 32px;
  }

  .section-light .mob-catalog-cta-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .section-light .mob-catalog-cta-main {
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    font-size: 15px;
  }

  .hero {
    margin-bottom: 0;
    min-height: calc(520px + 1.5cm);
    height: calc(min(68vh, 640px) + 1.5cm);
    max-height: calc(640px + 1.5cm);
  }

  .mob-home-feed .mob-card--hero {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .mob-home-feed .mob-card--hero .hero {
    min-height: calc(520px + 1.5cm);
    height: calc(min(68vh, 640px) + 1.5cm);
    max-height: calc(640px + 1.5cm);
  }

  #topParts.top-selling-section {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    background: transparent;
  }
}

/* ── Mobile: full-width light bands (no negative margins — avoids horizontal scroll) ── */
@media (max-width: 767px) {
  .mob-home-feed .section-light:not(.mob-card--policy) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    animation: none;
  }

  .mob-home-feed .section-light.mob-card--hero {
    margin-left: 14px;
    margin-right: 14px;
    width: auto;
    max-width: calc(100% - 28px);
  }

  .mob-home-feed #policyWarranty.mob-card,
  .mob-home-feed #policyReturn.mob-card,
  .mob-home-feed #trackOrder.mob-card {
    width: auto;
    max-width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    box-shadow: var(--light-shadow-sm);
    background: var(--light-bg-elevated);
    color: var(--light-text);
    overflow: hidden;
    animation: mobCardIn 0.42s ease both;
  }

  .mob-home-feed #policyWarranty.mob-card {
    margin-top: 12px;
    margin-bottom: 12px;
    border-top: none;
    border-bottom: none;
  }

  .mob-home-feed #policyReturn.mob-card,
  .mob-home-feed #trackOrder.mob-card {
    margin-bottom: 12px;
    border-top: none;
    border-bottom: none;
  }

  .mob-home-feed #policyWarranty .section-inner,
  .mob-home-feed #policyReturn .section-inner,
  .mob-home-feed #trackOrder .section-inner {
    padding: 16px 16px 18px;
  }

  .mob-home-feed #policyWarranty .policy-head-title,
  .mob-home-feed #policyReturn .policy-head-title {
    color: var(--light-text);
  }

  .mob-home-feed #policyReturn .policy-head-title {
    color: var(--red);
  }

  .mob-home-feed #trackOrder .section-title {
    color: var(--light-text);
  }

  .mob-home-feed .section-light .section-inner,
  .mob-home-feed .section-light .mob-catalog-cta-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mob-home-feed .section-light .section-title {
    color: var(--light-text);
  }

  .mob-home-feed .section-light .section-title em {
    color: var(--red);
  }

  .mob-home-feed #why.section-light .why-card {
    background: var(--light-bg-elevated);
    border-color: var(--light-border);
    box-shadow: var(--light-shadow-sm);
  }

  .mob-home-feed .section-light .top-selling-card {
    background: #2a2a2a;
    border: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
  }

  .mob-home-feed .section-light .top-selling-img-wrap {
    background: #000;
  }

  .mob-home-feed .section-light .top-selling-name {
    color: #fff;
  }

  .mob-home-feed .section-light .top-selling-price-row {
    color: inherit;
  }

  .mob-home-feed .section-light .mob-card-body--marquee {
    background: var(--light-bg-elevated);
    border-color: var(--light-border);
  }
}

/* ── Catalog open: clear fixed nav + logo overhang ── */
html:has(body.catalog-branch-mode),
html:has(body.catalog-page-open) {
  scroll-padding-top: calc(var(--nav-total-h) + 12px);
}

body.catalog-page-open nav,
body.catalog-branch-mode nav {
  background: #000;
  border-bottom: none;
  box-shadow: none;
  padding-bottom: calc(var(--nav-logo-over) + 8px);
  z-index: 1000;
  isolation: isolate;
}

body.catalog-page-open > nav:not(.mob-bottom-bar),
body.catalog-branch-mode > nav:not(.mob-bottom-bar) {
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

body.catalog-page-open > nav:not(.mob-bottom-bar) a,
body.catalog-page-open > nav:not(.mob-bottom-bar) button,
body.catalog-page-open > nav:not(.mob-bottom-bar) input,
body.catalog-page-open > nav:not(.mob-bottom-bar) select,
body.catalog-page-open > nav:not(.mob-bottom-bar) label,
body.catalog-branch-mode > nav:not(.mob-bottom-bar) a,
body.catalog-branch-mode > nav:not(.mob-bottom-bar) button,
body.catalog-branch-mode > nav:not(.mob-bottom-bar) input,
body.catalog-branch-mode > nav:not(.mob-bottom-bar) select,
body.catalog-branch-mode > nav:not(.mob-bottom-bar) label {
  pointer-events: auto;
}

body.catalog-page-open .nav-main,
body.catalog-branch-mode .nav-main {
  background: #000;
  overflow: visible;
  z-index: 1001;
}

body.catalog-page-open .catalog-branch-shell,
body.catalog-branch-mode .catalog-branch-shell {
  margin-top: calc(var(--nav-total-h) + 8px);
  min-height: calc(100dvh - var(--nav-total-h) - 8px);
  border-top: none;
  position: relative;
  z-index: 2;
  background: #141416;
}

body.catalog-page-open #products.section,
body.catalog-page-open #products.catalog-branch-main,
body.catalog-branch-mode #products.section,
body.catalog-branch-mode #products.catalog-branch-main {
  background: #141416;
}

body.catalog-page-open .catalog-branch-toolbar,
body.catalog-branch-mode .catalog-branch-toolbar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #101012;
}

body.catalog-page-open .catalog-branch-toolbar h1,
body.catalog-branch-mode .catalog-branch-toolbar h1 {
  color: #fff;
}

body.catalog-page-open .catalog-branch-switch,
body.catalog-branch-mode .catalog-branch-switch {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

body.catalog-page-open .catalog-branch-switch:hover,
body.catalog-branch-mode .catalog-branch-switch:hover {
  background: #252528;
  color: #fff;
}

body.catalog-page-open .catalog-branch-page,
body.catalog-branch-mode .catalog-branch-page {
  background: #101012;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.catalog-page-open .catalog-branch-search-wrap,
body.catalog-branch-mode .catalog-branch-search-wrap {
  padding: 6px 10px;
  background: #101012;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.catalog-page-open .catalog-branch-search,
body.catalog-branch-mode .catalog-branch-search {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.12);
}

body.catalog-page-open .catalog-branch-search input,
body.catalog-branch-mode .catalog-branch-search input {
  color: rgba(255, 255, 255, 0.9);
}

body.catalog-page-open .catalog-branch-search input::placeholder,
body.catalog-branch-mode .catalog-branch-search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

body.catalog-page-open .catalog-branch-tree-wrap,
body.catalog-branch-mode .catalog-branch-tree-wrap {
  background: #101012;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body.catalog-page-open .catalog-branch-path,
body.catalog-branch-mode .catalog-branch-path {
  color: rgba(255, 255, 255, 0.5);
}

body.catalog-page-open .catalog-branch-path .current,
body.catalog-branch-mode .catalog-branch-path .current {
  color: #fff;
}

body.catalog-page-open .branch-node-head,
body.catalog-branch-mode .branch-node-head {
  background: #1a1a1c;
  border-color: rgba(255, 255, 255, 0.1);
}

body.catalog-page-open .branch-node-head:hover,
body.catalog-branch-mode .branch-node-head:hover {
  background: #222226;
}

body.catalog-page-open .branch-node--group.is-focus > .branch-node-head,
body.catalog-branch-mode .branch-node--group.is-focus > .branch-node-head {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
}

body.catalog-page-open .branch-node--item .branch-node-head,
body.catalog-branch-mode .branch-node--item .branch-node-head {
  background: #1e1e22;
  border-color: rgba(255, 255, 255, 0.12);
  padding: 7px 10px;
}

body.catalog-page-open .branch-node--item.is-open,
body.catalog-branch-mode .branch-node--item.is-open {
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

body.catalog-page-open .branch-label--cat,
body.catalog-branch-mode .branch-label--cat {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

body.catalog-page-open .branch-type-tag--item,
body.catalog-branch-mode .branch-type-tag--item {
  background: rgba(215, 25, 32, 0.2);
  color: #ff8a8a;
  border: 1px solid rgba(215, 25, 32, 0.35);
}

body.catalog-page-open .branch-type-tag--brand,
body.catalog-branch-mode .branch-type-tag--brand {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

body.catalog-page-open .branch-type-tag,
body.catalog-branch-mode .branch-type-tag {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  flex-shrink: 0;
}

body.catalog-page-open .branch-node--variant .branch-node-head,
body.catalog-branch-mode .branch-node--variant .branch-node-head {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 8px;
  margin-bottom: 4px;
}

body.catalog-page-open .branch-node-head--brand,
body.catalog-branch-mode .branch-node-head--brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.catalog-page-open .branch-brand,
body.catalog-branch-mode .branch-brand {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-en);
  letter-spacing: 0.03em;
}

body.catalog-page-open .branch-part,
body.catalog-branch-mode .branch-part {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-en);
  margin-inline-start: auto;
}

body.catalog-page-open .branch-node--variant .branch-label,
body.catalog-branch-mode .branch-node--variant .branch-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-en);
}

body.catalog-page-open .branch-node--item.is-active > .branch-node-head,
body.catalog-branch-mode .branch-node--item.is-active > .branch-node-head {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.18);
}

body.catalog-page-open .branch-node--item.is-active .branch-label--cat,
body.catalog-branch-mode .branch-node--item.is-active .branch-label--cat {
  color: var(--gold-light);
}

body.catalog-page-open .branch-label,
body.catalog-branch-mode .branch-label {
  color: rgba(255, 255, 255, 0.88);
}

body.catalog-page-open .branch-toggle,
body.catalog-branch-mode .branch-toggle {
  color: rgba(255, 255, 255, 0.45);
}

body.catalog-page-open .branch-children,
body.catalog-branch-mode .branch-children {
  border-inline-start-color: rgba(255, 255, 255, 0.1);
}

body.catalog-page-open .branch-children--variants,
body.catalog-branch-mode .branch-children--variants {
  border-inline-start-color: rgba(212, 175, 55, 0.28);
  padding-inline-start: 12px;
  margin-top: 4px;
}

body.catalog-page-open .branch-node--variant.is-active > .branch-node-head,
body.catalog-branch-mode .branch-node--variant.is-active > .branch-node-head {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.14);
}

body.catalog-page-open .branch-node--variant.is-active .branch-brand,
body.catalog-branch-mode .branch-node--variant.is-active .branch-brand {
  color: var(--gold-light);
}

body.catalog-page-open .branch-node--item.is-open > .branch-node-head,
body.catalog-branch-mode .branch-node--item.is-open > .branch-node-head {
  padding-inline-start: 8px;
}

body.catalog-page-open .branch-thumb,
body.catalog-branch-mode .branch-thumb {
  border-color: rgba(255, 255, 255, 0.12);
}

body.catalog-page-open .catalog-tree-empty,
body.catalog-branch-mode .catalog-tree-empty {
  color: rgba(255, 255, 255, 0.45);
}

body.catalog-page-open .catalog-branch-search:focus-within,
body.catalog-branch-mode .catalog-branch-search:focus-within {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}

/* ── Catalog drawer sidebar (homepage) — dark ── */
.catalog-drawer {
  background: #101012;
  color: rgba(255, 255, 255, 0.88);
}

.catalog-drawer-search-wrap {
  background: #101012;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.catalog-drawer .catalog-drawer-search:not(.catalog-branch-search) {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.12);
}

.catalog-drawer .catalog-drawer-search:not(.catalog-branch-search) input {
  color: rgba(255, 255, 255, 0.9);
}

.catalog-drawer .catalog-drawer-search:not(.catalog-branch-search) input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.catalog-drawer .catalog-drawer-search:not(.catalog-branch-search):focus-within {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}

.catalog-groups-list {
  background: #101012;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.catalog-group-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.catalog-group-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.catalog-group-row.active {
  background: rgba(212, 175, 55, 0.16);
}

.catalog-group-row.active .catalog-group-name {
  color: var(--gold-light);
}

.catalog-group-thumb {
  background: #1a1a1c;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.catalog-group-name {
  color: rgba(255, 255, 255, 0.88);
}

.catalog-group-chevron {
  stroke: rgba(255, 255, 255, 0.35);
}

.catalog-drawer-body {
  background: #101012;
}

.catalog-tree-panel {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.catalog-path-bar {
  background: #101012;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.catalog-path-sep {
  color: rgba(255, 255, 255, 0.3);
}

.catalog-path-current {
  color: #fff;
}

.catalog-tree-group {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(215, 25, 32, 0.12);
}

.catalog-item-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.catalog-item-row::before {
  border-color: rgba(255, 255, 255, 0.25);
}

.catalog-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.catalog-item-row.active {
  background: rgba(212, 175, 55, 0.16);
}

.catalog-item-row.active .catalog-item-name {
  color: var(--gold-light);
}

.catalog-item-name {
  color: rgba(255, 255, 255, 0.88);
}

.catalog-item-count {
  color: rgba(255, 255, 255, 0.4);
}

.catalog-tree-empty {
  color: rgba(255, 255, 255, 0.45);
}

.catalog-drawer-footer {
  background: #101012;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.catalog-drawer-link {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.catalog-drawer-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.catalog-drawer-link-text {
  color: rgba(255, 255, 255, 0.82);
}

.catalog-drawer-link-meta {
  color: rgba(255, 255, 255, 0.4);
}

.catalog-drawer-link-icon svg {
  stroke: rgba(255, 255, 255, 0.45);
}

.catalog-drawer-link-chevron {
  stroke: rgba(255, 255, 255, 0.3);
}

.catalog-search-dropdown {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.catalog-search-dropdown .search-drop-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.catalog-search-dropdown .search-drop-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.catalog-search-dropdown .search-drop-count,
.catalog-search-dropdown .search-drop-recent-hdr {
  color: rgba(255, 255, 255, 0.45);
}

.catalog-search-dropdown .search-drop-empty {
  color: rgba(255, 255, 255, 0.4);
}

/* Catalog branch: compact products column (no duplicate section-head) */
body.catalog-branch-mode #products.section,
body.catalog-branch-mode #products.catalog-branch-main {
  padding-top: calc(var(--nav-total-h) + 12px);
  padding-bottom: 24px;
  border-top: none;
  scroll-margin-top: calc(var(--nav-total-h) + 12px);
  background: #141416;
}

body.catalog-page-open #products.section,
body.catalog-page-open #products.catalog-branch-main {
  scroll-margin-top: calc(var(--nav-total-h) + 12px);
  background: #141416;
}

body.catalog-branch-mode #products .catalog-breadcrumb,
body.catalog-page-open #products .catalog-breadcrumb {
  color: rgba(255, 255, 255, 0.5);
}

body.catalog-branch-mode #products .catalog-breadcrumb button,
body.catalog-page-open #products .catalog-breadcrumb button {
  color: var(--gold-light);
}

body.catalog-branch-mode #products .catalog-breadcrumb button:hover,
body.catalog-page-open #products .catalog-breadcrumb button:hover {
  color: #fff;
}

body.catalog-branch-mode #products .live-search-bar,
body.catalog-page-open #products .live-search-bar {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

body.catalog-branch-mode #products .section-inner {
  padding-top: 0;
}

body.catalog-branch-mode #products .section-head {
  display: none;
}

body.catalog-branch-mode #products .catalog-breadcrumb {
  margin-top: 0;
  margin-bottom: 10px;
  gap: 6px;
  font-size: 12px;
}

body.catalog-branch-mode #products .products-grid {
  gap: 10px;
}

body.catalog-branch-mode #products .products-grid.catalog-view-grid,
body.catalog-page-open #products .products-grid.catalog-view-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

body.catalog-branch-mode .catalog-view-grid .product-img-wrap,
body.catalog-page-open .catalog-view-grid .product-img-wrap {
  height: 172px;
}

body.catalog-branch-mode .product-card .product-body,
body.catalog-page-open .product-card .product-body {
  padding: 10px 11px;
  gap: 5px;
}

/* ── Catalog view toggle bar ── */
body.catalog-branch-mode .catalog-view-bar,
body.catalog-page-open .catalog-view-bar {
  margin-bottom: 12px;
}

body.catalog-branch-mode .catalog-view-toggle,
body.catalog-page-open .catalog-view-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1c1c1f;
}

body.catalog-branch-mode .catalog-view-btn,
body.catalog-page-open .catalog-view-btn {
  color: rgba(255, 255, 255, 0.55);
}

body.catalog-branch-mode .catalog-view-btn:hover,
body.catalog-page-open .catalog-view-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.catalog-branch-mode .catalog-view-btn.is-active,
body.catalog-page-open .catalog-view-btn.is-active {
  background: var(--red);
  color: #fff;
}

/* Side price slot: hidden by default; desktop list view shows it instead of --head */
.product-price-slot.product-price-slot--side {
  display: none;
}

/* ── Catalog list view (desktop) ── */
@media (min-width: 900px) {
  body.catalog-branch-mode .products-grid.catalog-view-list,
  body.catalog-page-open .products-grid.catalog-view-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.catalog-branch-mode .catalog-view-list .product-card,
  body.catalog-page-open .catalog-view-list .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
    border-radius: 8px;
    transform: none;
  }

  body.catalog-branch-mode .catalog-view-list .product-card:hover,
  body.catalog-page-open .catalog-view-list .product-card:hover {
    transform: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  body.catalog-branch-mode .catalog-view-list .product-img-wrap,
  body.catalog-page-open .catalog-view-list .product-img-wrap {
    width: 228px;
    min-width: 228px;
    height: auto;
    min-height: 0;
    align-self: stretch;
    flex-shrink: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-body,
  body.catalog-page-open .catalog-view-list .product-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 8px 18px;
    padding: 12px 14px;
    align-items: stretch;
    min-width: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-main,
  body.catalog-page-open .catalog-view-list .product-main {
    grid-column: 1;
    gap: 4px;
  }

  body.catalog-branch-mode .catalog-view-list .product-details,
  body.catalog-page-open .catalog-view-list .product-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
  }

  body.catalog-branch-mode .catalog-view-list .product-card-specs-wrap,
  body.catalog-page-open .catalog-view-list .product-card-specs-wrap {
    margin-top: 2px;
  }

  body.catalog-branch-mode .catalog-view-list .product-card-specs-table,
  body.catalog-page-open .catalog-view-list .product-card-specs-table {
    font-size: 10px;
  }

  body.catalog-branch-mode .catalog-view-list .product-card-specs-table thead th,
  body.catalog-page-open .catalog-view-list .product-card-specs-table thead th {
    font-size: 8px;
    padding: 4px 8px;
  }

  body.catalog-branch-mode .catalog-view-list .product-card-specs-table tbody th,
  body.catalog-page-open .catalog-view-list .product-card-specs-table tbody th {
    font-size: 9px;
    padding: 4px 8px;
  }

  body.catalog-branch-mode .catalog-view-list .product-card-specs-table tbody td,
  body.catalog-page-open .catalog-view-list .product-card-specs-table tbody td {
    font-size: 10px;
    padding: 4px 8px;
  }

  body.catalog-branch-mode .catalog-view-list .product-details .product-desc,
  body.catalog-page-open .catalog-view-list .product-details .product-desc {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
  }

  body.catalog-branch-mode .catalog-view-list .product-details .product-meta-row,
  body.catalog-page-open .catalog-view-list .product-details .product-meta-row {
    font-size: 12px;
  }

  body.catalog-branch-mode .catalog-view-list .product-aside,
  body.catalog-page-open .catalog-view-list .product-aside {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    align-self: stretch;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    min-height: 100%;
    min-width: 0;
    padding: 14px 16px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
  }

  body.catalog-branch-mode .catalog-view-list .product-rating--aside,
  body.catalog-page-open .catalog-view-list .product-rating--aside {
    position: absolute;
    top: 4px;
    inset-inline-end: 0;
    margin: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--side,
  body.catalog-page-open .catalog-view-list .product-price-slot--side {
    display: block;
    text-align: end;
    margin-top: 0;
    padding-bottom: 4px;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-price-block,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-price-block,
  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-price--single,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-price--single {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 4px 8px;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-price-sale,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-price-sale,
  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-price--single,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-price--single {
    font-size: 26px;
    font-weight: 500;
    transform: none;
    line-height: 1;
    flex-shrink: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-price-compare,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-price-compare {
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-price-badge,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-price-badge {
    font-size: 15px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--side .product-rating--price,
  body.catalog-page-open .catalog-view-list .product-price-slot--side .product-rating--price {
    display: none;
  }

  body.catalog-branch-mode .catalog-view-list .product-aside .product-actions,
  body.catalog-page-open .catalog-view-list .product-aside .product-actions {
    margin-top: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-title-row,
  body.catalog-page-open .catalog-view-list .product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  body.catalog-branch-mode .catalog-view-list .product-title-end,
  body.catalog-page-open .catalog-view-list .product-title-end {
    align-items: center;
    flex-shrink: 0;
    margin-inline-start: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-brand-row,
  body.catalog-page-open .catalog-view-list .product-brand-row {
    align-items: center;
    gap: 10px;
  }

  body.catalog-branch-mode .catalog-view-list .product-brand-row .product-price-slot--head,
  body.catalog-page-open .catalog-view-list .product-brand-row .product-price-slot--head {
    display: none;
  }

  body.catalog-branch-mode .catalog-view-list .product-compat-pills,
  body.catalog-page-open .catalog-view-list .product-compat-pills {
    margin-bottom: 0;
  }

  body.catalog-branch-mode .catalog-view-list .product-compat-pill,
  body.catalog-page-open .catalog-view-list .product-compat-pill {
    font-size: 12px;
    padding: 5px 11px;
  }

  body.catalog-branch-mode .catalog-view-list .product-name,
  body.catalog-page-open .catalog-view-list .product-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  body.catalog-branch-mode .catalog-view-list .product-price-slot--head,
  body.catalog-page-open .catalog-view-list .product-price-slot--head {
    display: none;
  }

  body.catalog-branch-mode .catalog-view-list .product-actions,
  body.catalog-page-open .catalog-view-list .product-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
    gap: 8px;
  }

  body.catalog-branch-mode .catalog-view-list .order-qty-row--card,
  body.catalog-page-open .catalog-view-list .order-qty-row--card {
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: center;
    width: 100%;
  }

  body.catalog-branch-mode .catalog-view-list .order-qty-row--card .order-qty-btn,
  body.catalog-page-open .catalog-view-list .order-qty-row--card .order-qty-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  body.catalog-branch-mode .catalog-view-list .order-qty-row--card .order-qty-val,
  body.catalog-page-open .catalog-view-list .order-qty-row--card .order-qty-val {
    min-width: 28px;
    font-size: 14px;
  }

  body.catalog-branch-mode .catalog-view-list .btn-cart,
  body.catalog-page-open .catalog-view-list .btn-cart {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    font-size: 13px;
    padding: 10px 12px;
  }

  body.catalog-branch-mode .catalog-view-list .btn-view-detail,
  body.catalog-page-open .catalog-view-list .product-card .btn-view-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-top: 0;
    min-height: 38px;
    font-size: 12px;
    padding: 9px 12px;
  }
}

body.catalog-page-open .nav-logo,
body.catalog-branch-mode .nav-logo {
  z-index: 1006;
  overflow: visible;
}

body.catalog-page-open .nav-logo-img,
body.catalog-branch-mode .nav-logo-img {
  position: relative;
  z-index: 1006;
  transform: none;
}

/* ── Catalog open: keep header search visible on dark nav ── */
body.catalog-page-open .nav-search-wrap,
body.catalog-branch-mode .nav-search-wrap {
  position: relative;
  z-index: 1012;
}

body.catalog-page-open .nav-search,
body.catalog-branch-mode .nav-search {
  background: #1a1d21;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  outline: none;
}

body.catalog-page-open .nav-search:focus-within,
body.catalog-branch-mode .nav-search:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
  outline: none;
}

body.catalog-page-open .nav-search input:focus,
body.catalog-branch-mode .nav-search input:focus,
body.catalog-page-open .nav-search-filter select:focus,
body.catalog-branch-mode .nav-search-filter select:focus {
  outline: none;
  box-shadow: none;
}

body.catalog-page-open .nav-search input:focus-visible,
body.catalog-branch-mode .nav-search input:focus-visible,
body.catalog-page-open .nav-search-filter select:focus-visible,
body.catalog-branch-mode .nav-search-filter select:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.45);
  outline-offset: -2px;
  box-shadow: none;
}

body.catalog-page-open .nav-search input,
body.catalog-branch-mode .nav-search input {
  background: transparent;
  color: #eef0f3;
}

body.catalog-page-open .nav-search-filter,
body.catalog-branch-mode .nav-search-filter {
  background: #14161a;
  border-inline-end-color: rgba(255, 255, 255, 0.12);
}

body.catalog-branch-mode .branch-count,
body.catalog-page-open .branch-count {
  color: rgba(255, 255, 255, 0.4);
}

body.catalog-branch-mode .branch-node--item.is-active .branch-count,
body.catalog-page-open .branch-node--item.is-active .branch-count {
  color: var(--gold-light);
}

body.catalog-branch-mode .product-card,
body.catalog-page-open .product-card {
  scroll-margin-top: calc(var(--nav-total-h) + 8px);
  scroll-margin-bottom: 12px;
  background: #0b0b0d;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body.catalog-branch-mode .product-card:hover,
body.catalog-page-open .product-card:hover {
  border-color: rgba(215, 25, 32, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.catalog-branch-mode .product-card .product-img-wrap,
body.catalog-page-open .product-card .product-img-wrap {
  background: #151518;
}

body.catalog-branch-mode .product-card .product-name,
body.catalog-page-open .product-card .product-name,
body.catalog-branch-mode .product-card .product-name-ar,
body.catalog-page-open .product-card .product-name-ar {
  color: #fff;
}

body.catalog-branch-mode .product-card .product-card-brand-name,
body.catalog-page-open .product-card .product-card-brand-name {
  color: rgba(255, 255, 255, 0.55);
}

body.catalog-branch-mode .product-card .product-compat-pill--14,
body.catalog-page-open .product-card .product-compat-pill--14 {
  background: linear-gradient(180deg, #ff6b6b 0%, #e83939 100%);
  border-color: #ff9a9a;
  color: #fff;
}

body.catalog-branch-mode .product-card .product-compat-pill--16,
body.catalog-page-open .product-card .product-compat-pill--16 {
  background: rgba(212, 175, 55, 0.2);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  color: #ffe9a8;
}

body.catalog-branch-mode .product-card .product-meta-label,
body.catalog-page-open .product-card .product-meta-label {
  color: #888;
}

body.catalog-branch-mode .product-card .product-meta-val,
body.catalog-page-open .product-card .product-meta-val,
body.catalog-branch-mode .product-card .product-details .product-meta-val,
body.catalog-page-open .product-card .product-details .product-meta-val {
  color: rgba(255, 255, 255, 0.82);
}

body.catalog-branch-mode .product-card .product-details .product-desc,
body.catalog-page-open .product-card .product-details .product-desc {
  color: rgba(255, 255, 255, 0.62);
}

body.catalog-branch-mode .product-card .product-card-specs-table,
body.catalog-page-open .product-card .product-card-specs-table {
  border-color: rgba(255, 255, 255, 0.1);
}

body.catalog-branch-mode .product-card .product-card-specs-table thead th,
body.catalog-page-open .product-card .product-card-specs-table thead th {
  background: #151518;
  color: rgba(255, 255, 255, 0.45);
}

body.catalog-branch-mode .product-card .product-card-specs-table tbody th,
body.catalog-page-open .product-card .product-card-specs-table tbody th {
  color: rgba(255, 255, 255, 0.5);
}

body.catalog-branch-mode .product-card .product-card-specs-table tbody td,
body.catalog-page-open .product-card .product-card-specs-table tbody td {
  color: rgba(255, 255, 255, 0.82);
}

body.catalog-branch-mode .product-card .product-price-compare,
body.catalog-page-open .product-card .product-price-compare {
  color: #fff;
}

body.catalog-branch-mode .product-card .product-price-sale span,
body.catalog-page-open .product-card .product-price-sale span,
body.catalog-branch-mode .product-card .product-price--single span,
body.catalog-page-open .product-card .product-price--single span {
  color: rgba(255, 255, 255, 0.5);
}

body.catalog-branch-mode .product-card .btn-view-detail,
body.catalog-page-open .product-card .btn-view-detail {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.catalog-branch-mode .product-card .btn-view-detail:hover,
body.catalog-page-open .product-card .btn-view-detail:hover {
  border-color: var(--red);
  color: #fff;
}

body.catalog-branch-mode .product-card .product-company-link,
body.catalog-page-open .product-card .product-company-link {
  color: var(--gold-light);
}

/* ── Catalog product cards: cart button + actions layout ── */
body.catalog-branch-mode .product-card .product-actions {
  flex-wrap: wrap;
  gap: 6px;
}

body.catalog-branch-mode .product-card .order-qty-row--card {
  flex: 0 0 auto;
  justify-content: center;
}

body.catalog-branch-mode .product-card .btn-cart {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 6px;
  line-height: 1.2;
}

body.catalog-branch-mode .product-card .btn-wa-prod {
  flex: 0 0 auto;
}

/* ── Catalog products: fill image area ── */
.section-light .product-card .product-img-wrap img,
body.catalog-page-open .product-card .product-img-wrap img,
body.catalog-branch-mode .product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0 !important;
  display: block;
}

.section-light .product-card .product-img-wrap img.product-brand-fallback,
body.catalog-page-open .product-card .product-img-wrap img.product-brand-fallback,
body.catalog-branch-mode .product-card .product-img-wrap img.product-brand-fallback {
  object-fit: contain;
  width: 72%;
  height: 72%;
  margin: auto;
}

@media (min-width: 900px) {
  body.catalog-page-open .catalog-branch-shell,
  body.catalog-branch-mode .catalog-branch-shell {
    display: grid !important;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    max-width: none;
  }

  body.catalog-page-open .catalog-branch-page,
  body.catalog-branch-mode .catalog-branch-page {
    position: sticky !important;
    top: calc(var(--nav-total-h) + 8px);
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--nav-total-h) - 16px);
    overflow: hidden;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    z-index: 2;
    grid-column: 1;
  }

  body.catalog-page-open .catalog-branch-search-wrap,
  body.catalog-branch-mode .catalog-branch-search-wrap {
    padding-inline: 12px;
  }

  body.catalog-page-open .catalog-branch-search,
  body.catalog-branch-mode .catalog-branch-search {
    width: 100%;
    max-width: none;
  }

  body.catalog-branch-mode #products.section,
  body.catalog-branch-mode #products.catalog-branch-main,
  body.catalog-page-open #products.section,
  body.catalog-page-open #products.catalog-branch-main {
    padding-top: 16px;
    padding-bottom: 24px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    grid-column: 2;
    scroll-margin-top: 16px;
  }

  body.catalog-branch-mode #products .section-inner,
  body.catalog-page-open #products .section-inner {
    max-width: none !important;
    width: 100% !important;
  }

  body.catalog-page-open .nav-logo-img,
  body.catalog-branch-mode .nav-logo-img {
    object-fit: contain;
    object-position: left center;
    transform: none;
  }
}

@media (max-width: 899px) {
  html:has(body.catalog-branch-mode),
  html:has(body.catalog-page-open) {
    scroll-padding-top: calc(
      var(--nav-mob-h) + var(--mob-sticky-search-h) +
      env(safe-area-inset-top, 0) + 12px
    );
  }

  body.catalog-branch-mode,
  body.catalog-page-open {
    scroll-padding-top: calc(
      var(--nav-mob-h) + var(--mob-sticky-search-h) +
      env(safe-area-inset-top, 0) + 12px
    );
  }

  body.catalog-page-open .catalog-branch-shell,
  body.catalog-branch-mode .catalog-branch-shell {
    margin-top: calc(var(--nav-mob-h) + 8px + env(safe-area-inset-top, 0));
    min-height: calc(
      100dvh - var(--nav-mob-h) - 8px - env(safe-area-inset-top, 0)
    );
  }

  body.catalog-branch-mode #products.section,
  body.catalog-branch-mode #products.catalog-branch-main {
    padding-top: 10px;
    padding-bottom: 20px;
    scroll-margin-top: calc(
      var(--nav-mob-h) + var(--mob-sticky-search-h) +
      env(safe-area-inset-top, 0) + 12px
    );
  }

  body.catalog-page-open #products.section,
  body.catalog-page-open #products.catalog-branch-main {
    padding-top: 10px;
    padding-bottom: 20px;
    scroll-margin-top: calc(
      var(--nav-mob-h) + var(--mob-sticky-search-h) +
      env(safe-area-inset-top, 0) + 12px
    );
  }

  body.catalog-branch-mode .product-card,
  body.catalog-page-open .product-card {
    scroll-margin-top: calc(
      var(--nav-mob-h) + var(--mob-sticky-search-h) +
      env(safe-area-inset-top, 0) + 8px
    );
  }

  body.catalog-branch-mode #products .catalog-breadcrumb {
    margin-bottom: 8px;
    font-size: 11px;
  }

  body.catalog-page-open .catalog-branch-search,
  body.catalog-branch-mode .catalog-branch-search {
    background: #f5f6f8;
    border: 1.5px solid #c5c9d0;
  }

  body.catalog-page-open .catalog-branch-search input,
  body.catalog-branch-mode .catalog-branch-search input {
    background: transparent;
    color: #222;
  }

  body.catalog-branch-mode .product-card,
  body.catalog-page-open .product-card {
    flex-direction: column;
    align-items: stretch;
  }

  body.catalog-branch-mode .product-card .product-img-wrap,
  body.catalog-page-open .product-card .product-img-wrap {
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: min(52vw, 240px);
    aspect-ratio: 4 / 3;
    align-self: auto;
  }

  body.catalog-branch-mode .product-card .product-img-wrap img,
  body.catalog-page-open .product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px !important;
  }

  body.catalog-branch-mode .product-card .product-body,
  body.catalog-page-open .product-card .product-body {
    padding: 10px 12px 12px;
    width: 100%;
  }

  body.catalog-branch-mode .product-card .product-actions,
  body.catalog-page-open .product-card .product-actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  body.catalog-branch-mode .product-card .btn-cart,
  body.catalog-page-open .product-card .btn-cart {
    width: 100%;
  }
}
