/* Chelfit brand tokens — must match mirror :root (chelfit.min.css does not define these) */
:root {
  --up-scheme-color: #00B454;
  --up-scheme-color-rgb: 0, 180, 84;
  --up-scheme-dark-10: #007536;
  --up-scheme-dark-20: #00602d;
  --up-scheme-dark-30: #004d24;
  --up-scheme-light: #f0faf4;
  --up-scheme-light-10: #1abc63;
  --up-scheme-light-20: #33c572;
  --up-scheme-light-30: #4dce81;
  --up-accent-color: #f8346c;
  --up-accent-color-rgb: 248, 52, 108;
  --up-accent-dark-10: #e02f62;
  --up-accent-dark-20: #c72a57;
  --up-accent-dark-30: #ae254c;
  --up-accent-light: #fff5f8;
  --up-accent-light-10: #f9497b;
  --up-accent-light-20: #fa5d8a;
  --up-accent-light-30: #fb7199;
  --up-body-dr-bg: #1f1f1f;
  --up-body-dr-bg-light-5: #242424;
  --up-body-dr-bg-light-10: #313131;
  --up-body-dr-bg-light-15: #3a3a3a;
  --up-body-dr-bg-light-25: #515151;
  --up-max-width: 97.5rem;
  --up-logo-width: 7.5rem;
  --up-border-radius: 1rem;
  --up-form-radius: 1rem;
  --up-badge-radius: 1rem;
  --up-font-family: "Rubik", system-ui, sans-serif;
  --up-font-weight: 500;
}

/* Live Shop-Script integration only; layout remains owned by chelfit.min.css. */
.hide,
.wa-hide,
.is-hidden {
  display: none !important;
}

/* Hide CRM frontend FAB ("Subscribe") — not part of storefront UX. */
.wa-embeded-widget-fab,
#wa-embeded-widget-iframe,
.wa-embeded-widget-iframe-drawer {
  display: none !important;
}

.maincontent {
  min-width: 0;
}

.product-cart,
.product-cart__submit,
.product__quantity {
  box-sizing: border-box;
  min-width: 0;
}

.product-cart__submit {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: .75rem;
  width: 100%;
}

.product-cart .product__quantity {
  display: grid !important;
  grid-template-columns: 2.5rem minmax(3rem, 1fr) 2.5rem;
  width: 100% !important;
}

.product-cart .quantity__button,
.product-cart .quantity__input,
.product-cart__button {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
}

.product-cart .quantity__input {
  text-align: center;
}

.product-messenger {
  box-sizing: border-box;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--up-border-radius);
  background: #fff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, .06);
}

.product-messenger__title {
  margin-bottom: .75rem;
  font-weight: 500;
}

.product-messenger__buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.up-slider .swiper {
  overflow: hidden;
  border-radius: inherit;
}

.up-slider .swiper-slide:not(.swiper-slide-active) .up-slider__content {
  opacity: 0;
  pointer-events: none;
}

.payment {
  align-items: center;
  gap: .5rem;
}

.payment__item {
  padding: .4rem .65rem;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: .5rem;
  font-size: .75rem;
}

.category-toolbar {
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: 100%;
}

.category-filter-toggle {
  margin-right: auto;
}

.up-main__wrap.has-sidebar {
  grid-template-areas: "sidebar products";
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
}

.up-main__sidebar {
  grid-area: sidebar;
}

.up-main__products {
  grid-area: products;
  min-width: 0;
}

.filters {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--up-border-radius);
  background: #fff;
}

.filters__header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.filters__title {
  font-size: 1.125rem;
  font-weight: 600;
}

