/* Sellerts mobile overrides v2026.35 — loaded LAST to beat main.css + stale immutable cache */

/* ══ Homepage (main.css legacy layout) ══ */
@media screen and (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body > .main {
    flex: 1 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body > .main > .container,
  body > .site-footer > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .st-bg-ambient {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    clip-path: inset(0);
  }

  .st-bg-ambient__orb {
    max-width: 90vw !important;
  }

  .st-bg-ambient__orb--2 {
    left: 0 !important;
  }

  .st-bg-ambient__orb--3 {
    right: 0 !important;
  }

  body .top-decor {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body .promo-left__title {
    width: 100% !important;
    max-width: 100% !important;
  }

  body .whyus {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body .sellerts-row__img,
  body .sellerts-row__img--2,
  body .sellerts-row__img--mr0 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body .collect-yk__methods {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body .header-placeholder {
    padding-top: 56px !important;
  }

  body .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(17, 36, 62, 0.06);
  }

  body .header-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.5rem 0 !important;
    min-height: 56px;
  }

  body .header-logo {
    width: auto !important;
    max-width: 42vw !important;
    flex-shrink: 1;
    min-width: 0;
  }

  body .header-logo img {
    height: clamp(26px, 7vw, 34px) !important;
    max-width: 100%;
  }

  body .header-right {
    display: flex !important;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
  }

  body .sh-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    margin-left: 0 !important;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  body .menu__list {
    padding: 72px 1.25rem 2rem !important;
    font-size: 1.125rem !important;
    align-items: stretch !important;
    text-align: left !important;
  }

  body .menu__link {
    display: flex !important;
    align-items: center;
    min-height: 48px;
    width: 100%;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(17, 36, 62, 0.08);
    font-size: 1rem !important;
  }

  body .header-button--mob {
    margin-top: 1rem !important;
    width: 100%;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
  }

  body .promo {
    padding-top: 2rem !important;
  }

  body .promo-left__title {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem) !important;
    line-height: 1.12 !important;
    max-width: 100%;
  }

  body .promo-left__title-line--main {
    max-width: 13ch;
  }

  body .promo-left__title-line--support {
    max-width: 24ch;
    margin-top: 0.45em;
    font-size: clamp(0.98rem, 3.7vw, 1.12rem);
    line-height: 1.4;
  }

  body .promo-left__desc {
    font-size: clamp(1rem, 4vw, 1.125rem) !important;
    margin-top: 1.25rem !important;
    line-height: 1.5 !important;
  }

  body .button-blue--start {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin-top: 1.5rem;
  }

  body .sellerts {
    padding-top: 2.5rem;
    margin-top: 2.5rem !important;
  }

  body .sellerts__title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    width: 100% !important;
    line-height: 1.2 !important;
  }

  body .sellerts-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem;
    margin-top: 2rem !important;
  }

  body .sellerts-row--2 {
    flex-direction: column !important;
  }

  body .sellerts-row__info,
  body .sellerts-row__info--right {
    order: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .sellerts-row__img,
  body .sellerts-row__img--2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    border-radius: 12px;
  }

  body .sellerts-row__info-command {
    font-size: clamp(1.125rem, 4.5vw, 1.375rem) !important;
    line-height: 1.3 !important;
  }

  body .sellerts-row__info-desc {
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    margin-top: 0.625rem !important;
  }

  body .whyus {
    padding: 2.5rem 1rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 16px;
    text-align: left !important;
  }

  body .whyus-inner {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
  }

  body .whyus-right {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
  }

  body .whyus-left__text {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
  }

  body .whyus-right__percent {
    font-size: clamp(2.5rem, 12vw, 3.5rem) !important;
  }

  body .start {
    padding: 2rem 1.25rem !important;
    margin-top: 2rem !important;
    border-radius: 16px;
  }

  body .start__title {
    font-size: clamp(1.375rem, 6vw, 1.75rem) !important;
    line-height: 1.2 !important;
  }

  body .start__subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  body .button-blue--mt40,
  body .button-blue--mt56 {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  body .collect {
    margin-top: 3rem !important;
  }

  body .collect-text {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem) !important;
    max-width: none !important;
  }
}

@media screen and (max-width: 640px) {
  body .sign-in {
    display: none !important;
  }

  body .container {
    max-width: calc(100% - 1.25rem) !important;
  }
}

