

/* Start:/local/templates/apiks_b2b/assets/fonts/Roboto/font.css?17959538261857*/
@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-Regular.woff2") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-Medium.woff2") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-MediumItalic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-SemiBold.woff2") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-Bold.woff2") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/bitrix/templates/b2bcabinet_v3.0/assets/fonts/Roboto/Roboto-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* End */


/* Start:/local/templates/apiks_b2b/components/bitrix/main.userconsent.request/b2bcabinet_cookies/style.css?17959538261157*/
.cookies-modal {
  position: fixed;
  bottom: calc(var(--tab-nav-height, 0px) + var(--gap-m));
  right: calc(var(--gap-m) + var(--body-scrollbar-width, 0px));
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin-left: var(--gap-m);
  background: var(--background, #FFFFFF);
  border-radius: var(--border-radius-400);
  box-shadow: var(--box-shadow-dropdown-list);
  transition: opacity var(--transition);
  z-index: var(--z-index-modal);
}

.cookies-modal--hidden {
  opacity: 0;
}

.cookies-modal__header {
  margin: 0;
  padding: var(--gap-xl) var(--gap-xl) var(--gap-xs) var(--gap-xl);
  font-size: var(--font-size-3xl, 24px);
  font-weight: 600;
  line-height: var(--line-height-xs, 1.3);
}

.cookies-modal__content {
  display: flex;
  flex-direction: column;
  row-gap: var(--gap-xs);
  padding: var(--gap-m) var(--gap-xl) 0 var(--gap-xl);
}

.cookies-modal__button {
  width: fit-content;
}

.cookies-modal__footer {
  display: flex;
  column-gap: var(--gap-s);
  padding: var(--gap-m) var(--gap-xl) var(--gap-m) var(--gap-xl);
}

.cookies-modal__footer sotbit-button {
  width: 50%;
}
/* End */


/* Start:/local/templates/apiks_b2b/assets/css/auth_styles.css?17959538267657*/
.auth-page {
  --auth-page-gap: calc(var(--gap-3xl) + var(--gap-xs));
  position: relative;
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  padding-top: var(--auth-page-gap);
  padding-bottom: var(--auth-page-gap);
}
.auth-page-with-banner {
  --auth-page-gap: var(--gap-m);
  --auth-banner-height: calc(100vh - 100px);
  min-height: var(--auth-banner-height);
  column-gap: var(--auth-page-gap);
}
@media (min-width: 1025px) {
  .auth-page-with-banner {
    --auth-page-gap: var(--gap-xl);
  }
}
.auth-page-with-banner .auth-form-content {
  overflow: auto;
  max-height: 100%;
}
.auth-banner {
  display: none;
  flex: 0 0 calc(50% - (var(--auth-page-gap, var(--gap-xl))) / 2);
}
@media (min-width: 1025px) {
  .auth-banner {
    display: block;
  }
}
@media (min-width: 1920px) {
  .auth-banner {
    flex: 0 0 calc(50% - 62px);
  }
}
.auth-forgot-form {
  max-width: 604px;
}
.auth-forgot-form-content {
  width: 100%;
}
.auth-forgot-form-field:not(:last-child) {
  margin-bottom: var(--gap-m);
}
@media (min-width: 768px) {
  .auth-form-confirmation .auth-form-content {
    min-width: 604px;
  }
}
.auth-form {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
}
.auth-form__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-m);
}
.auth-form__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-form__title {
  margin: 0;
}
.auth-form .main-user-consent-request, .auth-form-content > *:not(:last-child), .auth-form__fields, .auth-form__captcha-block {
  margin-bottom: var(--gap-3xl);
}
.auth-form__captcha-block {
  flex-direction: column;
}
@media (min-width: 768px) {
  .auth-form__captcha-block {
    flex-direction: row;
  }
}
.auth-form__errors > * {
  margin-bottom: var(--gap-m);
}
.auth-form__errors:empty {
  display: none;
}
.auth-form__subtitle {
  font-size: var(--font-size-m, 16px);
  font-weight: 500;
  line-height: var(--line-height-m, 1.5);
  margin: 0;
}
.auth-form__fields {
  padding: var(--gap-s);
  background-color: var(--base-50);
  border-radius: var(--border-radius-400);
  display: flex;
  flex-direction: column;
  row-gap: var(--gap-s);
}
@media (min-width: 768px) {
  .auth-form__fields {
    padding: var(--gap-m);
  }
}
@media (max-width: 767px) {
  .auth-form__fields {
    border-radius: var(--border-radius-300);
  }
}
.auth-form__fields-group-inner, .auth-form__fields-group {
  display: flex;
  flex-direction: column;
  row-gap: var(--gap-m);
  border-radius: inherit;
}
.auth-form__fields-group-inner[hidden], .auth-form__fields-group[hidden] {
  display: none;
}
.auth-form__fields-group {
  padding: var(--gap-m);
  background-color: var(--white);
}
@media (min-width: 768px) {
  .auth-form__fields-group {
    padding: var(--gap-xl);
  }
}
.auth-form__fields-item {
  display: flex;
  gap: var(--gap-xs);
  flex-direction: column;
}
.auth-form__aside {
  margin-top: var(--gap-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-xs);
}
.auth-form__prompt {
  color: var(--base-600);
}
.auth-form__captcha {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--gap-xxs) var(--gap-m);
}
@media (min-width: 768px) {
  .auth-form__captcha {
    height: 100%;
  }
}
.auth-form__captcha::before {
  content: "";
  inset: 0;
  border: 1px solid var(--stroke-base);
  border-radius: var(--border-radius-300);
  position: absolute;
}
.auth-form__captcha-wrapper, .auth-form__captcha-block {
  display: flex;
  align-items: stretch;
  gap: var(--gap-xs);
}
.auth-form__captcha-block {
  flex-direction: column;
}
@media (min-width: 768px) {
  .auth-form__captcha-block {
    flex-direction: row;
  }
}
.auth-form__captcha-wrapper {
  height: 56px;
  align-items: center;
}
.auth-form__captcha-input {
  width: 100%;
}
.auth-form__captcha-reload {
  cursor: pointer;
}
.auth-form__submit > * {
  margin-bottom: var(--gap-m);
}
.auth-form__forgot-submit {
  display: flex;
  flex-direction: row;
  gap: var(--gap-xl);
  margin-top: var(--gap-3xl);
}

.success-request {
  max-width: 604px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 var(--gap-xl);
  row-gap: var(--gap-3xl);
}
.success-request__icon {
  color: var(--accent-green);
}
.success-request__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: var(--gap-s);
  text-align: center;
}
.success-request__title {
  font-weight: 600;
  font-size: var(--gap-l);
  line-height: var(--line-height-xxs);
}
.success-request__text {
  color: var(--text-secondary-color);
}
.success-request__title:empty, .success-request__text:empty {
  display: none;
}

/* Вход и регистрация: компактная карточка из login.html, при этом разметка,
   валидация и отправка штатной формы Битрикс остаются неизменными. */
