/**
 * Vistore 2.5 — compact category rail and native-app mobile experience.
 * Loaded after style.css so this file is the single override layer.
 */

/* Category rail inspired by a native marketplace launcher ---------------- */
.vistore-section--categories {
  border-block: 1px solid var(--vs-line-soft);
  padding: 18px 0 20px;
  background: var(--vs-bg);
}

.vistore-section--categories .vistore-section-heading {
  margin-bottom: 13px;
}

.vistore-section--categories .vistore-section-heading h2 {
  font-size: 20px;
}

.vistore-category-strip {
  display: flex;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 7px;
  scroll-padding-inline: 1px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.vistore-category-strip::-webkit-scrollbar {
  display: none;
}

.vistore-category-tile,
.vistore-category-tile:nth-child(n) {
  width: 90px;
  min-width: 90px;
  min-height: 0;
  flex: 0 0 90px;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--vs-text) !important;
  background: transparent;
  box-shadow: none;
  text-align: left;
  scroll-snap-align: start;
}

.vistore-category-tile:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

.vistore-category-tile__icon {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, .05);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--vs-primary);
  background: var(--vs-line-soft);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.vistore-category-tile__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vistore-category-tile__icon > .vistore-icon {
  width: 31px;
  height: 31px;
}

.vistore-category-tile strong {
  width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: var(--vs-ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vistore-category-tile small {
  width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #9298a1;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Functional application drawer ----------------------------------------- */
.vistore-drawer {
  grid-template-columns: minmax(0, 390px) 1fr;
}

.vistore-drawer__backdrop {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.vistore-drawer__panel {
  width: min(92vw, 390px);
  padding: 15px 15px 22px;
  padding-top: calc(15px + env(safe-area-inset-top));
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  background: var(--vs-surface-subtle);
  box-shadow: 18px 0 45px rgba(16, 24, 40, .18);
  overscroll-behavior: contain;
}

.vistore-drawer__header {
  min-height: 46px;
}

.vistore-drawer__header > a {
  display: inline-flex;
  color: var(--vs-ink);
}

.vistore-drawer__header .vistore-brand > img {
  height: 36px;
  max-width: 160px;
}

.vistore-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  color: var(--vs-text);
  background: var(--vs-surface);
}

.vistore-drawer__account {
  min-height: 76px;
  margin: 13px 0 12px;
  border: 1px solid var(--vs-line);
  border-radius: 17px;
  padding: 10px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  background: var(--vs-surface);
  box-shadow: 0 5px 16px rgba(16, 24, 40, .045);
}

.vistore-drawer__avatar {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-drawer__avatar > .vistore-icon {
  width: 23px;
  height: 23px;
}

.vistore-drawer__avatar .vistore-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.vistore-drawer__account > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vistore-drawer__account small {
  color: var(--vs-soft);
  font-size: 10px;
}

.vistore-drawer__account strong {
  overflow: hidden;
  color: var(--vs-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vistore-drawer__account > a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-drawer__account > a .vistore-icon {
  width: 16px;
}

.vistore-drawer-search {
  margin: 0 0 12px;
}

.vistore-drawer-search input {
  min-height: 48px !important;
  border-color: var(--vs-line) !important;
  border-radius: 14px !important;
  background: var(--vs-surface) !important;
}

.vistore-drawer-search button {
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.vistore-drawer__nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0 0 15px;
}

.vistore-drawer__nav a {
  min-width: 0;
  min-height: 72px;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  padding: 9px 5px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: var(--vs-text);
  background: var(--vs-surface);
  font-size: 10px;
  font-weight: 720;
  text-align: center;
}

.vistore-drawer__nav a:hover,
.vistore-drawer__nav a:focus-visible {
  border-color: color-mix(in srgb, var(--vs-primary) 24%, var(--vs-surface));
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-drawer__nav .vistore-icon {
  width: 22px;
  height: 22px;
}

.vistore-drawer__nav a b {
  position: absolute;
  margin: -42px 0 0 27px;
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--vs-surface);
  border-radius: 999px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e5484d;
  font-size: 8px;
}

.vistore-drawer__categories {
  border-top: 1px solid var(--vs-line);
  margin-top: 3px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vistore-drawer__section-heading {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vistore-drawer__section-heading h2 {
  margin: 0;
  font-size: 15px;
}

.vistore-drawer__section-heading > a {
  min-height: auto;
  border: 0;
  display: inline-flex;
  color: var(--vs-primary);
  font-size: 10px;
  font-weight: 760;
}

.vistore-drawer__categories > a {
  min-width: 0;
  min-height: 61px;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  padding: 7px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  background: var(--vs-surface);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .035);
}

.vistore-drawer__categories > a:hover,
.vistore-drawer__categories > a:focus-visible {
  border-color: color-mix(in srgb, var(--vs-primary) 28%, var(--vs-surface));
  background: color-mix(in srgb, var(--vs-primary) 3%, var(--vs-surface));
}

.vistore-drawer__categories > a > span:first-child {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--vs-line-soft);
}

.vistore-drawer__categories > a > span:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vistore-drawer__categories > a > span:nth-child(2) {
  width: auto;
  height: auto;
  border-radius: 0;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  color: inherit;
  background: transparent;
}

.vistore-drawer__categories > a strong,
.vistore-drawer__categories > a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vistore-drawer__categories > a strong {
  color: var(--vs-ink);
  font-size: 11.5px;
  font-weight: 800;
}

.vistore-drawer__categories > a small {
  color: var(--vs-soft);
  font-size: 9.5px;
  font-weight: 550;
}

.vistore-drawer__categories > a > .vistore-icon {
  display: none;
}

.vistore-drawer__footer {
  margin-top: 16px;
  border-top: 1px solid var(--vs-line);
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.vistore-drawer__footer a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vs-muted);
  font-size: 10px;
  font-weight: 700;
}

.vistore-drawer__footer .vistore-icon {
  width: 16px;
}

.vistore-drawer__footer .vistore-drawer__languages {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.vistore-drawer__footer .vistore-drawer__languages a {
  min-height: 44px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid var(--vs-line);
  border-radius: 11px;
  padding: 6px 4px;
  color: var(--vs-text);
  background: var(--vs-surface);
}

.vistore-drawer__footer .vistore-drawer__languages a.is-current {
  border-color: var(--vs-primary);
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

/* Native-app mobile system ---------------------------------------------- */
@media (max-width: 720px) {
  html {
    background: var(--vs-surface-subtle);
    scroll-behavior: smooth;
  }

  body.vistore-theme {
    color: var(--vs-ink);
    background: var(--vs-surface-subtle);
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
  }

  .vistore-header {
    border-bottom-color: rgba(218, 223, 230, .82);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 10px rgba(16, 24, 40, .045);
  }

  .vistore-header__main {
    width: calc(100% - 18px);
    min-height: 58px;
    padding-top: calc(0px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
  }

  .vistore-header__menu {
    width: 42px;
    height: 42px;
    border: 1px solid var(--vs-separator);
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--vs-ink);
    background: var(--vs-surface);
  }

  .vistore-header__menu:active {
    transform: scale(.96);
    background: var(--vs-fill);
  }

  .vistore-header__brand {
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .vistore-header__brand .vistore-brand {
    max-width: 100%;
  }

  .vistore-header__brand .vistore-brand__word {
    font-size: 19px;
  }

  .vistore-header-actions {
    width: 42px;
    margin: 0;
  }

  .vistore-header-actions > *:not(.vistore-header__publish) {
    display: none !important;
  }

  .vistore-header__publish {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 13px;
    padding: 0;
  }

  .vistore-header__publish span {
    display: none;
  }

  .vistore-main {
    min-height: calc(100dvh - 122px);
  }

  .vistore-container {
    width: calc(100% - 18px);
  }

  .vistore-section {
    padding-block: 20px;
  }

  .vistore-section + .vistore-section {
    padding-top: 8px;
  }

  .vistore-section-heading {
    margin-bottom: 11px;
    align-items: center;
    gap: 8px;
  }

  .vistore-section-heading .vistore-eyebrow {
    display: none;
  }

  .vistore-section-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.025em;
  }

  .vistore-section-heading > a {
    min-height: 35px;
    border-radius: 999px;
    padding: 0 9px;
    background: var(--vs-primary-soft);
    font-size: 10px;
  }

  .vistore-section-heading--premium .vistore-section-heading__cta--premium {
    display: none;
  }

  .vistore-section--premium {
    padding-bottom: 16px;
  }

  .vistore-premium-carousel__all {
    min-height: 42px;
    margin-top: 13px;
    border: 1px solid var(--vs-accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--vs-warning-strong) !important;
    background: var(--vs-surface);
    font-size: 12px;
    font-weight: 800;
  }

  .vistore-premium-carousel__all .vistore-icon {
    width: 16px;
  }

  .vistore-item-header {
    padding: 13px;
  }

  .vistore-item-header__title-row {
    margin-top: 11px;
    gap: 9px;
  }

  .vistore-item-header__price-box {
    margin-top: 9px;
    border-left: 3px solid var(--vs-primary);
    border-radius: 0;
    padding: 1px 0 1px 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: transparent;
  }

  .vistore-item-header__price {
    font-size: 22px;
  }

  .vistore-section--categories {
    margin-top: 5px;
    border-block: 0;
    padding: 16px 0 13px;
    background: var(--vs-fill);
  }

  .vistore-section--categories .vistore-section-heading {
    margin-bottom: 10px;
  }

  .vistore-category-strip {
    width: auto;
    margin-inline: -9px;
    gap: 10px;
    padding: 1px 9px 7px;
    scroll-padding-inline: 9px;
  }

  .vistore-category-tile,
  .vistore-category-tile:nth-child(n) {
    width: 76px;
    min-width: 76px;
    min-height: 0;
    flex-basis: 76px;
  }

  .vistore-category-tile__icon {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 14px;
  }

  .vistore-category-tile strong {
    margin-top: 6px;
    font-size: 10.5px;
  }

  .vistore-category-tile small {
    margin-top: 2px;
    font-size: 9px;
  }

  .vistore-external-slider,
  .vistore-promo-slider {
    width: calc(100% - 18px);
    margin: 9px auto 0;
    border-radius: 17px;
  }

  .vistore-external-slider,
  .vistore-promo-slider__viewport {
    overflow: hidden;
    border-radius: 17px;
  }

  .vistore-promo-slider__viewport {
    min-height: min(108vw, 490px);
  }

  .vistore-promo-slider__progress {
    border-radius: 0 0 17px 17px;
  }

  .vistore-home-discovery {
    margin-top: -19px;
  }

  .vistore-live-search {
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .14);
  }

  .vistore-listing-grid,
  .vistore-search-results .vistore-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 9px;
  }

  .vistore-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .vistore-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .vistore-card__image {
    margin: 0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  }

  .vistore-card__body {
    padding: 7px 2px 2px;
  }

  .vistore-card__category {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .vistore-card__title {
    font-size: 12.5px;
    line-height: 1.28;
  }

  .vistore-card__meta {
    margin-top: 5px;
    font-size: 9px;
  }

  .vistore-card__price {
    left: 7px;
    bottom: 7px;
    border-radius: 8px;
    padding: 5px 7px;
    font-size: 11.5px;
  }

  .vistore-card__photo-count {
    right: 7px;
    bottom: 7px;
  }

  .vistore-trust {
    padding: 12px 0 20px;
  }

  .vistore-trust__grid {
    border-radius: 16px;
    padding: 7px;
    gap: 2px;
    background: var(--vs-surface);
  }

  .vistore-trust__grid > div {
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    padding: 7px;
    background: var(--vs-surface-subtle);
  }

  .vistore-trust__grid > div > span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .vistore-trust__grid strong {
    font-size: 10.5px;
  }

  .vistore-trust__grid small {
    display: none;
  }

  .vistore-search-page,
  .vistore-item-page,
  .vistore-messages-page,
  .vistore-publish-page,
  .vistore-user-page,
  .vistore-public-profile > .vistore-container {
    padding-top: 12px;
  }

  .vistore-search-header,
  .vistore-messages-heading {
    min-height: 58px;
    margin-bottom: 10px;
  }

  .vistore-search-header h1,
  .vistore-messages-heading h1 {
    font-size: 21px;
  }

  .vistore-auth-page {
    width: calc(100% - 18px);
    margin: 12px auto 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
  }

  .vistore-footer-cta,
  .vistore-footer {
    display: none;
  }

  .vistore-mobile-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    border-top-color: rgba(218, 223, 230, .9);
    padding: 5px 8px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -7px 22px rgba(16, 24, 40, .07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .vistore-mobile-nav > a,
  .vistore-mobile-nav > button {
    height: 52px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 720;
  }

  .vistore-mobile-nav > a:active,
  .vistore-mobile-nav > button:active {
    background: var(--vs-primary-soft);
  }

  .vistore-mobile-nav__messages {
    position: relative;
  }

  .vistore-mobile-nav__messages b {
    position: absolute;
    top: 1px;
    left: calc(50% + 5px);
    min-width: 17px;
    height: 17px;
    border: 2px solid var(--vs-surface);
    border-radius: 999px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #e5484d;
    font-size: 7px;
  }
}

@media (max-width: 390px) {
  .vistore-drawer__panel {
    width: 94vw;
    padding-inline: 12px;
  }

  .vistore-drawer__nav {
    gap: 6px;
  }

  .vistore-drawer__nav a {
    min-height: 68px;
    font-size: 9px;
  }

  .vistore-drawer__categories {
    gap: 6px;
  }

  .vistore-drawer__categories > a {
    min-height: 58px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 6px;
  }

  .vistore-drawer__categories > a > span:first-child {
    width: 40px;
    height: 40px;
  }

  .vistore-category-strip {
    gap: 9px;
  }

  .vistore-category-tile,
  .vistore-category-tile:nth-child(n) {
    width: 72px;
    min-width: 72px;
    flex-basis: 72px;
  }

  .vistore-category-tile__icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vistore-drawer__panel,
  .vistore-drawer__backdrop,
  .vistore-category-tile {
    transition: none !important;
  }
}

/* Vistore 2.12 — shared mobile application shell ------------------------- */
@media (max-width: 720px) {
  html { overflow-x: hidden; scroll-padding-top: 72px; }
  body {
    min-width: 0;
    overflow-x: hidden;
    color: var(--vs-ink);
    background: var(--vs-fill);
  }

  .vistore-main {
    width: 100%;
    min-height: calc(100dvh - 126px);
    overflow: clip;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .vistore-container {
    width: 100%;
    max-width: 100%;
    padding-inline: 9px;
  }

  .vistore-section-heading {
    min-width: 0;
    margin-bottom: 10px;
    align-items: center;
  }

  .vistore-section-heading h2 { font-size: 18px; line-height: 1.2; }
  .vistore-section-heading p { font-size: 10px; }
  .vistore-eyebrow { font-size: 8.5px; }

  .vistore-button,
  button,
  [role="button"] { touch-action: manipulation; }

  .vistore-button { min-height: 42px; border-radius: 11px; }
  .vistore-icon-button { min-width: 42px; min-height: 42px; }

  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 11px;
    font-size: 16px;
  }

  textarea { min-height: 105px; }

  .vistore-breadcrumbs {
    margin: 0 -9px 8px;
    padding: 8px 9px 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .vistore-breadcrumbs::-webkit-scrollbar { display: none; }

  /* Search behaves like a results screen in a native marketplace. */
  .vistore-search-page { padding-top: 8px; }
  .vistore-search-header {
    min-height: 0;
    margin-bottom: 8px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .vistore-search-header h1 { margin: 3px 0; font-size: 20px; line-height: 1.2; }
  .vistore-search-header p { margin: 3px 0 0; font-size: 10px; }
  .vistore-search-controls { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; }
  .vistore-filter-open { min-width: 98px; }
  .vistore-sort { min-width: 0; }
  .vistore-sort span { display: none; }
  .vistore-sort select { min-height: 42px; }
  .vistore-search-layout { display: block; }
  .vistore-search-results { width: 100%; }
  .vistore-search-subcategories { margin-inline: -9px; padding-inline: 9px; }
  .vistore-search-subcategories a { min-height: 42px; }
  .vistore-pagination { overflow-x: auto; padding-bottom: 4px; }

  /* Item page: media first, compact facts, persistent contact. */
  .vistore-item-page { padding-top: 7px; }
  .vistore-item-layout { display: block; }
  .vistore-item-content,
  .vistore-item-aside { width: 100%; min-width: 0; }
  .vistore-gallery,
  .vistore-item-header,
  .vistore-item-section,
  .vistore-item-map,
  .vistore-comments,
  .vistore-seller-card,
  .vistore-contact-card,
  .vistore-owner-actions {
    border-radius: 14px;
    box-shadow: none;
  }
  .vistore-gallery__main { aspect-ratio: 4 / 3; border-radius: 14px; }
  .vistore-item-header { margin-top: 8px; padding: 13px; }
  .vistore-item-header__top { margin-bottom: 9px; }
  .vistore-item-header__title-row { gap: 8px; }
  .vistore-item-header__price-box { margin-top: 8px; border-left: 3px solid var(--vs-primary); padding: 1px 0 1px 10px; background: transparent; }
  .vistore-item-header__price { font-size: 23px; }
  .vistore-item-header__meta { margin-top: 9px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .vistore-item-header__meta span { flex: 0 0 auto; }
  .vistore-item-section { margin-top: 8px; padding: 13px; }
  .vistore-item-section h2 { font-size: 16px; }
  .vistore-item-description { font-size: 12px; line-height: 1.65; }
  .vistore-item-aside { margin-top: 8px; display: grid; gap: 8px; }
  .vistore-item-mobile-actions { min-height: 64px; }

  /* Publishing and profile editing: one readable step per card. */
  .vistore-publish-page,
  .vistore-user-page { padding-top: 9px; }
  .vistore-publish-header { margin-bottom: 9px; }
  .vistore-publish-header h1 { font-size: 21px; }
  .vistore-publish-header p { font-size: 10.5px; }
  .vistore-publish-section,
  .vistore-account-section,
  .vistore-content-card,
  .vistore-form-card {
    border-radius: 14px;
    padding: 13px;
    box-shadow: none;
  }
  .vistore-publish-section + .vistore-publish-section,
  .vistore-account-section + .vistore-account-section { margin-top: 8px; }
  .vistore-publish-section > header,
  .vistore-account-section > header { margin-bottom: 9px; }
  .vistore-publish-section > header h2,
  .vistore-account-section > header h2 { font-size: 16px; }
  .vistore-form-grid,
  .vistore-form-grid--2,
  .vistore-business-media,
  .vistore-business-details-grid,
  .vistore-business-features { grid-template-columns: 1fr; gap: 9px; }
  .vistore-business-media__card--cover .vistore-business-media__preview { height: 135px; }
  .vistore-business-media__card--logo .vistore-business-media__preview { width: 96px; height: 96px; }
  .vistore-profile-picture { align-items: flex-start; flex-direction: column; }
  .vistore-account-form__actions { position: sticky; z-index: 18; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px; background: var(--vs-surface); }
  .vistore-account-form__actions .vistore-button { width: 100%; }

  /* Private account: profile card + horizontally scrollable app navigation. */
  .vistore-user-layout { padding: 9px 9px 82px; display: block; }
  .vistore-user-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 9px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .vistore-user-sidebar__profile { min-height: 78px; margin-bottom: 8px; border: 1px solid var(--vs-line); border-radius: 16px; padding: 12px 46px 12px 12px; background: linear-gradient(145deg, var(--vs-primary-soft), var(--vs-surface) 68%); box-shadow: 0 5px 15px rgba(16, 24, 40, .05); }
  .vistore-user-sidebar__identity > small { display: none; }
  .vistore-user-sidebar__public { top: 50%; right: 11px; transform: translateY(-50%); }
  .vistore-user-sidebar__public:hover { transform: translateY(calc(-50% - 1px)); }
  .vistore-user-sidebar nav {
    margin-inline: -9px;
    padding: 0 9px 4px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .vistore-user-sidebar nav::-webkit-scrollbar { display: none; }
  .vistore-user-sidebar__group,
  .vistore-user-sidebar__plugin-links { display: contents; }
  .vistore-user-sidebar__group-title { display: none; }
  .vistore-user-sidebar__link,
  .vistore-user-sidebar__plugin-links a {
    min-height: 43px;
    border: 1px solid var(--vs-line);
    border-radius: 12px;
    padding: 5px 10px 5px 6px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--vs-surface);
    box-shadow: 0 2px 5px rgba(16, 24, 40, .04);
    white-space: nowrap;
  }
  .vistore-user-sidebar__link:hover { transform: none; }
  .vistore-user-sidebar__link.is-active { border-color: #9dbcf8; color: var(--vs-primary-strong); background: var(--vs-primary-soft); box-shadow: inset 0 -2px var(--vs-primary); }
  .vistore-user-sidebar__link-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .vistore-user-sidebar__chevron { display: none; }
  .vistore-user-sidebar__count { min-width: 19px; height: 19px; padding-inline: 5px; }
  .vistore-user-sidebar nav .vistore-user-sidebar__logout { margin-top: 0; color: var(--vs-danger-strong); }
  .vistore-user-content { width: 100%; }
  .vistore-user-heading { margin-bottom: 9px; }
  .vistore-user-heading h1 { font-size: 20px; }
  .vistore-user-heading p { font-size: 10.5px; }
  .vistore-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .vistore-dashboard-actions { grid-template-columns: 1fr; }
  .vistore-user-item { border-radius: 13px; padding: 9px; }
  .vistore-user-item__actions .vistore-button { min-height: 37px; }

  /* Authentication is one focused app card. */
  .vistore-auth-page {
    width: calc(100% - 18px);
    min-height: 0;
    margin: 9px auto 82px;
    border: 0;
    border-radius: 15px;
    display: block;
    background: var(--vs-surface);
    box-shadow: none;
  }
  .vistore-auth-panel--visual { display: none; }
  .vistore-auth-panel--form { padding: 18px 14px; }
  .vistore-auth-box { max-width: none; }
  .vistore-auth-box h2 { font-size: 21px; }
  .vistore-auth-row { flex-direction: column; align-items: stretch; }
  .vistore-social-auth { grid-template-columns: 1fr; }

  /* Messaging uses the full viewport like a native inbox. */
  .vistore-messages-page { padding: 8px 0 76px; }
  .vistore-messages-heading { padding-inline: 9px; }
  .vistore-messages-heading h1 { font-size: 20px; }
  .vistore-messenger {
    min-height: calc(100dvh - 184px);
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .vistore-messenger__inbox,
  .vistore-messenger__conversation { min-width: 0; }
  .vistore-thread { min-height: 72px; }
  .vistore-conversation-header { min-height: 66px; padding: 8px 9px; }
  .vistore-conversation-header__item { max-width: 150px; }
  .vistore-message-stream { padding: 12px 9px; }
  .vistore-message > div { max-width: 86%; }
  .vistore-message-composer {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 9px;
  }
  .vistore-message-composer textarea { min-height: 42px; font-size: 15px; }

  /* Static, contact, error and saved-alert pages share the same app density. */
  .vistore-static-page,
  .vistore-contact-page,
  .vistore-error-page { padding: 12px 9px 82px; }
  .vistore-static-content,
  .vistore-contact-card,
  .vistore-empty-state,
  .vistore-alert-card { border-radius: 14px; box-shadow: none; }
  .vistore-alert-card { padding: 11px; }
  .vistore-alert-card__actions { width: 100%; }
  .vistore-alert-card__actions .vistore-button:first-child { flex: 1; }

  .vistore-listing-grid,
  .vistore-search-results .vistore-listing-grid,
  .vistore-public-profile .vistore-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 8px;
  }
}

@media (max-width: 360px) {
  .vistore-container { padding-inline: 7px; }
  .vistore-listing-grid,
  .vistore-search-results .vistore-listing-grid,
  .vistore-public-profile .vistore-listing-grid { column-gap: 6px; }
  .vistore-public-profile.is-pro .vistore-public-profile__actions { grid-template-columns: 1fr; }
  .vistore-payment-assurances small { display: none; }
}

/* Vistore 2.13 — native mobile behaviour -------------------------------- */
@media (max-width: 720px) {
  html,
  body.vistore-theme {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .vistore-main {
    min-height: calc(100dvh - 126px);
    overflow: visible;
  }

  .vistore-category-strip,
  .vistore-category-nav,
  .vistore-listing-grid--premium,
  .vistore-related__rail,
  .vistore-breadcrumbs,
  .vistore-user-sidebar nav {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .vistore-section--premium {
    padding-block: 18px 16px;
  }

  .vistore-section--premium .vistore-container { padding-inline: 9px; }
  .vistore-listing-grid--premium { gap: 8px; scroll-padding-inline: 1px; }
  .vistore-listing-grid--premium > .vistore-card {
    width: clamp(148px, 44vw, 178px);
    min-width: clamp(148px, 44vw, 178px);
    border-radius: 12px;
  }
  .vistore-listing-grid--premium .vistore-card__image { margin: 4px 4px 0; border-radius: 9px; }
  .vistore-listing-grid--premium .vistore-card__body { padding: 7px 8px 9px; }
  .vistore-listing-grid--premium .vistore-card__title { font-size: 12px; }
  .vistore-listing-grid--premium .vistore-card__meta { font-size: 8.5px; }
  .vistore-listing-grid--premium .vistore-card__price { font-size: 11px; }
  .vistore-listing-grid--premium .vistore-badge { max-width: calc(100% - 12px); font-size: 7.5px; }
  .vistore-premium-carousel__all { margin-top: 10px; }

  .vistore-messages-page { width: 100%; padding: 6px 0 calc(76px + env(safe-area-inset-bottom)); }
  .vistore-messages-heading { padding: 8px 11px 11px; }
  .vistore-messages-heading > span { padding: 5px 8px; }
  .vistore-messenger {
    height: auto;
    min-height: calc(100dvh - 205px);
    border-top: 1px solid var(--vs-line);
    overflow: visible;
  }
  .vistore-messenger:not(.has-conversation) .vistore-thread-list { overflow: visible; }
  .vistore-messenger__inbox-top { position: sticky; z-index: 4; top: 0; padding: 10px 9px 8px; background: var(--vs-surface); }
  .vistore-messenger__filters { overflow-x: auto; scrollbar-width: none; }
  .vistore-thread { min-height: 78px; grid-template-columns: 52px minmax(0, 1fr) auto; padding: 9px; }
  .vistore-thread__image { width: 52px; height: 52px; }

  body.vistore-chat-conversation .vistore-announcement,
  body.vistore-chat-conversation .vistore-header__nav,
  body.vistore-chat-conversation .vistore-messages-heading,
  body.vistore-chat-conversation .vistore-footer-cta,
  body.vistore-chat-conversation .vistore-footer,
  body.vistore-chat-conversation .vistore-mobile-nav { display: none !important; }
  body.vistore-chat-conversation .vistore-main { min-height: 0; padding-bottom: 0; }
  body.vistore-chat-conversation .vistore-messages-page { height: calc(100dvh - 61px); padding: 0; }
  body.vistore-chat-conversation .vistore-messenger.has-conversation {
    height: 100%;
    min-height: 0;
    border: 0;
    overflow: hidden;
  }
  body.vistore-chat-conversation .vistore-messenger__conversation { min-height: 0; }
  body.vistore-chat-conversation .vistore-message-stream { min-height: 0; overscroll-behavior: contain; }
  body.vistore-chat-conversation .vistore-message-composer { position: relative; bottom: auto; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .vistore-conversation-header { gap: 7px; }
  .vistore-conversation-header > div strong { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vistore-conversation-header__item { max-width: 118px; }
  .vistore-conversation-context { max-width: calc(100% - 18px); border-radius: 12px; }
  .vistore-message-composer { grid-template-columns: 40px minmax(0, 1fr) 42px; }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .vistore-listing-grid--premium > .vistore-card { width: 230px; min-width: 230px; }
  .vistore-messenger { grid-template-columns: minmax(280px, 35%) minmax(0, 1fr); }
  .vistore-conversation-header__item { max-width: 220px; }
}

/* Vistore 2.14 — readable native-app mobile layer ------------------------ */
@media (max-width: 720px) {
  .vistore-trust { display: none !important; }

  .vistore-section--categories { color: var(--vs-text); background: var(--vs-fill); }
  .vistore-section--categories h2,
  .vistore-section--categories strong { color: var(--vs-ink); }

  .vistore-header-actions { display: flex; margin-left: auto; }
  .vistore-header-actions > *:not(.vistore-header__publish):not(.vistore-header__favorites) { display: none; }
  .vistore-header__favorites { width: 42px; height: 42px; min-height: 42px; border: 1px solid var(--vs-line); border-radius: 12px; padding: 0; display: grid !important; place-items: center; background: var(--vs-surface); }
  .vistore-header__favorites > span { display: none; }
  .vistore-header__favorites > svg { width: 20px; }

  .vistore-listing-grid--premium > .vistore-card {
    width: clamp(165px, 48vw, 195px);
    min-width: clamp(165px, 48vw, 195px);
  }
  .vistore-listing-grid--premium .vistore-card__title,
  .vistore-card__title { font-size: 13.5px; line-height: 1.32; }
  .vistore-listing-grid--premium .vistore-card__meta,
  .vistore-card__meta { font-size: 10px; line-height: 1.3; }
  .vistore-card__category { font-size: 9.5px; }
  .vistore-card__price { font-size: 12.5px; }
  .vistore-badge { font-size: 9px; }
  .vistore-button { font-size: 12px; }
  .vistore-field > span,
  label > span { font-size: 11px; }

  .vistore-favorite--card { top: 7px; right: 7px; }
  .vistore-favorite--card button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }

  .vistore-gallery .vistore-item-header__actions { top: 8px; right: 8px; gap: 5px; }
  .vistore-gallery .vistore-item-header__actions > a,
  .vistore-gallery .vistore-item-header__actions > button,
  .vistore-gallery .vistore-favorite--gallery button { width: 39px; min-width: 39px; height: 39px; min-height: 39px; border-radius: 11px; }
  .vistore-gallery .vistore-item-header__actions > :nth-child(n+4) { display: none; }

  .vistore-item-header__top { margin-bottom: 4px; }
  .vistore-item-header__title-row { grid-template-columns: 1fr; }
  .vistore-item-header__price-box { min-width: 0; text-align: left; }
  .vistore-item-header__eyebrow { font-size: 10px; }
  .vistore-item-header__meta { font-size: 10.5px; }
  .vistore-item-description { font-size: 13.5px; }

  .vistore-item-aside { gap: 10px; }
  .vistore-owner-actions { border: 0; border-radius: 16px; padding: 12px; background: var(--vs-surface); box-shadow: 0 3px 14px rgba(16,24,40,.06); }
  .vistore-owner-actions__copy strong { font-size: 14px; }
  .vistore-owner-actions__copy small { font-size: 11px; }
  .vistore-owner-actions__buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }

  .vistore-seller-card__actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .vistore-seller-card__actions > :first-child { grid-column: 1 / -1; }
  .vistore-seller-card__actions .vistore-button { min-height: 46px; padding: 8px 7px; font-size: 11.5px; line-height: 1.2; }
  .vistore-seller-card__actions .vistore-icon { width: 17px; flex: 0 0 17px; }

  .vistore-monetization .vistore-offer-grid { grid-template-columns: 1fr; }

  .vistore-favorites-page { padding: 10px 9px 88px; }

  /* 2.15 item detail: gallery becomes the app header. */
  .vistore-item-detail .vistore-main { padding-top: 0; }
  .vistore-item-detail .vistore-item-page { padding-top: 6px; }
  .vistore-gallery__back {
    top: 8px;
    left: 8px;
    width: 39px;
    min-width: 39px;
    height: 39px;
    min-height: 39px;
    border-radius: 11px;
  }
  .vistore-gallery__meta { right: 8px; bottom: 8px; gap: 5px; }
  .vistore-gallery__meta .vistore-gallery__price,
  .vistore-gallery__meta .vistore-gallery__count { min-height: 29px; border-radius: 8px; padding: 5px 8px; }
  .vistore-gallery__meta .vistore-gallery__price { max-width: min(58vw,230px); overflow: hidden; font-size: 14px; text-overflow: ellipsis; }
  .vistore-gallery__meta .vistore-gallery__count { font-size: 9px; }
  .vistore-item-header { padding: 11px 12px; }
  .vistore-item-header__eyebrow { display: none; }
  .vistore-item-header__title-row { margin-top: 7px; }
  .vistore-item-header__meta { margin-top: 8px; padding-top: 8px; font-size: 10px; }
  .vistore-seller-card__actions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .vistore-seller-card__actions > :first-child { grid-column: 1 / -1; }
  .vistore-seller-card__actions .vistore-button { min-height: 44px; padding: 7px 4px; font-size: 10.5px; }
  .vistore-item-mobile-actions {
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
  }
  .vistore-item-mobile-actions .vistore-button { min-height: 48px; border-radius: 13px; font-size: 12px; }
  .vistore-item-mobile-actions .vistore-icon { width: 18px; }
  .vistore-favorites-heading { margin-bottom: 12px; border-radius: 15px; padding: 14px; align-items: flex-start; flex-direction: column; gap: 11px; }
  .vistore-favorites-heading h1 { font-size: 22px; }
  .vistore-favorites-heading p { font-size: 11.5px; line-height: 1.5; }
  .vistore-favorites-heading__count { width: 100%; min-width: 0; }
  .vistore-favorites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 9px; }
}

/* Vistore 2.16 — item header only on desktop and responsive search list. */
@media (max-width: 720px) {
  body.vistore-item-detail .vistore-announcement,
  body.vistore-item-detail .vistore-header,
  body.vistore-item-detail .vistore-widget-area--header { display: none !important; }
  body.vistore-item-detail .vistore-gallery__back { display: inline-grid; }

  .vistore-search-results .vistore-listing-grid.is-list { grid-template-columns: 1fr; gap: 9px; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card {
    min-height: 126px;
    border: 1px solid var(--vs-line);
    border-radius: 15px;
    grid-template-columns: 124px minmax(0,1fr);
    background: var(--vs-surface);
    box-shadow: 0 2px 8px rgba(16,24,40,.045);
  }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__image {
    min-height: 110px;
    margin: 7px;
    border-radius: 11px;
    grid-row: 1 / span 3;
  }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__body { padding: 11px 38px 9px 2px; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__category { margin-bottom: 3px; font-size: 8.5px; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__title { font-size: 13.5px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__summary { display: none; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__meta { margin-top: auto; padding-top: 8px; display: grid; gap: 3px; font-size: 9.5px; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__meta > span:nth-child(2) { display: inline-flex; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__price { left: 6px; bottom: 6px; max-width: calc(100% - 12px); font-size: 11px; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__photo-count,
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__seen,
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__list-action { display: none; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-favorite--card { top: 7px; right: 7px; }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-favorite--card button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }

  .vistore-ai-assistant { border-radius: 13px; padding: 10px; }
  .vistore-ai-assistant__intro { grid-template-columns: 36px minmax(0,1fr); }
  .vistore-ai-assistant__intro > span { width: 36px; height: 36px; }
  .vistore-ai-assistant__intro .vistore-button { grid-column: 1 / -1; width: 100%; }
  .vistore-ai-assistant--search { grid-template-columns: 36px minmax(0,1fr); }
  .vistore-ai-assistant--search > span { width: 36px; height: 36px; }
  .vistore-ai-assistant--search > .vistore-button { grid-column: 1 / -1; width: 100%; }
  .vistore-ai-search-result > div { display: grid; grid-template-columns: 1fr; }
  .vistore-ai-search-result .vistore-button { width: 100%; }
}

@media (max-width: 380px) {
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card { grid-template-columns: 108px minmax(0,1fr); }
  .vistore-search-results .vistore-listing-grid.is-list .vistore-card__image { min-height: 104px; }
}

/* Vistore 2.18: native bottom-sheet filters and trust components. */
@media (max-width: 720px) {
  /* The home slider follows the compact header directly: no empty white band. */
  .vistore-main > .vistore-slider-shell { margin-top: 0; }

  .vistore-search-sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(88dvh,760px);
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    overscroll-behavior: contain;
  }
  [dir="rtl"] .vistore-search-sidebar { right: 0; left: 0; transform: translateY(105%); }
  body.vistore-filters-open .vistore-search-sidebar { transform: translateY(0); }
  .vistore-search-sidebar__header { min-height: 58px; border-radius: 20px 20px 0 0; padding-inline: 15px; }
  .vistore-filter-form { padding: 12px 14px max(16px,env(safe-area-inset-bottom)); }
  .vistore-filter-form__actions { position: sticky; bottom: 0; grid-template-columns: minmax(0,1fr) auto; align-items: center; background: var(--vs-surface); box-shadow: 0 -8px 18px rgba(16,24,40,.07); }
}
