/* ============================================
   COMPONENTS (Reusable UI)
   Keep only shared components (no page-specific duplicates)
   ============================================ */

/* ---------- Segmented control (Search / Smart search) ---------- */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--stroke-landing);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-white);
}

.segmented__btn {
  position: relative;
  height: calc(var(--space-12) - var(--space-1));
  border: none;
  background: transparent;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.segmented__btn.is-active {
  background: var(--color-white);
  color: var(--color-text-accent);
}

.segmented__btn.is-filled {
  background: var(--color-action);
  color: var(--color-white);
}

.segmented__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.segmented__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

/* ---------- Tooltip bubble ---------- */
.tooltip {
  position: absolute;
  z-index: var(--z-overlay);
  max-width: 18rem; /* ~288px */
  background: var(--color-tooltip-bg);
  color: var(--color-text-secondary);
  font-size: var(--fs-desc-d);
  line-height: 1.4;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tooltip::after {
  content: "";
  position: absolute;
  left: calc(var(--space-4) + var(--space-2));
  bottom: calc(var(--space-2) * -1);
  width: 16px;
  height: 16px;
  background: var(--color-tooltip-bg);
  transform: rotate(45deg);
  border-radius: 3px;
}

/* ---------- Cookie banner (desktop) ---------- */
.cookie-card {
  width: min(420px, calc(100vw - 2 * var(--layout-safe-padding)));
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  border: 1px solid var(--stroke-landing);
}

.cookie-card__title {
  font-size: var(--fs-h3-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.cookie-card__text {
  margin-top: var(--space-3);
  font-size: var(--fs-text-sm-d);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.cookie-card__text p {
  margin: 0;
}

.cookie-card__text p + p {
  margin-top: 4px;
}

.cookie-card__btn {
  margin-top: var(--space-6);
  width: 100%;
  height: calc(var(--space-12) - var(--space-1));
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-action);
  color: var(--color-white);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

/* ============================================
   Category carousel tile
   ============================================ */

.cat-tile {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 84px;
  background: #F4F1ED;
  border-radius: 20px;
  border: none;
  padding: 8px 10px 8px 16px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: initial;

  text-decoration: none;
}

.cat-tile:hover {
  text-decoration: none;
}

.cat-tile__icon {
  width: 86px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cat-tile__label {
  width: auto;
  min-width: 0;
  height: 24px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
  color: #3F4741;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.page--landing .cat-tile {
  min-height: 84px;
  height: 84px;
  padding: 8px 8px 8px 12px;
  border-radius: 20px;
  gap: 12px;
  background: #F4F1ED;
  flex: 0 0 auto;
}

.page--landing .cat-tile__icon {
  width: 86px;
  height: 68px;
}

.page--landing .cat-tile__label {
  height: 24px;
  min-height: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #3F4741;
}

@media (max-width: 1023px) {
  .cat-tile {
    width: 88px;
    min-width: 88px;
    flex: 0 0 88px;
    min-height: 92px;
    padding: 12px 8px 10px;
    height: auto;
    background: var(--color-orange-light);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .cat-tile__icon {
    width: 34px;
    height: 34px;
  }

  .cat-tile__label {
    margin-top: 8px;
    width: auto;
    height: auto;
    font-size: var(--fs-text-sm-m);
    line-height: 1.2;
    color: var(--color-text-primary);
    min-height: 30px;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
  }

  .page--landing .cat-tile {
    width: auto;
    min-width: auto;
    flex: 0 0 auto;
    min-height: 84px;
    height: 84px;
    padding: 8px 8px 8px 12px;
    background: #F4F1ED;
    border-radius: 20px;
    border: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .page--landing .cat-tile__icon {
    width: 86px;
    height: 68px;
  }

  .page--landing .cat-tile__label {
    margin-top: 0;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #3F4741;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1 1 auto;
  }
}

/* ============================================
   Filters sidebar (desktop)
   Max width: 280px (Figma)
   ============================================ */

.filters {
  width: 280px;
  max-width: 280px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-landing);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.filters__body {
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-height: 0;
}

.filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.filters__title {
  font-size: var(--fs-h3-m);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.filters__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filters__title-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 12px;
  line-height: 22px;
  font-weight: var(--font-semibold);
  text-align: center;
}

.filters__reset {
  font-size: var(--fs-text-m);
  color: var(--color-text-tertiary);
  text-decoration: none;
}

.chip,
.chip:visited,
.chip:hover,
.badge,
.badge:visited,
.badge:hover,
.bs__chip,
.bs__chip:visited,
.bs__chip:hover {
  text-decoration: none;
}

.filters__crumb {
  margin-top: var(--space-4);
  font-size: var(--fs-text-m);
  color: var(--color-text-secondary);
}

.filters__crumb a {
  color: var(--color-orange);
  text-decoration: none;
}

.filters__section-title {
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
  margin-bottom: var(--space-3);
}

.filters__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filters__section-head .filters__section-title {
  margin-bottom: 0;
}

.filters__section-reset {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  flex: 0 0 auto;
}

.filters__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.filters__facet {
  margin-top: 12px;
}

.filters__check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-text-m);
  color: var(--color-text-secondary);
}

.filters__check input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--color-action);
}

.filters__options {
  display: grid;
  gap: var(--space-4);
}

.filters__section-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 4px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.filters__section-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.filters__section-card.is-selected {
  background: #f3f5f3;
}

.filters__section-card.is-disabled {
  cursor: default;
}

.filters__section-card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filters__section-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.filters__section-card-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 4px;
}

.filters__section-card-title {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-text-accent);
}

.filters__section-card-desc {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.filters__section-card:not(.is-selected):hover {
  background: rgba(243, 245, 243, 0.6);
}

.filters__option {
  border: 1px solid var(--stroke-landing);
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-align: left;
  padding: var(--space-4);
  cursor: pointer;
}

.filters__option--checkable {
  position: relative;
  display: block;
}

.filters__option--checkable input {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-action);
}

.filters__option--checkable .filters__option-title,
.filters__option--checkable .filters__option-desc {
  padding-left: 28px;
}

.filters__option--checkable:has(input:checked) {
  border-color: var(--color-action);
  background: rgba(138, 155, 143, 0.08);
}

.filters__option-title {
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.filters__option-desc {
  margin-top: 6px;
  font-size: var(--fs-text-sm-d);
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.filters__input {
  position: relative;
}

.filters__input svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--color-text-tertiary);
  fill: none;
}

.filters__input input {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  padding: 0 var(--space-4) 0 44px;
  font-size: var(--fs-text-m);
  color: var(--color-text-secondary);
  outline: none;
}

.filters__input input::placeholder {
  color: var(--color-text-tertiary);
}

.filters__price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.filters__price input {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  padding: 0 var(--space-4);
  font-size: var(--fs-text-m);
  color: var(--color-text-secondary);
  outline: none;
}

.filters__price input.is-active {
  background: rgba(138, 155, 143, 0.45);
}

.filters__price input::placeholder {
  color: var(--color-text-secondary);
}

.filters__accordion {
  border-top: 1px solid transparent;
}

.filters__accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0 var(--space-3);
}

.filters__accordion summary::-webkit-details-marker {
  display: none;
}

.filters__chevron {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-secondary);
  fill: none;
  transition: transform var(--transition-base);
}

.filters__accordion[open] .filters__chevron {
  transform: rotate(180deg);
}

.filters__sort {
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  max-height: 260px;
  overflow: auto;
  padding-right: 6px; /* место под скролл */
}

.filters__sort-btn {
  border: none;
  background: transparent;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-text-m);
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.filters__sort-btn.is-active {
  background: var(--color-surface-muted);
  color: var(--color-text-accent);
}

.filters__footer {
  padding: var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  background: var(--color-white);
  position: sticky;
  bottom: 0;
}

.filters__apply {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-action);
  color: var(--color-white);
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

.app-loader[hidden] {
  display: none !important;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 30);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(2px);
}

.is-favourites-panel-open .app-loader {
  z-index: calc(var(--z-overlay) + 2);
}

.app-loader__spinner {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 4px solid rgba(146, 153, 147, 0.22);
  border-top-color: var(--color-action);
  animation: app-loader-spin 0.75s linear infinite;
}

.is-loading {
  cursor: progress;
}

button.is-loading,
button[aria-busy="true"],
input[type="submit"].is-loading,
input[type="submit"][aria-busy="true"] {
  position: relative;
  color: transparent !important;
}

button.is-loading > *,
button[aria-busy="true"] > * {
  opacity: 0 !important;
}

button.is-loading::after,
button[aria-busy="true"]::after,
input[type="submit"].is-loading::after,
input[type="submit"][aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 999px;
  border: 2px solid rgba(146, 153, 147, 0.28);
  border-top-color: currentColor;
  animation: app-loader-spin 0.7s linear infinite;
}

button.is-loading::after,
button[aria-busy="true"]::after {
  color: var(--color-action);
}

input[type="submit"].is-loading::after,
input[type="submit"][aria-busy="true"]::after {
  color: var(--color-action);
}

.is-loading a[data-nav],
.is-loading button,
.is-loading input[type="submit"] {
  pointer-events: none;
}

.is-loading.is-favourites-panel-open .favourites-panel a[data-nav],
.is-loading.is-favourites-panel-open .favourites-panel button {
  pointer-events: auto;
}

@keyframes app-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .cookie-card__title {
    font-size: var(--fs-h3-m);
  }

  .page--landing .cookie-card {
    width: 345px;
    border: 0;
    border-radius: 16px;
    background: #F3F5F3;
    box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.15);
    padding: 24px 24px 30px;
  }

  .page--landing .cookie-card__title {
    font-family: "SF Pro", var(--font-sans);
    font-size: 20px;
    line-height: 22px;
    font-weight: 510;
    color: #3F4741;
  }

  .page--landing .cookie-card__text {
    margin-top: 12px;
    font-family: "SF Pro", var(--font-sans);
    font-size: 12px;
    line-height: 16px;
    color: #535B55;
  }

  .page--landing .cookie-card__btn {
    width: 297px;
    height: 40px;
    margin-top: 15px;
    padding: 4px 15px 5px;
    border-radius: 9999px;
    background: #8A9B8F;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
    font-family: "SF Pro", var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #FFFFFF;
  }
}

/* ==========================================================
   Bottom sheet — normalization/overrides (keep system single)
   - default header: reset | title | close  (matches 375×516)
   - modifier header: close | title | reset (matches 375×592 sorting)
   - checkbox 16×16 + big hit-area (whole row clickable)
   ========================================================== */

