/* =========================================================================
   Muzorro web store — store.css
   Phase 29 (WEB-SRV-01..04/07), source of truth: redesign/PROMPT.md +
   .planning/phases/29-web-store-pages/29-UI-SPEC.md

   Namespaced entirely under `body.store-page` (Pitfall 6 — the store's
   warm-brown/Archivo+Lora theme must NEVER bleed onto /duel/*, /invite/*,
   /privacy, /terms, which share app/landing/styles.css). Loaded AFTER
   styles.css so store rules win on any accidental selector overlap; the
   shared `.legal-footer` rules stay in styles.css and are reused verbatim.
   ========================================================================= */

body.store-page {
  min-height: 100vh;
  margin: 0;
  /* Фон «дышит»: тот же тёплый радиальный градиент, но растянут с запасом,
     чтобы медленный дрейф background-position оживлял его, не меняя палитру. */
  background-image: radial-gradient(120% 80% at 50% 30%, #4a3325 0%, #2e211a 62%, #241a14 100%);
  background-size: 150% 150%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #2e211a; /* flat fallback */
  color: #ece5da;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  /* Лёгкая анимация фона — как на лендинге (styles.css gradientShift). */
  animation: storeGradientDrift 26s ease-in-out infinite;
}

/* 0b. Ambient-слой витрины: дрейф градиента + два плавающих blur-пятна.
   Пятна сделаны псевдоэлементами body (position:fixed, z-index:-1) — разметку
   шаблонов менять не нужно, а слой не перехватывает клики и не скроллится. */
@keyframes storeGradientDrift {
  0%, 100% { background-position: 46% 44%; }
  50%      { background-position: 54% 58%; }
}

body.store-page::before,
body.store-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

body.store-page::before {
  width: 420px;
  height: 420px;
  background: #e07a3f;
  opacity: .10;
  top: 6%;
  left: 4%;
  animation: storeFloat1 22s ease-in-out infinite;
}

body.store-page::after {
  width: 320px;
  height: 320px;
  background: #d4a73a;
  opacity: .08;
  bottom: 8%;
  right: 5%;
  animation: storeFloat2 28s ease-in-out infinite;
}

@keyframes storeFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(48px, 34px); }
}

@keyframes storeFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-42px, -46px); }
}

/* Accessibility — при prefers-reduced-motion фон статичен. */
@media (prefers-reduced-motion: reduce) {
  body.store-page,
  body.store-page::before,
  body.store-page::after {
    animation: none;
  }
}

body.store-page * {
  box-sizing: border-box;
}

body.store-page a {
  color: #e07a3f;
  text-decoration: none;
}

body.store-page a:hover {
  color: #f19a67;
}

body.store-page input,
body.store-page button {
  font-family: inherit;
}

body.store-page input:focus {
  outline: none;
}

/* 34-UI-REVIEW: исключение из `body.store-page a` выше — общий футер
   подчёркнут во всех семействах (пара к `.legal-footer a` в styles.css). */
body.store-page .legal-footer a {
  text-decoration: underline;
}

/* 1. Header — "Войти" top-right, no background chrome */
.store-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 40;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}

.store-header__login,
.store-header__logout {
  background: none;
  border: 1px solid rgba(236, 229, 218, .24);
  color: rgba(236, 229, 218, .78);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: border-color .15s ease, color .15s ease;
}

.store-header__login:hover,
.store-header__logout:hover {
  border-color: rgba(236, 229, 218, .5);
  color: #ece5da;
}

