@media (min-width: 1200px) {
  .subcategory-products__scroll {
    overflow-x: auto;
    padding: 0 80px 0 16px;
    width: calc((var(--subcategory-card-width, 180px) * 6) + (20px * 5)); /* 6 cards + 5 gaps */
    max-width: 100%;
  }
  .subcategory-products__wrap {
    gap: 20px;
  }
  .subcategory-card {
    width: var(--subcategory-card-width, 180px);
    min-width: var(--subcategory-card-width, 180px);
    max-width: var(--subcategory-card-width, 180px);
  }
}

/* No gap between cards on all screens by default */
.subcategory-products__wrap {
  gap: 0;
}

@media (min-width: 1200px) {
  .subcategory-products__wrap {
    gap: 20px;
  }
}
/* ========================================
   AUTH PAGE STYLES
   ======================================== */
body:has(.main-auth) {
  background: #F2F2F2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body:has(.main-auth).admin-bar {
  min-height: calc(100svh - 32px);
}

.main-auth {
  padding: clamp(20px, 2.44140625vw, 30px) 0;
  flex-grow: 1;
  display: flex;
}

.auth-page {
  width: 100%;
}
.auth-page__box {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 25px clamp(20px, 2.5390625vw, 44px);
  border-radius: 20px;
  background: #FFF;
}
.auth-page__title {
  color: #172436;
  text-align: center;
  font-family: Ubuntu;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.auth-page .reset-password-confirmation {
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  display: flex;
}
.auth-page .reset-password-confirmation[style="display: block;"] {
  display: flex !important;
}
.auth-page .reset-password-confirmation .auth-form__success-icon {
  max-width: 80px;
  width: 100%;
}
.auth-page .reset-password-confirmation .auth-form__success-icon svg, .auth-page .reset-password-confirmation .auth-form__success-icon img {
  width: 100%;
  height: auto;
}
.auth-step {
  display: none;
}
.auth-step.active {
  display: block;
}
.auth-tab {
  display: none;
}
.auth-tab.active {
  display: block;
}
.auth-tab__box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.auth-tab__footer {
  display: inline-flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  color: #545B69;
  text-align: center;
  font-family: Ubuntu;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.auth-tab__footer .resend-code,
.auth-tab__footer .switch-to-login {
  text-decoration: underline;
}
.auth-tab__footer-link {
  color: #1D324F;
  font-weight: 500;
}
.auth-tab__footer-link:hover {
  color: #2856A1;
  text-decoration: underline;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 365px;
  margin: 0 auto;
  width: 100%;
}
.auth-form__description {
  text-align: center;
}
.auth-form__toggle {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px 4px;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.171875vw, 16px);
  border-radius: 4px;
  border: 1px solid #D8E4EB;
  background: #F2F5F7;
}
.auth-form__toggle-btn {
  border-radius: 5px;
  background: transparent;
  text-align: center;
  font-family: Ubuntu;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 15px;
}
.auth-form__toggle-btn.active {
  background: #7098E3;
  color: #FFF;
}
.auth-form__resend-code {
  color: #2856A1;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
.auth-form__verification-text {
  color: #1D324F;
  text-align: center;
  font-family: Ubuntu;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  max-width: 280px;
  margin: 0 auto;
}
.auth-form__verification-text #verification-email {
  font-weight: 700;
}
.auth-form__message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.auth-form__message--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.auth-form__message--error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.auth-form__code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0 30px;
}
.auth-form__code-digit {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #D8DADC;
  height: 70px;
  text-align: center;
  outline: none;
  font-size: 24px;
  font-weight: 600;
}
.auth-form__code-digit:focus {
  border-color: #434769;
}
.auth-form__code-digit:not(:placeholder-shown):valid {
  border-color: #4caf50;
}
.auth-form [style="display: block;"] {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
}
.auth-form__file-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.auth-form__file-section .field__title {
  color: #172436;
  font-family: Ubuntu;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.auth-form__file-description {
  color: #172436;
  font-family: Ubuntu;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}
.auth-form .field_file {
  border-radius: 5px;
  border: 1px dashed var(--Grey, #D8E4EB);
  background: #FFF;
  padding: 10px;
}
.auth-form .field_file:before {
  width: 100%;
  justify-content: center;
  color: #686060;
  text-align: center;
  font-family: Ubuntu;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  padding: 7px;
}
.auth-form .field__label {
  margin: 0 !important;
}
.auth-form__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.auth-page .btn {
  height: 50px;
  width: 100%;
  margin: 0 auto;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-family: Ubuntu;
  font-size: 16px;
  font-style: normal;
  line-height: normal;
  text-transform: capitalize;
}
.auth-page .btn.loading {
  pointer-events: none;
}
.auth-page .btn.loading:after {
  filter: invert(1);
}
.auth-page .btn[disabled] {
  opacity: 0.5;
}
.auth-page .btn-blue {
  background: #2856A1;
  color: #FFF;
  font-weight: 700;
}
.auth-page .btn-white-outline {
  border-radius: 4px;
  border: 1px solid #E2E2E2;
  background: #FAFAFA;
  text-transform: initial;
  color: #1D324F;
  font-weight: 400;
}
.auth-page .btn-white-outline:hover {
  color: #1D324F;
  background: #e0e0e0;
}
.auth-page .btn-light {
  background: #D8E4EB;
  color: #1D324F;
}
.auth-page .btn-light:hover {
  color: #D8E4EB;
  background: #2856A1;
}

.footer-auth {
  padding: 30px 0;
}
.footer-auth__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
}
@media (max-width: 576px) {
  .footer-auth__container {
    flex-direction: column;
  }
}
.footer-auth__copyright {
  color: rgba(29, 50, 79, 0.6);
  text-align: center;
  font-family: Ubuntu;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.footer-auth__links {
  display: flex;
  align-items: center;
  gap: 10px 20px;
}
.footer-auth__links a {
  color: var(--Dark, #1D324F);
  text-align: center;
  font-family: Ubuntu;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
@media (max-width: 991px) {
  .footer-auth__links {
    flex-grow: 1;
    width: 100%;
    order: 99;
    justify-content: center;
    flex-wrap: wrap;
  }
}
.footer-auth__phone {
  color: rgba(29, 50, 79, 0.6);
  text-align: center;
  font-family: Ubuntu;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.breadcrumbs {
  padding: 20px 0 15px;
}
.breadcrumbs__list span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #020202 !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px; /* 150% */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
.breadcrumbs__list span a {
  color: inherit;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.breadcrumbs__list span a:hover {
  color: #2856A2;
}
.breadcrumbs__list span a:after {
  content: "";
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 7 8'%3E%3Cpath stroke='%23070707' stroke-linecap='round' stroke-linejoin='round' d='m2 6 2.8-1.7q.5-.3 0-.6L2 2'/%3E%3C/svg%3E");
}

.subcategory-products--slider {
  padding: 15px 0 30px;
}
.subcategory-products--slider .subcategory-products__title {
  color: var(--Dark, #141B34);
  font-family: Ubuntu;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 28.8px */
}

.category-intro {
  padding: 15px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px 0;
}
.category-intro__title {
  color: #141B34;
  font-family: Ubuntu;
  font-size: clamp(22px, 2.5390625vw, 32px) !important;
  font-style: normal;
  font-weight: 500 !important;
  line-height: 100%;
  margin-bottom: 5px !important;
}
.category-intro.has-banner {
  display: grid;
  grid-template-columns: repeat(2, 45%);
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 576px) {
  .category-intro.has-banner {
    grid-template-columns: 100%;
  }
}
.category-intro.has-banner:has(.bottom) .category-intro__article {
  grid-column: 1/-1;
  max-width: 576px;
}
@media (max-width: 576px) {
  .category-intro.has-banner:has(.bottom) .category-intro__article {
    max-width: 100%;
  }
}
.category-intro__btn {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
@media (max-width: 576px) {
  .category-intro__btn {
    color: #2856A2;
  }
}
.category-intro__btn:hover {
  color: #2856A2;
}
.category-intro__article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: flex-start;
}
.category-intro__text {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  max-height: calc(var(--row) * 20px);
  transition: max-height 0.4s;
  overflow: hidden;
}
.category-intro__banner {
  padding: clamp(15px, 1.46484375vw, 20px) clamp(15px, 1.66484375vw, 30px);
  background: rgba(0, 170, 133, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-intro__banner-title {
  color: #113571;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}
.category-intro__banner-text {
  color: #113571;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.category-intro__banner-btn {
  border-radius: 19px;
  background: #203362;
  width: fit-content;
  padding: 7px 20px;
  color: #FFF;
  text-align: center;
  font-size: clamp(16px, 1.5625vw, 20px);
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  text-transform: capitalize;
  grid-column: 2;
  grid-row: 1/3;
}
@media (min-width: 577px) {
  .category-intro__banner.right {
    margin-top: calc(clamp(22px, 2.5390625vw, 32px) + 10px);
  }
}
.category-intro__banner.bottom {
  grid-column: 1/-1;
  gap: 10px 30px;
}
@media (min-width: 577px) {
  .category-intro__banner.bottom:has(.category-intro__banner-btn) {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.category-intro__banner.bottom *:not(.category-intro__banner-btn) {
  grid-column: 1;
}

@media (min-width: 992px) {
  .categories-menu_main .categories-item__submenu-wrap {
    width: 310px !important;
  }
}
.navbar-collapse .categories-toggler_btn_cat {
  background-color: #e3edff;
  margin: 0;
  color: #2c55a2;
}
.navbar-collapse .categories-toggler_btn_cat:after {
  background-image: url(../images/icons/chevron-right-blue.svg);
}
.navbar-collapse .categories-toggler_btn_cat.opened, .navbar-collapse .categories-toggler_btn_cat:hover {
  background-color: #2c55a2 !important;
  color: #e3edff !important;
}
.navbar-collapse .categories-toggler_btn_cat.opened:after, .navbar-collapse .categories-toggler_btn_cat:hover:after {
  background-image: url(../images/icons/chevron-right-white.svg);
}
.navbar-collapse .categories-toggler_btn_pro {
  background-color: #e3edff;
  color: #fff;
  margin: 0;
}
.navbar-collapse .categories-toggler_btn_pro.opened, .navbar-collapse .categories-toggler_btn_pro:hover {
  color: #fff !important;
  background-color: #2c55a2 !important;
}
.navbar-collapse .categories-toggler_btn_pro.opened:after, .navbar-collapse .categories-toggler_btn_pro:hover:after {
  background-image: url(../images/icons/chevron-right-white.svg);
}

.navbar-secondary__btn.loading:after {
  filter: initial !important;
}
.navbar-secondary__btn.categories-toggler_btn_cat {
  background-color: #e3edff;
  color: #2c55a2;
}
.navbar-secondary__btn.categories-toggler_btn_cat:after {
  background-image: url(../images/icons/chevron-right-blue.svg);
}
.navbar-secondary__btn.categories-toggler_btn_cat.opened, .navbar-secondary__btn.categories-toggler_btn_cat:hover {
  background-color: #2c55a2 !important;
  color: #e3edff !important;
}
.navbar-secondary__btn.categories-toggler_btn_cat.opened:after, .navbar-secondary__btn.categories-toggler_btn_cat:hover:after {
  background-image: url(../images/icons/chevron-right-white.svg);
}
.navbar-secondary__btn.categories-toggler_btn_pro {
  background-color: #e3edff;
  color: #fff;
}
.navbar-secondary__btn.categories-toggler_btn_pro.opened, .navbar-secondary__btn.categories-toggler_btn_pro:hover {
  color: #fff !important;
  background-color: #2c55a2 !important;
}
.navbar-secondary__btn.categories-toggler_btn_pro.opened:after, .navbar-secondary__btn.categories-toggler_btn_pro:hover:after {
  background-image: url(../images/icons/chevron-right-white.svg);
}
.navbar-secondary__btn.opened:after {
  transform: rotate(0) !important;
}

.subcategory-products {
  position: relative;
}
/* Subcategory horizontal list: keep last card fully visible and allow smooth scroll */
  /* Fix: reduce right padding so first card is always fully visible at end of scroll */
  .subcategory-products__scroll {
    overflow-x: auto;
    padding: 0 24px 0 32px; /* less right padding, enough for arrow but not hiding first card */
    scroll-snap-type: x mandatory;
  }
/* Ensure gap between cards on all screens */
.subcategory-products__wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: max-content;
  padding: 0;
}

.subcategory-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.subcategory-products .slider-arrow-next,
.subcategory-products .slider-arrow-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d8e4eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: #2c55a2;
  cursor: pointer;
}
.subcategory-products .slider-arrow-next {
  right: 12px;
}
.subcategory-products .slider-arrow-prev {
  left: 12px;
}

@media (min-width: 1241px) {
  #professional-categories .container {
    transform: translatex(175px);
  }
}
[data-loader] {
  position: relative;
  z-index: 1;
}
@keyframes rotate360 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
[data-loader]::before, [data-loader]::after {
  content: "";
  position: absolute;
  z-index: 15;
  display: flex;
  opacity: 1;
  transition: all 0.3s ease;
  pointer-events: none;
}
[data-loader]::before {
  inset: 0;
  background-color: color-mix(in srgb, #fff 90%, transparent);
  backdrop-filter: blur(5px);
}
[data-loader]::after {
  left: 50%;
  top: 50%;
  z-index: 15;
  border-radius: 50%;
  width: calc(clamp(50px, 17.5vw, 150px) / 2.5);
  aspect-ratio: 1;
  display: flex;
  transform: translate(-50%, -50%);
  transition-property: transform;
  animation: rotate360 1.5s ease-in-out infinite;
  border: calc(clamp(10px, 3.75vw, 25px) / 2.5) solid #2c55a2;
  border-top-color: transparent;
}

[data-loader=false]::before, [data-loader=false]::after {
  opacity: 0;
}

@media (max-width: 1199.98px) {
  .catalog-filter-items-item .is-collapsed-mobile:not(.show) {
    display: none !important;
  }

  .catalog-filter-items-item .show {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .catalog-filter-header {
    margin-left: 0 !important;
  }
}

@media (min-width: 1200px) {
  .catalog-filter.custom-scroll.popup {
    display: none !important;
  }
}

.subcategory-products {
  margin: 0 0 20px !important;
}

@media (max-width: 767.98px) {
  .catalog-filter-title {
    display: block;
    margin: 0 20px;
    font-weight: 700;
  }

  .catalog-filter-title h5 {
    font-weight: bold;
  }

  .catalog-filter-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0px 4px 15.5px 0px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    border-radius: 8px;
    border: 1px solid #DEDEDE;
  }
}

@media (max-width: 767px) {
    .sidebar-wrapper-loc51 {
        display: none !important;
    }
}

/* Hide filter-box-loc51 on mobile devices */
