
:is(body.route-catalog-index, body.route-catalog)::after {
  display: none;
}


:is(body.route-catalog-index, body.route-catalog) {
  overflow-x: hidden;
}

:is(body.route-catalog-index, body.route-catalog) .page-main-inner {
  overflow-x: hidden;
  width: 100%;
  max-width: 1520px;
  min-width: 0;
}

:is(body.route-catalog-index, body.route-catalog) .catalog-layout {
  min-width: 0;
  max-width: 100%;
}

:is(body.route-catalog-index, body.route-catalog) .catalog-grid {
  min-width: 0;
  overflow-x: hidden;
}

:is(body.route-catalog-index, body.route-catalog) .catalog-grid .grid-2,
:is(body.route-catalog-index, body.route-catalog) .catalog-grid .grid-3 {
  min-width: 0;
}


@keyframes product-layout-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.route-product-view .page-main-inner > section.product-layout {
  animation: product-layout-fade-in 0.4s ease both;
  transform: none;
  
  position: relative;
  z-index: 1;
}

body.route-product-view .product-info--commerce.card:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}


body.route-product-view .page-main-inner > section.product-note {
  animation: product-layout-fade-in 0.4s ease both;
  transform: none;
  position: relative;
}

body.route-product-view section.product-note .card:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.catalog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
}

.catalog-loading.is-hidden {
  display: none !important;
}

.catalog-loading__spinner {
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: #111111;
  border-radius: 50%;
  animation: catalog-spin 0.8s linear infinite;
}

.catalog-loading__text {
  font-size: 14px;
  color: var(--text-muted);
}

@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  inset: -20px -16px;
  background: linear-gradient(135deg, rgba(200, 255, 42, 0.06) 0%, transparent 50%);
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  .catalog-hero::before {
    inset: -12px -8px;
  }
}

.catalog-hero .pill {
  margin-bottom: 8px;
}

.catalog-title {
  font-size: 26px;
  margin-bottom: 4px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
}

.catalog-filters .card-title:first-child {
  margin-bottom: 10px;
}

.catalog-categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.catalog-filters .card-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.catalog-brands.is-hidden {
  display: none;
}

.catalog-filters {
  position: sticky;
  top: 96px;
}