.filter-param {
  padding: .8rem 0;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.filter-param__title {
  cursor: pointer;
  font-weight: 500;
}

.filter-param__content {
  display: grid;
  gap: .5rem;
  padding-top: .75rem;
}

.filter-range {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.filter-range label {
  display: grid;
  gap: .25rem;
  min-width: 0;
  width: 100%;
}

.filter-range input,
.filters-left__range input,
.filter-range .inp,
.filter-range .inp-l {
  box-sizing: border-box;
  width: 50%;
  min-width: 0;
  max-width: 100%;
}

.filters-left__range .min,
.filter-range .min {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.filters-left__range .max,
.filter-range .max {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  text-align: right;
}

.filters-left__sliders,
.filter-range .js-filter-slider {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin-top: 1rem;
}

.pagination,
.pagination.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
}

.pagination ul,
.pagination ul.menu-h,
.pagination .pagination__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: flex;
  margin: 0;
}

.filter-check {
  align-items: center;
  gap: .5rem;
}

.filters__footer {
  grid-template-columns: 1fr;
  gap: .5rem;
  margin-top: 1rem;
}

.js-category-filter-close {
  display: none;
}

@media (max-width: 991px) {
  .up-main__wrap.has-sidebar {
    grid-template-areas: "products";
    grid-template-columns: 1fr;
  }

  .js-category-filter {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    overflow: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, .35);
  }

  .js-category-filter.active {
    display: block;
  }

  .js-category-filter .filters {
    width: min(24rem, 100%);
    min-height: 100%;
  }

  .js-category-filter-close {
    display: inline-flex;
  }
}

.auth-page {
  width: min(34rem, 100%);
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: var(--up-border-radius);
  background: #fff;
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, .06);
}

.auth-page form {
  display: grid;
  gap: 1rem;
}

.auth-page input:not([type="checkbox"]):not([type="radio"]),
.auth-page select,
.auth-page textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--up-form-radius);
}

.auth-page input[type="submit"],
.auth-page button[type="submit"] {
  min-height: 3rem;
  border: 0;
  border-radius: var(--up-form-radius);
  background: var(--up-scheme-color);
  color: #fff;
}

.compare-page {
  width: 100%;
}

.compare-page .blocks__title {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.compare-page__actions {
  gap: .5rem;
}

.compare-wrapper {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, .08);
  text-align: left;
  vertical-align: top;
}

.compare-product {
  display: grid;
  gap: .75rem;
  min-width: 12rem;
}

.compare-product__image img {
  width: 100%;
  max-height: 12rem;
  object-fit: contain;
}

.reviews-page {
  width: 100%;
}

.reviews-page__layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 2rem;
}

.review-form {
  align-self: start;
  padding: 1.25rem;
  border-radius: var(--up-border-radius);
}

.review-form form,
.review-field {
  display: grid;
  gap: .5rem;
}

.review-form form {
  gap: 1rem;
}

.review-form input:not([type="checkbox"]):not([type="radio"]),
.review-form textarea,
.review-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--up-form-radius);
}

.review-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.review-form .rate {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: .35rem;
  min-height: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.review-form .rate i.icon16 {
  position: static;
  display: inline-block;
  flex: 0 0 1.375rem;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.review-form .rate i.star-hover {
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23ffc107' d='M259.3 17.8 194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z'/%3E%3C/svg%3E");
}

.review-form .js-submit-button {
  width: 100%;
}

.up-page img {
  max-width: 100%;
  height: auto;
}

.my .up-main {
  align-items: flex-start;
}

.my .up-main > :not(script) {
  width: 100%;
  min-width: 0;
}

.my .table {
  width: 100%;
  border-collapse: collapse;
}

.my .table th,
.my .table td {
  padding: .9rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  text-align: left;
  vertical-align: top;
}

.my .wa-form {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.my .wa-form .wa-field {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 1rem;
}

.my .wa-form input:not([type="checkbox"]):not([type="radio"]),
.my .wa-form select,
.my .wa-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--up-form-radius);
}

@media (max-width: 767px) {
  .product__three {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem;
  }

  .product__three-images,
  .product__three-content,
  .product__three-column {
    position: static !important;
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0;
  }

  .product__three-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem;
  }

  .pr-images,
  .pr-images__wrap,
  .product-cart,
  .product-messenger {
    width: 100% !important;
  }

  .product__top .pr-top__wrap {
    flex-wrap: wrap;
  }

  .reviews-page__layout {
    grid-template-columns: 1fr;
  }

  .my .wa-form .wa-field {
    grid-template-columns: minmax(0, 1fr);
    gap: .4rem;
  }

  .my .table {
    display: block;
    overflow-x: auto;
  }
}