.bs {
  width: 23.4375rem; /* 375px */
  height: var(--bs-h, 37rem);
  background: var(--color-white);
  border-radius: 1.75rem 1.75rem 0 0; /* 28px */
  box-shadow: var(--shadow-md);
  overflow: hidden;

  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

/* fixed heights for demo / exact paste */
.bs--592 {
  --bs-h: 37rem;
} /* 592px */
.bs--516 {
  --bs-h: 32.25rem;
} /* 516px */

.bs__handle-wrap {
  padding-top: 0.5rem; /* 8px */
  padding-bottom: 0.25rem; /* 4px */
  display: flex;
  justify-content: center;
}

.bs__handle {
  width: 2.75rem; /* 44px */
  height: 0.25rem; /* 4px */
  border-radius: 999px;
  background: rgba(63, 71, 65, 0.35);
}

/* default: reset (left) | title | close (right) */
.bs__header {
  padding: 0.75rem 1rem; /* 12px 16px */
  display: grid;
  grid-template-columns: 5.25rem 1fr 2rem;
  align-items: center;
}

.bs__reset {
  justify-self: start;
  font-size: var(--fs-text-m);
  color: var(--color-text-tertiary);
  text-decoration: none;
}

.bs__reset.is-hidden {
  visibility: hidden; /* keeps grid alignment */
}

.bs__close {
  justify-self: end;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bs__close svg {
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
}

/* variant: close (left) | title | reset (right) */
.bs__header.bs__header--close-left {
  grid-template-columns: 2rem 1fr 5.25rem;
}

.bs__header.bs__header--close-left .bs__close {
  justify-self: start;
}

.bs__header.bs__header--close-left .bs__reset {
  justify-self: end;
}

.bs__title {
  text-align: center;
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.bs__content {
  padding: 0.5rem 1rem 1rem; /* 8px 16px 16px */
  overflow: auto;
  min-height: 0;
}

/* Search input */
.bs__search {
  position: relative;
}

.bs__search svg {
  position: absolute;
  left: 1rem; /* 16px */
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  stroke: var(--color-text-tertiary);
  fill: none;
}

.bs__search input {
  width: 100%;
  height: 3rem; /* 48px */
  border: 1px solid var(--stroke-landing);
  border-radius: 999px;
  padding: 0 1rem 0 2.75rem; /* icon space */
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  outline: none;
  background: var(--color-white);
}

.bs__search input::placeholder {
  color: var(--color-text-tertiary);
}

/* Chip */
.bs__chips {
  margin-top: 0.75rem; /* 12px */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* 8px */
}

.bs__chip {
  height: 2rem; /* 32px */
  padding: 0 0.875rem; /* 14px */
  border-radius: 999px;
  border: 1px solid var(--stroke-landing);
  background: var(--color-white);
  font-size: var(--fs-text-m);
  color: var(--color-text-secondary);
  cursor: pointer;
}

/* Checkbox list */
.bs__checks {
  margin-top: 1.25rem; /* 20px */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

/* checkbox row: big hit-area */
.bs__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem; /* 14px */

  min-height: 2.75rem; /* 44px tap target */
  padding: 0.25rem 0; /* small breathing room */

  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
}

.bs__check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* 16×16 box */
.bs__box {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  border: 1px solid var(--stroke-landing);
  border-radius: 0.125rem; /* 2px */
  background: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* hover/focus feedback (token-based) */
.bs__check:hover {
  background: rgba(0, 0, 0, 0.02);
}

.bs__check:has(input:focus-visible) {
  outline: 2px solid rgba(138, 155, 143, 0.35);
  outline-offset: 2px;
  border-radius: 0.75rem;
}

/* checked state + tick */
.bs__check input:checked ~ .bs__box {
  background: rgba(138, 155, 143, 0.18);
  border-color: var(--color-action);
  position: relative;
}

.bs__check input:checked ~ .bs__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--color-action);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.bs__text {
  line-height: 1.3;
}

/* List variant */
.bs__list {
  margin-top: 1rem; /* 16px */
  display: grid;
  gap: 0.5rem; /* 8px */
}

.bs__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 1rem; /* 16px */
  border-radius: 0.75rem; /* 12px */
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.bs__item:hover {
  background: var(--color-surface-muted);
}

.bs__item.is-active {
  background: var(--color-surface-muted);
  color: var(--color-text-accent);
}

/* Footer button */
.bs__footer {
  padding: 1rem; /* 16px */
  background: var(--color-white);
}

.bs__apply {
  width: 100%;
  height: 3.5rem; /* 56px */
  border: none;
  border-radius: 999px;
  background: var(--color-action);
  color: var(--color-white);
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

/* ============================================
   Dropdown (desktop)
   - Dropdown list:    330×447 (.dd--447)
   - Dropdown sorting: 330×420 (.dd--420)
   Notes:
   - Hover uses surface-muted token
   - Checkboxes are custom 16×16
   ============================================ */

.dd {
  width: 20.625rem; /* 330px */
  height: var(--dd-h, 27.9375rem); /* fallback */
  background: var(--color-white);
  border: 1px solid var(--stroke-landing);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;

  display: grid;
  grid-template-rows: auto 1fr;
}

.dd--447 {
  --dd-h: 27.9375rem;
} /* 447px */
.dd--420 {
  --dd-h: 26.25rem;
} /* 420px */

.dd__header {
  padding: 1rem; /* 16px */
  display: grid;
  grid-template-columns: 5.25rem 1fr 2rem;
  align-items: center;
}

.dd__reset {
  justify-self: start;
  font-size: var(--fs-text-m);
  color: var(--color-text-tertiary);
  text-decoration: none;
}

.dd__reset.is-hidden {
  visibility: hidden;
}

.dd__title {
  text-align: center;
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.dd__close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dd__close svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
}

.dd__content {
  padding: 0 1rem 1rem; /* 0 16px 16px */
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem; /* 16px */
  min-height: 0;
}

.dd__content--list {
  grid-template-rows: 1fr;
}

.dd__search {
  position: relative;
}

.dd__search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--color-text-tertiary);
  fill: none;
}

.dd__search input {
  width: 100%;
  height: 3rem; /* 48px */
  border: 1px solid var(--stroke-landing);
  border-radius: 999px;
  padding: 0 1rem 0 2.75rem;
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  outline: none;
  background: var(--color-white);
}

.dd__search input::placeholder {
  color: var(--color-text-tertiary);
}

.dd__scroll {
  overflow: auto;
  min-height: 0;
  padding-right: 0.375rem; /* space for scrollbar */
}

.dd__checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
}

.dd__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;

  min-height: 2.75rem; /* 44px */
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);

  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
}

.dd__check:hover {
  background: var(--color-surface-muted);
}

.dd__check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dd__box {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--stroke-landing);
  border-radius: 0.125rem;
  background: var(--color-white);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dd__box::after {
  content: "";
  width: 0.375rem;
  height: 0.625rem;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  opacity: 0;
  margin-top: -1px;
}

.dd__check input:checked + .dd__box::after {
  opacity: 1;
}

.dd__text {
  line-height: 1.3;
}

/* Sorting list (buttons) */
.dd__list {
  display: grid;
  gap: 0.5rem; /* 8px */
}

.dd__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.dd__item:hover {
  background: var(--color-surface-muted);
}

.dd__item.is-active {
  background: var(--color-surface-muted);
  color: var(--color-text-accent);
}

.dd--sort {
  border: 0;
  border-radius: 12px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.dd--sort .dd__header {
  padding: 24px 24px 0;
  grid-template-columns: minmax(72px, auto) 1fr 72px;
}

.dd--sort .dd__reset {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-tertiary);
}

.dd--sort .dd__close {
  justify-self: end;
}

.dd--sort .dd__content {
  padding: 24px;
  padding-top: 16px;
}

.dd--sort .dd__scroll {
  padding-right: 8px;
}

.dd--sort .dd__list {
  gap: 0;
}

.dd--sort .dd__item {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-accent);
}

.bs--sort .bs__header {
  padding: 10px 14px 0;
}

.bs--sort .bs__reset {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-tertiary);
}

.bs--sort .bs__content {
  padding: 18px 14px 16px;
  overflow: auto;
}

.bs--sort .dd__list {
  gap: 0;
}

.bs--sort .dd__item {
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-accent);
}

/* ============================================
   AI Dialog (Smart Search) — narrow panel
   Figma:
     - ai-dialog-1: w=282 h=774
     - ai-dialog-2: w=282 h=806 (spinner on input)
   Notes:
     - Messages stick to bottom when few
     - Spinner enabled by .ai-dialog.is-loading
     - Paperclip icon is INSIDE input, mic button is separate
   ============================================ */

.ai-dialog {
  --ai-w: 17.625rem; /* 282px */
  --ai-h: 48.375rem; /* 774px default */

  width: var(--ai-w);
  height: var(--ai-h);

  background: var(--color-white);
  border: 1px solid var(--stroke-landing);
  border-radius: calc(var(--radius-lg) + var(--space-1)); /* ~20px */
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.ai-dialog--774 {
  --ai-h: 48.375rem;
} /* 774px */
.ai-dialog--806 {
  --ai-h: 50.375rem;
} /* 806px */

/* Top actions row */
.ai-dialog__top {
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);

  font-size: var(--fs-text-sm-d);
  color: var(--color-text-tertiary);
}

.ai-dialog__top-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.ai-dialog__top-btn:hover {
  color: var(--color-text-secondary);
}

.ai-dialog__top-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* Messages area */
.ai-dialog__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;

  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: flex-end;
}