.store-header__account {
  color: rgba(236, 229, 218, .78);
  font-size: 14px;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-header__logout-form {
  margin: 0;
}

/* 2. Home — hero + featured row */
.store-home {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 72px;
}

.store-hero {
  /* тот же flex-эффект: вордмарк не переносится, min-content героя > 360px */
  max-width: 100%;
  padding: 0 20px 40px;
  text-align: center;
}

.store-wordmark {
  margin: 0;
  /* 34-UI-REVIEW: без inherit вордмарк уходил в системный шрифт — глобальное
     `h1 { font-family: var(--font-family) }` из styles.css бьёт наследование
     от body, а Inter из того стека на витрине не грузится вовсе. */
  font-family: inherit;
  font-size: clamp(46px, 15vw, 110px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: .95;
}

.store-wordmark--sm {
  font-size: clamp(36px, 11vw, 72px);
  text-align: center;
}

.store-wordmark--sm a {
  color: inherit;
}

.store-tagline {
  margin: 14px 0 0;
  font-size: clamp(15px, 4.4vw, 22px);
  color: rgba(236, 229, 218, .62);
  letter-spacing: .06em;
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* body.store-page a задаёт акцентный цвет ссылкам (спецификнее .store-badge),
   поэтому официальный белый текст бэйджей форсируем через body.store-page. */
body.store-page .store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #000;
  border: 1px solid rgba(236, 229, 218, .2);
  border-radius: 10px;
  padding: 9px 16px;
  min-height: 48px;
  color: #fff;
}

body.store-page .store-badge:hover {
  color: #fff;
}

.store-badge__logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge__eyebrow {
  font-size: 9px;
  letter-spacing: .09em;
  opacity: .75;
}

.store-badge__name {
  font-size: 16px;
  font-weight: 600;
}

.store-featured {
  /* fit-content flex-элемента main раздувался до min-content карусели;
     100% ограничивает шириной вьюпорта, min() сохраняет десктоп. */
  max-width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.store-featured__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.store-featured__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
}

.store-featured__count {
  font-size: 13px;
  color: rgba(236, 229, 218, .5);
}

.store-featured__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 260px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.store-featured__more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  padding: 13px 30px;
  border: none;
}

.store-btn--outline {
  background: rgba(236, 229, 218, .07);
  border: 1px solid rgba(236, 229, 218, .2);
  color: #ece5da;
}

.store-btn--primary {
  width: 100%;
  background: #e07a3f;
  color: #241a14;
  font-size: 16px;
  font-weight: 800;
  min-height: 52px;
  padding: 16px;
}

/* 3. Catalog — search + genre chips + grid */
.store-catalog {
  /* width:100% — иначе margin:0 auto на flex-потомке body отключает растягивание,
     контейнер сжимается до контента и сетка схлопывается в 2 колонки. */
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 16px 72px;
}

.store-search {
  position: relative;
  /* width:100% — тот же приём, что у .store-catalog: main из styles.css несёт
     `align-items:center`, flex-элемент сжимается до контента и max-width не
     работает. 34-UI-REVIEW: поле давало 232px из 620, placeholder обрезался. */
  width: 100%;
  max-width: 620px;
  margin: 26px auto 0;
}

.store-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(236, 229, 218, .45);
}

.store-search__input {
  width: 100%;
  background: rgba(236, 229, 218, .08);
  border: 1px solid rgba(236, 229, 218, .18);
  border-radius: 999px;
  padding: 14px 18px 14px 42px;
  color: #ece5da;
  font-size: 16px; /* 16px — iOS не зумит поле */
  min-height: 50px;
}