/* Stable integration geometry. Core Chelfit CSS is loaded first; these rules
   only bridge dynamic Shop-Script markup to the mirror component contract. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.maincontent,
.up-main,
.up-main__content,
.up-main__wrap,
.up-main__products {
  box-sizing: border-box;
  min-width: 0;
}

.up-main__wrap {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.up-main__wrap:not(.has-sidebar) .up-main__products {
  grid-area: auto;
  width: 100%;
}

.up-main__wrap.has-sidebar .up-main__products {
  grid-area: products;
}

.products.pr-col-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.products__item,
.products__content,
.products__name,
.products__prices {
  box-sizing: border-box;
  min-width: 0;
}

.category-name,
.category-name.blocks__title {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.up-main.wrap,
.up-main-blocks {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.products.pr-col-4,
.products.pr-col-4 .products__item {
  max-width: 100%;
  min-width: 0;
}

.products__img,
.products__img img {
  width: 100%;
  height: 100%;
}

.products__img img {
  object-fit: contain;
}

.products__prices,
.prices__price,
.prices__compare,
.pr-prices__price,
.pr-prices__compare {
  white-space: nowrap;
}

@media (min-width: 992px) {
  .category-filter-toggle {
    display: none;
  }

  .product__three {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2rem;
    align-items: start;
  }

  .product__three-images {
    grid-column: 1;
    min-width: 0;
  }

  .product__three-content {
    display: grid;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) minmax(18.75rem, 20.9375rem);
    gap: 2rem;
    min-width: 0;
  }

  .product__three-content > .product__three-column:nth-child(2) {
    grid-area: 1 / 1 / 2 / 2 !important;
    width: auto;
    min-width: 0;
  }

  .product__three-content > .product__three-column:nth-child(3) {
    grid-area: 1 / 2 / 2 / 3 !important;
    width: auto;
    min-width: 0;
  }
}

.pr-images__wrap,
.pr-images__swiper,
.pr-images__swiper .swiper-wrapper,
.pr-images__swiper .swiper-slide,
.pr-images__item {
  min-width: 0;
  min-height: 0;
}

.pr-images__wrap {
  aspect-ratio: 1 / 1;
}

.pr-images__item {
  width: 100%;
  height: 100%;
}

.pr-images__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__brand {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.product-about {
  width: 100%;
  margin-top: 2.5rem;
  touch-action: pan-y;
}

.product-about__title {
  margin: 0 0 1rem;
}

.product-about .up-tabs__nav {
  gap: .5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  touch-action: pan-x pan-y;
}

.product-about .up-tabs-content {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  touch-action: pan-y;
}

.product-about .up-tabs-content.active {
  display: block;
}

.product-about .features,
.product-about .features.f-columns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-about .features__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .5rem .75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-about .features__name,
.product-about .features__value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-about .features__name {
  background-image: none;
}

.product-about .features__value {
  text-align: right;
}

.pr-features__all {
  cursor: pointer;
}

.product-about .product-description {
  font-size: .875rem;
  line-height: 1.65;
  white-space: pre-line;
}

.product-about .product-description p,
.product-about .product-description ul,
.product-about .product-description ol {
  margin: 0 0 .9rem;
  white-space: normal;
}

.product-about .product-description li + li {
  margin-top: .35rem;
}

.product-about .product-description h2,
.product-about .product-description h3,
.product-about .product-description h4 {
  margin: 1.25rem 0 .55rem;
  font-size: 1rem;
  line-height: 1.4;
}

.advantages__wrap.adv-col-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.advantages__item,
.advantages__content {
  min-width: 0;
}

.pr-fix {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(110%);
  border-top: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -.5rem 1.5rem rgba(0, 0, 0, .08);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
  backdrop-filter: blur(.75rem);
}

.pr-fix.active {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.pr-fix__wrap {
  align-items: center;
  gap: 1.25rem;
  min-height: 5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.pr-fix__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-fix__price {
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.pr-fix__wrap .btn {
  flex: 0 0 auto;
  min-width: 12rem;
}

@media (max-width: 1179px) {
  .products.pr-col-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .products.pr-col-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages__wrap.adv-col-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-toolbar {
    justify-content: space-between;
  }

  .category-filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .up-main,
  .up-main__content {
    width: 100%;
  }

  .product__three {
    grid-template-columns: minmax(0, 1fr);
  }

  .product__three-content {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sticky gallery must not capture vertical gestures over tabs/content. */
  .product__three-images.sticky,
  .product__three-images .sticky__wrap {
    position: static !important;
    top: auto !important;
  }

  .pr-images__wrap {
    aspect-ratio: 1 / 1;
  }

  .product-about {
    margin-top: 2rem;
  }

  .product-about .features__item {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .pr-fix__name {
    display: none;
  }

  .pr-fix__wrap {
    min-height: 4.5rem;
  }

  .pr-fix__price {
    margin-right: auto;
    font-size: 1.1rem;
  }

  .pr-fix__wrap .btn {
    min-width: 9rem;
  }
}