.ai-bubble {
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.ai-bubble--user {
  background: var(--color-tooltip-bg);
}

.ai-bubble--bot {
  background: var(--color-white);
  border: 1px solid var(--stroke-landing);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* Spinner (only visible in "loading" variant) */
.ai-dialog__spinner-row {
  display: none;
  justify-content: center;
}

.ai-dialog.is-loading .ai-dialog__spinner-row {
  display: flex;
}

.ai-spinner {
  width: 1.125rem; /* 18px */
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid rgba(224, 122, 95, 0.22);
  border-top-color: var(--color-orange);
  animation: ai-spin 800ms linear infinite;
}

@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Composer */
.ai-dialog__composer {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Input + paperclip inside */
.ai-dialog__field {
  position: relative;
  flex: 1 1 auto;
}

.ai-dialog__input {
  width: 100%;
  height: 2.75rem; /* 44px */
  border: 1px solid var(--stroke-landing);
  border-radius: var(--radius-md);
  padding: 0 2.75rem 0 var(--space-4); /* space for clip icon */
  font-size: var(--fs-text-d);
  color: var(--color-text-secondary);
  outline: none;
  background: var(--color-white);
}

.ai-dialog__input::placeholder {
  color: var(--color-text-tertiary);
}

/* paperclip button inside input (right side) */
.ai-dialog__attach {
  position: absolute;
  right: 0.5rem; /* 8px */
  top: 50%;
  transform: translateY(-50%);

  width: 2rem; /* 32px */
  height: 2rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-tertiary);
  cursor: pointer;
}

.ai-dialog__attach:hover {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

/* берём стили “как у иконки в поиске хедера”: stroke, без fill */
.ai-dialog__attach svg {
  width: 1.125rem; /* 18px */
  height: 1.125rem;
  stroke: currentColor;
  fill: none;
}

/* mic separate button */
.ai-dialog__mic {
  width: 2.75rem; /* 44px */
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-landing);
  background: var(--color-white);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-tertiary);
}

.ai-dialog__mic:hover {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

.ai-dialog__mic svg {
  width: 1.125rem; /* 18px */
  height: 1.125rem;
  stroke: currentColor;
  fill: none;
}

/* ============================================
   Product Cards (Catalog / Landing)
   Source: extracted from landing.css
   Notes:
   - Markup: .product-grid > .product-card
   - Favorite heart is part of the card
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.product-card {
  background: transparent;
}

.product-card__image-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9e9e9;
  aspect-ratio: 280 / 266; /* from Figma (280x265.7) */
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__link,
.product-card__title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__image-wrapper > .product-card__link {
  width: 100%;
  height: 100%;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 6px var(--space-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--fs-text-sm-d);
  color: var(--color-text-accent);
}

.product-card__favorite {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__favorite svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-accent);
  fill: none;
  stroke-width: 2;
}

/* slider dots rendered from media_count */
.product-card__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.product-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.product-card__dot--tail {
  width: 6px;
  height: 6px;
  opacity: 0.95;
}

.product-card__content {
  padding-top: var(--space-3);
}

.product-card__title {
  font-size: var(--fs-text-d);
  font-weight: var(--font-regular);
  color: var(--color-text-accent);
  line-height: 1.4;
  margin-bottom: 14px;
}

.product-card__desc {
  display: none; /* в макете не показывается */
}

.product-card__price {
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.product-card__price-old {
  font-size: var(--fs-desc-d);
  color: var(--color-text-disabled);
  text-decoration: line-through;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card__title {
    font-size: var(--fs-text-m);
    margin-bottom: 10px;
  }
}

/* ============================================
   Product cards
   Ref: .docs/screens/Card.png
   Notes:
   - content can be longer than 3 lines (no hard clamp)
   - variants are modifiers (width/height from spec):
       2) 345×160 img 165×160 gap 15   => .product-card--row-sm
       4) 416×160 img 165×160 gap 15   => .product-card--row-wide
       5) 414×182 img 165×160 top-left => .product-card--row-tall (+ menu + stats + promo)
       6) 345×175 img 122×122          => .product-card--row-345-175 (+ menu + stats + promo, no fav)
       7) 800×101 img 104×101          => .product-card--row-800-101 (price top-right, no dots/fav/menu)
       8) 345×101 img 104×101          => .product-card--row-345-101 (no dots/fav/menu)
   Helpers:
     .product-card--no-fav, .product-card--no-dots
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.product-card {
  background: transparent;
}

/* image wrapper (tile default) */
.product-card__image-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9e9e9;

  /* default tile ratio (desktop card) */
  aspect-ratio: 280 / 266;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 6px var(--space-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--fs-text-sm-d);
  color: var(--color-text-accent);
}

.product-card__favorite {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.product-card__favorite::after,
.favourites-panel__remove::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(80, 91, 83, 0.22);
  border-top-color: #505B53;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  animation: favourites-spin 700ms linear infinite;
}

.product-card__favorite svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-accent);
  fill: none;
  stroke-width: 2;
}

.product-card__favorite:hover {
  transform: translateY(-1px);
}

.product-card__favorite.is-active svg {
  fill: #E47A61;
  stroke: #E47A61;
}

.product-card__favorite.is-loading svg,
.favourites-panel__remove.is-loading svg {
  opacity: 0;
}

.product-card__favorite.is-loading::after,
.favourites-panel__remove.is-loading::after {
  opacity: 1;
}

.product-card__favorite:disabled,
.favourites-panel__remove:disabled {
  cursor: wait;
}

@keyframes favourites-spin {
  to {
    transform: rotate(360deg);
  }
}

/* slider dots rendered from media_count */
.product-card--no-dots .product-card__dots {
  display: none;
}

.product-card--no-fav .product-card__favorite {
  display: none;
}

.product-card__content {
  padding-top: var(--space-3);
  position: relative; /* for top-right price/menu in row variants */
  min-width: 0;
}

.product-card__title {
  font-size: var(--fs-text-d);
  font-weight: var(--font-regular);
  color: var(--color-text-accent);
  line-height: 1.35;
  max-width: 10rem;

  /* IMPORTANT: allow >3 lines */
  white-space: normal;
  overflow: visible;
}

.product-card__category {
  margin-top: 6px;
  font-size: var(--fs-desc-d);
  color: var(--color-text-tertiary);
}

.product-card__price-row {
  margin-top: var(--space-1);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.favourites-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
  color: var(--color-text-accent);
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.favourites-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--color-border);
}

.favourites-panel__title {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  font-weight: var(--font-regular);
}

.favourites-panel__close,
.favourites-panel__remove {
  border: 0;
  background: transparent;
  color: var(--color-text-accent);
  cursor: pointer;
}

.favourites-panel__close svg {
  width: 32px;
  height: 32px;
}

.favourites-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 24px 32px 32px;
}

.favourites-panel__search {
  flex: 0 0 auto;
  margin: 24px 32px 0;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--color-surface-muted);
  color: var(--color-text-tertiary);
}

.favourites-panel__search svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.favourites-panel__search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text-accent);
  font: inherit;
  font-size: 20px;
}

.favourites-panel__search input::placeholder {
  color: var(--color-text-tertiary);
}

.favourites-panel__item {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 0 0 20px;
}

.favourites-panel__item + .favourites-panel__item {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.favourites-panel__item-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.favourites-panel__item-image {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef0ee;
}

.favourites-panel__item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.favourites-panel__item-title {
  font-size: 22px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favourites-panel__item-meta {
  color: var(--color-text-tertiary);
  font-size: 16px;
}

.favourites-panel__item-price {
  font-size: 20px;
  font-weight: var(--font-semibold);
}

.favourites-panel__remove {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favourites-panel__remove.is-loading {
  color: transparent;
}

.favourites-panel__remove svg {
  width: 22px;
  height: 22px;
}

.favourites-panel__empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: var(--color-text-accent);
}

.favourites-panel__empty-title {
  font-size: 28px;
  line-height: 1.2;
}

.favourites-panel__empty-text {
  color: var(--color-text-tertiary);
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .favourites-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .favourites-panel__header {
    padding: 24px 22px 18px;
  }

  .favourites-panel__body {
    max-height: none;
    padding: 22px;
  }

  .favourites-panel__search {
    margin: 20px 22px 0;
  }

  .favourites-panel__item {
    grid-template-columns: 104px 1fr auto;
    gap: 14px;
  }

  .favourites-panel__item-image {
    width: 104px;
    height: 104px;
  }

  .favourites-panel__item-title {
    font-size: 22px;
  }
}

.messages-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
  color: var(--color-text-accent);
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.messages-panel__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.messages-panel__list-view,
.messages-panel__detail-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.messages-panel__list-view {
  transform: translateX(0);
}

.messages-panel.is-thread-open .messages-panel__list-view {
  transform: translateX(-22%);
}

.messages-panel__detail-view {
  transform: translateX(100%);
  z-index: 1;
}

.messages-panel.is-thread-open .messages-panel__detail-view {
  transform: translateX(0);
}

.messages-panel__header,
.messages-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 40px 24px 24px;
  border-bottom: 1px solid var(--color-border);
}

.messages-panel__title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.28;
  font-weight: var(--font-medium);
}

.messages-panel__close,
.messages-detail__back,
.messages-detail__action {
  border: 0;
  background: transparent;
  color: var(--color-text-accent);
  cursor: pointer;
  flex: 0 0 auto;
}

.messages-panel__close svg,
.messages-detail__back svg,
.messages-detail__action svg {
  width: 24px;
  height: 24px;
}

.messages-panel__search {
  flex: 0 0 auto;
  margin: 24px 24px 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

.messages-panel__search svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.messages-panel__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text-accent);
  font: inherit;
  font-size: 16px;
}

.messages-panel__threads,
.messages-detail__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.messages-panel__threads {
  padding: 20px 24px 24px;
}

.messages-panel__thread {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.messages-panel__thread:hover,
.messages-panel__thread:focus-visible {
  background: rgba(243, 245, 243, 0.92);
  transform: translateX(-2px);
  outline: 0;
}

.messages-panel__thread + .messages-panel__thread {
  margin-top: 8px;
}

.messages-panel__thread.is-unread {
  background: rgba(243, 245, 243, 0.72);
}

.messages-panel__thread-media {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef0ee;
}

.messages-panel__thread-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-panel__thread-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.messages-panel__thread-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.messages-panel__thread-name {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  font-weight: var(--font-semibold);
}

.messages-panel__thread-time,
.messages-chat__meta {
  color: var(--color-text-tertiary);
  font-size: 12px;
  line-height: 1.33;
  white-space: nowrap;
}

.messages-panel__thread-line--item {
  font-size: 16px;
  line-height: 1.45;
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.messages-panel__thread-item,
.messages-panel__thread-preview,
.messages-detail__title,
.messages-detail__item,
.messages-chat__bubble {
  min-width: 0;
}

.messages-panel__thread-item {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.messages-panel__thread-preview {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.messages-panel__thread .message-badge {
  top: 12px;
  right: 12px;
}

.messages-panel__empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 12px;
}

.messages-panel__empty-title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
}

.messages-panel__empty-text {
  max-width: 320px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.45;
}

.messages-panel__auth-link {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-action);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: var(--font-semibold);
}

.messages-detail__header {
  justify-content: flex-start;
  gap: 16px;
}

.messages-detail__context {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.messages-detail__thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0ee;
  flex: 0 0 auto;
}

.messages-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-detail__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.messages-detail__title {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  font-weight: var(--font-semibold);
}

.messages-detail__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: var(--font-semibold);
}

.messages-detail__item-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.messages-detail__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.messages-chat__date {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  font-weight: var(--font-semibold);
  text-align: center;
}