.store-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.store-chip {
  background: rgba(236, 229, 218, .05);
  border: 1px solid rgba(236, 229, 218, .15);
  color: rgba(236, 229, 218, .6);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.store-chip--active {
  background: rgba(224, 122, 63, .16);
  border-color: rgba(224, 122, 63, .55);
  color: #e0a24f;
}

/* Phase 31 (REG-SRV-06, checkpoint fix — 31-UI-SPEC.md § Spacing Scale) —
   sheet-scoped 16px gap between the auth-mode tab row and the sheet title.
   Scoped to .store-sheet__panel so the catalog genre-filter .store-chips
   (unscoped, above) keeps its original margin-top:16px/no-bottom rule. */
.store-sheet__panel .store-chips {
  margin: 0 0 16px;
}

.store-count {
  text-align: center;
  font-size: 13px;
  color: rgba(236, 229, 218, .45);
  margin: 18px 0 0;
}

.store-empty {
  text-align: center;
  color: rgba(236, 229, 218, .5);
  font-size: 15px;
  padding: 48px 0;
}

.store-grid {
  display: grid;
  /* Адаптивная сетка. Мобайл-фёрст: маленький экран (телефон) — 2 колонки. */
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  margin-top: 22px;
}

/* Планшет — 3 колонки. */
@media (min-width: 600px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ноутбук и широкий десктоп — 4 колонки. */
@media (min-width: 960px) {
  .store-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 4. Package tile */
.store-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-tile__cover-wrap {
  position: relative;
}

.store-tile__cover-link {
  display: block;
}

.store-tile__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  background: linear-gradient(150deg, #6d6455, #332b22);
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  transition: transform .18s ease;
}

.store-tile__cover-link:hover .store-tile__cover {
  transform: translateY(-3px);
}

.store-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-tile__cover-fallback {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(14px, 4vw, 19px);
  font-weight: 500;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  line-height: 1.25;
}

.store-tile--owned .store-tile__cover {
  filter: brightness(.55);
}

.store-tile__owned-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(236, 229, 218, .9);
  color: #241a14;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: .04em;
  z-index: 2;
}

.store-tile__buy {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(120, 110, 100, .45);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease;
  z-index: 2;
}

.store-tile__buy:not(:disabled):hover {
  background: rgba(224, 122, 63, .9);
  color: #241a14;
}

/* quick 261002-vow: операторский рубильник продаж — приглушённая disabled-кнопка
   на плитке и на детали пакета, общее правило для обоих вариантов. */
.store-btn--unavailable,
.store-tile__buy--unavailable {
  background: rgba(120, 110, 100, .35);
  color: rgba(255, 255, 255, .55);
  cursor: not-allowed;
}

.store-tile__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
}

.store-tile__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #ece5da;
}