@media (max-width: 479px) {
  .advantages__wrap.adv-col-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .products.pr-col-4 {
    gap: .75rem;
  }

  .products__item {
    min-width: 0;
  }

  .products__name {
    overflow-wrap: anywhere;
  }

  .category-toolbar {
    align-items: stretch;
  }

  .category-toolbar .btn {
    min-height: 2.75rem;
  }
}

/* Mega catalog: single vertical list (not sparse 4-col full-width grid). */
.catalog-mega .up-nav-catalog {
  --up-grid-columns: 1;
  --up-grid-gap: 0;
  width: auto;
  max-width: 26rem;
}

.catalog-mega .up-nav-catalog__column {
  --up-flex-direction: column;
  --up-flex-gap: 0.875rem;
}

.catalog-mega .up-nav-catalog__links {
  --up-flex-direction: column;
  --up-flex-gap: 0.375rem;
  grid-column: auto;
}

.catalog-mega .up-nav-catalog__link-header {
  line-height: 1.35;
  font-weight: 600;
}

.catalog-mega .up-nav-catalog__link {
  line-height: 1.4;
}

/* Responsive storefront shell. Chelfit hides the desktop header below 1180px. */
.chelfit-mobile-header,
.chelfit-mobile-menu,
.chelfit-mobile-panel {
  display: none;
}

@media (max-width: 1179.98px) {
  body {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }

  body.mobile-overlay-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .chelfit-mobile-header {
    position: sticky;
    z-index: 90;
    top: 0;
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .06);
    backdrop-filter: blur(.75rem);
  }

  .chelfit-mobile-header__bar {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 4rem;
    overflow: hidden;
  }

  .chelfit-mobile-header__logo {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .chelfit-mobile-header__logo .up-logo-text__title,
  .chelfit-mobile-header__logo .up-logo-text__content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chelfit-mobile-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    min-width: 0;
  }

  .chelfit-mobile-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .625rem !important;
    border-radius: .75rem;
  }

  .chelfit-menu-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .chelfit-mobile-cart {
    position: relative;
  }

  .chelfit-mobile-cart .up-icon__count {
    position: absolute;
    top: .15rem;
    right: .05rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    font-size: .6875rem;
  }

  .chelfit-mobile-search {
    padding: .25rem 0 .75rem;
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
  }

  .chelfit-mobile-search[hidden] {
    display: none !important;
  }

  .chelfit-mobile-search .search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3rem;
    gap: .5rem;
  }

  .chelfit-mobile-search .search__input,
  .chelfit-mobile-search .search__button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 3rem;
  }

  .chelfit-mobile-menu {
    position: fixed !important;
    z-index: 1200 !important;
    inset: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .chelfit-mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .chelfit-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .48);
  }

  .chelfit-mobile-menu__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(26rem, calc(100% - 2rem));
    height: 100%;
    max-height: 100dvh;
    background: #fff;
    box-shadow: 1rem 0 2.5rem rgba(0, 0, 0, .18);
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  .chelfit-mobile-menu.active .chelfit-mobile-menu__panel {
    transform: translateX(0);
  }

  .chelfit-mobile-menu__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .chelfit-mobile-menu__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .chelfit-mobile-menu__section {
    display: grid;
    gap: .25rem;
  }

  .chelfit-mobile-menu__section + .chelfit-mobile-menu__section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
  }

  .chelfit-mobile-menu__link,
  .chelfit-mobile-menu__phone {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .6rem .75rem;
    border-radius: .75rem;
    color: var(--up-body-color);
    text-decoration: none;
  }

  .chelfit-mobile-menu__link:hover,
  .chelfit-mobile-menu__link:focus-visible {
    background: var(--up-scheme-light);
    color: var(--up-scheme-dark-10);
  }

  .chelfit-mobile-menu__phone {
    margin-top: 1rem;
    background: var(--up-scheme-light);
    color: var(--up-scheme-dark-10);
    font-weight: 600;
  }

  .chelfit-mobile-panel {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(4rem + env(safe-area-inset-bottom, 0px));
    padding: .25rem .25rem env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -.4rem 1.25rem rgba(0, 0, 0, .08);
    backdrop-filter: blur(.75rem);
  }

  .chelfit-mobile-panel__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-width: 0;
    min-height: 3.5rem;
    padding: .35rem .2rem;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: var(--up-body-color);
    font-family: inherit;
    font-size: .6875rem;
    line-height: 1.15;
    text-decoration: none;
  }

  .chelfit-mobile-panel__item:hover,
  .chelfit-mobile-panel__item:focus-visible {
    background: var(--up-scheme-light);
    color: var(--up-scheme-dark-10);
  }
}