.auth-page {
  box-sizing: border-box;
  min-height: calc(100vh - 64px);
  padding: 40px 16px;
  background: #f4f4f4;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
.auth-form-content,
.auth-forgot-form-content {
  box-sizing: border-box;
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid rgba(12, 44, 69, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.auth-form__title { color: #0c2c45; font-size: 24px; font-weight: 500; }
.auth-form__subtitle,
.auth-form__prompt { color: #5e6b78; }
.auth-form .main-user-consent-request,
.auth-form-content > *:not(:last-child),
.auth-form__fields,
.auth-form__captcha-block { margin-bottom: 22px; }
.auth-form__fields { padding: 0; border-radius: 0; background: transparent; }
.auth-form__fields-group { padding: 0; background: transparent; }
.auth-form__submit sotbit-button { width: 100%; }
.auth-form__submit sotbit-button::part(button) {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  background: #0c2c45;
}

/* This is the navigation back button on the second registration step, not a
   destructive/primary action.  It must remain visually secondary. */
.auth-form__submit sotbit-button.apiks-register-back::part(button) {
  border: 1px solid #cbd8e2 !important;
  background: #fff !important;
  color: #173f5d !important;
}
.auth-form__aside { margin-top: 18px; }

/* Макет входа не использует декоративную половину штатной страницы.
   Форма остаётся тем же компонентом, но получает его измерения: 440px. */
.auth-page-with-banner .auth-banner { display: none !important; }
.auth-page .auth-form {
  flex: 0 1 440px;
  width: min(100%, 440px);
  height: auto;
}
.auth-page .auth-form-content,
.auth-page .auth-forgot-form-content {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 440px !important;
}
@media (max-width: 767px) {
  .auth-page { min-height: 100svh; padding: 24px 16px; }
  .auth-form-content,
  .auth-forgot-form-content { padding: 24px 20px; border-radius: 16px; }
}
.success-request__button {
  min-width: 200px;
}

/* End */


/* Start:/local/templates/apiks_b2b/template_layouts/header/templates/1/style.css?17959538263492*/
.header {
  top: 0;
  left: 0;
  padding: var(--gap-xs) 0;
  background: var(--background-base);
  transition: transform var(--transition);
  z-index: var(--z-index-header);
  position: sticky;
}
@media (max-width: 767px) {
  .header-hidden {
    transform: translateY(var(--header-transition-pos, -100%));
  }
  .header-visible {
    transform: translateY(var(--header-transition-pos, 0));
  }
}
@media (min-width: 1441px) {
  .header {
    padding: var(--gap-xxs) 0;
  }
}
.header__logo {
  max-width: 64px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__logo img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: auto;
}
@media (min-width: 1441px) {
  .header__logo {
    max-width: 102px;
    min-height: 64px;
  }
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: var(--gap-s);
}
@media (min-width: 768px) {
  .header__inner {
    flex-wrap: nowrap;
    row-gap: 0;
  }
}
.header__block {
  display: flex;
  align-items: center;
  column-gap: var(--gap-xs);
}
@media (min-width: 768px) {
  .header__block {
    column-gap: var(--gap-s);
  }
}
@media (min-width: 1441px) {
  .header__block {
    column-gap: var(--gap-xl);
  }
}
.header__nav-list {
  display: flex;
  align-items: center;
  column-gap: 0;
}
.header__nav-list-user {
  padding-left: calc(var(--gap-xl) - var(--gap-xs));
}
@media (min-width: 768px) {
  .header__nav-list {
    column-gap: var(--gap-xs);
  }
}
.header__company-choose {
  width: 100%;
  flex: 1 0 100%;
}
@media (min-width: 768px) {
  .header__company-choose {
    width: 340px;
    flex: auto;
  }
}
@media (min-width: 1441px) {
  .header__company-choose {
    width: 400px;
  }
}
.header__region {
  position: relative;
}
.header .header__nav-list.bx-basket.bx-opener {
  display: none;
}
@media (min-width: 1025px) {
  .header .header__nav-list.bx-basket.bx-opener:has(*) {
    display: flex;
  }
}

.main-layout {
  display: flex;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.breadcrumb-wrapper {
  margin-bottom: var(--gap-m);
}

.title-wrapper {
  margin-bottom: var(--gap-3xl);
  word-break: break-word;
}

.title-wrapper h1 {
  margin: 0;
}

/* Revision 52 — keep the logo, navigation and service actions in distinct
   flex groups.  The logo group is intrinsic; it must never push the menu
   into the action area on a wide screen. */
@media (min-width: 769px) {
  .header .header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-width: 0;
  }
  .header .header__inner > .header__block:first-child {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  /* The company selector reserves a large empty track when it has no
     selected company.  It does not belong to the supplied public header;
     organisations remain selectable from the profile area. */
  .header .header__inner > .header__block:first-child > .header__company-choose {
    display: none !important;
  }
  .header .apiks-desktop-menu {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 24px;
    white-space: nowrap;
  }
  .header .header__nav.header__block {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
  }
  .header .header__nav-list {
    flex-wrap: nowrap;
    min-width: 0;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .header .apiks-desktop-menu { gap: 14px; }
}

/* End */


/* Start:/local/templates/apiks_b2b/template_layouts/footer/templates/1/style.css?17959538261525*/
.footer {
  display: block !important;
  position: relative;
  margin-top: 20px;
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px));
  background: #0f2535;
  color: rgba(255, 255, 255, .62);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer__brand {
  color: rgba(255, 255, 255, .85);
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  text-decoration: none;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer__links a,
.footer__copyright {
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s ease;
}
.footer__links a:hover,
.footer__links a:focus-visible,
.footer__brand:hover,
.footer__brand:focus-visible {
  color: #fff;
}
/* Legal links remain accessible to assistive technology and direct routes,
   while the visible footer follows the approved concise composition. */
.footer__legal {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .footer__links {
    gap: 12px 20px;
    justify-content: flex-start;
  }
}

/* End */


/* Start:/local/templates/apiks_b2b/styles.css?1795953826129310*/
main.container {
background-color:#efefef;
}

/* v146 — final mobile product-tile parity for both the home rail and the
   catalogue. The Sotbit counter remains connected (but visually clipped):
   header.php delegates the visible CTA to its native increment control. */
@media (max-width: 768px) {
  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    border-radius: 9px !important;
    overflow: hidden !important;
  }

  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="img"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="img"] {
    display: block !important;
    width: calc(100% - 16px) !important;
    height: auto !important;
    margin: 8px !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-img,
  body.apiks-catalog-page .catalog-section--tile .catalog-item-img,
  body.apiks-home-page #apiks-home-products .catalog-item-img::part(img-wrapper),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-img::part(img-wrapper) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-img::part(img),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-img::part(img) {
    padding: 8px !important;
  }

  /* Sotbit's closed action wrapper is already placed 8px from the image;
     -1px gives a visual 7px inset from the photo. */
  body.apiks-home-page #apiks-home-products .catalog-item-compare,
  body.apiks-catalog-page .catalog-section--tile .catalog-item-compare {
    top: -1px !important;
    right: -1px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-compare::part(wrapper),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-compare::part(wrapper) {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
  }

  body.apiks-home-page #apiks-home-products .catalog-item-label::part(tag),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(tag) {
    padding: 5px 9px !important;
    border-radius: 6px !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-label::part(text),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(text) {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }

  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="min-price"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-price__unit,
  body.apiks-catalog-page .catalog-section--tile .catalog-item-price__unit {
    font-size: 10px !important;
    font-weight: 500 !important;
  }
  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="name"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 14px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  body.apiks-home-page #apiks-home-products [slot="counter"].apiks-catalog-item-counter-row,
  body.apiks-catalog-page .catalog-section--tile [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 8px 10px 10px !important;
  }
  body.apiks-home-page #apiks-home-products .apiks-home-stepper {
    display: none !important;
  }
  body.apiks-home-page #apiks-home-products [slot="counter"] sotbit-counter,
  body.apiks-catalog-page .catalog-section--tile [slot="counter"] sotbit-counter {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  body.apiks-home-page #apiks-home-products .apiks-catalog-item-add,
  body.apiks-catalog-page .catalog-section--tile .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  body.apiks-home-page #apiks-home-products .apiks-catalog-item-add::before,
  body.apiks-catalog-page .catalog-section--tile .apiks-catalog-item-add::before {
    content: none !important;
  }
}

sotbit-catalog-item {
margin: 0 2px;
}

/* The mobile tab bar must never participate in desktop document flow.  A
   stale component stylesheet previously left its SVGs at intrinsic viewport
   size, which created the large black polygon before the catalogue. */
.apiks-mobile-tabbar {
  display: none !important;
}
@media (max-width: 768px) {
  .apiks-mobile-tabbar {
    position: fixed !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: 58px !important;
    padding: 5px !important;
    overflow: hidden !important;
    border: 1px solid rgba(12, 44, 69, .12) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(12, 44, 69, .16) !important;
  }
  .apiks-mobile-tabbar > a {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    color: #0c2c45 !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
  }
  .apiks-mobile-tabbar svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    max-width: 19px !important;
    max-height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
  }
  .apiks-mobile-tabbar sotbit-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    color: currentColor !important;
  }

  /* The profile entry is an ordinary SVG link, not a Sotbit icon.  Give it
     an explicit box and stroke so a guest never sees an empty grey square
     in the mobile header. */
  .header__nav-list .apiks-mobile-profile,
  .header__nav-list .apiks-mobile-profile-link {
    display: flex !important;
  }
  .apiks-mobile-profile-link {
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(12, 44, 69, .16) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #0c2c45 !important;
  }
  .apiks-mobile-profile-link svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
  }
}

/* Mobile references do not provide the table/list switcher: the catalogue
   always stays in its responsive tile layout below the desktop breakpoint. */
@media (max-width: 1024px) {
  html body.apiks-catalog-page .toolbar .template-variant-button,
  html body.apiks-catalog-page .toolbar .template-variant-button[hidden] {
    display: none !important;
  }
}

/* Mobile catalogue host, revision 42.
   Sotbit keeps the product list inside a custom-element host.  The host itself
   must be constrained, otherwise Safari uses its old intrinsic desktop width
   and leaves a phantom empty column beside the two product cards. */
@media (max-width: 900px) {
  .catalog-section--tile > sotbit-scroll-panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner,
  .catalog-section--tile > sotbit-scroll-panel .catalog-section-items {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile > sotbit-scroll-panel .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}

/* Header and catalogue purchase row, revision 50.
   The primary navigation and the action area are independent flex groups:
   the former must never push itself over the latter.  The profile/login
   action is the single entry to the account, so it is not duplicated here. */
@media (min-width: 769px) {
  .header .header__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
  }

  .header .apiks-desktop-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 26px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .header .header__nav.header__block {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
  }

  .header .header__nav-list {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-width: 0 !important;
    margin: 10px 14px 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    display: block !important;
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 34px !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter::part(counter) {
    width: 34px !important;
    min-width: 34px !important;
    padding-inline: 0 !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter::part(minus),
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter::part(plus) {
    width: 30px !important;
    min-width: 30px !important;
    --sotbit-icon-custom-width: 16px !important;
    --sotbit-icon-custom-height: 16px !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    padding: 0 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .header .header__inner { gap: 14px !important; }
  .header .apiks-desktop-menu { gap: 16px !important; }
  .header .header__nav-list { gap: 6px !important; }
}

/* v141 asset revision 8: changes the static-asset version after mobile fixes. */

/* v141 — mobile home: the supplied mobile mock keeps the comparison action
   inside the image, and product tiles must never establish a wider track
   than the two-column mobile grid.  Sotbit's internal actions wrapper is
   already anchored 8px from the photo's top/right; its slotted child has a
   further 10px offset, hence -1px / 0 here yields the visual 7px inset. */
@media (max-width: 768px) {
  #header .header__inner > .header__block:first-child {
    column-gap: 14px !important;
  }

  #apiks-home-products,
  #apiks-home-products .catalog-section-wrapper,
  #apiks-home-products sotbit-scroll-panel,
  #apiks-home-products .catalog-section-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html body.apiks-home-page #apiks-home-products {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-inline: -16px !important;
  }

  #apiks-home-products .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #apiks-home-products sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] .catalog-item-compare {
    display: inline-flex !important;
    position: absolute !important;
    top: -1px !important;
    right: 0 !important;
    z-index: 4 !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }

  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"] .apiks-home-stepper {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
  }

  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"] sotbit-counter {
    display: none !important;
  }

  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"] .apiks-catalog-item-add {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 34px !important;
    font-size: 10.5px !important;
    padding: 0 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row,
  #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* v138: a building denotes the selected legal organisation more accurately
   than a briefcase.  The company name itself remains the mobile label. */
.company-dropdown__building-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* v136: the standard Sotbit organisation selector is the source of the
   active price and basket context.  Keep it visible on desktop near the logo;
   the mobile copy remains governed by its existing responsive classes. */
@media (min-width: 769px) {
  #header .header__block:first-child > .header__company-choose {
    display: block !important;
    flex: 0 1 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    margin-left: 12px !important;
  }
  #header .header__block:first-child > .header__company-choose sotbit-dropdown,
  #header .header__block:first-child > .header__company-choose sotbit-button-dropdown {
    width: 100%;
    max-width: 100%;
  }
}
@media (min-width: 769px) and (max-width: 1280px) {
  #header .header__block:first-child > .header__company-choose {
    flex-basis: 152px !important;
    width: 152px !important;
    max-width: 152px !important;
    margin-left: 8px !important;
  }
}