.messages-chat__row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.messages-chat__row--outgoing {
  justify-content: flex-end;
}

.messages-chat__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eef0ee;
}

.messages-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-chat__stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 64px);
}

.messages-chat__bubble {
  padding: 8px 10px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
}

.messages-chat__bubble--audio {
  padding: 10px 12px;
  min-width: 240px;
}

.messages-chat__bubble strong,
.messages-chat__bubble b {
  font-weight: var(--font-semibold);
}

.messages-chat__bubble em,
.messages-chat__bubble i {
  font-style: italic;
}

.messages-chat__bubble u {
  text-decoration: underline;
}

.messages-chat__row--incoming .messages-chat__bubble {
  background: #f3f5f3;
}

.messages-chat__row--outgoing .messages-chat__bubble {
  background: #f4f1ed;
}

.messages-chat__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
}

.messages-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-text-tertiary);
  transition: color 0.2s ease;
}

.messages-chat__status svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.messages-chat__status--pending {
  color: var(--color-text-tertiary);
}

.messages-chat__status.is-sent {
  color: var(--color-icon-stroke);
}

.messages-chat__status.is-delivered {
  color: var(--color-text-tertiary);
}

.messages-chat__status.is-read {
  color: var(--color-orange);
}

.messages-chat__empty {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.messages-detail__composer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--color-border);
}

.messages-detail__composer.is-recording {
  grid-template-columns: 1fr auto;
}

.messages-detail__composer.is-recording [data-messages-attach],
.messages-detail__composer.is-recording [data-messages-camera] {
  display: none;
}

.messages-detail__input {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f4f1ed;
}

.messages-detail__input.is-recording {
  align-items: stretch;
}

.messages-detail__editor {
  width: 100%;
  min-width: 0;
  min-height: 18px;
  max-height: calc(1.35em * 4 + 4px);
  overflow-y: auto;
  outline: 0;
  background: transparent;
  color: var(--color-text-accent);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.messages-detail__editor:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.messages-detail__recorder {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.messages-detail__recorder[hidden] {
  display: none !important;
}

.messages-detail__recording-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-accent);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.messages-detail__recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-orange);
  box-shadow: 0 0 0 6px rgba(226, 127, 91, 0.14);
  animation: messages-recording-pulse 1.05s ease-in-out infinite;
}