@media (max-width: 359.98px) {
  .chelfit-mobile-header__bar {
    gap: .35rem;
  }

  .chelfit-mobile-header__logo .up-logo-text__content {
    display: none;
  }

  .chelfit-mobile-panel__item {
    font-size: .625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chelfit-mobile-menu,
  .chelfit-mobile-menu__panel {
    transition: none;
  }
}

/* Keep responsive overflow inside the component that owns it. */
.maincontent,
.up-main,
.up-main__content,
.up-main__wrap,
.up-main__products,
.products-items,
.products,
.products__item,
.product,
.product__three,
.product__three-content {
  max-width: 100%;
  min-width: 0;
}

.up-slider,
.up-slider__swiper,
.products__swiper,
.pr-images__swiper {
  max-width: 100%;
  overflow: hidden;
}

.sub-categories {
  max-width: 100%;
  overflow: hidden;
}

.sub-categories__wrap.scroll-mx,
.breadcrumbs.scroll-mx,
.product-about .up-tabs__nav {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.sub-categories__wrap.scroll-mx {
  scroll-snap-type: inline proximity;
}

.sub-categories__item,
.breadcrumbs__link,
.breadcrumbs__separator {
  flex: 0 0 auto;
}

.sub-categories__item {
  min-height: 2.75rem;
  scroll-snap-align: start;
}

.breadcrumbs {
  width: 100%;
  padding-bottom: .25rem;
}

.products__button,
.products__add-to-cart .btn {
  min-height: 2.75rem;
}

@media (max-width: 479.98px) {
  .products__content {
    overflow: hidden;
  }

  .products__prices {
    flex-wrap: wrap;
    white-space: normal;
  }

  .prices__price,
  .prices__compare {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .product__top .pr-top__wrap,
  .pr-top__icons {
    flex-wrap: wrap;
    min-width: 0;
  }

  .pr-top__icons .btn {
    min-height: 2.75rem;
  }
}

@media (max-width: 359.98px) {
  .products.pr-col-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .products__item {
    width: 100%;
  }
}

/* Category filter: drawer through 1179px, desktop sidebar from 1180px. */
@media (max-width: 1179.98px) {
  .up-main__wrap.has-sidebar {
    grid-template-areas: "products";
    grid-template-columns: minmax(0, 1fr);
  }

  .category-filter-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
  }

  .js-category-filter {
    position: fixed !important;
    z-index: 1250 !important;
    inset: 0;
    display: none !important;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    max-width: none;
    height: 100dvh;
    padding: 0;
    background: rgba(0, 0, 0, .48);
  }

  .js-category-filter.active {
    display: flex !important;
  }

  .js-category-filter .filters {
    display: flex !important;
    flex-direction: column;
    width: min(26.25rem, 100%);
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: 1rem 0 2.5rem rgba(0, 0, 0, .18);
  }

  .js-category-filter .filters__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    margin: 0;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
  }

  .js-category-filter .filters__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1rem 1rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .js-category-filter .filters__footer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
    margin: 0;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: 0 -.5rem 1.25rem rgba(0, 0, 0, .06);
  }

  .js-category-filter .filters__footer .btn {
    min-width: 0;
    min-height: 2.75rem;
    padding-inline: .75rem;
  }

  .js-category-filter-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 !important;
    border-radius: .75rem;
    font-size: 1.75rem;
    line-height: 1;
  }

  .filter-param__title,
  .filter-check {
    min-height: 2.75rem;
  }

  .filter-param__title {
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .category-filter-toggle {
    display: none !important;
  }

  .js-category-filter {
    display: block;
  }
}

@media (min-width: 1180px) and (max-width: 1369.98px) {
  .up-main__wrap.has-sidebar .products.pr-col-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1179.98px) {
  .pr-fix {
    bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }

  .pr-fix__wrap .btn,
  #js-order-form .wa-actions-section .wa-submit-button {
    min-height: 2.75rem;
  }
}