/* ══ Site header / footer (legal, cabinet with header) ══ */
@media (max-width: 768px) {
  .st-container,
  .container {
    width: min(var(--st-container, 1160px), calc(100% - 1.25rem)) !important;
    max-width: calc(100% - 1.25rem) !important;
  }

  :root {
    --st-header-h: 60px;
  }

  .st-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 10px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .st-nav {
    display: none;
  }

  .st-nav.st-nav--open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: var(--st-header-h) 0 0 0;
    background: #fff;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.25rem 2rem;
    gap: 0;
    align-items: stretch;
    box-shadow: inset 0 1px 0 var(--st-border, #e4e9f0);
  }

  .st-nav.st-nav--open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    font-size: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--st-border, #e4e9f0);
    color: var(--st-text, #11243e);
  }

  .st-header__actions .st-link {
    display: none;
  }

  .st-header__inner {
    gap: 0.625rem;
  }

  .st-logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 44vw;
  }

  .st-logo img {
    height: clamp(26px, 7.5vw, 34px);
    max-width: 100%;
  }

  .st-auth {
    padding: 1rem;
    align-items: flex-start;
    padding-top: calc(var(--st-header-h) + 1rem);
    min-height: 100vh;
    min-height: 100dvh;
  }

  .st-auth__card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
    border-radius: var(--st-radius-lg, 16px);
  }

  .st-auth__title {
    font-size: 1.375rem;
  }

  .st-field input {
    font-size: 16px;
    min-height: 48px;
  }

  .st-btn--block {
    min-height: 48px;
  }

  /* ── Site footer — minimalist single-column with layout rhythm ── */
  body .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: clamp(1.25rem, 5vw, 2rem) !important;
    margin-bottom: 0 !important;
    padding-top: 2rem !important;
    flex-shrink: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    clear: both !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #081323 !important;
  }

  body .site-footer::before,
  body .site-footer::after {
    content: none !important;
    display: none !important;
  }

  body > .main + .site-footer,
  body > .st-main + .site-footer,
  body > main + .site-footer {
    margin-top: clamp(1.25rem, 5vw, 2rem) !important;
  }

  body .site-footer > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }

  body .site-footer .sf-inner,
  body .site-footer .sf-inner.st-reveal,
  body .site-footer .sf-inner.st-reveal-group {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 1.125rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem 0 1.25rem !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body .site-footer .sf-col,
  body .site-footer .sf-col--brand,
  body .site-footer .sf-inner.st-reveal-group .sf-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    order: unset !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
  }

  body .site-footer .sf-col--brand {
    align-items: center !important;
    text-align: center;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body .site-footer .sf-col:not(.sf-col--brand) {
    padding-bottom: 0.75rem !important;
    border-bottom: none !important;
  }

  body .site-footer .sf-col:nth-child(4) {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  body .site-footer .sf-logo {
    margin-bottom: 0.5rem !important;
    justify-content: center;
  }

  body .site-footer .sf-logo img {
    height: 28px !important;
    max-width: 100% !important;
  }

  body .site-footer .sf-copyright {
    text-align: center !important;
    max-width: none !important;
    width: 100% !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.46) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  body .site-footer .sf-col__name {
    font-size: 0.625rem !important;
    margin-bottom: 0.5rem !important;
    width: 100%;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body .site-footer .sf-col__item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 0.25rem 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    box-sizing: border-box !important;
  }

  body .site-footer .sf-col__item:hover {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  body .site-footer > .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body .site-footer {
    margin-top: 1rem !important;
    padding-top: 1.25rem !important;
  }

  body .site-footer .sf-inner,
  body .site-footer .sf-inner.st-reveal,
  body .site-footer .sf-inner.st-reveal-group {
    gap: 1rem !important;
    padding: 1.25rem 0 1rem !important;
  }

  body .site-footer .sf-col--brand {
    padding-bottom: 0.625rem !important;
  }

  body .site-footer .sf-col:not(.sf-col--brand) {
    padding-bottom: 0.5rem !important;
  }

  body .site-footer .sf-col__item {
    min-height: 38px !important;
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 640px) {
  .st-header__actions .st-btn--primary {
    display: none !important;
  }

  .st-grid {
    grid-template-columns: 1fr !important;
  }

  .st-shop-footer {
    padding: 1.5rem 1rem 2rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
  }
}

/* ══ Shop marketplace ══ */
@media (max-width: 768px) {
  .st-mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
  }

  .st-mp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .st-mp-search {
    max-width: none;
    width: 100%;
  }

  .st-mp-sort {
    width: 100%;
  }

  .st-mp-product {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .st-mp-grid {
    grid-template-columns: 1fr !important;
  }

  .st-mp-topbar__link {
    display: none !important;
  }

  .st-mp-seller__inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .st-mp-seller__avatar {
    margin-inline: auto;
  }

  .st-mp-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ══ Buyer cabinet ══ */
@media (max-width: 640px) {
  .bc-header__inner {
    flex-wrap: nowrap;
    padding: 0.625rem 1rem;
    gap: 0.5rem;
  }

  .bc-main {
    padding: 1.25rem 1rem 2.5rem;
  }

  .bc-btn {
    width: 100%;
    min-height: 48px;
  }

  .bc-field input {
    font-size: 16px;
    min-height: 48px;
  }
}