.store-tile__artist {
  margin: 0;
  font-size: 13px;
  color: rgba(236, 229, 218, .55);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.store-tile__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.store-tile__price {
  font-size: 13px;
  font-weight: 700;
  color: #e0a24f;
}

.store-tile__stars {
  font-size: 12px;
  letter-spacing: .08em;
  color: #e0a24f;
}

.store-tile__rating {
  margin: 0;
  font-size: 11.5px;
  color: rgba(236, 229, 218, .38);
}

/* 5. Package detail page */
.store-detail {
  /* width:100% — как и .store-catalog: margin:0 auto на flex-потомке body
     отключает растягивание, контейнер схлопывается и .store-detail__grid
     (auto-fit minmax(260px,1fr)) вырождается в одну узкую колонку вместо двух. */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 90px;
}

.store-back {
  display: inline-block;
  /* main{align-items:center} центрирует детей — прижимаем ссылку к левому краю. */
  align-self: flex-start;
  background: none;
  border: none;
  color: rgba(236, 229, 218, .6);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  min-height: 44px;
}

.store-detail__grid {
  display: grid;
  /* Мобайл-фёрст: одна колонка (обложка над инфо). Глобальное
     main{align-items:center} центрирует грид по content-width, поэтому явно
     растягиваем на всю ширину контейнера. */
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 6px;
  width: 100%;
  align-self: stretch;
}

/* Десктоп: две колонки — обложка слева (~45%), описание справа (макет 03). */
@media (min-width: 760px) {
  .store-detail__grid {
    grid-template-columns: minmax(0, 460px) 1fr;
    align-items: start;
  }
}

.store-detail__cover {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
  background: linear-gradient(150deg, #6d6455, #332b22);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.store-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-detail__cover-fallback {
  font-family: 'Lora', serif;
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 500;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.store-detail__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.store-detail__stars {
  font-size: 16px;
  letter-spacing: .12em;
  color: #e0a24f;
}

.store-detail__rating-label {
  font-size: 13px;
  color: rgba(236, 229, 218, .5);
}

.store-detail__cta {
  margin-top: 18px;
}

.store-detail__owned {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(236, 229, 218, .07);
  border: 1px solid rgba(236, 229, 218, .16);
  color: rgba(236, 229, 218, .62);
  padding: 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.store-detail__artist {
  margin: 0;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(236, 229, 218, .45);
}

.store-detail__title {
  margin: 6px 0 0;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  line-height: 1.08;
}

.store-detail__description {
  margin: 14px 0 0;
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(236, 229, 218, .78);
}

.store-detail__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(236, 229, 218, .12);
  border-bottom: 1px solid rgba(236, 229, 218, .12);
}

.store-detail__specs-label {
  margin: 0;
  font-size: 12px;
  color: rgba(236, 229, 218, .45);
}

.store-detail__specs-value {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.store-detail__tracks-heading,
.store-detail__avatars-heading {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

.store-detail__tracks {
  display: flex;
  flex-direction: column;
}

.store-detail__track {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(236, 229, 218, .08);
}

.store-detail__track-n {
  font-size: 13px;
  color: rgba(236, 229, 218, .4);
}

.store-detail__track-title {
  font-size: 15px;
}

.store-detail__track-artist {
  font-size: 13px;
  color: rgba(236, 229, 218, .45);
}

.store-detail__avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-detail__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(236, 229, 218, .18);
}

/* 6. Login bottom sheet (Phase 29-03, WEB-SRV-05, D-03) — hidden by default
   ([hidden] + display:none), opened by store.js toggling .store-sheet--open.
   Values ported verbatim from redesign/reference/Muzorro.dc.html login sheet. */
.store-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.store-sheet[hidden] {
  display: none;
}

.store-sheet.store-sheet--open {
  display: flex;
}

.store-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.store-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #33251c;
  border: 1px solid rgba(236, 229, 218, .14);
  border-radius: 22px 22px 0 0;
  padding: 26px 22px 34px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  /* Phase 31 UI-review fix #1: register-форма с капчей выше 667px-viewport
     (iPhone SE/8) — панель скроллится внутри, табы/заголовок остаются
     достижимыми. */
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.store-sheet__handle {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: rgba(236, 229, 218, .22);
  margin: 0 auto 20px;
}

.store-sheet__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.store-sheet__subtitle {
  margin: 8px 0 22px;
  text-align: center;
  font-size: 14px;
  color: rgba(236, 229, 218, .55);
}

.store-field__label {
  display: block;
  font-size: 13px;
  color: rgba(236, 229, 218, .55);
  margin-bottom: 6px;
}

.store-field__input {
  width: 100%;
  background: rgba(236, 229, 218, .07);
  border: 1px solid rgba(236, 229, 218, .18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ece5da;
  font-size: 16px;
  min-height: 50px;
  margin-bottom: 16px;
}

.store-captcha {
  margin-top: 4px;
  margin-bottom: 16px;
  background: rgba(236, 229, 218, .05);
  border: 1px solid rgba(236, 229, 218, .16);
  border-radius: 12px;
  padding: 14px;
}

.store-captcha__prompt {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(236, 229, 218, .6);
}

.store-captcha__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-captcha__image {
  flex: 0 0 auto;
  height: 46px;
  border-radius: 8px;
  background: #241a14;
}

.store-captcha__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  margin-bottom: 0;
}

.store-captcha__refresh {
  margin-top: 10px;
  background: none;
  border: none;
  color: rgba(236, 229, 218, .5);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
}

.store-sheet__error {
  margin: 14px 0 0;
  font-size: 14px;
  color: #f08a5d;
}

.store-btn--ghost {
  width: 100%;
  margin-top: 8px;
  background: none;
  color: rgba(236, 229, 218, .5);
  font-size: 14px;
  min-height: 44px;
  padding: 12px;
}

.store-sheet__submit {
  margin-top: 20px;
}

/* Phase 31 (REG-SRV-06, D-13, 31-UI-SPEC.md § Color) — disabled register
   submit until the consent checkbox is checked. Background/color unchanged
   (still accent, reduced opacity) so the button stays legible once re-enabled. */
.store-sheet__submit:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Phase 31 (REG-SRV-06, D-11, 31-UI-SPEC.md new spacing exceptions) — consent
   checkbox row for the register form. */
.store-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(236, 229, 218, .55);
}

/* Phase 31 UI-review (Visuals): подсказка, почему submit неактивен —
   скрывается, как только чекбокс отмечен (data-register-hint, store.js). */
.store-consent__hint {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(236, 229, 218, .38);
}

/* WR-01 (31-REVIEW): подсказка под полем формы регистрации (ограничение имени
   ASCII-only, минимальная длина пароля) — тот же тон, что .store-consent__hint. */
.store-field__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(236, 229, 218, .38);
}

/* Phase 31 (REG-SRV-06, checkpoint fix — 31-UI-SPEC.md § Spacing Scale
   "Consent checkbox box" + § Color "checked consent checkbox") — custom
   checkbox control. Native accent-color ignores border-radius in every
   engine tested, so the box is rebuilt with appearance:none; the checkmark
   is CSS-drawn (::after) to avoid an inline data-URI (STORE_CSP script-src
   'self' does not restrict this, but keeps parity with "no inline" intent). */
.store-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid rgba(236, 229, 218, .3);
  background: rgba(236, 229, 218, .05);
  position: relative;
  cursor: pointer;
}

.store-consent input[type="checkbox"]:checked {
  background: #e07a3f;
  border-color: #e07a3f;
}

.store-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #241a14;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.store-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #e07a3f;
  outline-offset: 2px;
}