@media (max-width: 767.98px) {
  .reviews-page__layout,
  .review-form,
  .auth-page,
  .my,
  .compare-page,
  .up-page {
    min-width: 0;
    max-width: 100%;
  }

  .my .table,
  .compare-wrapper {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .review-form input:not([type="checkbox"]):not([type="radio"]),
  .review-form select,
  .auth-page input:not([type="checkbox"]):not([type="radio"]),
  .auth-page select,
  .auth-page button,
  .auth-page input[type="submit"] {
    min-height: 2.75rem;
  }

  .up-slider .btn,
  .up-tabs__nav .btn,
  .swiper-button-prev,
  .swiper-button-next,
  .footer .social__item,
  .footer .f-menu__header,
  .product-cart .quantity__button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

/* The storefront must not expose the floating admin design editor. */
.theme-editor-trigger-wrapper {
  display: none !important;
}

@media (max-width: 1179.98px) {
  [data-up-theme="dark"] .chelfit-mobile-header,
  [data-up-theme="dark"] .chelfit-mobile-search,
  [data-up-theme="dark"] .chelfit-mobile-menu__panel,
  [data-up-theme="dark"] .chelfit-mobile-panel,
  [data-up-theme="dark"] .js-category-filter .filters,
  [data-up-theme="dark"] .js-category-filter .filters__header,
  [data-up-theme="dark"] .js-category-filter .filters__footer {
    border-color: rgba(255, 255, 255, .12);
    background: var(--up-body-dr-bg, #1f1f1f);
    color: #fff;
  }

  [data-up-theme="dark"] .chelfit-mobile-panel__item,
  [data-up-theme="dark"] .chelfit-mobile-menu__link {
    color: #fff;
  }
}

/* Responsive action groups and minimum primary touch targets. */
.category-toolbar .btn,
.compare-page__actions .btn,
.product-about .up-tabs__nav .btn,
.notfound .btn {
  min-height: 2.75rem;
}

.compare-page .blocks__title,
.compare-page__actions,
.product-about .blocks__title {
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .compare-page .blocks__title {
    align-items: stretch;
  }

  .compare-page__actions {
    width: 100%;
  }

  .compare-page__actions .btn {
    flex: 1 1 9rem;
  }
}

/* Wave WJ — catalog hub + mobile hero (P-CAT, P-BANNER) */

#chelfit-categories {
  scroll-margin-top: 5.5rem;
}

.chelfit-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.chelfit-categories__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .875rem 1rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .75rem;
  background: #f7f7f7;
  color: #222;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.chelfit-categories__tile:hover,
.chelfit-categories__tile:focus-visible {
  border-color: #00b454;
  background: #e8f8ef;
  color: #00602d;
}

.chelfit-hero-slide {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.chelfit-hero-slide .up-slider__content {
  max-width: 100%;
  box-sizing: border-box;
}

.chelfit-hero-slide .up-slider__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.chelfit-hero-slide .up-slider__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blocks__item-slider-day .up-slider.wrap {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  #chelfit-categories {
    scroll-margin-top: 4.5rem;
  }

  .chelfit-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  #chelfit-categories {
    scroll-margin-top: 6.5rem;
    scroll-margin-bottom: 4.5rem;
  }

  .chelfit-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .chelfit-categories__tile {
    min-height: 2.75rem;
    padding: .75rem;
    font-size: .875rem;
  }

  .blocks__item-slider-day {
    --up-blocks-padding-top: .75rem;
  }

  .blocks__item-slider-day .up-slider.wrap {
    padding-inline: .75rem;
  }

  .chelfit-hero-slide .up-slider__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 100%);
  }

  .chelfit-hero-slide .up-slider__link {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    width: 100%;
  }

  .chelfit-hero-slide .up-slider__link .btn {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
  }

  .chelfit-hero-slide .chelfit-hero-cta-secondary {
    display: none;
  }

  .blocks__item-slider-day .up-slider__button {
    display: none;
  }

  .blocks__item-slider-day .up-slider__pagin {
    bottom: .5rem;
  }
}

@media (max-width: 479.98px) {
  #chelfit-categories {
    scroll-margin-top: 6rem;
  }

  .chelfit-categories__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .chelfit-hero-slide .up-slider__link {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .chelfit-hero-slide .up-slider__link .btn {
    min-height: 2.75rem;
  }
}