.catalog-category {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition:
    background-color var(--motion-base, 220ms) var(--motion-ease, ease),
    color var(--motion-base, 220ms) var(--motion-ease, ease),
    border-color var(--motion-base, 220ms) var(--motion-ease, ease),
    transform var(--motion-fast, 160ms) var(--motion-ease, ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.catalog-category:hover {
  background: #111111;
  color: #f7f7f9;
}

.catalog-category.is-active {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.catalog-brand {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-brand:hover {
    background: #111111;
    color: #f7f7f9;
    border-color: #111111;
  }
}

.catalog-brand.is-active {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.catalog-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  font: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-chip:hover {
    border-color: #111111;
  }
}

.catalog-chip.is-active {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.catalog-chip--badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.9;
}

.catalog-chip--badge .catalog-chip__icon svg {
  display: block;
}

.catalog-brands {
  display: block;
  margin-bottom: 16px;
}

.catalog-brands__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.catalog-brands__mobile-trigger,
.catalog-brands__mobile-panel {
  display: none;
}

.catalog-brands__desktop-only {
  display: flex;
}

.catalog-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.catalog-filters .catalog-badges {
  margin-top: 20px;
}

.catalog-filters .catalog-price {
  margin-top: 4px;
}

.catalog-clear {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 12px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.catalog-clear:hover {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
}

.catalog-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.catalog-reset-all {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.catalog-reset-all:hover {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.catalog-grid-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  transition:
    border-color var(--motion-base, 220ms) var(--motion-ease, ease),
    color var(--motion-base, 220ms) var(--motion-ease, ease),
    transform var(--motion-fast, 160ms) var(--motion-ease, ease);
  flex-shrink: 0;
}

.catalog-grid-toggle:hover {
  border-color: #1a1a1a;
}

@media (max-width: 768px) {
  .catalog-grid-toggle {
    display: flex;
  }

  .catalog-search {
    max-width: none;
  }
}

.catalog-search__icon {
  flex-shrink: 0;
  margin-right: 10px;
  color: var(--text-muted);
}

.catalog-search__icon svg {
  display: block;
}


.catalog-search__input[type="search"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.catalog-search__input[type="search"]::-webkit-search-decoration,
.catalog-search__input[type="search"]::-webkit-search-cancel-button,
.catalog-search__input[type="search"]::-webkit-search-results-button,
.catalog-search__input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.catalog-search__input[type="search"]:focus,
.catalog-search__input[type="search"]:focus-visible {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none;
}

.catalog-search__input:focus-visible,
.catalog-category:focus-visible,
.catalog-brand:focus-visible,
.catalog-chip:focus-visible,
.catalog-filters-drawer__close:focus-visible,
.catalog-filters-drawer__reset:focus-visible,
.catalog-pagination__btn:focus-visible,
.catalog-pagination__num:focus-visible,
.catalog-price__range input[type="range"]:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.catalog-search__input::placeholder {
  color: var(--text-muted);
}

.catalog-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-sort__btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.catalog-sort__btn:hover {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
}

.catalog-sort__btn.is-active {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
}

.catalog-price__range {
  position: relative;
  height: 6px;
  --price-min-pct: 0%;
  --price-max-pct: 100%;
  margin: 18px 4px;
  background: #e4e4eb;
  border-radius: 999px;
}

.catalog-price__range::before {
  display: none;
}

.catalog-price__range::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--price-min-pct);
  right: calc(100% - var(--price-max-pct));
  background: #111111;
  border-radius: 999px;
  pointer-events: none;
}

.catalog-price__range input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.catalog-price__range input[data-price-min] {
  z-index: 3;
}

.catalog-price__range input[data-price-max] {
  z-index: 2;
}

.catalog-price__range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111111;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: grab;
  pointer-events: auto;
  margin-top: -8px;
}

.catalog-price__range input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 6px;
  cursor: pointer;
}

.catalog-price__range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111111;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: grab;
  pointer-events: auto;
}

.catalog-price__range input[type="range"]::-moz-range-track {
  background: transparent;
  height: 6px;
}

.catalog-grid .grid-2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .catalog-grid .grid-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-grid .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.catalog-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg, 20px);
  position: relative;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-line, #eeefec);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(14, 15, 17, .04));

  opacity: 1;
  
  transition:
    box-shadow var(--motion-base, 220ms) var(--motion-ease, ease),
    border-color var(--motion-base, 220ms) var(--motion-ease, ease);
}


@media (hover: hover) and (min-width: 769px) {
  .catalog-grid .product-card:hover {
    border-color: rgba(14, 15, 17, 0.18);
    box-shadow: 0 3px 12px rgba(14, 15, 17, 0.06);
  }
}

.catalog-grid .product-card__image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  background: #f1f1f4;
  height: 188px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-grid .product-card-carousel__circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transform: none;
  top: 0;
  left: 0;
  background: transparent;
}

.catalog-grid .product-card-carousel__circle .product-card-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  top: 0;
  left: 0;
}

.catalog-grid .product-card-carousel__circle--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-grid .product-card-carousel__circle--placeholder span {
  font-size: 12px;
  color: var(--text-muted);
}

.catalog-grid .product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  pointer-events: none;
}

.catalog-grid .product-card__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill, 999px);
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(14, 15, 17, .05));
}

.catalog-grid .product-card__badge--hot {
  background: #e0432b;
  color: #fff;
}