/* 7. Payment bottom sheet (Phase 29-04, WEB-SRV-06, D-06) — reuses .store-sheet/
   .store-field__* (6.), hidden by default, opened by store.js toggling
   .store-sheet--open. Values ported verbatim from redesign/reference/
   Muzorro.dc.html payment sheet ("Оплата"/"Пакет открыт" states). */
.store-pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 22px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(236, 229, 218, .06);
}

.store-pay-summary__title {
  font-size: 15px;
}

.store-pay-summary__price {
  font-size: 17px;
  font-weight: 800;
  color: #e0a24f;
}

.store-pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.store-pay-row .store-field__input {
  margin-bottom: 0;
}

.store-pay-success {
  text-align: center;
  padding: 14px 0 6px;
}

.store-pay-success[hidden] {
  display: none;
}

.store-pay-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(224, 122, 63, .18);
  color: #e07a3f;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

.store-pay-success__body {
  margin: 8px 0 22px;
  font-size: 14px;
  color: rgba(236, 229, 218, .6);
}

/* 8. Mobile breakpoint */
@media (max-width: 480px) {
  /* 34-UI-REVIEW: `min-height:100vh` + `justify-content:center` рассчитаны на
     десктопный hero; на мобильном давали ~150px пустоты над футером. */
  .store-home {
    min-height: auto;
    justify-content: flex-start;
  }

  /* quick 261002-nto: .store-header абсолютная и вне потока, её высота =
     14 + 44 + 14 = 72px. На узких экранах вордмарк (15vw) дорастал по
     ширине до кнопки «Войти» и перекрывался ею — верх контента опускаем
     ниже шапки с зазором 16px. Менять при изменении padding/min-height
     шапки (зафиксировано тестом). */
  .store-home,
  .store-catalog {
    padding-top: 88px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .store-detail__specs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 9. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .store-tile__cover-link:hover .store-tile__cover {
    transform: none;
  }
}
