/* Витрина и окна покупки */
:where(.storefront, .shop-dialog) {
  --bg: #f7f5fb; --bg2: #eeebf6; --card: #fff; --chip: #f5f2fa; --line: #ded8eb;
  --ink: #21182d; --soft: #62586e; --accent: #5b3489; --accent-ink: #fff; --accent-text: #593287;
  --radius: 22px; --r-sm: 12px;
  color-scheme: light;
  color: var(--ink);
}
.shop-svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-icon {
  display: grid;
  position: relative;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast) var(--ease-out);
}
.shop-icon:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.shop-icon:active:enabled { transform: scale(.94); }
.shop-icon:disabled { opacity: .45; cursor: default; }
.shop-icon[aria-pressed="true"] { background: #e9def8; color: #593287; }
.shop-icon[aria-pressed="true"] .shop-svg-heart { fill: #593287; }
.shop-icon span {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 17px;
  padding: 0 3px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  pointer-events: none;
}
.shop-actions { display: flex; gap: 2px; align-items: center; }
@media (max-width: 960px) {
  .top-row .shop-actions { margin-left: auto; }
  .top-row .menu-btn { margin-left: 0; }
  .top-row { gap: 12px; }
}
@media (max-width: 480px) {
  .top-row { gap: 6px; }
  .top .logo { gap: 6px; font-size: 14px; }
  .top .logo-mark { width: 26px; height: 26px; }
  .shop-actions .shop-icon { width: 33px; height: 44px; }
  .shop-actions { gap: 0; }
  .top-row .menu-btn { min-height: 36px; padding: 0 9px; font-size: 12px; }
}
@media (max-width: 340px) {
  .shop-actions .shop-icon { width: 30px; }
  .top-row .menu-btn {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
  }
  .menu-btn::before, .menu-btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-btn::before { transform: translateY(-4px); box-shadow: 0 4px currentColor; }
  .menu-btn::after { transform: translateY(4px); }
  .menu-btn[aria-expanded="true"]::before { transform: rotate(45deg); box-shadow: none; }
  .menu-btn[aria-expanded="true"]::after { transform: rotate(-45deg); }
}
html:not(.js) .shop-actions, html:not(.js) .series-rail, html:not(.js) .shop-toolbar,
html:not(.js) .shop-categories, html:not(.js) .shop-quick, html:not(.js) .shop-facets, html:not(.js) .shop-card-actions,
html:not(.js) .shop-results-head { display: none; }

.storefront { background: var(--bg); }

.model-catalog-link { margin-inline-start: auto; font-size: 14px; }
.footer-model-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--soft); }
.footer-model-links a { text-decoration: none; }
.footer-model-links a:hover { text-decoration: underline; }
.model-page { min-height: calc(100vh - var(--header-height)); padding-block: clamp(24px, 5vw, 64px); }
.model-hero {
  display: grid; align-items: center; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(16px, 5vw, 64px); padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.model-hero:has(> :only-child) { grid-template-columns: 1fr; }
.model-hero h1 { font-size: clamp(28px, 6vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.model-hero h1 + p { margin-block: 14px; color: var(--soft); }
.model-start-price { font-size: clamp(20px, 4vw, 28px); font-weight: 650; }
.model-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.model-hero-photo { display: grid; place-items: center; }
.model-hero-photo :is(.shop-photo, .shop-photo-frame) { max-height: 280px; max-width: 100%; }
.model-listings, .model-pickup { margin-block-start: clamp(28px, 5vw, 52px); }
.model-listings h2, .model-pickup h2 { font-size: clamp(24px, 4vw, 34px); margin-block-end: 12px; }
.model-offers {
  margin: 0; padding: 0; list-style: none; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.model-offers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.model-offers li + li { border-block-start: 1px solid var(--line); }
.model-offers li > strong { flex: none; text-align: right; }
.model-offers li span { display: block; color: var(--soft); font-size: 13px; }
.model-pickup a { display: inline-block; margin-block-start: 8px; color: var(--accent-text); }
@media (max-width: 700px) {
  .model-hero { grid-template-columns: 1fr; }
  .model-hero-photo :is(.shop-photo, .shop-photo-frame) { max-height: 200px; }
}
.shop-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.shop-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.shop-heading h2 { font-size: clamp(39px, 6.3vw, 82px); }
.shop-heading p { margin-top: 12px; }
.shop-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-category {
  min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 580; cursor: pointer; white-space: nowrap;
}
.shop-category:hover { border-color: var(--accent); }
.shop-category[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.series-rail[hidden], .shop-product .opt[hidden] { display: none; }
.shop-visit {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 11px;
  padding: 11px 15px 11px 11px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  text-decoration: none;
}
.shop-visit:hover { border-color: #a98bc9; }
.shop-visit-icon {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #f0e6fa;
  color: #623386;
  border-radius: 10px;
}
.shop-visit strong, .shop-visit small { display: block; line-height: 1.3; }
.shop-visit strong { font-size: 15px; }
.shop-visit small { margin-top: 3px; color: var(--soft); font-size: 13px; }
.series-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(114px, 1fr);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 3px 3px 10px;
  margin: 0 -3px;
}
.series-tile {
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-rows: 76px auto;
  gap: 8px;
  min-height: 126px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
}
.series-tile:hover, .series-tile[aria-pressed="true"] { border-color: #8d6bb8; background: #eee7f9; }
.series-phone { width: auto; height: 70px; transform: rotate(-10deg); filter: drop-shadow(2px 5px 5px #251a3940); }
.series-all .brand-mark { width: 47px; }
.shop-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, 240px); gap: 12px; }
.shop-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -12px;
}
.shop-quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}
.shop-quick-filter .shop-svg { width: 17px; height: 17px; }
.shop-quick-filter:hover { border-color: #a98bc9; }
.shop-quick-filter[aria-pressed="true"] { background: #efe2fa; color: #502478; border-color: #aa8bca; }
.shop-search {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--soft);
}
.shop-search .shop-svg { flex: none; }
.shop-search input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font: inherit;
}
.shop-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.shop-sort select, .shop-field select { width: 100%; background-color: var(--card); }

.shop-browse { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 18px; align-items: start; }
.shop-facets {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.shop-facets summary { font-weight: 700; cursor: pointer; }
.shop-facets form { display: grid; gap: 15px; margin-top: 13px; }
.shop-field { display: grid; gap: 6px; font-size: 14px; color: var(--soft); margin: 0; min-width: 0; border: 0; padding: 0; }
.shop-field[hidden] { display: none; }
.series-tile[hidden] { display: none; }
.shop-field select {
  min-height: 42px;
  padding: 0 27px 0 9px;
  background-position: right 8px center;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink);
}
.shop-field legend { margin-bottom: 5px; padding: 0; }
.shop-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shop-range input, .installment-form input[type="tel"] {
  width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
}
.shop-range input::-webkit-inner-spin-button { appearance: none; }
.shop-range input[type="number"] { appearance: textfield; }
.shop-text { border: 0; padding: 0; background: none; color: var(--accent-text); font: inherit; cursor: pointer; text-align: left; }
.shop-text:hover { text-decoration: underline; }
.shop-results-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 12px; }
.shop-results-head .filters { margin: 0; gap: 5px; }
.shop-results-head .filter { min-height: 38px; padding: 0 12px; font-size: 14px; }
.shop-results-head p { color: var(--soft); font-size: 14px; white-space: nowrap; }

.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-more { display: flex; width: fit-content; margin: 18px auto 0; }
.shop-more[hidden] { display: none; }
.shop-grid .card { min-width: 0; border-radius: 17px; transition: border-color var(--motion-ui); }
.shop-grid .card:hover { transform: none; box-shadow: none; }
@media (hover: hover) {
  .shop-grid .card:hover { border-color: #b49bcf; }
}
.shop-grid .card-art { height: 222px; background: radial-gradient(ellipse at 46% 65%, #e5dbf4, #f5f1fb 73%); }
.shop-card-image { display: grid; place-items: center; width: 100%; height: 100%; }
.shop-grid .card-ph { height: 152px; margin-top: 12px; transform: rotate(-9deg); }
.shop-grid .card:hover .card-ph { transform: rotate(-5deg) translateY(-3px); }
.shop-grid .card-art .badge { position: absolute; top: 12px; left: 12px; background: #fff; pointer-events: none; }
.shop-card-actions { position: absolute; top: 7px; right: 7px; display: grid; gap: 3px; }
.shop-card-actions .shop-icon { width: 34px; height: 34px; }
.shop-card-actions .shop-svg { width: 17px; height: 17px; }
.shop-grid .card-body { padding: 14px; gap: 6px; }
.shop-grid .card-h { font-size: 19px; }
.shop-grid .card-h a { text-decoration: none; }
.shop-grid .card-h a:hover { text-decoration: underline; }
.shop-card-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-height: 29px; }
.shop-card-memory { color: var(--soft); font-size: 13px; }
.shop-card-battery {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 7px;
  background: #f1ebf8;
  color: #4e306c;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 640;
  white-space: nowrap;
}
.shop-card-battery .shop-svg { width: 15px; height: 15px; }
.shop-card-battery[hidden] { display: none; }
.shop-grid .card-foot { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.shop-grid .price { font-size: clamp(16px, 1.5vw, 20px); }
.shop-price-set { display: grid; justify-items: start; gap: 2px; }
.shop-tag-price { font-size: 13px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.shop-product-info .shop-tag-price { font-size: 15px; }
.shop-grid .card-foot .btn { min-height: 39px; padding: 0 13px; font-size: 14px; }

.shop-empty { padding: 34px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.shop-empty p { color: var(--soft); margin: 4px 0 16px; }
.shop-empty .btn[hidden] { display: none; }
.shop-services { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 18px; }
.shop-service {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 180px;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
}
.shop-service > span:first-child { display: grid; gap: 8px; max-width: 29ch; padding-right: 4px; z-index: 1; }
.shop-service strong { font: 650 clamp(23px, 3vw, 35px)/1.08 var(--display); letter-spacing: -.045em; }
.shop-service-cta { font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; margin-top: 5px; }
.shop-service-trade { background: #321337; color: #fff; }
.shop-service-trade > .brand-mark { flex: none; width: clamp(55px, 10vw, 126px); margin-left: auto; }
.shop-service-pickup { color: #21182d; background: #e9e1f4; }
.shop-service-pickup .shop-svg { flex: none; width: 50px; height: 50px; margin-left: auto; color: #623987; }

.shop-footer { display: grid; width: 100%; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 22px; }
.shop-footer nav { display: grid; gap: 6px; align-content: start; }
.shop-footer strong, .shop-footer .logo { color: var(--ink); font-size: 15px; }
.shop-footer .logo { font-size: 24px; margin-bottom: 4px; }
.shop-footer nav a { text-decoration: none; }
.shop-footer nav a:hover { text-decoration: underline; }
.shop-footer-legal { display: flex; width: 100%; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 10px; }

.shop-dialog {
  position: fixed;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 24px 100px #170b2b50;
}
.shop-dialog[open] { animation: dialog-show var(--motion-ui) var(--ease-out) both; }
.shop-dialog::backdrop { background: #130820a6; }
.shop-dialog h2 { font: 700 clamp(29px, 4vw, 46px)/1.12 var(--display); letter-spacing: -.046em; }
.shop-dialog h2:focus { outline: none; }
.shop-dialog-shell { position: relative; }
.shop-close { position: absolute; z-index: 2; top: 10px; right: 10px; }
.shop-close .shop-icon { background: #fff; font-size: 26px; border: 1px solid var(--line); }
.shop-muted { color: var(--soft); }
.shop-product { width: min(780px, calc(100% - 26px)); max-height: min(calc(100% - 26px), 810px); }
.shop-product .shop-dialog-shell { display: grid; grid-template-columns: .9fr 1fr; min-height: 460px; }
.shop-product-art { display: grid; place-items: center; background: radial-gradient(#dfd0f3, #eee8f7 75%); }
.shop-product-art .shop-phone-render { transform: rotate(-10deg); width: auto; height: min(45vh, 330px); filter: drop-shadow(10px 18px 14px #33224530); }
.shop-product-info { display: grid; align-content: center; padding: 48px 26px 28px; gap: 13px; min-width: 0; }
.shop-product-info .opt-label { font-size: 14px; }
.shop-product-header, .shop-product-actions { display: flex; align-items: center; gap: 5px; }
.shop-product-header { justify-content: space-between; padding-right: 30px; }
.shop-product-actions .shop-icon { width: 32px; height: 32px; }
.shop-product-actions .shop-svg { width: 16px; height: 16px; }
.shop-price-editor { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.shop-price-editor[hidden] { display: none; }
#shop-price-editor-logout[hidden] { display: none; }
.shop-price-editor label { flex: 1 0 128px; }
.shop-price-editor output:not(:empty) { flex-basis: 100%; font-size: 13px; }
.shop-product-info .chip input:disabled { cursor: default; }
.shop-product-info .chip input:disabled + span { opacity: .52; }
.shop-memory-note { font-size: 13px; margin: 6px 0 0; }
.shop-product-price { font: 700 clamp(25px, 4vw, 35px)/1.2 var(--display); }
.shop-product-info .btn { justify-self: start; min-width: 150px; }
.shop-product-buy { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-product-buy [hidden] { display: none; }
.installment-dialog { width: min(460px, calc(100% - 24px)); }
.installment-dialog .shop-dialog-shell { display: grid; gap: 14px; padding: 32px 24px 24px; }
.installment-dialog h2 { font-size: clamp(26px, 5vw, 34px); padding-right: 32px; }
.installment-dialog .shop-muted { font-size: 14px; }
.installment-actions, .installment-form { display: grid; gap: 8px; }
.installment-actions .btn { width: 100%; min-height: 46px; }
.installment-actions small { font-size: 11px; }
.installment-actions button:disabled, .installment-form button:disabled { opacity: .58; cursor: default; }
.installment-form { border-top: 1px solid var(--line); padding-top: 14px; }
.installment-form[hidden], .installment-status:empty { display: none; }
.installment-status { font-size: 14px; }
.installment-status[data-error] { color: #962e46; }
.shop-related {
  grid-column: 1 / -1;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}
.shop-related h3 { margin-bottom: 12px; font: 650 20px/1.2 var(--display); }
.shop-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
}
.shop-related-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
.shop-related-card:hover, .shop-related-card:focus-visible { border-color: var(--accent); background: #fcf9ff; }
.shop-related-card .shop-photo-mini { width: 100%; height: 48px; grid-row: auto; }
.shop-related-copy { display: grid; gap: 2px; line-height: 1.25; }
.shop-related-copy .shop-muted { font-size: 12px; }
.shop-related-price { font-size: 14px; white-space: nowrap; }
.shop-panel {
  --dialog-x: 16px;
  --dialog-y: 0px;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 570px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  border-radius: 22px 0 0 22px;
}
.shop-panel:has(.shop-table) { width: min(100%, 790px); }
.shop-panel .shop-dialog-shell { min-height: 100%; padding: 52px 22px 22px; }
.shop-panel h2 { margin-bottom: 16px; }
.shop-panel-empty { margin-bottom: 17px; }
.shop-line-list { display: grid; gap: 8px; }
.shop-line {
  display: grid;
  align-items: center;
  grid-template-columns: 43px 1fr auto;
  gap: 6px 12px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shop-line .shop-phone-render { width: auto; height: 65px; grid-row: span 2; margin: auto; }
.shop-line-copy { min-width: 0; }
.shop-line-title { color: var(--ink); font-weight: 650; }
.shop-line-copy p { font-size: 13px; }
.shop-line-price { grid-column: 3; white-space: nowrap; justify-self: end; }
.shop-quantity { display: flex; gap: 5px; align-items: center; }
.shop-quantity .shop-icon { width: 30px; height: 30px; border: 1px solid var(--line); }
.shop-total { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; font-size: 19px; }
.shop-product-pickup {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #eadff4;
  border-radius: 10px;
  background: #f5eff9;
  color: #45285e;
  text-decoration: none;
}
.shop-product-pickup:hover { border-color: #a98bc9; }
.shop-product-pickup .shop-svg { flex: none; }
.shop-product-pickup strong, .shop-product-pickup small { display: block; line-height: 1.35; }
.shop-product-pickup strong { font-size: 14px; }
.shop-product-pickup small { margin-top: 2px; color: var(--soft); font-size: 13px; }
#shop-panel-bottom .shop-product-pickup { display: block; margin-bottom: 12px; }
#shop-panel-bottom > .btn { max-width: 100%; white-space: normal; }
.shop-table-wrap { max-width: 100%; overflow: auto; }
.shop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop-table .shop-phone-render { display: block; width: auto; height: 95px; margin: 4px auto 8px; }
.shop-table td, .shop-table th { min-width: 110px; padding: 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.shop-table th:first-child { min-width: 80px; }
.shop-table thead th { background: var(--bg2); }
.shop-table .shop-text { display: block; margin-bottom: 6px; }
.shop-toast {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50%;
  max-width: calc(100% - 24px);
  width: max-content;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-align: center;
}
.shop-toast:empty { padding: 0; border: 0; }
.shop-toast:not(:empty) { animation: menu-show 160ms var(--ease-out) both; }
.order-btns [hidden], .shop-icon [hidden] { display: none; }
.order-msg { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .shop-browse { grid-template-columns: 180px minmax(0, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shop-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px;
    margin: -4px;
  }
  .series-rail { overscroll-behavior-x: contain; scroll-snap-type: none; }
  .shop-category, .shop-results-head .filter { min-height: 44px; }
  .shop-browse { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-facets form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .shop-heading { flex-direction: column; align-items: flex-start; }
  .shop-services { grid-template-columns: minmax(0, 1fr); }
  .shop-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px), (pointer: coarse), (max-width: 960px) and (max-height: 520px) {
  .shop-field select, .shop-field input:not([type="radio"], [type="checkbox"]),
  .shop-search input, .installment-form input[type="tel"] { font-size: 16px; }
  .shop-dialog:not(.shop-panel), .order {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px)) - max(12px, env(safe-area-inset-bottom, 0px)));
    max-width: calc(100% - max(12px, env(safe-area-inset-left, 0px)) - max(12px, env(safe-area-inset-right, 0px)));
  }
  .shop-dialog > .shop-close {
    --close-offset-top: 10px;
    --close-offset-right: 10px;
    position: sticky;
    top: 0;
    right: auto;
    width: 44px;
    height: 0;
    margin-inline: auto var(--close-offset-right);
    transform: translateY(var(--close-offset-top));
  }
  .shop-close .shop-icon { width: 44px; height: 44px; }
}
@media (max-width: 520px) {
  .shop-wrap { gap: 16px; }
  .shop-toolbar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .shop-quick { margin-top: -5px; }
  .shop-sort select, .shop-field select, .shop-range input { min-height: 44px; }
  .shop-results-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .shop-grid { gap: 8px; }
  .shop-grid .card-art { height: 170px; }
  .shop-grid .card-ph { height: 112px; margin-top: 18px; }
  .shop-grid .card-art .badge { top: 9px; left: 8px; font-size: 10px; padding: 4px 5px; }
  .shop-card-actions { top: 4px; right: 4px; }
  .shop-grid .card-body { padding: 10px; }
  .shop-grid .card-h { font-size: 16px; }
  .shop-grid .card-foot .btn { width: 100%; min-height: 44px; }
  .shop-service { min-height: 160px; padding: 16px; }
  .shop-product .shop-dialog-shell { grid-template-columns: 1fr; }
  .shop-product-art { min-height: 160px; }
  .shop-product-art .shop-phone-render { height: min(22vh, 165px); }
  .shop-product-info { padding: 16px; gap: 10px; }
  .shop-product-header { padding-right: 0; align-items: flex-start; }
  .shop-product h2 { overflow-wrap: anywhere; }
  .shop-product-buy .btn { flex: 1 1 144px; min-width: 0; }
  .shop-related { padding: 14px 16px 18px; }
  .shop-related-list { grid-template-columns: 1fr; }
  .shop-panel { border-radius: 0; }
  .shop-panel .shop-dialog-shell {
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
    padding-top: max(54px, calc(48px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
  }
  .shop-panel > .shop-close {
    --close-offset-top: max(10px, env(safe-area-inset-top, 0px));
    --close-offset-right: max(10px, env(safe-area-inset-right, 0px));
  }
}