/* v98: loaded after apiks-mock.css, so this page-scoped layer resolves the
   legacy catalogue-card cascade without touching component data or actions. */
body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"],
body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"]::part(catalog-item) {
  border: 1px solid var(--apiks-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  overflow: hidden !important;
}
body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img,
body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img-wrapper) {
  aspect-ratio: 1 / 1 !important;
  background: #fff !important;
}
body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img) {
  padding: 10px !important;
  object-fit: contain !important;
}
body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item__tag-list {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 4 !important;
  display: flex;
  gap: 6px;
}
body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(tag) {
  padding: 7px 12px !important;
  border-radius: 8px !important;
}
body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(text) {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.apiks-catalog-page .catalog-section--tile sotbit-tag.catalog-item-label[data-tooltip="Хит"]::part(tag) { background: #DCE9F5 !important; }
body.apiks-catalog-page .catalog-section--tile sotbit-tag.catalog-item-label[data-tooltip="Хит"]::part(text) { color: #164264 !important; }
body.apiks-catalog-page .catalog-section--tile sotbit-tag.catalog-item-label[data-tooltip="Новинка"]::part(tag) { background: #E1F0CE !important; }
body.apiks-catalog-page .catalog-section--tile sotbit-tag.catalog-item-label[data-tooltip="Новинка"]::part(text) { color: #3D6B1E !important; }
body.apiks-catalog-page .catalog-section--tile sotbit-tag.catalog-item-label[data-tooltip="Акция"]::part(tag) { background: #EEDADE !important; }
body.apiks-catalog-page .catalog-section--tile sotbit-tag.catalog-item-label[data-tooltip="Акция"]::part(text) { color: #A03A4A !important; }

/* Revision 53 final cascade — must remain last so component and historical
   responsive rules cannot reintroduce the oversized header or clipped CTA. */
@media (min-width: 769px) {
  .header .header__inner {
    max-width: 1280px !important;
    margin-inline: auto !important;
    padding-inline: 24px !important;
    gap: 24px !important;
  }
  .header .header__company-choose { display: none !important; }
  .header .apiks-desktop-menu {
    flex: 1 1 auto !important;
    margin-left: 0 !important;
    gap: 22px !important;
  }
  .header .apiks-desktop-menu a[href$="/profile/"] { display: none !important; }
  .header .header__nav.header__block {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: grid !important;
    grid-template-columns: 94px minmax(0, 1fr) !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    gap: 8px !important;
    margin: 10px 14px 14px !important;
    overflow: visible !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    text-overflow: clip !important;
    overflow: hidden !important;
  }
}
@media (min-width: 769px) and (max-width: 1280px) {
  .header .header__inner { gap: 14px !important; }
  .header .apiks-desktop-menu { gap: 16px !important; }
  .header .header__nav-list { gap: 6px !important; }
}

/* Revision 51: the framework's generic header block may be width:100%.
   Keep the logo group at its intrinsic width so the primary navigation starts
   immediately after the logo instead of drifting to the middle of the page. */
@media (min-width: 769px) {
  .header .header__inner > .header__block:first-child {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Revision 53: the visual system is defined by the supplied HTML layouts.
   Keep the late global stylesheet from widening the header or squeezing the
   catalogue purchase control after component styles have loaded. */
@media (min-width: 769px) {
  .header .header__inner {
    max-width: 1280px !important;
    margin-inline: auto !important;
    padding-inline: 24px !important;
    gap: 24px !important;
  }
  .header .header__company-choose {
    display: none !important;
  }
  .header .apiks-desktop-menu {
    flex: 1 1 auto !important;
    margin-left: 0 !important;
    gap: 22px !important;
  }
  .header .apiks-desktop-menu a[href$="/profile/"] {
    display: none !important;
  }
  .header .header__nav.header__block {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: grid !important;
    grid-template-columns: 94px minmax(0, 1fr) !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    gap: 8px !important;
    margin: 10px 14px 14px !important;
    overflow: visible !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    text-overflow: clip !important;
    overflow: hidden !important;
  }
}
@media (min-width: 769px) and (max-width: 1280px) {
  .header .header__inner { gap: 14px !important; }
  .header .apiks-desktop-menu { gap: 16px !important; }
  .header .header__nav-list { gap: 6px !important; }
}

/* Карточка каталога: штатный контрол сравнения оставляем рабочим, но
   используем понятную пиктограмму весов из утверждённого HTML-макета. */
sotbit-icon.catalog-item-compare::part(icon),
sotbit-icon.catalog-element-compare-icon::part(icon) {
  visibility: hidden !important;
}
sotbit-icon.catalog-item-compare::part(background),
sotbit-icon.catalog-element-compare-icon::part(background) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='12' y='18' text-anchor='middle' font-size='19' fill='%235e6b78'%3E%E2%9A%96%3C/text%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 24px 24px !important;
}
sotbit-icon.catalog-item-compare[active]::part(background),
sotbit-icon.catalog-element-compare-icon[active]::part(background) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='12' y='18' text-anchor='middle' font-size='19' fill='%230c2c45'%3E%E2%9A%96%3C/text%3E%3C/svg%3E") !important;
}

.footer__link:hover {
    color: #454b79;
}

/* Mobile basket: keep the standard delete action visible. */
@media (max-width: 767px) {
  #basket-root.basket .basket-item__button:has([data-entity="basket-item-delete"]) {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    display: flex !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(12, 44, 69, .16);
    z-index: 4;
  }
  #basket-root.basket .list-rows > [data-entity="basket-item"] {
    padding-right: 56px !important;
  }
}

/* Registration: keep the previous-step action visibly secondary. */
.auth-form__submit sotbit-button.apiks-register-back::part(button) {
  background: #fff !important;
  color: #173f5d !important;
  border: 1px solid #cbd8e2 !important;
  box-shadow: none !important;
}
.auth-form__submit sotbit-button.apiks-register-back:hover::part(button) {
  background: #f3f7fa !important;
  color: #173f5d !important;
}

/* Filter sizing: the reference has compact controls that stay inside the
   sidebar.  These overrides also apply while the Smart Filter is hydrating. */
.filter__item-content--A .filter__item-prices,
.filter__item-prices {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}
.filter__item-content--A .filter__item-price,
.filter__item-price {
  min-width: 0 !important;
}
.filter__item-content--A .input-with-prefix,
.filter__item-prices .input-with-prefix {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  column-gap: 3px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  /* Each label is a child of a grid cell.  Keeping it at 100% prevents
     flex sizing from shrinking the actual input down to a few pixels. */
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 7px 8px !important;
  overflow: hidden !important;
}
.filter__item-content--A .filter__item-price,
.filter__item-prices .filter__item-price {
  min-width: 0 !important;
  width: 100% !important;
}
.filter__item-content--A .input-field,
.filter__item-prices .input-field {
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.filter__item-content--A .bx-ui-slider-track-container,
.bx-ui-slider-track-container {
  box-sizing: border-box !important;
  margin-top: 6px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 8px 8px !important;
  overflow: visible !important;
}
.filter__item-content--A .bx-ui-slider-track,
.bx-ui-slider-track {
  position: relative !important;
  height: 4px !important;
  min-height: 4px !important;
}
.filter__item-content--A .bx-ui-slider-handle,
.bx-ui-slider-handle {
  box-sizing: border-box !important;
  top: -6px !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  border: 2px solid var(--primary, #0c2c45) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}
/* The theme gives slider buttons broad responsive dimensions after a cold
   load.  The actual controls are these two buttons, so pin their geometry
   separately from the track to prevent the oversized white discs seen in
   Safari and the installed PWA. */
.bx-ui-slider-track .bx-ui-slider-handle.left,
.bx-ui-slider-track .bx-ui-slider-handle.right {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.filter__item-control-wrapper .filter__item-control-list-item[hidden],
.filter__item-control-wrapper .filter__item-control-list-item[data-apiks-duplicate-value="Y"] {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Approved catalogue tile contract.
   Source: Макеты страниц/catalog.html and Мобильная версия/mobile-catalog.html.
   This external stylesheet is deliberately last: it avoids older Sotbit
   component rules making a product tile wider than its grid cell. */
.catalog-section--tile .catalog-section-inner {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  /* The live component calculates its own item width from this variable.
     Keep it in sync with the visual grid rather than relying on its legacy
     three-column breakpoint. */
  --cols-count: 4 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
/* The real Sotbit template has one extra wrapper between
   `.catalog-section-inner` and the product web components.  Styling only the
   parent left this inner wrapper on its own legacy three-column layout, so
   Safari could render three oversized cards even though the parent said four.
   Make the actual items container the grid authority. */
.catalog-section--tile .catalog-section-items {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 1px solid rgba(12, 44, 69, .12) !important;
  border-radius: 14px !important;
  background: #fff !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"]::part(catalog-item) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0 !important;
  min-height: 100% !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img,
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img-wrapper) {
  display: flex !important;
  aspect-ratio: 1 / 1 !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img) {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  padding: 18px !important;
  object-fit: contain !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
  display: block !important;
  min-height: 22px !important;
  margin: 12px 14px 0 !important;
  padding: 0 !important;
  color: #0c2c45 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
  display: -webkit-box !important;
  min-height: 36px !important;
  margin: 8px 14px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #0c2c45 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
  display: block !important;
  min-height: 16px !important;
  margin: 10px 14px 0 !important;
  padding: 0 !important;
  color: #5e6b78 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
  display: grid !important;
  grid-template-columns: 94px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 10px 14px 14px !important;
  overflow: visible !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
  display: block !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  height: 34px !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #0c2c45 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
/* The supplied desktop HTML has four equal tiles until the phone breakpoint.
   Do not introduce a tablet-only tile pattern here: it changes both the
   information density and the position of the purchase controls.  The
   compact dimensions above keep the real Sotbit control inside a 4-column
   cell, while the phone layout below intentionally uses a single CTA. */
@media (max-width: 768px) {
  .catalog-section--tile .catalog-section-inner {
    --catalog-items-per-row: 2 !important;
    --cols-count: 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    border-radius: 13px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img) {
    padding: 8px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 14px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    width: auto !important;
    margin: 8px 10px 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    display: none !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: flex !important;
    box-sizing: border-box !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12px !important;
  }
}

/* Последний слой: контрол сравнения в правом верхнем углу плитки. */
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare::part(wrapper) {
  display: none !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 1px solid rgba(12, 44, 69, .12) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #5e6b78 !important;
  font-family: Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite:hover,
.catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite:focus-visible {
  border-color: #4d80a4 !important;
  color: #0c2c45 !important;
  outline: 2px solid rgba(77, 128, 164, .25) !important;
  outline-offset: 1px !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite.is-active {
  color: #e31834 !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare::part(wrapper) {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border: 1px solid rgba(12, 44, 69, .12) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: none !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare::part(icon) {
  visibility: hidden !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare::part(background) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='12' y='18' text-anchor='middle' font-size='19' fill='%235e6b78'%3E%E2%9A%96%3C/text%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 22px 22px !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare[active]::part(background) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='12' y='18' text-anchor='middle' font-size='19' fill='%230c2c45'%3E%E2%9A%96%3C/text%3E%3C/svg%3E") !important;
}

/* В настольной шапке макет использует горизонтальную навигацию: меню-бургер
   остаётся только для компактного режима. */
@media (min-width: 769px) {
  .header [data-entity="header-menu-open-btn"] {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------
   Final geometry layer for the live Bitrix component.
   The supplied HTML is based on a 1200px desktop content area, four cards
   on wide screens and two cards on compact/tablet screens.  Older component
   styles had several conflicting breakpoints; this last layer prevents a
   card from escaping its grid cell and cutting off the purchase CTA. */
@media (min-width: 769px) {
  /* The live page may wrap the catalogue in a custom element rather than a
     direct child of main.  Address the wrapper itself as well, otherwise a
     wide viewport expands the cards into the broken three-column layout. */
  .catalog-wrapper,
  main.container .catalog-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  main.container .catalog-wrapper {
    width: calc(100% - 32px) !important;
  }
  .catalog-section--tile .catalog-section-inner {
    --catalog-items-per-row: 3 !important;
    --cols-count: 3 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* The supplied desktop and mobile HTML keep technical characteristics on the
   product page.  They must never extend a catalogue tile below its buy row. */
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="property"],
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="properties"],
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-properties {
  display: none !important;
}

/* Store addresses are an internal logistics detail, not a client-facing
   catalogue interaction.  Keep the availability number readable but prevent
   the stock dropdown from opening in either the browser or installed PWA. */
.catalog-section--tile .catalog-item-store .store-amount-dropdown {
  pointer-events: none !important;
  cursor: default !important;
}
.catalog-section--tile .catalog-item-store .store-amount--amount {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

/* On a cold/PWA load web components render in stages. Do not expose their
   intermediate narrow columns: show one stable, full-size placeholder until
   the catalogue script confirms that all cards are ready. */
.catalog-section-wrapper[data-apiks-hydrating] {
  position: relative !important;
  min-height: 680px !important;
  overflow: hidden !important;
  /* The JS reveal is preferred, but never let a failed third-party custom
     element lock the page in a non-interactive loading state. */
  pointer-events: auto !important;
}
.catalog-section-wrapper[data-apiks-hydrating] > * {
  visibility: hidden;
  animation: apiks-catalog-emergency-reveal 0s linear 2.2s forwards;
}
.catalog-section-wrapper[data-apiks-hydrating]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  display: block;
  border-radius: 16px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 250px 610px no-repeat,
    linear-gradient(#fff, #fff) 278px 0 / calc(100% - 278px) 54px no-repeat,
    linear-gradient(#fff, #fff) 278px 78px / calc((100% - 326px) / 4) 470px repeat-x,
    #f5f7f8;
}

/* Do not show a fake miniature catalogue before the real component has
   finished.  The earlier skeleton was technically stable but looked like a
   broken layout (thin placeholder columns) on Safari and in the PWA.  A
   neutral surface keeps the page calm until the same full-size cards above
   are ready to be displayed. */
.catalog-section-wrapper[data-apiks-hydrating]::after {
  background: #f5f7f8 !important;
  animation: apiks-catalog-emergency-overlay-hide 0s linear 2.2s forwards;
}
/* A browser must never keep the catalogue blank because a third-party
   component fails to resolve `updateComplete`.  After the short, calm
   loading window reveal the already server-rendered, usable catalogue.
   On healthy loads the wrapper attribute is removed earlier by JavaScript,
   so these fallback animations never become visible. */
@keyframes apiks-catalog-emergency-reveal {
  to { visibility: visible; }
}
@keyframes apiks-catalog-emergency-overlay-hide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* Keep the cold-load placeholder on exactly the same three-card geometry as
   the approved tablet catalogue.  The phone-only two-card layout starts at
   768 px, so a tablet must never flash a different composition on load. */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-section-wrapper[data-apiks-hydrating]::after {
    background:
      linear-gradient(#fff, #fff) 0 0 / 250px 610px no-repeat,
      linear-gradient(#fff, #fff) 278px 0 / calc(100% - 278px) 54px no-repeat,
      linear-gradient(#fff, #fff) 278px 78px / calc((100% - 310px) / 3) 470px repeat-x,
      #f5f7f8;
  }
}
@media (max-width: 768px) {
  .catalog-section-wrapper[data-apiks-hydrating] {
    min-height: 560px !important;
  }
  .catalog-section-wrapper[data-apiks-hydrating]::after {
    border-radius: 12px;
    background:
      linear-gradient(#fff, #fff) 0 0 / 100% 56px no-repeat,
      linear-gradient(#fff, #fff) 0 76px / calc(50% - 7px) 370px repeat-x,
      #f5f7f8;
  }
}

/* Keep the primary catalogue action recognisable at a glance.  The supplied
   catalogue layout uses the bag pictogram before the label; this is only a
   visual layer and does not replace the live Sotbit add-to-basket action. */
.catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-add::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex: 0 0 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.25 5.25h11l-.8 8H3.05l-.8-8Z'/%3E%3Cpath d='M5.5 6V4a2.5 2.5 0 0 1 5 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 768px) {
  .catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-add::before {
    width: 13px;
    height: 13px;
    margin-right: 5px;
    flex-basis: 13px;
  }
}

/* The compact header uses a plain inline SVG for the account entry.  Some
   inherited component rules reset paths to transparent, leaving a confusing
   empty pale square.  Paint every primitive explicitly so the entry remains
   visible in Safari, the installed PWA and after a cold asset load. */
@media (max-width: 768px) {
  .header__nav-list .apiks-mobile-profile-link svg,
  .header__nav-list .apiks-mobile-profile-link svg circle,
  .header__nav-list .apiks-mobile-profile-link svg path {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    fill: none !important;
    stroke: #0c2c45 !important;
    stroke-width: 1.8 !important;
  }
}

/* Preserve the supplied responsive contract: four cards on desktop, three
   on a tablet and two only on a phone.  The product controls keep the same
   compact desktop geometry as the approved HTML instead of silently
   switching to a different mobile composition. */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-section--tile .catalog-section-inner {
    --catalog-items-per-row: 3 !important;
    --cols-count: 3 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Align the live catalogue heading with the supplied desktop HTML. */
@media (min-width: 769px) {
  main.container .catalog-wrapper #pagetitle {
    font-family: "Avenir Next", Avenir, Arial, sans-serif !important;
    font-size: 34px !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
  }
}

/* `catalog-section-inner` is only a frame: its direct children include the
   (normally hidden) table header and the actual items container.  Making the
   frame a four-column grid accidentally placed `.catalog-section-items` in a
   single narrow column, producing the unusable vertical text seen on mobile
   Safari.  The items container below is the sole grid authority. */
.catalog-section--tile .catalog-section-inner {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Catalogue geometry, revision 22.
   The real page is used both on a wide office monitor and in a narrow browser
   window/PWA.  Keep the source layout's four cards only where there is room
   for the full stepper + CTA.  At intermediate widths the previous rule kept
   four columns and physically clipped the right side of each buy control. */
html,
body {
  overflow-x: hidden !important;
}
.catalog-section--tile .catalog-section-items {
  grid-auto-flow: row !important;
  align-content: start !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"],
.catalog-section--tile sotbit-catalog-item[variant="tile"]::part(catalog-item) {
  min-inline-size: 0 !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row,
.catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
  min-inline-size: 0 !important;
}

@media (min-width: 769px) and (max-width: 1280px) {
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 7px !important;
    margin: 10px 12px 12px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    padding: 0 7px !important;
    font-size: 11px !important;
  }
}

/* The supplied mobile HTML specifies a true phone composition: two compact
   cards and one clear primary CTA per card.  Counter controls are reserved
   for the desktop layout and cannot spill outside a card on small screens. */
@media (max-width: 768px) {
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

/* Price filter: prevent the theme's late slider sizing from producing giant
   handles and keep both six-digit values fully readable inside the sidebar. */
.filter__item-content--A .input-with-prefix,
.filter__item-prices .input-with-prefix {
  grid-template-columns: 18px minmax(0, 1fr) !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 6px 7px !important;
}
.filter__item-content--A .input-field,
.filter__item-prices .input-field {
  font-size: 12px !important;
}
.filter__item-content--A .bx-ui-slider-track-container,
.bx-ui-slider-track-container {
  height: 28px !important;
  min-height: 28px !important;
  padding: 7px 7px !important;
}
.filter__item-content--A .bx-ui-slider-handle,
.bx-ui-slider-handle,
.bx-ui-slider-track .bx-ui-slider-handle.left,
.bx-ui-slider-track .bx-ui-slider-handle.right {
  top: -5px !important;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
}

/* Catalogue loading surface, revision 23.
   A blank rectangle makes the page look broken while Bitrix custom elements
   initialise.  Keep the real content hidden until its grid is stable, but
   show full-size card silhouettes in precisely the same desktop/tablet/phone
   columns.  This is intentionally only a loading state: it does not replace
   data or interfere with the live catalogue after `aria-busy` is cleared. */
.catalog-section-wrapper[data-apiks-hydrating]::after {
  background-color: #f5f7f8 !important;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(90deg, transparent 0 20%, #eef1f4 20% 80%, transparent 80%),
    linear-gradient(#ffffff, #ffffff) !important;
  background-position:
    0 0,
    0 60px,
    0 92px,
    0 92px,
    0 92px !important;
  background-size:
    250px 560px,
    calc(100% - 278px) 34px,
    calc((100% - 326px) / 4) 430px,
    calc((100% - 326px) / 4) 220px,
    calc((100% - 326px) / 4) 430px !important;
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x, repeat-x !important;
}
@media (min-width: 769px) and (max-width: 1280px) {
  .catalog-section-wrapper[data-apiks-hydrating]::after {
    background-size:
      250px 560px,
      calc(100% - 278px) 34px,
      calc((100% - 310px) / 3) 430px,
      calc((100% - 310px) / 3) 220px,
      calc((100% - 310px) / 3) 430px !important;
  }
}
/* At 769–900 px the live catalogue has already switched to the compact
   two-card layout.  Its loading surface must use exactly the same geometry:
   rendering the old desktop sidebar plus three miniature columns here was
   the source of the thin placeholder cards seen before content appeared. */
@media (min-width: 769px) and (max-width: 900px) {
  .catalog-section-wrapper[data-apiks-hydrating]::after {
    background-position: 0 0, 0 56px, 0 108px, 0 108px, 0 108px !important;
    background-size:
      100% 38px,
      120px 32px,
      calc(50% - 7px) 316px,
      calc(50% - 7px) 154px,
      calc(50% - 7px) 316px !important;
  }
}

@media (max-width: 768px) {
  .catalog-section-wrapper[data-apiks-hydrating]::after {
    background-position: 0 0, 0 56px, 0 108px, 0 108px, 0 108px !important;
    background-size:
      100% 38px,
      120px 32px,
      calc(50% - 7px) 316px,
      calc(50% - 7px) 154px,
      calc(50% - 7px) 316px !important;
  }
}

/* The live compare integration stays available in the header.  In catalogue
   tiles it used to compete with the favourite button as a second corner
   action.  Hide its visual control and anchor the requested heart reliably
   in the tile corner, including Safari shadow-DOM layouts. */
.catalog-section--tile sotbit-catalog-item[variant="tile"] {
  position: relative !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare {
  display: none !important;
}
.catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 4 !important;
}
@media (max-width: 768px) {
  .catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 19px !important;
  }
}

/* Compact catalogue safety net, revision 24.
   The site header switches to its compact presentation before a number of
   older component breakpoints do.  Without an explicit bridge the catalogue
   can retain a desktop width while the viewport is already compact; that is
   the source of the two thin cards and the large empty area seen in Safari.
   Make the list, not its decorative wrapper, own the available width. */
@media (max-width: 900px) {
  main.container .catalog-wrapper,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .catalog-section--tile .catalog-section-items {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Compact frame hardening, revision 34.
   Some Safari/PWA sessions retain an intermediate desktop wrapper while the
   compact header is already active.  Do not let that wrapper reserve a
   phantom sidebar: the catalogue surface must span the viewport at every
   compact width, including 769–900px. */
@media (min-width: 769px) and (max-width: 900px) {
  body main.container,
  main.container,
  main.container > .container,
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Mobile catalogue frame, revision 39.
   The underlying template adds its desktop page padding to `.main-layout`
   after the compact grid is formed.  Removing that nested padding gives the
   catalogue the intended single 14px outer gutter and prevents a partial
   second tile at the right edge. */
@media (max-width: 768px) {
  main.container .main-layout,
  .main-layout {
    padding: 18px 0 calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile .catalog-section-inner {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

/* Catalogue grid contract, revision 33.
   The approved desktop HTML uses four equal cards above 1024px, three only
   in the tablet interval and two in the compact interface.  A legacy Sotbit
   rule kept three broad cards all the way up to 1280px; besides differing
   from the supplied layout, it made the buy controls look oversized. */
.catalog-section--tile sotbit-catalog-item[variant="tile"] {
  margin: 0 !important;
}
@media (min-width: 901px) and (max-width: 1024px) {
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    grid-template-columns: 94px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 10px 14px 14px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
  }
}
@media (min-width: 1025px) {
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    grid-template-columns: 94px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 10px 14px 14px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

/* Mobile card contract, revision 25.
   The mobile reference has one full-width action per product.  Although the
   counter itself was hidden on phones, its legacy 94px grid container stayed
   in the DOM and left a short, floating CTA inside an otherwise correct tile.
   Collapse that structural grid as well, then match the supplied mobile
   typography and 10px card insets. */
@media (max-width: 768px) {
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 8px 10px 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 8px !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 14px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }
}

/* Compact catalogue frame, final cascade revision 35.
   This must remain after the legacy compact rules: they otherwise reserve
   an invisible sidebar and squeeze live product cards into narrow columns. */
@media (min-width: 769px) and (max-width: 900px) {
  body main.container,
  main.container,
  main.container > .container,
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Mobile catalogue frame, revision 41.
   The tile list lives inside a Sotbit scroll-panel custom element.  On Safari
   this host could retain its intrinsic (two-card) width even after the outer
   catalogue frame had become full-width.  That produced the narrow cards and
   the empty right half shown in the acceptance screenshot.  The host itself
   must participate as a full-width block before its children can share the
   phone viewport. */
@media (max-width: 900px) {
  .catalog-section--tile,
  .catalog-section--tile > sotbit-scroll-panel,
  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner,
  .catalog-section--tile > sotbit-scroll-panel .catalog-section-items {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile > sotbit-scroll-panel .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}

/* Mobile catalogue frame, revision 38.
   Keep the mobile page on the same 14px horizontal rhythm as the supplied
   mobile layouts.  The former desktop container added its own 32px padding
   before the compact grid width was calculated; that shifted the grid right
   and clipped the second product tile. */
@media (max-width: 768px) {
  body main.container,
  main.container,
  main.container > .container {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    box-sizing: border-box !important;
  }
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Compact tile-count contract, revision 37 (kept last to override legacy
   component variables loaded earlier in the sheet). */
@media (max-width: 900px) {
  .catalog-section--tile .catalog-section-inner {
    --catalog-items-per-row: 2 !important;
    --cols-count: 2 !important;
  }
}

/* Phone catalogue frame, revision 36.  A phone screenshot has a CSS viewport
   below 769px even when its bitmap is wider.  The legacy wrapper kept the
   desktop aside width here, producing narrow cards and unused space. */
@media (max-width: 768px) {
  body main.container,
  main.container,
  main.container > .container,
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Compact catalogue frame, final cascade revision 35.
   This deliberately lives after the legacy compact rules above.  Earlier
   revisions correctly described the two-column layout but were overridden
   later in the cascade by the old page-frame width.  When the mobile header
   is active in the 769–900 px interval, no invisible sidebar may reserve
   horizontal space: both live product tiles must share the whole viewport. */
@media (min-width: 769px) and (max-width: 900px) {
  body main.container,
  main.container,
  main.container > .container,
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }

  .catalog-section--tile .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Compact layout bridge, revision 32.
   The header and the filter drawer switch to the mobile interface up to
   900px, whereas the original Sotbit layout only collapsed its two-column
   page frame at 768px.  In the 769–900px gap the hidden sidebar still owned
   half of `.main-layout`, leaving the product grid only half a screen wide.
   That is what produced the two narrow cards at the left of a wide empty
   mobile view.  Keep the whole page frame, not only the grid, in its compact
   single-column form until the desktop header returns. */
@media (max-width: 900px) {
  main.container .main-layout,
  .main-layout {
    display: block !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  main.container .main-layout > .main-content,
  .main-layout > .main-content,
  main.container .main-layout > .main-content > .catalog,
  .main-layout > .main-content > .catalog,
  main.container .catalog-wrapper,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  /* Mobile parity keeps the live quantity control between availability and
     the basket action; it owns the existing Sotbit basket binding. */
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 6px !important;
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 20px) !important;
    margin: 8px 10px 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    display: block !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 34px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 8px !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 14px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }
}

/* Compact catalogue frame, revision 35.
   It overrides the legacy frame that kept an invisible sidebar on small
   landscape and compact-tablet screens. */
@media (min-width: 769px) and (max-width: 900px) {
  body main.container,
  main.container,
  main.container > .container,
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Phone catalogue frame, revision 36 at end of stylesheet.  A phone
   screenshot has a CSS viewport below 769px even when its bitmap is wider.
   The legacy wrapper kept the desktop aside width here, producing narrow
   cards and unused space. */
@media (max-width: 768px) {
  body main.container,
  main.container,
  main.container > .container,
  main.container .main-layout,
  .main-layout,
  .main-layout > .main-content,
  .main-layout > .main-content > .catalog,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile .catalog-section-inner,
  .catalog-section--tile .catalog-section-items {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Mobile catalogue host, revision 43.
   Keep the custom-element host in the same two-column frame as its children.
   This rule deliberately sits after the legacy catalogue frame rules. */
@media (max-width: 900px) {
  .catalog-section--tile > sotbit-scroll-panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner,
  .catalog-section--tile > sotbit-scroll-panel .catalog-section-items {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile > sotbit-scroll-panel .catalog-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}

/* Mobile catalogue grid repair, revision 45.
   The component's outer `.catalog-section-inner` is its only grid.  Keeping
   the `.catalog-section-items` wrapper as a second grid confines all tiles
   to the first parent column, which is why two skinny cards appeared beside
   a large empty area on a phone. */
@media (max-width: 900px) {
  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner > .catalog-section-items,
  .catalog-section--tile .catalog-section-items {
    display: contents !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .catalog-section--tile .catalog-section-inner > sotbit-catalog-item[variant="tile"],
  .catalog-section--tile .catalog-section-items > sotbit-catalog-item[variant="tile"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Catalogue cold-load surface, revision 46.
   Keep the first paint deliberately neutral.  Earlier compatibility rules
   lower in this stylesheet rebuilt a miniature-card skeleton after the
   neutral overlay had been declared, so Safari briefly showed narrow,
   incomplete product tiles.  The live server-rendered catalogue is revealed
   by the existing hydration handler (or its short emergency timeout); users
   should never see a pretend, differently-sized catalogue in between. */
.catalog-section-wrapper[data-apiks-hydrating]::after {
  background: #f5f7f8 !important;
  background-image: none !important;
}

@media (max-width: 768px) {
  .catalog-section-wrapper[data-apiks-hydrating] {
    min-height: 520px !important;
  }
}

/* -------------------------------------------------------------------------
   Mobile catalogue card contract, revision 47.

   `mobile-catalog.html` is the reference: two equal cards use the entire
   content width, have a square image area and one readable purchase action.
   The stock component has several nested hosts; therefore all three layers
   are explicitly reset here.  This final block intentionally wins over the
   historical desktop/tablet compatibility rules above.
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  main.container .main-layout,
  .main-layout,
  main.container .main-layout > .main-content,
  .main-layout > .main-content,
  .catalog-wrapper,
  .catalog-section-wrapper,
  .catalog-section--tile,
  .catalog-section--tile > sotbit-scroll-panel,
  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner > .catalog-section-items,
  .catalog-section--tile .catalog-section-items {
    display: contents !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 13px !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img,
  .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img-wrapper) {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img) {
    padding: 8px !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 14px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 8px 10px 10px !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    display: none !important;
  }

  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Revision 50 final cascade: lock desktop header groups and tile purchase
   controls after every historical responsive compatibility block. */
@media (min-width: 769px) {
  .header .header__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
  }
  .header .apiks-desktop-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 26px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  .header .header__nav.header__block {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
  }
  .header .header__nav-list {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-width: 0 !important;
    margin: 10px 14px 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    display: block !important;
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 34px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter::part(counter) {
    width: 34px !important;
    min-width: 34px !important;
    padding-inline: 0 !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter::part(minus),
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter::part(plus) {
    width: 30px !important;
    min-width: 30px !important;
    --sotbit-icon-custom-width: 16px !important;
    --sotbit-icon-custom-height: 16px !important;
  }
  .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    padding: 0 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
@media (min-width: 769px) and (max-width: 1280px) {
  .header .header__inner { gap: 14px !important; }
  .header .apiks-desktop-menu { gap: 16px !important; }
  .header .header__nav-list { gap: 6px !important; }
}

/* v143 — basket breadcrumbs on mobile.
   The basket template renders two trails: the desktop one (.breadcrumb) and a
   compact back-link (.breadcrumb-mobile). Only the desktop variant was hidden
   above the breakpoint, so on a phone both were visible at once and the user
   saw Главная / Корзина stacked over ← Главная. Keep exactly one variant
   per breakpoint and give the mobile one a proper row. */
@media (max-width: 1024px) {
  .breadcrumb-wrapper > .breadcrumb {
    display: none !important;
  }
  .breadcrumb-wrapper > .breadcrumb-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
  .breadcrumb-wrapper > .breadcrumb-mobile .breadcrumb-mobile-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .breadcrumb-wrapper > .breadcrumb-mobile .breadcrumb-item-link {
    color: #487495 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  .breadcrumb-wrapper > .breadcrumb-mobile sotbit-icon {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    color: #487495 !important;
  }
}

/* v144 — mobile contract from mobile-main.html and mobile-catalog.html.
   Keep these rules last: legacy responsive blocks above were accumulated while
   the Sotbit component changed its internal layout. */
@media (max-width: 768px) {
  /* Shared mobile page titles follow the 21px mobile mock. The home hero
     has its own 28px rule above and the product title follows its 20px spec. */
  .title-wrapper > h1,
  .apiks-search-page > h1,
  .catalog-element__title {
    font-family: Manrope, sans-serif !important;
    font-weight: 700 !important;
    color: #0C2C45 !important;
  }
  html body .main-layout .title-wrapper > h1,
  html body.apiks-search-page > h1 {
    font-size: 21px !important;
    line-height: 1.2 !important;
  }
  html body.apiks-catalog-page main.container .main-layout .main-content .title-wrapper > h1#pagetitle {
    font-size: 21px !important;
    line-height: 1.2 !important;
  }
  .catalog-element__title {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  /* Main hero: words wrap only at spaces and the useful text width is not
     consumed by the desktop padding. */
  body.apiks-home-page .apiks-home-intro,
  body:has(.apiks-home-intro--mock) .apiks-home-intro {
    padding: 24px 20px !important;
  }

  body.apiks-home-page #apiks-home-title,
  body:has(.apiks-home-intro--mock) #apiks-home-title {
    font-size: 28px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  /* The catalogue uses the full 362px content width at a 390px viewport:
     two equal 176px tiles and a 10px gap. */
  body.apiks-catalog-page .catalog-section--tile {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-inline: -16px !important;
  }
  body.apiks-catalog-page .catalog-section--tile > sotbit-scroll-panel,
  body.apiks-catalog-page .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.apiks-catalog-page .catalog-section--tile > sotbit-scroll-panel > .catalog-section-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"]::part(catalog-item) {
    margin: 0 !important;
    border: 1px solid rgba(12, 44, 69, .12) !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img,
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img-wrapper) {
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    position: relative !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-img::part(img) {
    padding: 8px !important;
  }

  /* This is a slotted host inside .catalog-item-actions. The host itself
     must carry the mobile geometry; its shadow parts only paint it. */
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare {
    display: inline-flex !important;
    position: absolute !important;
    /* The component action wrapper itself has an 8px inset. Offset the
       slotted host by one pixel so its painted button lands at 7px. */
    top: -1px !important;
    right: -1px !important;
    z-index: 4 !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare::part(wrapper) {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
  }

  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] .catalog-item-price__unit {
    font-size: 10px !important;
    font-weight: 500 !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 14px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 8px 10px 10px !important;
  }
  /* Do not use display:none: header.php delegates the visible CTA to this
     original Sotbit counter. A visually hidden but connected counter keeps
     stock and price validation intact. */
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"] sotbit-counter {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"] .apiks-catalog-item-add,
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"] .apiks-catalog-item-add::before {
    display: flex !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 9px !important;
    justify-content: center !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"] .apiks-catalog-item-add::before {
    content: none !important;
  }

  /* The component has no body slot for labels. Position its tag slot directly
     below its square photo and reserve space only on labelled products. */
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item__tag-list {
    top: calc((100vw - 38px) / 2 + 7px) !important;
    left: 10px !important;
    z-index: 3 !important;
  }
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"]:has(.catalog-item-label) > [slot="min-price"] {
    margin-top: 40px !important;
  }
  body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(tag) {
    border-radius: 6px !important;
    padding: 5px 9px !important;
  }
  body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(text) {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }
}

/* v146 final cascade: the historical home rules above reserve desktop-like
   insets and a visible stepper. Keep the stock-aware native counter mounted,
   but make the visual tile match the mobile reference. */
@media (max-width: 768px) {
  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="img"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="img"] {
    display: block !important;
    width: calc(100% - 16px) !important;
    margin: 8px !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-img,
  body.apiks-home-page #apiks-home-products .catalog-item-img::part(img-wrapper),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-img,
  body.apiks-catalog-page .catalog-section--tile .catalog-item-img::part(img-wrapper) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-img::part(img),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-img::part(img) { padding: 8px !important; }

  body.apiks-home-page #apiks-home-products .catalog-item-compare,
  body.apiks-catalog-page .catalog-section--tile .catalog-item-compare {
    top: -1px !important; right: -1px !important; height: 28px !important;
    min-height: 28px !important; padding: 0 10px !important; border-radius: 9px !important;
  }
  body.apiks-home-page #apiks-home-products .catalog-item-compare::part(wrapper),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-compare::part(wrapper) {
    height: 28px !important; min-height: 28px !important; padding: 0 10px !important; border-radius: 9px !important;
  }

  body.apiks-home-page #apiks-home-products .catalog-item-label::part(tag),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(tag) { padding: 5px 9px !important; border-radius: 6px !important; }
  body.apiks-home-page #apiks-home-products .catalog-item-label::part(text),
  body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(text) { font-size: 10px !important; font-weight: 700 !important; text-transform: uppercase !important; }

  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="min-price"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="min-price"] { min-height:18px !important; margin:9px 10px 0 !important; font-size:15px !important; font-weight:700 !important; line-height:1.2 !important; }
  body.apiks-home-page #apiks-home-products .catalog-item-price__unit,
  body.apiks-catalog-page .catalog-section--tile .catalog-item-price__unit { font-size:10px !important; font-weight:500 !important; }
  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="name"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] { min-height:30px !important; margin:5px 10px 0 !important; font-size:11.5px !important; line-height:1.3 !important; }
  body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"],
  body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] { min-height:14px !important; margin:6px 10px 0 !important; font-size:10.5px !important; line-height:1.3 !important; }

  body.apiks-home-page #apiks-home-products [slot="counter"].apiks-catalog-item-counter-row,
  body.apiks-catalog-page .catalog-section--tile [slot="counter"].apiks-catalog-item-counter-row { display:block !important; width:auto !important; min-width:0 !important; margin:8px 10px 10px !important; }
  body.apiks-home-page #apiks-home-products .apiks-home-stepper { display:none !important; }
  body.apiks-home-page #apiks-home-products [slot="counter"] sotbit-counter,
  body.apiks-catalog-page .catalog-section--tile [slot="counter"] sotbit-counter {
    display:block !important; position:absolute !important; width:1px !important; height:1px !important; min-width:1px !important; min-height:1px !important; margin:-1px !important; padding:0 !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; clip-path:inset(50%) !important; opacity:0 !important; pointer-events:none !important;
  }
  body.apiks-home-page #apiks-home-products .apiks-catalog-item-add,
  body.apiks-catalog-page .catalog-section--tile .apiks-catalog-item-add {
    display:flex !important; width:100% !important; min-width:0 !important; height:34px !important; min-height:34px !important; padding:0 8px !important; border-radius:9px !important; justify-content:center !important; font-size:12px !important; font-weight:600 !important;
  }
  body.apiks-home-page #apiks-home-products .apiks-catalog-item-add::before,
  body.apiks-catalog-page .catalog-section--tile .apiks-catalog-item-add::before { content:none !important; }
}

/* The catalogue component prints an inline compatibility sheet after the
   aggregated template CSS. These selectors deliberately add the page class
   (not a new layout) so this mobile contract wins without touching JS. */
@media (max-width: 768px) {
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="img"],
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="img"] { display:block !important; width:calc(100% - 16px) !important; margin:8px !important; }
  html body.apiks-home-page #apiks-home-products .catalog-item-img,
  html body.apiks-home-page #apiks-home-products .catalog-item-img::part(img-wrapper),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-img,
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-img::part(img-wrapper) { width:100% !important; height:auto !important; aspect-ratio:1 / 1 !important; min-height:0 !important; margin:0 !important; padding:0 !important; }
  html body.apiks-home-page #apiks-home-products .catalog-item-img::part(img),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-img::part(img) { padding:8px !important; }

  html body.apiks-home-page #apiks-home-products .catalog-item-compare,
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-compare { top:-1px !important; right:-1px !important; height:28px !important; min-height:28px !important; padding:0 10px !important; border-radius:9px !important; }
  html body.apiks-home-page #apiks-home-products .catalog-item-compare::part(wrapper),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-compare::part(wrapper) { height:28px !important; min-height:28px !important; padding:0 10px !important; border-radius:9px !important; }

  html body.apiks-home-page #apiks-home-products .catalog-item-label::part(tag),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(tag) { padding:5px 9px !important; border-radius:6px !important; }
  html body.apiks-home-page #apiks-home-products .catalog-item-label::part(text),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(text) { font-size:10px !important; font-weight:700 !important; text-transform:uppercase !important; }
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"],
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] { min-height:14px !important; margin:6px 10px 0 !important; font-size:10.5px !important; line-height:1.3 !important; }

  html body.apiks-home-page #apiks-home-products [slot="counter"].apiks-catalog-item-counter-row,
  html body.apiks-catalog-page .catalog-section--tile [slot="counter"].apiks-catalog-item-counter-row { display:block !important; width:auto !important; min-width:0 !important; margin:8px 10px 10px !important; }
  html body.apiks-home-page #apiks-home-products .apiks-home-stepper { display:none !important; }
  html body.apiks-home-page #apiks-home-products [slot="counter"] sotbit-counter,
  html body.apiks-catalog-page .catalog-section--tile [slot="counter"] sotbit-counter { display:block !important; position:absolute !important; width:1px !important; height:1px !important; min-width:1px !important; min-height:1px !important; margin:-1px !important; padding:0 !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; clip-path:inset(50%) !important; opacity:0 !important; pointer-events:none !important; }
  html body.apiks-home-page #apiks-home-products .apiks-catalog-item-add,
  html body.apiks-catalog-page .catalog-section--tile .apiks-catalog-item-add { display:flex !important; width:100% !important; min-width:0 !important; height:34px !important; min-height:34px !important; padding:0 8px !important; border-radius:9px !important; justify-content:center !important; font-size:12px !important; font-weight:600 !important; }
  html body.apiks-home-page #apiks-home-products .apiks-catalog-item-add::before,
  html body.apiks-catalog-page .catalog-section--tile .apiks-catalog-item-add::before { content:none !important; }
}

/* The component's single card padding is desktop-oriented. Remove it through
   its public part; slots below provide the 8px photo and 10px body insets. */
@media (max-width: 768px) {
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"]::part(catalog-item),
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"]::part(catalog-item) {
    padding: 0 !important;
    row-gap: 0 !important;
  }
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add,
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  /* The row is a slotted element, so size the row itself (not only its CTA).
     This preserves the 10px body inset even after the card's desktop padding
     has been removed. */
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row,
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
    margin: 8px 10px 10px !important;
    box-sizing: border-box !important;
  }
  /* Keep the real CSS values from the mobile reference, independent of the
     component's former desktop-size workaround. */
  html body.apiks-home-page #apiks-home-products .catalog-item-label,
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-label {
    padding: 0 !important;
    min-height: 0 !important;
    height: 22px !important;
    font-size: 10px !important;
    line-height: 12px !important;
  }
  html body.apiks-home-page #apiks-home-products .catalog-item__tag-list,
  html body.apiks-catalog-page .catalog-section--tile .catalog-item__tag-list {
    height: auto !important;
    min-height: 0 !important;
    align-items: flex-start !important;
  }
  /* Catalogue tiles retain their documented 32px comparison control; the
     compact home carousel uses the 28px variant above. */
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-compare,
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-compare::part(wrapper) {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 13px !important;
  }
  html body.apiks-home-page #apiks-home-products .catalog-item-label::part(tag),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(tag) {
    padding: 5px 9px !important;
    height: 22px !important;
    min-height: 22px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 12px !important;
  }
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"] sotbit-counter,
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"] sotbit-counter {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body.apiks-home-page #apiks-home-products .catalog-item-label::part(content),
  html body.apiks-catalog-page .catalog-section--tile .catalog-item-label::part(content) {
    padding: 0 !important;
  }
}

/* Sotbit's runtime compatibility sheet is injected after the aggregate CSS.
   Keep this selector deliberately more specific than that runtime rule. */
@media (max-width: 768px) {
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare.catalog-item-compare.catalog-item-compare,
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .catalog-item-compare.catalog-item-compare.catalog-item-compare::part(wrapper) {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 13px !important;
  }
}

/* v147: templates for delivery/payment place a 34px title in an inline
   #pagetitle rule. Keep the mobile title contract ID-specific as well. */
@media (max-width: 768px) {
  html body .main-layout .title-wrapper > h1,
  html body .main-layout .title-wrapper > h1#pagetitle,
  html body main.container .main-layout .main-content .title-wrapper > h1#pagetitle {
    font-family: Manrope, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0C2C45 !important;
  }
}

/* v148: the visible stepper stays hidden, but the native counter must remain
   rendered: header.php delegates the CTA click to its shadow increment. */
@media (max-width: 768px) {
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter[data-entity][data-entity] {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* v149: the availability string is rendered by a slotted component; its
   inner spans do not inherit the host's previously set 10.5px value. */
@media (max-width: 768px) {
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"],
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] span {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="AVAILABLE"] {
    min-height: 16.5px !important;
  }
}

/* v150: the mobile references define cards only. A table selected on desktop
   must therefore degrade to the same two-column card layout below 1025px. */
@media (max-width: 1024px) {
  html body.apiks-catalog-page .catalog-section--table .catalog-section-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
  }
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-section-table-header,
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-section-table-cell {
    display: none !important;
  }
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"]) {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
}

/* The component preserves variant="table" in DOM, so give that public
   variant the same compact mobile card contract as variant="tile". */
@media (max-width: 768px) {
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"])::part(catalog-item) {
    padding: 0 !important;
    row-gap: 0 !important;
  }
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"]) > [slot="img"] {
    display: block !important;
    width: calc(100% - 16px) !important;
    margin: 8px !important;
  }
  html body.apiks-catalog-page .catalog-section--table .catalog-item-img,
  html body.apiks-catalog-page .catalog-section--table .catalog-item-img::part(img-wrapper) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.apiks-catalog-page .catalog-section--table .catalog-item-img::part(img) { padding: 8px !important; }
  html body.apiks-catalog-page .catalog-section--table .catalog-item-compare,
  html body.apiks-catalog-page .catalog-section--table .catalog-item-compare::part(wrapper) {
    top: 7px !important;
    right: 7px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 13px !important;
    border-radius: 9px !important;
  }
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"]) > [slot="min-price"] {
    min-height: 18px !important;
    margin: 9px 10px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  html body.apiks-catalog-page .catalog-section--table .catalog-item-price__unit { font-size: 10px !important; font-weight: 500 !important; }
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"]) > [slot="name"] {
    min-height: 30px !important;
    margin: 5px 10px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"]) > [slot="AVAILABLE"],
  html body.apiks-catalog-page .catalog-section--table sotbit-catalog-item:is([variant="tile"], [variant="table"]) > [slot="AVAILABLE"] span {
    min-height: 16.5px !important;
    margin: 6px 10px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }
  html body.apiks-catalog-page .catalog-section--table [slot="counter"].apiks-catalog-item-counter-row {
    display: block !important;
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
    margin: 8px 10px 10px !important;
    box-sizing: border-box !important;
  }
  html body.apiks-catalog-page .catalog-section--table [slot="counter"] sotbit-counter {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body.apiks-catalog-page .catalog-section--table .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  html body.apiks-catalog-page .catalog-section--table .apiks-catalog-item-add::before { content: none !important; }
}

/* v154 — checkout delivery/payment cards.
   The component draws a second contour through ::after with
   border-radius: var(--border-radius-400) = 16px, while apiks-mock.css sets a
   real 1px border with radius 10px. Two outlines with different radii read as
   a doubled frame, most visible at the corners. Keep one contour: the real
   border already carries the selected state through border-color and
   box-shadow, so the pseudo-element border is redundant.
   The fixed 174px image box also left delivery services without a logo with a
   large empty area, which made the cards unnecessarily tall. */
.bx-soa-pp-company::after,
.bx-soa-pickup-list-item::after,
.bx-soa-pp-company.bx-selected::after,
.bx-soa-pickup-list-item.bx-selected::after,
.bx-soa-pp-company.bx-waring::after,
.bx-soa-pickup-list-item.bx-waring::after {
  border: 0 !important;
  border-radius: 10px !important;
}
.bx-soa-pp-company-img-wrapper {
  height: auto !important;
  min-height: 0 !important;
}
.bx-soa-pp-company-img-wrapper:not(:has(img)) {
  display: none !important;
}

/* v155 — sotbit-input focus glow.
   The UI kit paints an inner halo on focus through
   .input-container:focus-within { box-shadow: 0 0 4px 1px var(--primary-200) }.
   Inside the checkout the field already gets a clear outline from the theme,
   so the extra inner glow reads as a doubled highlight while typing.
   input-container is exported through exportparts, so it can be reached from
   the light DOM. */
sotbit-input::part(input-container):focus-within,
sotbit-input-style::part(input-container):focus-within {
  box-shadow: none !important;
}

/* v156 — compact payment cards in checkout.
   The payment tile keeps a 174px logo box and 16px gaps, which makes a card
   with a small logo look mostly empty. Shrink the logo box and the rhythm so
   the tile height follows its content. */
.bx-soa-pp-company-img-wrapper {
  height: 48px !important;
  min-height: 0 !important;
}
.bx-soa-pp-company-img-wrapper img {
  max-height: 48px !important;
  width: auto !important;
}
.bx-soa-pp-company {
  row-gap: 8px !important;
  padding: 10px !important;
}
.bx-soa-pp-company-title {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

/* v157 — checkout property columns.
   The property grid stretches both columns to the tallest group, so a group
   with fewer fields leaves its neighbour visually offset. Align groups to the
   top and give every group title the same height, including the fallback
   title the component renders when a group name is missing. */
.bx-soa-property {
  align-items: start !important;
}
.bx-soa-property-group {
  align-self: start !important;
}
.bx-soa-property-group-title {
  min-height: 20px !important;
  margin: 0 0 4px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #0c2c45 !important;
}

/* v159 — checkout «Регион доставки».
   The section content keeps only horizontal padding (0 var(--gap-m)), so the
   «Местоположение» and «Индекс» fields sit flush against the header rule.
   Add a top gap so the divider and the fields are visually separated. */
#bx-soa-region .bx-soa-section-content {
  padding-top: 16px !important;
}

/* v160 — keep the grey outline on focus.
   The UI kit paints the focus state through two custom properties inside the
   shadow root:
     .input-container:focus-within { --outline-color: var(--primary);
                                     box-shadow: 0 0 4px 1px var(--primary-200); }
     .outline { border: 1px solid var(--outline-color); }
   Custom properties inherit through shadow boundaries, so redefining them on
   the host keeps the resting grey border and removes the blue halo without
   touching the shadow DOM from JS. */
sotbit-input,
sotbit-textarea-style {
  --primary: var(--stroke-base, #D6D7D9);
  --primary-200: transparent;
}

/* v161 — checkout fields must not turn blue on focus.
   v160 covers the design-system variables, but a browser focus ring may still
   be painted on an exported input/textarea part or on a legacy light-DOM
   field. Keep every one of those layers neutral inside the order form only. */
#bx-soa-order sotbit-input,
#bx-soa-order sotbit-input-style,
#bx-soa-order sotbit-textarea-style {
  --primary: var(--stroke-base, #D6D7D9);
  --primary-200: transparent;
  --outline-color: var(--stroke-base, #D6D7D9);
}

#bx-soa-order sotbit-input::part(input-container):focus-within,
#bx-soa-order sotbit-input-style::part(input-container):focus-within,
#bx-soa-order sotbit-textarea-style::part(input-container):focus-within {
  box-shadow: none !important;
}

#bx-soa-order sotbit-input::part(outline),
#bx-soa-order sotbit-input-style::part(outline),
#bx-soa-order sotbit-textarea-style::part(outline) {
  border-color: var(--stroke-base, #D6D7D9) !important;
}

#bx-soa-order sotbit-input::part(input):focus,
#bx-soa-order sotbit-input::part(input):focus-visible,
#bx-soa-order sotbit-input-style::part(input):focus,
#bx-soa-order sotbit-input-style::part(input):focus-visible,
#bx-soa-order sotbit-textarea-style::part(textarea):focus,
#bx-soa-order sotbit-textarea-style::part(textarea):focus-visible,
#bx-soa-order input:focus,
#bx-soa-order input:focus-visible,
#bx-soa-order textarea:focus,
#bx-soa-order textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--stroke-base, #D6D7D9) !important;
}
/* v184: organization location controls. */
.apiks-company-location .bx-ui-slst-pool > .dropdown-block-wrapper {
    display: block !important;
    visibility: visible !important;
}

/* v187 — the quantity stepper is a purchase control, not the cart icon.
   Restore it beside the CTA on desktop and above the full-width CTA on mobile. */
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"]::part(catalog-item-counter) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 0 !important;
}
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
  display: flex !important;
  position: static !important;
  flex: 0 0 94px !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 10px 0 14px 14px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
  display: block !important;
  position: static !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > button.apiks-catalog-item-add[slot="counter"] {
  display: flex !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 10px 14px 14px 8px !important;
}
@media (max-width: 768px) {
    html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    margin: 8px 10px 0 !important;
  }
    html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > button.apiks-catalog-item-add[slot="counter"] {
    flex: 0 0 calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
    margin: 8px 10px 10px !important;
  }
}

/* v189 — home-product cards use the legacy visual stepper only.
   The native counter remains the delegated data control but must not create
   a second visible − / value / + row. */
html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
  display: flex !important;
  position: static !important;
  align-items: stretch !important;
  width: calc(100% - 28px) !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 10px 14px 14px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html body.apiks-home-page #apiks-home-products .apiks-home-stepper {
  display: flex !important;
  flex: 0 0 95px !important;
  width: 95px !important;
  min-width: 95px !important;
  height: 34px !important;
  margin: 0 8px 0 0 !important;
}
html body.apiks-home-page #apiks-home-products [slot="counter"] sotbit-counter {
  display: none !important;
}
html body.apiks-home-page #apiks-home-products .apiks-home-add-to-basket {
  display: flex !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    width: calc(100% - 20px) !important;
    margin: 8px 10px 10px !important;
  }
}

/* v151 — the favourite heart sits in the LEFT top corner of the product
   image.  The compare control keeps its previous style from apiks-mock.css
   (the "Сравнить" pill in the right corner) and is not restyled here. */
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"],
html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] {
  position: relative !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite,
html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite {
  display: flex !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 5 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 1px solid rgba(12, 44, 69, .12) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #5e6b78 !important;
  font-family: Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite.is-active,
html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite.is-active {
  color: #e31834 !important;
  border-color: rgba(227, 24, 52, .35) !important;
  background: rgba(255, 235, 238, .95) !important;
}
html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="name"] {
  overflow-wrap: anywhere !important;
}
@media (max-width: 768px) {
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] .apiks-catalog-item-favorite {
    top: 8px !important;
    left: 8px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 19px !important;
  }
  /* Keep the quantity stepper visible on phones: counter on its own row,
     the CTA below it, so neither text is squeezed nor overflows. */
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 8px 10px 10px !important;
    overflow: visible !important;
  }
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row sotbit-counter {
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  html body.apiks-catalog-page .catalog-section--tile sotbit-catalog-item[variant="tile"] > [slot="counter"].apiks-catalog-item-counter-row .apiks-catalog-item-add {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
}

/* v190 — keep the complete three-part home stepper visible.
   An older, more-specific rule narrowed it to 58px although its controls need
   30px + 34px + 30px. */
html body.apiks-home-page #apiks-home-products sotbit-catalog-item[variant="tile"] > [slot="counter"] .apiks-home-stepper {
  flex: 0 0 94px !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  overflow: visible !important;
}

/* End */


/* Start:/local/templates/apiks_b2b/template_styles.css?17959538261062*/
/* Global mobile account entry: this file is loaded through Bitrix on every
   template page, including the homepage and standalone PWA view. */
@media (max-width: 768px) {
  .header__nav-list .apiks-mobile-profile,
  .header__nav-list .apiks-mobile-profile-link {
    display: flex !important;
  }

  .header__nav-list .apiks-mobile-profile-link {
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(12, 44, 69, .16) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #0c2c45 !important;
  }

  .header__nav-list .apiks-mobile-profile-link svg,
  .header__nav-list .apiks-mobile-profile-link svg circle,
  .header__nav-list .apiks-mobile-profile-link svg path {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    visibility: visible !important;
    opacity: 1 !important;
    fill: none !important;
    stroke: #0c2c45 !important;
    stroke-width: 1.8 !important;
  }
}

/* End */
/* /local/templates/apiks_b2b/assets/fonts/Roboto/font.css?17959538261857 */
/* /local/templates/apiks_b2b/components/bitrix/main.userconsent.request/b2bcabinet_cookies/style.css?17959538261157 */
/* /local/templates/apiks_b2b/assets/css/auth_styles.css?17959538267657 */
/* /local/templates/apiks_b2b/template_layouts/header/templates/1/style.css?17959538263492 */
/* /local/templates/apiks_b2b/template_layouts/footer/templates/1/style.css?17959538261525 */
/* /local/templates/apiks_b2b/styles.css?1795953826129310 */
/* /local/templates/apiks_b2b/template_styles.css?17959538261062 */