.messages-detail__recording-bars {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.messages-detail__recording-bar {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 999px;
  background: rgba(143, 167, 141, 0.46);
  transform-origin: center;
}

.messages-detail__recording-time {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.messages-detail__recording-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.messages-detail__recording-cancel svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.messages-detail__recorder.is-cancel .messages-detail__recording-pill,
.messages-detail__recorder.is-cancel .messages-detail__recording-time {
  color: var(--color-orange);
}

.messages-detail__recorder.is-cancel .messages-detail__recording-dot {
  background: var(--color-orange);
  box-shadow: 0 0 0 6px rgba(226, 127, 91, 0.2);
}

.messages-detail__action.is-recording,
.messages-detail__action[data-messages-mic].is-recording {
  color: var(--color-orange);
}

.messages-audio {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.messages-audio__toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(143, 167, 141, 0.18);
  color: var(--color-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.messages-audio__toggle:hover,
.messages-audio__toggle:focus-visible {
  background: rgba(143, 167, 141, 0.26);
  outline: 0;
  transform: translateY(-1px);
}

.messages-audio__icon {
  width: 24px;
  height: 24px;
}

.messages-audio__icon--stop {
  display: none;
}

.messages-audio.is-playing .messages-audio__icon--play {
  display: none;
}

.messages-audio.is-playing .messages-audio__icon--stop {
  display: block;
}

.messages-audio__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messages-audio__waveform {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.messages-audio__bar {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 999px;
  background: rgba(143, 167, 141, 0.32);
  transition: background 120ms ease;
}

.messages-audio__bar.is-played {
  background: var(--color-action);
}

.messages-chat__row--incoming .messages-audio__bar.is-played {
  background: var(--color-icon-stroke);
}

.messages-audio__time {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.2;
}

.messages-attachment {
  display: block;
  text-decoration: none;
}

.messages-attachment--image {
  max-width: min(260px, 62vw);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(239, 235, 229, 0.92);
}

.messages-attachment--image img {
  display: block;
  width: 100%;
  height: auto;
}

.messages-attachment--file {
  min-width: 220px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.messages-chat__row--incoming .messages-attachment--file {
  background: rgba(255, 255, 255, 0.94);
}

.messages-attachment__file-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(143, 167, 141, 0.18);
  color: var(--color-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.messages-attachment__file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.messages-attachment__file-name {
  color: var(--color-text-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.messages-attachment__file-meta {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.2;
}

@keyframes messages-recording-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.84;
  }
}

@media (max-width: 768px) {
  .messages-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .messages-panel__header,
  .messages-detail__header {
    padding: 24px 22px 18px;
  }

  .messages-panel__search {
    margin: 20px 22px 0;
  }

  .messages-panel__threads,
  .messages-detail__body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .messages-detail__composer {
    padding: 14px 22px 24px;
  }
}

.product-card__price {
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-accent);
}

.product-card__price-old {
  font-size: var(--fs-desc-d);
  color: var(--color-text-disabled);
  text-decoration: line-through;
}

/* top-right 3-dots menu (24×24) */
.product-card__menu {
  position: absolute;
  top: 0;
  right: 0;

  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}

.product-card__menu:hover {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

.product-card__menu svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* stats row (eye + likes) */
.product-card__stats {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-tertiary);
  font-size: var(--fs-desc-d);
}

.product-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card__stat svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* promo row */
.product-card__promo {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-desc-d);
  color: var(--color-orange);
}

.product-card__promo svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Row variants (common)
   ============================================ */

.product-card--row-sm,
.product-card--row-wide,
.product-card--row-tall,
.product-card--row-345-175,
.product-card--row-800-101,
.product-card--row-345-101 {
  --pc-gap: 15px;
  display: flex;
  align-items: flex-start;
  gap: var(--pc-gap);

  width: var(--pc-w, auto);
  min-height: var(--pc-h, auto);
}

.product-card--row-sm .product-card__content,
.product-card--row-wide .product-card__content,
.product-card--row-tall .product-card__content,
.product-card--row-345-175 .product-card__content,
.product-card--row-800-101 .product-card__content,
.product-card--row-345-101 .product-card__content {
  padding-top: 0;
}

/* fixed image sizes per variant */
.product-card--row-sm .product-card__image-wrapper,
.product-card--row-wide .product-card__image-wrapper,
.product-card--row-tall .product-card__image-wrapper {
  width: 165px;
  height: 160px;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.product-card--row-345-175 .product-card__image-wrapper {
  width: 122px;
  height: 122px;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.product-card--row-800-101 .product-card__image-wrapper,
.product-card--row-345-101 .product-card__image-wrapper {
  width: 104px;
  height: 101px;
  aspect-ratio: auto;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

/* widths/heights from your spec */
.product-card--row-sm {
  --pc-w: 345px;
  --pc-h: 160px;
}

.product-card--row-wide {
  --pc-w: 416px;
  --pc-h: 160px;
}

.product-card--row-tall {
  --pc-w: 414px;
  --pc-h: 182px;
}

.product-card--row-345-175 {
  --pc-w: 345px;
  --pc-h: 175px;
}

.product-card--row-800-101 {
  --pc-w: 800px;
  --pc-h: 101px;
}

.product-card--row-345-101 {
  --pc-w: 345px;
  --pc-h: 101px;
}

/* row variants usually don't show pagination dots */
.product-card--row-345-175,
.product-card--row-800-101,
.product-card--row-345-101 {
  /* keep dots off by default */
}

.product-card--row-345-175 .product-card__dots,
.product-card--row-800-101 .product-card__dots,
.product-card--row-345-101 .product-card__dots {
  display: none;
}

/* 800×101 variant - unique flex layout */
.product-card--row-800-101 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.product-card--row-800-101 .product-card__main {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.product-card--row-800-101 .product-card__content {
  flex: 1;
  min-width: 0;
}

.product-card--row-800-101 .product-card__title {
  max-width: none;
  white-space: normal;
}

.product-card--row-800-101 .product-card__category {
  margin-top: 10px;
}

.product-card--row-800-101 .product-card__price-row {
  flex-shrink: 0;
  white-space: nowrap;
}

.product-card--row-800-101 .product-card__price-row .product-card__price-old {
  display: none;
}

.product-card--row-345-101 .product-card__price-row {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card__title {
    font-size: var(--fs-text-m);
  }
}

.top-bar__settings-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.top-bar__settings-trigger * {
  text-decoration: none;
}

.top-bar__settings-value,
.top-bar__settings-divider {
  color: var(--color-text-secondary);
  font-size: var(--fs-text-d);
  line-height: 22px;
  font-weight: var(--font-regular);
}

.top-bar__settings-divider {
  opacity: 0.7;
}

.top-bar__settings-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.top-bar__settings-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
}

.top-bar__profile-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.top-bar__profile-email {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dialog,
.profile-sheet {
  background: var(--color-white);
  border: 1px solid var(--stroke-landing);
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.profile-dialog {
  border-radius: 16px;
  padding: 32px 32px 48px;
  width: max(324px, calc(100vw - var(--profile-overlay-left, 0px) - 5px));
  max-width: min(540px, calc(100vw - 10px));
  max-height: calc(100vh - var(--profile-overlay-top, 92px) - 5px);
  overflow: hidden;
}

.profile-sheet {
  width: min(375px, 100vw);
  min-height: 100vh;
  border: 0;
  box-shadow: none;
  padding: 47px 15px calc(120px + env(safe-area-inset-bottom));
}

.profile-dialog__header,
.profile-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--stroke-landing);
}

.profile-dialog__title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: #000000;
}

.profile-sheet__title {
  font-family: "SF Pro", var(--font-sans);
  font-size: 20px;
  line-height: 22px;
  font-weight: 510;
  color: #3F4741;
}

.profile-dialog__close {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #505B53;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-dialog__close svg {
  width: 24px;
  height: 24px;
}

.profile-dialog__close:hover {
  color: #3F4741;
}

.profile-dialog__body,
.profile-sheet__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 32px;
}

.profile-dialog__body {
  max-height: calc(100vh - var(--profile-overlay-top, 92px) - 118px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.profile-dialog__body::-webkit-scrollbar,
.profile-sheet__body::-webkit-scrollbar {
  width: 8px;
}

.profile-dialog__body::-webkit-scrollbar-thumb,
.profile-sheet__body::-webkit-scrollbar-thumb {
  background: rgba(80, 91, 83, 0.28);
  border-radius: 999px;
}

.profile-dialog__body::-webkit-scrollbar-track,
.profile-sheet__body::-webkit-scrollbar-track {
  background: transparent;
}

.profile-dialog__seller-link {
  width: 100%;
  min-height: 48px;
  border-radius: 9999px;
  background: #8A9B8F;
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 16px 5px;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 590;
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.02);
}

.profile-dialog__seller-link svg {
  width: 18px;
  height: 18px;
}

.profile-dialog__seller-link:hover {
  background: #819283;
}

.profile-tabs {
  display: flex;
  align-items: center;
  width: 100%;
}

.profile-tabs__item {
  width: 50%;
  border: 0;
  background: transparent;
  padding: 0 0 6px;
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  text-align: center;
}

.profile-tabs__item.is-active {
  font-weight: 510;
  position: relative;
}

.profile-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 127px;
  height: 0;
  border-top: 3px solid #8A9B8F;
  transform: translateX(-50%);
}

.profile-tabs__item:disabled {
  opacity: 1;
  cursor: default;
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-dialog__seller-link[hidden],
.profile-fields[hidden],
.profile-extra[hidden],
.profile-switches[hidden],
.profile-actions[hidden] {
  display: none !important;
}

.profile-listings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-listings__sticky {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-listings__top-action,
.profile-listings__footer-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #8A9B8F;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 590;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}

.profile-listings__top-action svg,
.profile-listings__footer-action svg {
  width: 18px;
  height: 18px;
}

.profile-listings__top-action {
  display: none;
}

.profile-listings__search {
  position: relative;
  width: 100%;
}

.profile-listings__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: #505B53;
  transform: translateY(-50%);
}

.profile-listings__search-icon svg {
  width: 24px;
  height: 24px;
}

.profile-listings__search input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #F3F5F3;
  padding: 12px 16px 12px 48px;
  color: #505B53;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  outline: none;
}

.profile-listings__search input::placeholder {
  color: #8A938E;
}

.profile-listings__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
}

.profile-listings__filter {
  position: relative;
}

.profile-listings__filter-trigger {
  width: 100%;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 0 28px 0 0;
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  text-align: left;
  display: flex;
  align-items: center;
  min-width: 0;
}

.profile-listings__filter-label,
.profile-listings__filter-option {
  min-width: 0;
}

.profile-listings__filter-label,
.profile-listings__filter-option {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-listings__filter-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-listings__filter-count {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profile-listings__view-toggle {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #505B53;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-listings__view-toggle svg {
  width: 24px;
  height: 24px;
}

.profile-listings__filter-chevron {
  position: absolute;
  right: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: #505B53;
  transition: transform var(--transition-fast);
}

.profile-listings__filter.is-open .profile-listings__filter-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.profile-listings__filter-chevron svg {
  width: 24px;
  height: 24px;
}

.profile-listings__filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 168px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(80, 91, 83, 0.12);
  box-shadow: 0 8px 24px rgba(33, 43, 38, 0.16), 0 2px 6px rgba(33, 43, 38, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-listings__filter-menu[hidden] {
  display: none !important;
}

.profile-listings__filter-option {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid #ECEFED;
  background: #FFFFFF;
  padding: 0 16px;
  color: #505B53;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
  justify-content: flex-start;
  transition: background-color 140ms ease, color 140ms ease;
}

.profile-listings__filter-option:hover {
  background: #F3F5F3;
  color: #3F4741;
}

.profile-listings__filter-option:last-child {
  border-bottom: 0;
}

.profile-listings__filter-option.is-selected {
  color: #3F4741;
}

.profile-listings__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-listings__list.is-list-view {
  gap: 10px;
}

.profile-listings__empty {
  padding: 24px 0 8px;
  text-align: center;
}

.profile-listings__empty-title {
  color: #3F4741;
  font-family: "Manrope", var(--font-sans);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.profile-listings__empty-text {
  margin-top: 6px;
  color: #6E766F;
  font-family: "SF Pro", var(--font-sans);
  font-size: 14px;
  line-height: 20px;
}

.profile-listing-card {
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 12px;
}

.profile-listing-card__media {
  position: relative;
  width: 144px;
  height: 138px;
  border-radius: 4px;
  overflow: hidden;
  background: #E8E8E8;
}

.profile-listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-listing-card__favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #E58367;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-listing-card__favorite svg {
  width: 12px;
  height: 12px;
}

.profile-listing-card__dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
}

.profile-listing-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-listing-card__dot:first-child {
  width: 16px;
  background: #FFFFFF;
}

.profile-listing-card__content {
  min-width: 0;
}

.profile-listing-card__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.profile-listing-card__title {
  flex: 1 1 auto;
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
}

.profile-listing-card__menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.profile-listing-card__menu-trigger {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #505B53;
  padding: 0;
}

.profile-listing-card__menu-trigger svg {
  width: 24px;
  height: 24px;
}

.profile-listing-card__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  min-width: 200px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(33, 43, 38, 0.16), 0 2px 6px rgba(33, 43, 38, 0.08);
  overflow: hidden;
}

.profile-listing-card__menu.is-floating {
  position: fixed;
  right: auto;
  z-index: 3000;
  overflow-y: auto;
}

.profile-listing-card__menu-item {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid #ECEFED;
  background: #FFFFFF;
  color: #505B53;
  text-decoration: none;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

.profile-listing-card__menu-item:last-child {
  border-bottom: 0;
}

.profile-listing-card__menu-icon {
  width: 24px;
  height: 24px;
  color: #505B53;
}

.profile-listing-card__menu-icon svg {
  width: 24px;
  height: 24px;
}

.profile-listing-card__category {
  margin-top: 4px;
  color: #7B837D;
  font-family: "SF Pro", var(--font-sans);
  font-size: 14px;
  line-height: 20px;
}

.profile-listing-card__price-row {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.profile-listing-card__price {
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.profile-listing-card__price-old {
  color: #A7ADA8;
  font-family: "SF Pro", var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  text-decoration: line-through;
}

.profile-listing-card__stats {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-listing-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6E766F;
  font-family: "SF Pro", var(--font-sans);
  font-size: 14px;
  line-height: 20px;
}

.profile-listing-card__stat svg {
  width: 18px;
  height: 18px;
}

.profile-listing-card__promo {
  margin-top: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ED7E5D;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 22px;
}

.profile-listing-card__promo-icon {
  width: 15px;
  height: 15px;
}

.profile-listing-card__promo-icon svg {
  width: 15px;
  height: 15px;
}

.profile-listing-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(74px, 0.6fr) 24px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-listing-row__image {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: #E8E8E8;
}

.profile-listing-row__title,
.profile-listing-row__price {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 15px;
  line-height: 22px;
}

.profile-listing-row__price {
  text-align: right;
  font-weight: 510;
}

.profile-listing-row__menu {
  justify-self: end;
}

.profile-fields,
.profile-switches {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.profile-field__label {
  color: #3F4741;
  font-family: "Manrope", var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}

.profile-avatar-field {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  cursor: pointer;
}

.profile-avatar-field__circle {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: #F2F4F2;
  border: 1px solid rgba(63, 71, 65, 0.08);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.profile-avatar-field__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-field__label-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-field--seller .profile-field__label {
  font-family: "SF Pro", var(--font-sans);
  font-weight: 510;
}

.profile-field__input {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid #E3E5E4;
  background: #FFFFFF;
  padding: 15px 12px;
  color: #505B53;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  outline: none;
}

.profile-field__input--filled {
  border-color: transparent;
  background: #F3F5F3;
}

.profile-field__input:focus {
  border-color: #8A9B8F;
}

.profile-field--editable .profile-field__input {
  padding-right: 52px;
}

.profile-field--editable .profile-field__label {
  padding-right: 36px;
}

.profile-field__edit-icon {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #505B53;
}

.profile-field__edit-icon svg {
  width: 24px;
  height: 24px;
}

.profile-public-link {
  margin-top: -8px;
}

.profile-public-link a {
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-public-link a.is-disabled {
  color: #8c958f;
}

.profile-public-link a.is-pending {
  color: #6b7a6f;
}

.profile-public-link__hint {
  margin-top: 8px;
  color: #b14f4f;
  font-size: 12px;
  line-height: 16px;
}

.profile-field--error .profile-field__input {
  border-color: #d96262;
  box-shadow: 0 0 0 1px rgba(217, 98, 98, 0.12);
}

.profile-field__error {
  color: #b14f4f;
  font-size: 12px;
  line-height: 16px;
}

.profile-extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-extra__title,
.profile-switch__title {
  color: #3F4741;
  font-family: "Manrope", var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}

.profile-extra__desc,
.profile-switch__desc,
.profile-switch__compact-text {
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.profile-switch {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-switch__track {
  position: relative;
  width: 44px;
  height: 22px;
  border-radius: 16px;
  background: #CFD6D1;
  flex: 0 0 auto;
  margin-top: 2px;
}

.profile-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 35, 11, 0.2);
  transition: transform var(--transition-fast);
}

.profile-switch input[type="checkbox"]:checked + .profile-switch__track {
  background: #8A9B8F;
}

.profile-switch input[type="checkbox"]:checked + .profile-switch__track .profile-switch__thumb {
  transform: translateX(22px);
}

.profile-switch__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-switch--compact {
  align-items: flex-start;
}

.profile-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.profile-actions .settings-button {
  flex: 1 1 0;
  height: 54px;
}

.profile-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 281px;
  padding: 8px;
  border-radius: 12px;
  background: #CFD6D1;
  color: #3F4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  z-index: 30;
}

.profile-field:has([data-profile-tooltip]:not([hidden])) {
  z-index: 30;
}

.profile-tooltip::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 42px;
  width: 18px;
  height: 10px;
  background: linear-gradient(to bottom right, transparent 50%, #CFD6D1 50%) left/50% 100% no-repeat,
    linear-gradient(to bottom left, transparent 50%, #CFD6D1 50%) right/50% 100% no-repeat;
}

.profile-tooltip__toggle {
  width: 15px;
  height: 15px;
  border: 0;
  background: transparent;
  color: #000000;
  padding: 0;
  margin-left: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-tooltip__toggle svg {
  width: 15px;
  height: 15px;
}

.profile-seller-picker {
  position: relative;
  width: 100%;
}

.profile-field.is-layer-open,
.settings-dropdown.is-open,
.listing-tree-dropdown.is-open,
.listing-city-search.is-open {
  position: relative;
  z-index: 100;
}

.listing-tree-dropdown,
.filters-category-tree {
  width: 100%;
}

.filters-category-tree {
  margin-bottom: 10px;
}

.listing-tree-dropdown__menu {
  padding: 8px;
}

.listing-tree-dropdown__search {
  margin-bottom: 8px;
}

.listing-tree-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow: auto;
}

.listing-tree-node__children {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.listing-tree-node:not(.is-expanded) > .listing-tree-node__children {
  display: none;
}

.listing-tree-node__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: calc(var(--listing-tree-depth, 0) * 18px);
}

.listing-tree-node__expand,
.listing-tree-node__option {
  border: 0;
  background: transparent;
}

.listing-tree-node__expand {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  cursor: pointer;
}

.listing-tree-node__expand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #56615a;
  border-bottom: 1.8px solid #56615a;
  transform: translate(-50%, -65%) rotate(45deg);
}

.listing-tree-node.is-expanded > .listing-tree-node__row .listing-tree-node__expand::before {
  transform: translate(-50%, -35%) rotate(135deg);
}

.listing-tree-node__expand.is-hidden {
  visibility: hidden;
}

.listing-tree-node__option {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #505b53;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}

.listing-tree-node__option--static {
  cursor: default;
}

.listing-tree-node__option:hover,
.listing-tree-node__option.is-active,
.listing-tree-node.is-filter-match > .listing-tree-node__row .listing-tree-node__option {
  background: #f3f5f3;
}

.listing-tree-node__option.is-selected {
  color: #3f4741;
  font-weight: 600;
}

.profile-seller-picker__desktop[hidden],
.profile-seller-sheet[hidden],
.profile-seller-modal[hidden] {
  display: none !important;
}

.profile-seller-picker__desktop {
  position: fixed;
  top: var(--profile-seller-popup-top, 0px);
  left: var(--profile-seller-popup-left, 0px);
  width: var(--profile-seller-popup-width, 420px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 48px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    -18px 0 32px rgba(31, 41, 35, 0.12),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(-8px) scale(0.988);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-seller-picker__desktop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-seller-picker__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 287px;
  padding: 16px;
}

.profile-seller-picker__item,
.profile-seller-sheet__item {
  width: 100%;
  color: #3f4741;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-seller-picker__item {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  justify-content: space-between;
}

.profile-seller-sheet__item {
  min-height: 43px;
  padding: 0;
  gap: 4px;
  justify-content: space-between;
}

.profile-seller-picker__item.is-selected,
.profile-seller-picker__item:hover {
  background: #f3f5f3;
}

.profile-seller-picker__item-select,
.profile-seller-sheet__item-select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.profile-seller-sheet__item-select {
  gap: 4px;
}

.profile-seller-picker__item-name,
.profile-seller-sheet__item-name {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.profile-seller-picker__item-delete-wrap,
.profile-seller-sheet__item-delete-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  margin-left: auto;
}

.profile-seller-picker__delete,
.profile-seller-sheet__delete {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #505b53;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.profile-seller-picker__delete svg,
.profile-seller-sheet__delete svg,
.profile-seller-sheet__check svg {
  width: 24px;
  height: 24px;
}

.profile-seller-picker__delete:disabled,
.profile-seller-sheet__delete:disabled {
  opacity: 0.35;
  cursor: default;
}

.profile-seller-picker__actions,
.profile-seller-sheet__actions,
.profile-seller-modal__actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.profile-seller-picker__actions {
  width: calc(100% - 40px);
  margin: 0 auto;
}

.profile-seller-picker__action {
  flex: 1 1 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.profile-seller-picker__action--secondary {
  height: 40px;
  border: 1px solid #cfd6d1;
  background: #ffffff;
  color: #3f4741;
}

.profile-seller-picker__action--primary {
  height: 40px;
  border: 0;
  background: #8a9b8f;
  color: #ffffff;
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.02);
}

.profile-seller-sheet {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 20);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-seller-sheet.is-visible {
  opacity: 1;
}

.profile-seller-sheet__backdrop,
.profile-seller-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(104, 104, 104, 0.6);
  backdrop-filter: blur(6px);
}

.profile-seller-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(28px);
  width: min(375px, 100vw);
  min-height: 592px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 8px 3px rgba(0, 0, 0, 0.15);
  padding: 16px 14px 45px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-seller-sheet.is-visible .profile-seller-sheet__panel {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.profile-seller-sheet__handle {
  width: 32px;
  height: 4px;
  border-radius: 100px;
  background: #79747e;
  margin: 0 auto;
}

.profile-seller-sheet__header {
  display: grid;
  grid-template-columns: 44px 1fr 80px;
  align-items: center;
  width: 100%;
}

.profile-seller-sheet__close,
.profile-seller-sheet__reset {
  border: 0;
  background: transparent;
  color: #a8ada9;
  padding: 0;
}

.profile-seller-sheet__close {
  width: 24px;
  height: 24px;
  color: #505b53;
}

.profile-seller-sheet__title {
  text-align: center;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  font-weight: 590;
  line-height: 20px;
  color: #3f4741;
}

.profile-seller-sheet__reset {
  justify-self: end;
  font-family: "Manrope", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.profile-seller-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-height: 100px;
}

.profile-seller-sheet__check {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #505b53;
}

.profile-seller-sheet__actions .profile-seller-picker__action--secondary,
.profile-seller-sheet__actions .profile-seller-picker__action--primary,
.profile-seller-modal__actions .profile-seller-picker__action--secondary,
.profile-seller-modal__actions .profile-seller-picker__action--primary {
  height: 54px;
}

.profile-seller-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 21);
}

.profile-seller-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(512px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px 48px;
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  animation: profileSellerModalIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-seller-modal__dialog--compact {
  width: min(544px, calc(100vw - 32px));
}

.profile-seller-modal__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-seller-modal__dialog--compact .profile-seller-modal__content {
  gap: 32px;
  margin-bottom: 48px;
}

.profile-seller-modal__dialog:not(.profile-seller-modal__dialog--compact) .profile-seller-modal__content {
  gap: 48px;
  margin-bottom: 48px;
}

.profile-seller-modal__title {
  color: #3f4741;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  font-family: "Manrope", var(--font-sans);
}

.profile-seller-modal__dialog--compact .profile-seller-modal__title {
  font-family: "SF Pro", var(--font-sans);
  font-size: 20px;
  line-height: 22px;
  font-weight: 510;
}

.profile-seller-modal__text {
  color: #3f4741;
  font-family: "SF Pro", var(--font-sans);
  font-size: 16px;
  line-height: 26px;
}

.profile-seller-modal__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-seller-modal__label {
  color: #3f4741;
  font-family: "Manrope", var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}

.profile-seller-modal__input {
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: #f3f5f3;
  padding: 0 12px;
  color: #3f4741;
  font-family: "Manrope", var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

.profile-seller-modal__input::placeholder {
  color: #a8ada9;
}

.profile-seller-modal__error {
  color: #b14f4f;
  font-size: 12px;
  line-height: 16px;
}

@keyframes profileSellerModalIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .profile-sheet {
    width: 100vw;
    min-width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .top-bar__profile-email {
    max-width: 140px;
  }

  .profile-sheet__header {
    padding-bottom: 24px;
  }

  .profile-dialog__body,
  .profile-sheet__body {
    gap: 24px;
    padding-top: 24px;
  }

  .profile-tabs__item,
  .profile-tabs__item.is-active {
    font-size: 20px;
    line-height: 28px;
    font-family: "Manrope", var(--font-sans);
    font-weight: 600;
  }

  .profile-tabs__item:not(.is-active) {
    font-weight: 400;
  }

  .profile-switch__content {
    gap: 8px;
  }

  .profile-tooltip {
    width: min(281px, calc(100vw - 46px));
  }

  .profile-seller-picker__desktop {
    display: none !important;
  }

  .profile-seller-sheet__panel {
    left: 0;
    transform: translateY(28px);
    width: 100vw;
    max-width: none;
  }

  .profile-seller-sheet.is-visible .profile-seller-sheet__panel {
    transform: translateY(0);
  }

  .profile-seller-modal__dialog,
  .profile-seller-modal__dialog--compact {
    width: calc(100vw - 24px);
    max-width: none;
    padding: 24px;
  }

  .profile-seller-modal__title {
    font-family: "SF Pro", var(--font-sans);
    font-size: 20px;
    line-height: 22px;
    font-weight: 510;
  }

  .profile-seller-modal__dialog:not(.profile-seller-modal__dialog--compact) .profile-seller-modal__content,
  .profile-seller-modal__dialog--compact .profile-seller-modal__content {
    gap: 16px;
    margin-bottom: 24px;
  }

  .profile-seller-picker__action--secondary,
  .profile-seller-picker__action--primary {
    height: 40px;
  }

  .profile-actions {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .profile-listings {
    gap: 20px;
  }

  .profile-listings__sticky {
    gap: 20px;
  }

  .profile-listings__top-action {
    display: inline-flex;
    margin-top: 4px;
  }

  .profile-listings__footer-action {
    display: none;
  }

  .profile-listings__filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-listings__filter-trigger {
    min-height: 28px;
    font-size: 16px;
    line-height: 24px;
  }

  .profile-listing-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .profile-listing-card__media {
    width: 92px;
    height: 92px;
  }

  .profile-listing-card__favorite {
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
  }

  .profile-listing-card__favorite svg {
    width: 10px;
    height: 10px;
  }

  .profile-listing-card__dots {
    bottom: 6px;
    gap: 3px;
  }

  .profile-listing-card__dot {
    width: 6px;
    height: 6px;
  }

  .profile-listing-card__dot:first-child {
    width: 12px;
  }

  .profile-listing-card__title,
  .profile-listing-card__price {
    font-size: 16px;
    line-height: 22px;
  }

  .profile-listing-card__category,
  .profile-listing-card__price-old,
  .profile-listing-card__stat,
  .profile-listing-card__promo {
    font-size: 12px;
    line-height: 18px;
  }

  .profile-listing-card__stat svg {
    width: 16px;
    height: 16px;
  }

  .profile-listing-card__menu {
    min-width: 188px;
  }
}

@media (min-width: 1225px) {
  body.has-pinned-profile {
    --profile-content-width: calc(100vw - var(--profile-pinned-width, 485px));
  }

  .search-overlay--profile.is-pinned .profile-dialog {
    width: 100%;
    min-width: 485px;
    max-width: none;
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-left: 1px solid rgba(80, 91, 83, 0.12);
    border-radius: 0;
    box-shadow: -10px 0 24px rgba(31, 41, 35, 0.08);
    padding: 40px 32px;
  }

  .search-overlay--profile.is-pinned .profile-dialog__header {
    padding-bottom: 22px;
  }

  .search-overlay--profile.is-pinned .profile-dialog__body {
    max-height: calc(100vh - 99px);
    padding-top: 40px;
    gap: 18px;
  }

  .search-overlay--profile.is-pinned .profile-field--seller {
    position: sticky;
    top: 0;
    z-index: 9;
    margin-bottom: 0;
    background: var(--color-white);
  }

  .search-overlay--profile.is-pinned .profile-field--seller.is-layer-open {
    z-index: 1200;
  }

  .search-overlay--profile.is-pinned .profile-field--seller:has([data-profile-tooltip]:not([hidden])) {
    z-index: 30;
  }

  .search-overlay--profile.is-pinned .profile-field--seller::before {
    content: "";
    position: absolute;
    left: -32px;
    right: -32px;
    top: -40px;
    height: 178px;
    background: var(--color-white);
    pointer-events: none;
    z-index: -1;
  }

  .search-overlay--profile.is-pinned .profile-dialog__body.is-scrolled .profile-field--seller .profile-field__label-row,
  .search-overlay--profile.is-pinned .profile-dialog__body.is-scrolled .profile-field--seller .profile-tooltip {
    display: none !important;
  }

  .search-overlay--profile.is-pinned .profile-field--seller .settings-control__trigger {
    position: relative;
    background: #F2F4F2;
  }

  .search-overlay--profile.is-pinned .profile-field--seller .settings-control__trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
    background: var(--color-white);
    pointer-events: none;
  }

  .search-overlay--profile.is-pinned .profile-tabs {
    position: sticky;
    top: 72px;
    z-index: 11;
    background: var(--color-white);
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .search-overlay--profile.is-pinned .profile-tabs::before {
    content: "";
    position: absolute;
    left: -32px;
    right: -32px;
    top: -8px;
    bottom: -8px;
    background: var(--color-white);
    pointer-events: none;
    z-index: -1;
  }

  .search-overlay--profile.is-pinned .profile-dialog__body.is-scrolled[data-profile-active-tab="listings"] .profile-tabs {
    display: none;
  }

  .search-overlay--profile.is-pinned .profile-listings__search {
    position: sticky;
    top: 122px;
    z-index: 10;
    margin-top: 0;
    margin-bottom: 6px;
    background: var(--color-white);
  }

  .search-overlay--profile.is-pinned .profile-dialog__body.is-scrolled[data-profile-active-tab="listings"] .profile-listings__search {
    top: 72px;
  }

  .search-overlay--profile.is-pinned .profile-listings__search::before {
    content: "";
    position: absolute;
    left: -32px;
    right: -32px;
    top: -8px;
    bottom: -8px;
    background: var(--color-white);
    pointer-events: none;
    z-index: -1;
  }

  .search-overlay--profile.is-pinned .profile-listings__search::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 6px;
    background: var(--color-white);
    pointer-events: none;
  }

  .search-overlay--profile.is-pinned .profile-listings__sticky {
    display: contents;
  }

  .search-overlay--profile.is-pinned .profile-listings__filters {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .page--landing .product-grid--landing {
    grid-template-columns: repeat(4, 280px);
    gap: 48px 32px;
    width: 1216px;
    margin-top: 0;
  }

  .page--landing .product-card--landing {
    width: 280px;
  }

  .page--landing .product-card--landing .product-card__image-wrapper {
    width: 280px;
    height: 265.697px;
    aspect-ratio: auto;
    border-radius: 4px;
  }

  .page--landing .product-card--landing .product-card__badge {
    top: 12px;
    left: 12px;
    min-height: 22px;
    max-width: calc(100% - 46px);
    padding: 4px 8px;
    border: 0;
    background: #FFFFFF;
    border-radius: 9999px;
    font-family: "SF Pro", var(--font-sans);
    font-size: 12px;
    line-height: 14.4px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page--landing .product-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .page--landing .product-card__favorite svg {
    width: 14px;
    height: 14px;
    stroke: #505B53;
    fill: none;
    stroke-width: 2;
  }

  .page--landing .product-card__favorite.is-active svg {
    fill: #E47A61;
    stroke: #E47A61;
  }

  .page--landing .product-card--landing .product-card__dots {
    bottom: 13px;
    gap: 4.821px;
  }

  .page--landing .product-card--landing .product-card__dot {
    width: 7px;
    height: 7px;
    background: #FFFFFF;
    border-radius: 7.293px;
  }

  .page--landing .product-card--landing .product-card__dot:first-child {
    width: 18px;
    height: 7px;
    border-radius: 7.293px;
  }

  .page--landing .product-card--landing .product-card__dot--tail {
    width: 6px;
    height: 6px;
  }

  .page--landing .product-card--landing .product-card__content {
    padding-top: 24px;
  }

  .page--landing .product-card--landing .product-card__title {
    min-height: 56px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: #3F4741;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page--landing .product-card--landing .product-card__meta {
    display: none;
  }

  .page--landing .product-card--landing .product-card__price-row {
    margin-top: 0;
    gap: 13.285px;
    align-items: flex-end;
  }

  .page--landing .product-card--landing .product-card__price {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: #3F4741;
  }

  .page--landing .product-card--landing .product-card__price-old {
    padding-bottom: 3.321px;
    font-size: 16px;
    line-height: 24px;
  }

  .page--landing .product-card--placeholder .product-card__image-wrapper {
    background: #E8E8E8;
  }
}

@media (min-width: 1225px) {
  body.has-pinned-profile .page--landing .product-grid--landing {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
  }

  body.has-pinned-profile .page--landing .product-card--landing {
    width: auto;
    min-width: 0;
  }

  body.has-pinned-profile .page--landing .product-card--landing .product-card__image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 280 / 265.697;
  }

  body.has-pinned-profile .page--landing .product-card--landing .product-card__content,
  body.has-pinned-profile .page--landing .product-card--landing .product-card__title-link,
  body.has-pinned-profile .page--landing .product-card--landing .product-card__price-row {
    width: 100%;
    min-width: 0;
  }

  body.has-pinned-profile .page--landing .product-card--landing .product-card__title {
    max-width: none;
    min-width: 0;
  }

  body.has-pinned-profile .page--landing .product-card--landing .product-card__price,
  body.has-pinned-profile .page--landing .product-card--landing .product-card__price-old {
    white-space: nowrap;
  }

  body.has-pinned-profile .page--landing .cat-tile {
    width: 100%;
    min-width: 0;
    flex: initial;
  }

  body.has-pinned-profile .page--landing .cat-tile__label {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.has-pinned-profile .page--landing .cat-tile__icon {
    flex: 0 0 86px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-grid--landing {
    gap: 32px 16px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__badge {
    top: 10px;
    left: 10px;
    min-height: 32px;
    max-width: calc(100% - 52px);
    padding: 5px 10px;
    font-size: 14px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card__favorite {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card__favorite svg {
    width: 13px;
    height: 13px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__dots {
    bottom: 10px;
    gap: 6px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__dot {
    width: 9px;
    height: 9px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__dot:first-child {
    width: 24px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__content {
    padding-top: 18px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__title {
    min-height: 48px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__price-row {
    gap: 10px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__price {
    font-size: 16px;
    line-height: 24px;
  }

  body.has-pinned-profile.has-pinned-profile-compact .page--landing .product-card--landing .product-card__price-old {
    padding-bottom: 0;
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 768px) {
  .page--landing .cat-tile {
    width: 75px;
    min-width: 75px;
    flex: 0 0 75px;
    min-height: 75px;
    height: 75px;
    padding: 5px 3px;
    background: #F4F1ED;
    border-radius: 12px;
    border: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  .page--landing .cat-tile:nth-child(5) {
    width: 92px;
    min-width: 92px;
    flex-basis: 92px;
  }

  .page--landing .cat-tile__icon {
    width: 69px;
    height: 43px;
  }

  .page--landing .cat-tile__label {
    width: 100%;
    min-height: 16px;
    margin-top: 0;
    font-size: 12px;
    line-height: 16px;
    color: #3F4741;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
  }

  .page--landing .product-grid--landing {
    width: 345px;
    max-width: 345px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 165px));
    gap: 24px 15px;
  }

  .page--landing .product-card--landing {
    width: 165px;
  }

  .page--landing .product-card--landing .product-card__image-wrapper {
    width: 165px;
    height: 160px;
    aspect-ratio: auto;
    border-radius: 4px;
  }

  .page--landing .product-card--landing .product-card__badge {
    top: 8px;
    left: 8px;
    min-height: 22px;
    max-width: calc(100% - 38px);
    padding: 4px 8px;
    border: 0;
    border-radius: 9999px;
    background: #FFFFFF;
    font-family: "SF Pro", var(--font-sans);
    font-size: 12px;
    line-height: 14.4px;
    color: #000000;
  }

  .page--landing .product-card--landing .product-card__favorite {
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: #FFFFFF;
  }

  .page--landing .product-card--landing .product-card__favorite svg {
    width: 14px;
    height: 14px;
    stroke: #505B53;
  }

  .page--landing .product-card--landing .product-card__dots {
    bottom: 11px;
    gap: 4.821px;
  }

  .page--landing .product-card--landing .product-card__dot {
    width: 7px;
    height: 7px;
    background: #FFFFFF;
    border-radius: 7.293px;
  }

  .page--landing .product-card--landing .product-card__dot:first-child {
    width: 18px;
    height: 7px;
    border-radius: 7.293px;
  }

  .page--landing .product-card--landing .product-card__content {
    width: 100%;
    min-width: 0;
    padding-top: 16px;
  }

  .page--landing .product-card--landing .product-card__title {
    min-height: 0;
    margin-bottom: 8px;
    font-family: "SF Pro", var(--font-sans);
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #3F4741;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page--landing .product-card--landing .product-card__price-row {
    gap: 8px;
    align-items: flex-end;
  }

  .page--landing .product-card--landing .product-card__price {
    font-family: "SF Pro", var(--font-sans);
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: #000000;
  }

  .page--landing .product-card--landing .product-card__price-old {
    margin-left: 0;
    padding-bottom: 2px;
    font-family: "Inter", var(--font-sans);
    font-size: 12px;
    line-height: 14.4px;
    color: rgba(0, 0, 0, 0.5);
  }

  .page--landing .product-card--placeholder .product-card__image-wrapper {
    background: #E8E8E8;
  }
}

.settings-dialog,
.settings-sheet {
  background: var(--color-white);
  border: 1px solid var(--stroke-landing);
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.settings-dialog {
  width: min(690px, calc(100vw - 56px));
  margin: 36px auto 48px;
  border-radius: 16px;
  padding: 32px 32px 48px;
}

.settings-sheet {
  width: min(430px, 100vw);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow:
    0 4px 8px 3px rgba(0, 0, 0, 0.15),
    0 1px 3px 0 rgba(0, 0, 0, 0.3);
  padding: 12px 20px 24px;
}

.settings-sheet__handle {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #7a7a82;
  opacity: 1;
  margin: 0 auto 18px;
}

.settings-dialog__header,
.settings-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--stroke-landing);
}

.settings-dialog__title,
.settings-sheet__title {
  font-size: 28px;
  line-height: 36px;
  font-weight: var(--font-medium);
  color: var(--color-text-accent);
}

.settings-sheet__title {
  font-size: 20px;
  line-height: 26px;
  font-weight: var(--font-semibold);
  text-align: center;
  flex: 1;
}

.settings-dialog__close {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.settings-dialog__close svg {
  width: 24px;
  height: 24px;
  display: block;
}

.settings-dialog__close:hover {
  background: rgba(63, 71, 65, 0.06);
}

.settings-dialog__body,
.settings-sheet__body {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 42px;
}

.settings-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-control__label {
  font-size: var(--fs-text-d);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  line-height: 24px;
}

.settings-control__surface {
  position: relative;
  display: block;
}

.settings-dropdown {
  position: relative;
}

.settings-control__trigger {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--color-surface-muted);
  padding: 15px 48px 15px 16px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.profile-field--seller .settings-control__trigger {
  position: relative;
  padding: 15px 76px 15px 12px;
  font-family: "SF Pro", var(--font-sans);
}

.profile-field--seller .settings-control__input {
  font-family: "SF Pro", var(--font-sans);
}

.settings-control__trigger:hover {
  background: #eef1ee;
}

.settings-control__trigger:focus {
  box-shadow: inset 0 0 0 1px var(--color-action);
}

.settings-control__trigger:focus-within {
  box-shadow: inset 0 0 0 1px var(--color-action);
}

.settings-control__trigger svg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #505a53;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.settings-dropdown.is-open .settings-control__trigger svg {
  transform: translateY(-50%) rotate(180deg);
}

.profile-seller-page-mini {
  position: absolute;
  right: 44px;
  top: 50%;
  width: 26px;
  height: 26px;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  text-decoration: none;
  border-radius: 999px;
  z-index: 2;
}

.profile-seller-page-mini:hover {
  background: rgba(80, 91, 83, 0.08);
}

.profile-seller-page-mini svg {
  position: static;
  width: 18px;
  height: 18px;
  transform: none !important;
}

.profile-field--seller .settings-control__trigger > svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.profile-field--seller .settings-control__trigger[aria-expanded="true"] > svg {
  transform: translateY(-50%) rotate(180deg);
}

.settings-control__input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  outline: none;
}

.settings-control__multi-values {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-control__multi-values .settings-control__input {
  min-width: 120px;
  flex: 1 1 120px;
}

.settings-control__multi-chip {
  max-width: 220px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-control__multi-remove {
  width: 18px;
  height: 18px;
  margin: 0 -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #505a53;
  font-size: 17px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
}

.settings-control__multi-remove:hover {
  background: var(--color-surface-muted);
  opacity: 1;
}

.settings-control__input.is-placeholder,
.settings-control__input::placeholder {
  color: var(--color-text-tertiary);
}

.settings-control__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--stroke-landing);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  max-height: 224px;
  overflow-y: auto;
}

.settings-control__menu[hidden] {
  display: none !important;
}

.settings-control__option {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  padding: 12px;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.settings-control__option:hover,
.settings-control__option.is-active {
  background: var(--color-surface-muted);
}

.settings-control__option.is-selected {
  box-shadow: inset 0 0 0 1px var(--color-action);
}

.settings-control__option.is-selected:hover,
.settings-control__option.is-selected.is-active {
  background: var(--color-surface-muted);
}

.settings-dialog__actions,
.settings-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 6px;
}

.settings-button {
  height: 54px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--font-semibold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.settings-button--secondary {
  border: 1px solid var(--color-action);
  background: var(--color-white);
  color: var(--color-action);
}

.settings-button--secondary:hover {
  background: rgba(138, 155, 143, 0.08);
}

.settings-button--primary {
  border: 0;
  background: var(--color-action);
  color: var(--color-white);
}

.settings-button--primary:hover {
  background: #71947b;
}

@media (max-width: 768px) {
  .settings-dialog {
    display: none;
  }

  .settings-sheet__header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .settings-sheet__header::before {
    content: "";
    width: 40px;
    height: 40px;
    display: block;
  }

  .settings-sheet__title {
    justify-self: center;
  }

  .settings-sheet__body {
    width: 100%;
    gap: 32px;
    padding-top: 32px;
  }

  .settings-control__menu {
    max-height: 192px;
  }

  .settings-dialog__actions,
  .settings-sheet__actions {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-button {
    width: 100%;
  }
}

.reviews-dialog,
.reviews-sheet {
  background: var(--color-white);
  border: 1px solid var(--stroke-landing);
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.reviews-dialog {
  width: min(760px, calc(100vw - 56px));
  max-height: calc(100vh - 80px);
  border-radius: 16px;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-sheet {
  width: min(430px, 100vw);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 12px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-sheet__handle {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #7a7a82;
  margin: 0 auto;
}

.reviews-dialog__header,
.reviews-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reviews-dialog__title,
.reviews-sheet__title {
  color: var(--color-text-primary);
  font-size: var(--fs-h4-d);
  line-height: 28px;
  font-weight: var(--font-medium);
}

.reviews-dialog__subtitle {
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: var(--fs-text-d);
  line-height: 24px;
}

.reviews-dialog__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.reviews-dialog__summary,
.reviews-sheet__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-dialog__rating {
  color: var(--color-text-primary);
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--font-medium);
}

.reviews-dialog__stars {
  letter-spacing: 2px;
  color: var(--color-orange);
}

.reviews-dialog__count {
  color: var(--color-text-secondary);
  font-size: var(--fs-text-d);
  line-height: 24px;
}

.reviews-dialog__list,
.reviews-sheet__list {
  display: grid;
  gap: 16px;
  overflow: auto;
}

.reviews-dialog__list {
  max-height: calc(100vh - 240px);
}

.reviews-dialog__actions {
  display: flex;
  justify-content: center;
}

.reviews-dialog__write {
  min-width: 184px;
}

.reviews-dialog__notice {
  border-radius: 18px;
  background: rgba(225, 122, 89, 0.12);
  color: var(--color-text-primary);
  padding: 12px 16px;
  font-size: var(--fs-text-d);
  line-height: 22px;
}

.reviews-dialog__composer {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-soft, #f8f4ef);
  border: 1px solid var(--stroke-landing);
}

.reviews-dialog__composer[hidden] {
  display: none !important;
}

.reviews-dialog__rating-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reviews-dialog__star {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text-disabled);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.reviews-dialog__star:hover,
.reviews-dialog__star:focus-visible,
.reviews-dialog__star.is-active {
  color: var(--color-orange);
}

.reviews-dialog__star:hover,
.reviews-dialog__star:focus-visible {
  background: rgba(225, 122, 89, 0.12);
}

.reviews-dialog__textarea {
  width: 100%;
  min-height: 116px;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--fs-text-d);
  line-height: 24px;
}

.reviews-dialog__composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-dialog__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.review-pagination__btn {
  min-width: 104px;
}

.review-pagination__info {
  color: var(--color-text-secondary);
  font-size: var(--fs-text-d);
  line-height: 24px;
}

.review-card--item {
  border: 1px solid var(--stroke-landing);
  border-radius: 24px;
  padding: 18px 20px;
  background: var(--color-white);
}

.review-card--empty {
  text-align: center;
  color: var(--color-text-secondary);
}

.review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-card__sentiment {
  min-height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--font-medium);
}

.review-card__sentiment--like {
  background: rgba(129, 168, 123, 0.16);
  color: var(--color-action-hover);
}

.review-card__sentiment--dislike {
  background: rgba(225, 122, 89, 0.14);
  color: var(--color-orange);
}

.review-card__author {
  color: var(--color-text-primary);
  font-size: var(--fs-text-d);
  line-height: 24px;
  font-weight: var(--font-medium);
}

.review-card__date,
.review-card__edited,
.review-card__reply-date {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.review-card__body,
.review-card__reply-body {
  margin-top: 12px;
  color: var(--color-text-primary);
  font-size: var(--fs-text-d);
  line-height: 24px;
  word-break: break-word;
}

.review-card__menu-wrap {
  flex: 0 0 auto;
}

.review-card__reply {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-landing);
}

.review-card__reply-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-card__reply-author {
  color: var(--color-text-primary);
  font-size: var(--fs-text-d);
  line-height: 24px;
  font-weight: var(--font-medium);
}

.review-card__reply-action {
  margin-top: 14px;
}

.review-card__reply-btn {
  min-width: 128px;
}

.review-card__reply-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-landing);
}

.item-seller__feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.item-seller__feedback-chip {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: var(--font-medium);
}

.item-seller__feedback-chip--like {
  background: rgba(129, 168, 123, 0.14);
  color: var(--color-action-hover);
}

.item-seller__feedback-chip--dislike {
  background: rgba(225, 122, 89, 0.14);
  color: var(--color-orange);
}

@media (max-width: 768px) {
  .reviews-dialog__title,
  .reviews-sheet__title {
    font-size: var(--fs-h2-m);
    line-height: 22px;
  }

  .reviews-dialog__subtitle,
  .reviews-dialog__count {
    font-size: var(--fs-text-m);
  }

  .reviews-sheet__header {
    display: grid;
    grid-template-columns: 1fr 40px;
    align-items: center;
  }

  .reviews-dialog__actions,
  .reviews-dialog__write {
    width: 100%;
  }

  .reviews-dialog__composer {
    padding: 16px;
    border-radius: 20px;
  }

  .reviews-dialog__rating-picker {
    justify-content: center;
    flex-wrap: wrap;
  }

  .reviews-dialog__textarea {
    min-height: 104px;
    font-size: var(--fs-text-m);
    line-height: 22px;
  }

  .review-card--item {
    padding: 16px;
    border-radius: 20px;
  }

  .review-card__head,
  .review-card__reply-head {
    align-items: flex-start;
  }

  .review-card__meta {
    gap: 8px;
  }

  .item-seller__feedback {
    flex-wrap: wrap;
  }
}