.catalog-grid .product-card__badge--premium {
  background: var(--color-ink, #0e0f11);
  color: var(--color-accent, #c8ff2a);
}


.catalog-grid .product-card__badge--promo {
  background: var(--color-surface, #fff);
  color: var(--color-ink, #0e0f11);
  border: 1px solid var(--color-line, #eeefec);
  box-shadow: none;
}

.catalog-grid .product-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.catalog-grid .product-card__action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-line, rgba(14, 15, 17, 0.08));
  background: #fff;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(14, 15, 17, .05));
  text-decoration: none;
}

.catalog-grid .product-card__action-btn:hover {
  background: var(--color-ink, #0e0f11);
  color: #fff;
  border-color: var(--color-ink, #0e0f11);
  box-shadow: 0 0 0 2px rgba(14, 15, 17, 0.1);
}

.catalog-grid .product-card__action-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.catalog-grid .product-card__body {
  padding: 16px 12px 12px;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 768px) {
  .catalog-grid .product-card {
    gap: 0;
    contain: layout style paint;
    will-change: transform;
  }

  .catalog-grid .product-card__image {
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
  }

  
  .catalog-grid .product-card-carousel__circle .product-card-carousel__img {
    object-fit: contain;
  }

  .catalog-grid .grid-3 .product-card__image {
    border-radius: 12px;
  }

  .catalog-grid .product-card__body {
    padding: 6px 4px 0;
  }

  .catalog-grid .product-card__meta {
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.25;
  }

  .catalog-grid .product-card__title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.3;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .catalog-grid .grid-3 .product-card__title {
    font-size: 11px;
  }

  .catalog-grid .product-card__bottom {
    padding-top: 6px;
  }

  .catalog-grid .product-card__discount-slot {
    min-height: 2.25em;
  }

  .catalog-grid .product-card__price {
    font-size: 14px;
  }

  .catalog-grid .grid-3 .product-card__price {
    font-size: 13px;
  }

  .catalog-grid .product-card__actions {
    top: 6px;
    right: 6px;
    gap: 6px;
  }

  .catalog-grid .product-card__action-btn {
    width: 32px;
    height: 32px;
  }

  .catalog-grid .product-card__action-btn svg {
    width: 14px;
    height: 14px;
  }

  .catalog-grid .grid-3 .product-card__action-btn {
    width: 28px;
    height: 28px;
  }

  .catalog-grid .grid-3 .product-card__action-btn svg {
    width: 12px;
    height: 12px;
  }
}

.product-card__meta {
  margin-bottom: 6px;
}

.product-card__seller {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 18px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted, #666);
}

.product-card__seller-label {
  color: #8b8f98;
}

.product-card__seller-name {
  min-width: 0;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 700;
}

.product-card__seller-verified,
.product-seller-card__verified {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e6f7e6;
  color: #047857;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.catalog-grid .product-card__title {
  margin-bottom: 0;
}

.catalog-grid .product-card__bottom {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.catalog-grid .product-card__discount-slot {
  min-height: 2.5em;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.catalog-grid .product-card__discount-hint {
  font-size: 11px;
  line-height: 1.25;
  max-width: 100%;
}

.catalog-grid .product-card__meta,
.catalog-grid .product-card__title,
.catalog-grid .product-card__price {
  width: 100%;
  text-align: center;
}


.product-card-carousel__prev,
.product-card-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-carousel__prev {
  left: 8px;
}

.product-card-carousel__next {
  right: 8px;
}

.product-card-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
}

.product-card-carousel__dot.is-active {
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  .catalog-grid .product-card__actions {
    top: 8px;
    right: 8px;
    gap: 8px;
  }

  .catalog-grid .product-card__action-btn {
    width: 36px;
    height: 36px;
  }

  .catalog-grid .product-card__action-btn svg {
    width: 16px;
    height: 16px;
  }
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-muted, #666);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.product-back-link:hover {
  color: var(--text-primary, #1a1a1a);
}

.product-hero {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-hero h1 {
  font-size: 26px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas:
    "gallery details"
    "commerce commerce";
  gap: 24px;
  align-items: start;
}

.product-info-stack {
  grid-area: details;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.product-info--details .product-description {
  margin-top: 4px;
}

.product-info--commerce {
  grid-area: commerce;
  position: relative;
}

@media (min-width: 901px) {
  .product-info--commerce {
    display: block;
  }

  .product-info--commerce .product-price-block {
    margin-bottom: 0;
    min-width: 0;
  }

  
  .product-info--commerce .product-buy {
    margin-top: 14px;
    align-self: start;
    width: 100%;
  }

  .product-info--commerce .product-add-to-cart-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafafb 0%, #f3f3f6 100%);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .product-info--commerce .product-qty-placeholder {
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .product-info--commerce .product-qty-section {
    flex: 0 0 auto;
  }

  .product-info--commerce .product-qty-wrap {
    max-width: none;
    width: auto;
    margin-bottom: 0;
  }

  .product-info--commerce .product-buy__submit {
    flex: 1 1 160px;
    min-width: 0;
    min-height: 52px;
    margin-top: 0;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .product-info--commerce .product-qty-row {
    min-height: 52px;
  }

  .product-info--commerce .product-qty-btn {
    min-height: 52px;
    width: 52px;
    min-width: 52px;
  }

  .product-info--commerce .product-qty-input {
    min-width: 5rem;
    max-width: 9rem;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

.product-gallery {
  grid-area: gallery;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 0;
  height: auto;
}

.product-gallery__image {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 24px;
  background: #f7f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.product-gallery-carousel__imgs {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-gallery-carousel__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #8a8a8a;
  font-size: 14px;
}

.product-gallery-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-gallery-carousel__img.is-visible {
  opacity: 1;
  position: relative;
}

.product-gallery-carousel__prev,
.product-gallery-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
  padding: 0;
}

.product-gallery-carousel__prev::after {
  content: '\2039';
  font-size: 28px;
  line-height: 1;
}

.product-gallery-carousel__next::after {
  content: '\203A';
  font-size: 28px;
  line-height: 1;
}

.product-gallery-carousel__prev {
  left: 10px;
}

.product-gallery-carousel__next {
  right: 10px;
}

.product-gallery-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-gallery-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-gallery-carousel__dot.is-active {
  background: #fff;
}

.product-info .card-title {
  margin-bottom: 10px;
}

.product-variations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-variation {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f1f4;
  color: #333333;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.product-variation.is-active {
  background: #111111;
  color: #f7f7f9;
}

@keyframes product-variations-needs-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0);
    border-color: rgba(0, 0, 0, 0.14);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
    border-color: rgba(17, 17, 17, 0.28);
  }
}

.product-variations--needs-choice {
  padding: 10px;
  margin: -10px -10px 14px -10px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.025);
  animation: product-variations-needs-pulse 2.4s ease-in-out 2;
}

.product-variations--needs-choice:focus-within {
  animation: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .product-variations--needs-choice {
    animation: none;
  }
}

.product-variant-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
}

.product-variant-hint--cta {
  background: rgba(17, 115, 85, 0.07);
  border: 1px solid rgba(17, 115, 85, 0.22);
  color: var(--text-main, #101010);
}

.product-variant-hint__step {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d5c3f;
  background: rgba(17, 115, 85, 0.14);
  padding: 5px 9px;
  border-radius: 6px;
  line-height: 1.2;
}

.product-variant-hint__text {
  flex: 1 1 200px;
  min-width: 0;
  color: #333;
}

.product-variant-hint--error {
  background: rgba(180, 40, 40, 0.07);
  border: 1px solid rgba(180, 40, 40, 0.28);
  color: #5c1a1a;
}

.product-qty-placeholder {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
  background: #fafafb;
}

.product-qty-placeholder__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted, #555);
}

.product-qty-section[hidden] {
  display: none !important;
}

.product-description {
  font-size: 14px;
  margin-bottom: 10px;
}

.product-seller-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  background: #fafafb;
}

.product-seller-card__label {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #8b8f98;
  text-transform: uppercase;
}

.product-seller-card__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main, #101010);
}

.product-seller-card__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted, #666);
}

.product-seller-card__scheme {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.product-features {
  font-size: 13px;
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 16px;
}

.product-price-block {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-line, rgba(14, 15, 17, .08));
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(14, 15, 17, .04));
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-price-row:last-child {
  margin-bottom: 0;
}

.product-price-label {
  font-size: 14px;
  color: var(--text-muted, #666);
}

.product-price {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 600;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink, #0e0f11);
}

.product-price-row--sub {
  font-size: 14px;
  margin-top: -4px;
  margin-bottom: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 4px;
}

.product-price-row--sub strong {
  font-weight: 700;
  color: var(--text-main, #101010);
}

.product-cart-context-hint {
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.product-price-floor-hint {
  font-size: 12px;
  line-height: 1.45;
  margin: 10px 0 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.product-price-tiers {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.product-price-tiers__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main, #101010);
}

.product-price-tiers__hint {
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price-tiers__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-price-tiers__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.product-price-tiers__item:last-child {
  border-bottom: none;
}

.product-price-tiers__item.is-active {
  background: var(--surface-elevated, rgba(0, 0, 0, 0.05));
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 6px;
  border-bottom-color: transparent;
}


.product-price-tiers__range {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-muted, #666);
  line-height: 1.35;
  padding-right: 4px;
}

.product-price-tiers__price {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--text-main, #101010);
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .product-price-tiers__item {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .product-price-tiers__range {
    padding-right: 0;
  }

  .product-price-tiers__price {
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }
}


.product-sticky-buy-spacer {
  display: none;
}

.product-sticky-buy-anchor {
  display: none;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-top: 4px;
}

.product-buy .product-add-to-cart-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.product-buy__submit {
  flex-shrink: 0;
}

.product-qty-wrap {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
}

.product-qty-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #666);
}


.product-qty-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-qty-input {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 4.5rem;
  width: 5.5rem;
  max-width: 7.5rem;
  text-align: center;
  padding: 12px 14px;
  border: none;
  border-left: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
  border-right: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--text-main, #101010);
  background: #fafafb;
  -webkit-tap-highlight-color: transparent;
}

.product-qty-input:focus {
  outline: none;
  background: #fff;
}

.product-qty-input:focus-visible {
  outline: 2px solid var(--text-main, #111);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-qty-input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-qty-btn {
  flex: 0 0 auto;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  border: none;
  border-radius: 0;
  background: #f0f0f3;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-main, #101010);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-qty-btn:hover {
  background: #e4e4e8;
}

.product-qty-btn:active {
  background: #d8d8de;
}

.product-qty-btn:focus {
  outline: none;
}

.product-qty-btn:focus-visible {
  outline: 2px solid var(--text-main, #111);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.product-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-qty-btn--step {
  font-size: 12px;
}

.product-note {
  margin-top: 24px;
}

.product-note-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.product-note-list li {
  margin-bottom: 12px;
  line-height: 1.55;
}

.product-note-list li:last-child {
  margin-bottom: 0;
}

.product-note-list strong {
  color: var(--text-main, #101010);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "details"
      "commerce";
  }

  .product-info--commerce {
    display: block;
  }

  .product-info--commerce .product-add-to-cart-form {
    flex-direction: column;
    align-items: stretch;
  }

  .product-info--commerce .product-buy__submit {
    width: 100%;
    flex: none;
    min-height: 52px;
    margin-top: 0;
  }

  .product-info-stack {
    gap: 20px;
  }

  .product-buy {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .product-buy .product-add-to-cart-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafafb 0%, #f3f3f6 100%);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
    box-sizing: border-box;
    gap: 16px;
  }

  .product-buy .primary-button {
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
  }

  .product-qty-wrap {
    max-width: none;
  }

  .product-qty-row {
    width: 100%;
    max-width: 400px;
  }

  .product-qty-input {
    flex: 1 1 auto;
    max-width: none;
    min-width: 5rem;
    width: auto;
  }
}


@media (max-width: 1023px) {
  .product-sticky-buy-spacer {
    display: none;
  }

  
  body.route-product-view .product-sticky-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1010;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--glass-border, rgba(12, 15, 20, 0.08));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.09);
  }

  body.route-product-view .page-main-inner {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  
  body.route-product-view [data-product-variants] {
    scroll-margin-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }

  body.route-product-view section.product-note {
    scroll-margin-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }

  .product-sticky-buy-bar .product-buy {
    margin-top: 0;
  }

  .product-sticky-buy-bar .product-add-to-cart-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 12px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
  }

  .product-sticky-buy-bar .product-qty-placeholder {
    flex: 1 0 100%;
    order: -1;
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.045);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  }

  .product-sticky-buy-bar .product-qty-placeholder__text {
    margin: 0;
  }

  .product-sticky-buy-bar .product-qty-section {
    flex: 0 0 auto;
  }

  .product-sticky-buy-bar .product-qty-wrap {
    width: auto;
    max-width: none;
    margin: 0;
  }

  
  .product-sticky-buy-bar .product-qty-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .product-sticky-buy-bar .product-buy__submit {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 48px;
    margin-top: 0;
    width: auto;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    padding-left: 12px;
    padding-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  
  .product-sticky-buy-bar .product-qty-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: auto;
    max-width: none;
    min-height: 48px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .product-sticky-buy-bar .product-qty-btn {
    flex: 0 0 auto;
    width: 46px;
    min-width: 46px;
    min-height: 48px;
    border: none;
    border-radius: 0;
    background: #f0f0f3;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: var(--text-main, #101010);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }

  .product-sticky-buy-bar .product-qty-btn:hover {
    background: #e4e4e8;
  }

  .product-sticky-buy-bar .product-qty-btn:active {
    background: #d8d8de;
  }

  .product-sticky-buy-bar .product-qty-input {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 4.75rem;
    width: 5.25rem;
    max-width: 6.75rem;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
    border-right: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
    border-radius: 0;
    background: #fafafb;
    color: var(--text-main, #101010);
    direction: ltr;
    -webkit-tap-highlight-color: transparent;
  }

  .product-sticky-buy-bar .product-qty-input:focus {
    outline: none;
    background: #fff;
  }

  .product-sticky-buy-bar .product-qty-input:focus-visible {
    outline: 2px solid var(--text-main, #111);
    outline-offset: -2px;
    z-index: 1;
    position: relative;
  }
}


@media (max-width: 768px) {
  body.route-product-view .product-sticky-buy-bar {
    bottom: calc(var(--nav-height, 60px) + env(safe-area-inset-bottom, 0px));
  }

  body.route-product-view .page-main-inner {
    padding-bottom: calc(140px + var(--nav-height, 60px) + env(safe-area-inset-bottom, 0px));
  }

  body.route-product-view [data-product-variants],
  body.route-product-view section.product-note {
    scroll-margin-bottom: calc(130px + var(--nav-height, 60px) + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .product-variations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .product-variation {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border-color: var(--border-subtle, rgba(0, 0, 0, 0.08));
    background: #f3f3f6;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .product-variation.is-active {
    border-color: #111111;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  }
}

@media (max-width: 480px) {
  .product-gallery__image {
    height: 220px;
  }

  .product-hero h1 {
    font-size: 22px;
  }
}
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr !important;
  }

  .catalog-filters {
    position: static;
  }

  .catalog-categories {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .catalog-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .catalog-categories {
    width: calc(100% + 8px);
    max-width: calc(100% + 8px);
    min-width: 0;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 -4px;
    padding: 0 4px 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .catalog-categories::-webkit-scrollbar {
    display: none;
  }

  .catalog-category {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .catalog-filters .catalog-filters__rest {
    display: none !important;
  }

  .catalog-brands__mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: #1a1a1a;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .catalog-brands__mobile-trigger:hover {
    background: #111111;
    color: #f7f7f9;
    border-color: #111111;
  }

  .catalog-brands__mobile-count {
    font-size: 13px;
    color: var(--text-muted);
  }

  .catalog-brands__trigger-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    flex-shrink: 0;
  }

  .catalog-brands__mobile-trigger[aria-expanded="true"] .catalog-brands__trigger-arrow {
    transform: rotate(180deg);
  }

  .catalog-brands__header,
  .catalog-brands__desktop-only {
    display: none !important;
  }

  .catalog-brands__mobile-panel {
    display: block;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.22s ease, opacity 0.18s ease;
    will-change: height, opacity;
  }

  .catalog-brands__mobile-panel.is-open {
    opacity: 1;
  }

  .catalog-brands__mobile-panel-inner {
    min-height: 0;
    overflow: hidden;
    padding: 12px;
  }

  .catalog-brands__mobile-panel[hidden] {
    display: none !important;
    height: 0;
  }

  
  input.catalog-brands__search[type="search"] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
  }

  input.catalog-brands__search[type="search"]::-webkit-search-decoration,
  input.catalog-brands__search[type="search"]::-webkit-search-cancel-button,
  input.catalog-brands__search[type="search"]::-webkit-search-results-button,
  input.catalog-brands__search[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
  }

  input.catalog-brands__search[type="search"]:focus,
  input.catalog-brands__search[type="search"]:focus-visible {
    background: #ffffff !important;
    border-radius: 8px !important;
  }

  .catalog-brands__list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    max-height: 220px;
    overflow-y: scroll;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-brands__list .catalog-brand {
    width: 100% !important;
    min-width: 0;
    text-align: left;
    flex-shrink: 0;
  }

  .catalog-brands__list .catalog-brand.is-hidden-by-search {
    display: none !important;
  }

  .catalog-brands__list::-webkit-scrollbar {
    width: 8px;
  }

  .catalog-brands__list::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
  }

  .catalog-brands__list::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
  }

  .catalog-brands__list::-webkit-scrollbar-thumb:hover {
    background: #666;
  }
}


.catalog-brand.is-unavailable,
.catalog-chip.is-unavailable {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.2);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 8px;
  user-select: none;
  flex-wrap: nowrap;
  max-width: 100%;
}

.catalog-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.catalog-pagination__btn,
.catalog-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  flex-shrink: 0;
}

.catalog-pagination__btn:hover:not(:disabled),
.catalog-pagination__num:hover:not(.is-active) {
  background: #f1f1f4;
  border-color: rgba(0, 0, 0, 0.18);
}

.catalog-pagination__btn:active:not(:disabled),
.catalog-pagination__num:active:not(.is-active) {
  background: #e8e8eb;
}

.catalog-pagination__num.is-active {
  background: #111111;
  color: #f7f7f9;
  border-color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.catalog-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.catalog-pagination__btn svg {
  display: block;
}

.catalog-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 2px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .catalog-pagination {
    gap: 3px;
    padding: 20px 4px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
  }

  .catalog-pagination__pages {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .catalog-pagination__btn,
  .catalog-pagination__num {
    min-width: 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    padding: 0 4px;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }

  .catalog-pagination__ellipsis {
    min-width: 20px;
    width: 20px;
    height: 36px;
    font-size: 12px;
  }
}


.catalog-filters-fab {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  z-index: 950;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #111111;
  color: #f7f7f9;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.catalog-filters-fab:hover {
  background: #202124;
  box-shadow: 0 0 0 3px rgba(200, 255, 42, 0.42);
}

.catalog-filters-fab:active {
  background: #2a2b2e;
}

.catalog-filters-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-filters-fab__icon svg {
  display: block;
}

.catalog-filters-fab__label {
  display: none;
}

@media (max-width: 768px) {
  .catalog-filters-fab {
    display: inline-flex;
    bottom: calc(var(--nav-height, 60px) + 16px + env(safe-area-inset-bottom, 0px));
  }
}

.catalog-filters-overlay {
  position: fixed;
  inset: 0;
  z-index: 1005;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-slow, 320ms) var(--motion-ease, ease),
    visibility var(--motion-slow, 320ms) var(--motion-ease, ease);
}

.catalog-filters-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.catalog-filters-overlay[hidden] {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.catalog-filters-drawer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: var(--bg-card, #ffffff);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform var(--motion-slow, 320ms) var(--motion-ease, ease);
  will-change: transform;
  min-width: 0;
}

.catalog-filters-overlay.is-open .catalog-filters-drawer {
  transform: translateY(0);
}

.catalog-filters-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  flex-shrink: 0;
}

.catalog-filters-drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.catalog-filters-drawer__close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted, #666);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.catalog-filters-drawer__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.catalog-filters-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
}

.catalog-filters-drawer__body .catalog-filters__rest {
  display: block !important;
}

.catalog-filters-drawer__body .catalog-reset-all {
  display: none !important;
}

.catalog-filters-drawer__footer {
  flex-shrink: 0;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

@media (max-width: 768px) {
  .catalog-filters-overlay {
    top: var(--tg-shell-header-height, 0px);
    box-sizing: border-box;
  }

  .catalog-filters-drawer {
    max-height: 100%;
  }

  .catalog-filters-drawer__footer {
    padding-bottom: calc(16px + var(--nav-height, 60px) + env(safe-area-inset-bottom, 0px));
  }
}

.catalog-filters-drawer__apply {
  display: none !important;
}

.catalog-filters-drawer__footer {
  display: flex;
  align-items: center;
  gap: 0;
}

.catalog-filters-drawer__reset {
  width: 100%;
  margin-top: 0;
  text-align: center;
}




.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 4px;
  font-size: 12.5px;
  line-height: 1;
}

.product-card__rating-star {
  color: #f5a623;
  font-size: 13px;
}

.product-card__rating-value {
  font-weight: 700;
}

.product-card__rating-count {
  color: var(--muted-color, #8a8a8a);
  opacity: 0.8;
}


.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-sort__label {
  font-size: 12.5px;
  opacity: 0.7;
}

.catalog-sort__select {
  appearance: none;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  padding: 8px 28px 8px 12px;
  font-size: 13px;
  background: var(--card-bg, #fff) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 768px) {
  .catalog-sort__label {
    display: none;
  }
}


.reviews-block {
  margin-top: 18px;
  padding: 20px;
}

.reviews-block__title {
  margin: 0 0 12px;
  font-size: 19px;
}

.reviews-summary {
  margin-bottom: 14px;
}

.reviews-summary__score {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-summary__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.reviews-summary__note {
  margin: 6px 0 0;
  font-size: 12.5px;
}

.reviews-summary__empty,
.reviews-empty {
  font-size: 13.5px;
  margin: 4px 0;
}

.reviews-stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}

.reviews-star {
  color: rgba(128, 128, 128, 0.35);
  font-size: 15px;
}

.reviews-star.is-filled {
  color: #f5a623;
}

.reviews-flash {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin: 10px 0;
}

.reviews-flash--ok {
  background: rgba(46, 174, 96, 0.12);
  color: #1e7a44;
  border: 1px solid rgba(46, 174, 96, 0.35);
}

.reviews-flash--error {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-item {
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  padding: 12px 14px;
}

.reviews-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-item__author {
  font-weight: 700;
  font-size: 13.5px;
}

.reviews-item__rating-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.reviews-item__date {
  margin-left: auto;
  font-size: 12px;
}

.reviews-item__text {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}

.reviews-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  text-decoration: underline;
  color: inherit;
}

.reviews-already {
  margin: 14px 0 0;
  font-size: 13.5px;
}


.reviews-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-form__rating {
  border: none;
  margin: 0;
  padding: 0;
}

.reviews-form__legend {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}


.reviews-form__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.reviews-form__star-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reviews-form__star {
  font-size: 28px;
  line-height: 1;
  color: rgba(128, 128, 128, 0.35);
  cursor: pointer;
  padding: 2px;
  transition: color 0.12s ease, transform 0.12s ease;
}

.reviews-form__star:hover,
.reviews-form__star:hover ~ .reviews-form__star,
.reviews-form__star-input:checked ~ .reviews-form__star {
  color: #f5a623;
}

.reviews-form__star-input:focus-visible + .reviews-form__star {
  outline: 2px solid var(--accent-color, #c8ff2a);
  outline-offset: 2px;
  border-radius: 6px;
}

.reviews-form__text-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-form__label {
  font-size: 13px;
  font-weight: 600;
}

.reviews-form__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  resize: vertical;
  min-height: 90px;
  background: transparent;
  color: inherit;
}

.reviews-form__submit {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .reviews-block {
    padding: 16px 14px;
  }

  .reviews-item__date {
    margin-left: 0;
    width: 100%;
  }

  .reviews-form__submit {
    align-self: stretch;
    width: 100%;
    text-align: center;
  }
}


.product-price-group {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price-old {
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
  text-decoration: line-through;
  white-space: nowrap;
}

.product-price-discount {
  align-self: center;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
