/* Storefront-only interaction layer. No supplier pricing or admin layout changes. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 500; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
#main-content:focus { outline: none; }
.header__main { grid-template-columns: 180px minmax(280px, 1fr) 155px repeat(3, auto); gap: 20px; }
.header__main>.logo { grid-column: 1; grid-row: 1; }
.header__main>.search { grid-column: 2; grid-row: 1; }
.header__main>.header__phone { grid-column: 3; grid-row: 1; }
.header__main>.compare-link { grid-column: 4; grid-row: 1; }
.header__main>.header-action:not(.compare-link):not(.cart-link) { grid-column: 5; grid-row: 1; }
.header__main>.cart-link { grid-column: 6; grid-row: 1; }
.header-action { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.search input { font-weight: 600; background: transparent; font-size: 16px; }
.search input::placeholder { font-weight: 400; }
.view-catalog .page-hero, .view-carCategory .page-hero, .view-product .page-hero, .view-partGroups .page-hero { padding: 24px 0 28px; background: #f5f8f9; color: var(--ink); border-bottom: 1px solid var(--line); }
.view-catalog .page-hero h1, .view-carCategory .page-hero h1, .view-partGroups .page-hero h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; margin: 14px 0 10px; }
.view-catalog .page-hero p, .view-carCategory .page-hero p, .view-partGroups .page-hero p { color: #516975; font-size: 14px; }
.breadcrumbs { display: block; color: #516975; font-size: 12px; line-height: 1.7; }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { text-decoration: underline; }
.view-catalog .brand-landing-profile>span { border-color: var(--line); }
.shop-entry-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; margin-bottom: 28px; }
.shop-entry-points>a { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 20px 36px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.shop-entry-points>a:hover { border-color: var(--teal); background: var(--teal-soft); }
.shop-entry-points>a>span { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; background: var(--teal-soft); border-radius: 12px; color: var(--teal); }
.shop-entry-points .ui-icon { width: 26px; height: 26px; }
.shop-entry-points strong { font-size: 17px; }
.shop-entry-points small { color: #516975; font-size: 12px; }
.shop-entry-points b { position: absolute; right: 16px; color: var(--teal); }
.shop-category-strip { display: flex; gap: 12px; overflow-x: auto; padding: 24px 0 10px; scroll-snap-type: x proximity; }
.shop-category-strip>a { flex: 0 0 145px; display: grid; justify-items: center; align-content: start; gap: 7px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px; text-align: center; scroll-snap-align: start; }
.shop-category-strip>a:hover { border-color: var(--teal); background: var(--teal-soft); }
.shop-category-strip>a>span { width: 76px; height: 76px; display: grid; place-items: center; color: var(--teal); background: #f5f9fa; border-radius: 12px; padding: 10px; }
.shop-category-strip img { width: 100%; height: 100%; object-fit: contain; }
.shop-category-strip .ui-icon { width: 32px; height: 32px; }
.shop-category-strip strong { font-size: 13px; line-height: 1.35; }
.shop-category-strip small { color: #516975; font-size: 11px; }
.catalog-browser { padding-top: 28px; gap: 24px; }
.catalog-mobile-filters { display: none; }
.catalog-sidebar { position: sticky; top: 155px; }
.catalog-filter-panel { border-radius: 14px; }
.catalog-filter-values label { min-height: 26px; align-items: center; }
.catalog-toolbar { padding: 12px; background: #f5f8f9; border-radius: 12px; }
.results-bar { align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-bar>span { margin-left: auto; }
.shop-view-controls { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.shop-view-controls button { display: grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 0; background: transparent; border-radius: 7px; color: #516975; }
.shop-view-controls button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.product-card, .cars-part-card { border: 1px solid var(--line); box-shadow: none; border-radius: 16px; overflow: hidden; }
.product-card:hover, .cars-part-card:hover { box-shadow: 0 8px 24px rgba(18,36,51,.08); border-color: #adc9ce; }
.product-card__image, .catalog-product-card .product-card__image, .cars-part-card__photo { height: 210px; flex-basis: 210px; padding: 16px; background: #fff; }
.product-card__image .part-visual { display: block; width: 100%; height: 100%; background: #fff; border: 0; }
.product-card__image img, .cars-part-card__photo img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px; }
.product-card__meta { flex-wrap: wrap; overflow-wrap: anywhere; font-size: 11px; gap: 4px 10px; }
.product-card__title { min-height: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-card-footer { margin-top: auto; display: grid; gap: 10px; }
.catalog-card-price { font-size: 21px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-card-footer .button { padding: 11px 10px; font-size: 12px; text-align: center; box-shadow: none; }
.shop-vehicle-context { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.shop-vehicle-context>.ui-icon { width: 32px; height: 32px; color: var(--teal); }
.shop-vehicle-context>span { flex: 1; min-width: 160px; }
.shop-vehicle-context strong, .shop-vehicle-context small { display: block; }
.shop-vehicle-context small { color: #516975; font-size: 12px; margin-top: 3px; }
.shop-vehicle-context>a { color: var(--teal); font-size: 12px; text-decoration: underline; }
.shop-result-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.shop-result-tools .cars-category-summary { margin: 0 auto 0 0; font-size: 13px; }
.shop-result-tools__controls { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-result-tools__controls label { display: grid; gap: 4px; font-size: 11px; color: #516975; }
.shop-result-tools__controls select { padding: 9px; max-width: 220px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.shop-product-nav { display: flex; overflow-x: auto; gap: 8px; padding: 15px 0 0; }
.shop-product-nav a { white-space: nowrap; padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.shop-product-nav a:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.view-product .product-page { padding-top: 26px; padding-bottom: 30px; gap: 32px; }
.product-info h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.2; margin: 8px 0 14px; }
.shop-product-description { padding: 12px 0; border-bottom: 1px solid var(--line); }
.shop-product-description summary { color: var(--teal); font-weight: 700; cursor: pointer; }
.shop-product-description p { white-space: pre-line; overflow-wrap: anywhere; color: #516975; font-size: 14px; }
.shop-product-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 16px 0; }
.shop-product-highlights div { min-width: 0; }
.shop-product-highlights dt { color: #516975; font-size: 12px; }
.shop-product-highlights dd { font-size: 14px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.product-info .buy-box { border: 1px solid #b9d7d6; background: #f2f9f8; padding: 20px; border-radius: 14px; gap: 14px; }
.product-gallery__stage { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.product-gallery__stage>img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.view-product section[id] { scroll-margin-top: 175px; }
.view-product .offer-matrix { padding-top: 20px; }
.shop-list-layout { grid-template-columns: 1fr !important; }
.shop-list-layout>.product-card { display: grid; grid-template-columns: 170px minmax(0,1fr); align-items: stretch; }
.shop-list-layout>.product-card .product-card__image { height: 170px; padding: 16px; border: 0; }
.shop-list-layout>.product-card .product-card__body { display: grid; grid-template-columns: minmax(0,1fr) 215px; gap: 8px 20px; align-content: center; }
.shop-list-layout .product-card__meta, .shop-list-layout .product-card__title, .shop-list-layout .catalog-card-params { grid-column: 1; margin: 0; }
.shop-list-layout .catalog-card-footer { grid-column: 2; grid-row: 1/span 3; align-self: center; }
.shop-list-layout>.cars-part-card { display: grid; grid-template-columns: 170px minmax(0,1fr) 210px; align-items: center; }
.shop-list-layout .cars-part-card__photo { height: 170px; }
.shop-list-layout .cars-part-card__price { border: 0; padding: 16px; }
@media (max-width: 1180px) {
  .header__main { grid-template-columns: 155px minmax(260px,1fr) repeat(3,auto); gap: 16px; }
  .header__phone { display: none; }
  .header__main>.compare-link { grid-column: 3; }
  .header__main>.header-action:not(.compare-link):not(.cart-link) { grid-column: 4; }
  .header__main>.cart-link { grid-column: 5; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .header__main { grid-template-columns: 155px 1fr repeat(3,auto); }
  .header__main>.search { grid-row: 2; grid-column: 1/-1; }
  .header__main>.header-action { grid-row: 1; }
  .header__main>.compare-link { grid-column: 3; }
  .shop-entry-points { gap: 10px; }
  .shop-entry-points>a { padding: 14px; grid-template-columns: 1fr; gap: 6px; }
  .shop-entry-points>a>span { grid-row: auto; }
}
@media (max-width: 760px) {
  .header__main { grid-template-columns: minmax(0,1fr) repeat(3,36px); gap: 10px; }
  .header__main>.search { grid-column: 1/-1; grid-row: 2; width: 100%; }
  .header__main>.compare-link { grid-column: 2; }
  .header__main>.header-action:not(.compare-link):not(.cart-link) { grid-column: 3; }
  .header__main>.cart-link { grid-column: 4; }
  .header-action { font-size: 0; max-width: 36px; overflow: visible; }
  .search button { padding: 10px 14px; }
  .main-nav { overflow: visible; gap: 12px; }
  .main-nav__links { overflow-x: auto; scrollbar-width: thin; min-width: 0; }
  .main-nav__links a { font-size: 12px; }
  .catalog-dropdown { flex-shrink: 0; }
  .catalog-dropdown__panel { max-width: calc(100vw - 24px); }
  .section { padding-top: 28px; padding-bottom: 32px; }
  .shop-entry-points { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; margin-bottom: 18px; }
  .shop-entry-points>a { padding: 12px 34px 12px 14px; }
  .shop-entry-points strong { font-size: 15px; }
  .shop-entry-points>a>span { width: 40px; height: 40px; }
  .shop-category-strip>a { flex-basis: 124px; }
  .catalog-sidebar { position: static; }
  .catalog-browser[data-ux-ready]>.catalog-mobile-filters { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
  .catalog-browser[data-ux-ready]:not(.filters-open)>.catalog-sidebar { display: none; }
  .catalog-sidebar { grid-template-columns: 1fr; }
  .catalog-toolbar { display: grid; grid-template-columns: 1fr; }
  .catalog-sort { justify-content: space-between; }
  .catalog-results .catalog-product-grid, .view-home .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-card__image, .catalog-product-card .product-card__image { height: 150px; flex-basis: 150px; padding: 12px; }
  .product-card__body, .catalog-product-card .product-card__body { padding: 12px; gap: 8px; }
  .product-card__title { font-size: 13px; }
  .catalog-card-price { font-size: 18px; }
  .catalog-card-params { font-size: 11px; margin-bottom: 10px; }
  .catalog-card-footer .button { font-size: 11px; padding: 10px 6px; }
  .shop-list-layout>.product-card { grid-template-columns: 110px minmax(0,1fr); }
  .shop-list-layout>.product-card .product-card__image { height: 135px; padding: 10px; }
  .shop-list-layout>.product-card .product-card__body { display: flex; padding: 12px; }
  .shop-list-layout .catalog-card-params { display: none; }
  .shop-list-layout .catalog-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }
  .shop-list-layout>.cars-part-card { grid-template-columns: 110px minmax(0,1fr); }
  .shop-list-layout .cars-part-card__photo { height: 140px; grid-row: span 2; }
  .shop-list-layout .cars-part-card__body { padding: 12px 12px 0; }
  .shop-list-layout .cars-part-card__price { padding: 8px 12px 12px; }
  .shop-result-tools__controls { width: 100%; }
  .shop-result-tools__controls label { flex: 1; min-width: 0; }
  .shop-result-tools__controls select { width: 100%; max-width: none; }
  .shop-product-nav { padding-top: 12px; gap: 6px; }
  .shop-product-nav a { font-size: 12px; padding: 8px 10px; }
  .view-product .product-page { gap: 20px; }
  .product-gallery__stage { min-height: 240px; height: 290px; }
  .product-info .buy-box { padding: 16px; }
  .view-product section[id] { scroll-margin-top: 12px; }
  .offer-matrix .matrix-controls { width: 100%; flex-wrap: wrap; }
  .offer-matrix .matrix-pickup, .offer-matrix .matrix-controls label { min-width: 0; max-width: 100%; }
  .offer-matrix select { max-width: 100%; }
  .matrix-offer__product { min-width: 0; overflow-wrap: anywhere; }
  .matrix-offer__action form { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .catalog-results .catalog-product-grid, .view-home .product-grid { grid-template-columns: 1fr; }
  .shop-product-highlights { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
