/* ВИТРИНА v3 — полноэкранный поиск (app/v3/search.js).
   Figma: 10 Поиск 25:2 · 11 Подсказки 25:136 · 12 Товары 26:2 · 13 Магазины 26:112 · 14 Пусто 27:2.
   Вложенный экран → светлая шапка. Цвета только токенами (тёмная тема — html.dk). */

html.dv3.v3s-lock, html.dv3.v3s-lock body{ overflow:hidden; }

html.dv3 .v3s{ position:fixed; inset:0; z-index:99; /* над меню/оверлеями (50), под тостами (--z-toast:100) */ display:flex; flex-direction:column;
  background:var(--paper); color:var(--ink); }
html.dv3 .v3s.is-shops{ background:var(--bg); }
html.dv3 .v3s button:not(.v3-chip):not(.v3-plus):not(.v3-btn):not(.add):not(.step button){ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer;
  -webkit-tap-highlight-color:transparent; }
html.dv3 .v3s button:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
/* Фокус поля показывает рамка .v3s-field — своя обводка у input давала двойную рамку */
html.dv3 .v3s .v3s-field input:focus, html.dv3 .v3s .v3s-field input:focus-visible{ outline:0; box-shadow:none; }

/* ---------- шапка ---------- */
html.dv3 .v3s-head{ flex:none; display:flex; align-items:center; gap:10px; margin:0;
  padding:calc(8px + env(safe-area-inset-top)) 16px 12px; background:var(--paper); border-bottom:1px solid var(--line);
  touch-action:none; /* протяжка по шапке не листает страницу под поиском (iOS) */ }
html.dv3 .v3s-field{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; height:44px; padding:0 8px 0 14px;
  border-radius:var(--v3-r-ctl); background:var(--bg); border:1.5px solid var(--green); color:var(--ink); }
html.dv3 .v3s-field > .v3-i{ width:20px; height:20px; color:var(--ink); }
html.dv3 .v3s-field input{ flex:1; min-width:0; height:100%; border:0; outline:0; background:none; padding:0;
  font:inherit; font-size:16px; font-weight:500; color:var(--ink); -webkit-appearance:none; appearance:none; }
html.dv3 .v3s-field input::placeholder{ color:var(--v3-sub); font-weight:400; }
html.dv3 .v3s-field input::-webkit-search-cancel-button{ display:none; }
html.dv3 .v3s-clr{ display:grid; place-items:center; width:32px; height:32px; flex:none; position:relative; }
html.dv3 .v3s-clr::before{ content:''; position:absolute; inset:-6px -4px; }  /* зона нажатия 40×44 */
html.dv3 .v3s-clr[hidden]{ display:none; }
html.dv3 .v3s-clr .v3-i{ width:20px; height:20px; padding:4px; border-radius:50%; background:var(--v3-sub); color:var(--paper); stroke-width:3; box-sizing:border-box; }
html.dv3 .v3s-cancel{ flex:none; min-height:40px; font-size:14px !important; font-weight:500; color:var(--green) !important; }
html.dv3 .v3s-back{ display:none; flex:none; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--bg) !important; }
html.dv3 .v3s-back .v3-i{ width:20px; height:20px; }

/* Выдача: назад + серое поле без обводки, без «Отмены» (макет 26:2) */
html.dv3 .v3s-head.is-results{ border-bottom:0; padding-bottom:10px; }
html.dv3 .v3s-head.is-results .v3s-back{ display:grid; }
html.dv3 .v3s-head.is-results .v3s-cancel{ display:none; }
html.dv3 .v3s-head.is-results .v3s-field{ height:40px; border-color:transparent; }
html.dv3 .v3s-head.is-results .v3s-field > .v3-i{ color:var(--v3-sub); }

/* ---------- тело ---------- */
html.dv3 .v3s-body{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding:0 16px calc(24px + env(safe-area-inset-bottom)); }
html.dv3 .v3s-sec{ margin-top:14px; }
html.dv3 .v3s-cap{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:32px; margin:14px 0 6px; }
html.dv3 .v3s-sec > .v3s-cap{ margin-top:0; }
html.dv3 .v3s-link{ font-size:13px !important; color:var(--muted) !important; min-height:32px; }
html.dv3 .v3s-none{ margin:18px 0 0; font-size:14px; color:var(--muted); }
html.dv3 .v3s-retry{ color:var(--green) !important; font-weight:600; font-size:14px !important; }

/* Сегмент «Везде / В магазине» */
html.dv3 .v3s-seg{ display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-top:14px; padding:3px;
  border-radius:var(--v3-r-ctl); background:var(--bg); }
html.dv3 .v3s-seg button{ height:34px; border-radius:10px; font-size:14px !important; font-weight:600; color:var(--muted) !important;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 8px !important; }
html.dv3 .v3s-seg button.is-on{ background:var(--paper) !important; color:var(--ink) !important; box-shadow:var(--v3-shadow-btn); }

/* «Вы искали» */
html.dv3 .v3s-recent{ padding-bottom:2px; }
html.dv3 .v3s-recent .v3-chip{ height:36px; padding:0 14px 0 12px; border:0; border-radius:18px; background:var(--bg); font-size:14px; }
html.dv3 .v3s-recent .v3-chip .v3-i{ width:16px; height:16px; color:var(--muted); }

/* Разделы: чипы в две строки по ширине, скелетон той же высоты (без скачка) */
html.dv3 .v3s-rubs{ display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  margin:0 -16px; padding:0 16px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
html.dv3 .v3s-rubs > div{ display:flex; gap:8px; height:36px; }
html.dv3 .v3s-rubs > div::after{ content:""; flex:none; width:8px; } /* правое поле при прокрутке */
html.dv3 .v3s-rubs::-webkit-scrollbar{ display:none; }
html.dv3 .v3s-rubs .v3-chip{ flex:none; height:36px; padding:0 14px; border:0; border-radius:18px; background:var(--bg); font-size:14px; }
html.dv3 .v3s-rubs.is-sk i{ display:block; flex:none; height:36px; border-radius:18px; background:var(--bg); }
html.dv3 .v3s-rubs.is-sk i:nth-child(3n+1){ width:92px; } html.dv3 .v3s-rubs.is-sk i:nth-child(3n+2){ width:120px; } html.dv3 .v3s-rubs.is-sk i:nth-child(3n){ width:76px; }

html.dv3 .v3s-allcat{ display:inline-flex; align-items:center; gap:4px; color:var(--green) !important; font-size:14px !important; font-weight:600; }

/* Магазины: лента логотипов */
html.dv3 .v3s-shoprow{ display:flex; gap:8px; margin:0 -16px; padding:2px 16px 4px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
html.dv3 .v3s-shoprow::-webkit-scrollbar{ display:none; }
html.dv3 .v3s-shopb{ flex:none; width:76px; display:flex !important; flex-direction:column; align-items:center; gap:6px; }
html.dv3 .v3s-logo{ display:grid; place-items:center; width:56px; height:56px; border-radius:var(--v3-r-photo); overflow:hidden; background:var(--bg); position:relative; }
html.dv3 .v3s-logo::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--line); pointer-events:none; }
html.dv3 .v3-mono.v3s-logo{ font-size:22px; border-radius:var(--v3-r-photo); }
html.dv3 .v3s-logo img{ width:100%; height:100%; object-fit:cover; }
html.dv3 .v3s-shopn{ width:100%; font-size:12px; line-height:1.25; text-align:center; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

html.dv3 .v3s-shoprow.is-sk .v3s-shopn{ display:block; width:48px; height:12px; margin-bottom:3px; border-radius:6px; background:var(--bg); }
html.dv3 .v3s-shopb{ min-height:92px; } /* 56 логотип + 6 + две строки имени: скелетон и живой ряд одной высоты */
/* Тихая подпись внизу пустого экрана */
html.dv3 .v3s-tip{ margin:22px 0 0; font-size:12px; color:var(--v3-sub); text-align:center; }

/* Строки подсказок */
html.dv3 .v3s-row{ width:100%; text-align:left; min-height:60px; }
html.dv3 .v3s .v3-row + .v3-row{ border-top:1px solid var(--line); }
html.dv3 .v3s-row .v3-grow, html.dv3 .v3s-popen .v3-grow{ display:flex; flex-direction:column; gap:2px; }
html.dv3 .v3s-t{ font-size:15px; font-weight:500; line-height:1.25; }
html.dv3 .v3s-t b, html.dv3 .v3s-pt b{ font-weight:700; }
html.dv3 .v3s-s{ font-size:12px; color:var(--muted); line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html.dv3 .v3s-chev{ width:18px; height:18px; color:var(--v3-sub); }
html.dv3 .v3s-tile{ display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:var(--v3-r-ctl); background:var(--paper); color:var(--ink); }
html.dv3 .v3s-tile.is-green{ background:var(--green-soft); color:var(--green); }
html.dv3 .v3s-tile .v3-i{ width:22px; height:22px; }
html.dv3 .v3s-mono{ width:44px !important; height:44px !important; flex:none; border-radius:var(--v3-r-ctl) !important; }

/* Товар строкой: фото 48 · название · цена · + */
html.dv3 .v3s-prow{ min-height:72px; gap:10px; }
html.dv3 .v3s-popen{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; text-align:left; padding:8px 0 !important; }
html.dv3 .v3s-popen .v3-grow{ flex:1; min-width:0; }
html.dv3 .v3s-pt{ font-size:14px; font-weight:500; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
html.dv3 .v3s-ph48{ flex:none; display:grid; place-items:center; width:48px; height:48px; border-radius:10px; color:var(--v3-sub); }
html.dv3 .v3s-price{ flex:none; font-size:15px; font-weight:700; white-space:nowrap; }
html.dv3 .v3s-add{ flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:10px;
  background:var(--green) !important; color:#fff !important; position:relative; }
html.dv3 .v3s-add::before{ content:''; position:absolute; inset:-4px; }  /* зона нажатия 40×40 */
html.dv3 .v3s-add .v3-i{ width:18px; height:18px; stroke-width:2.5; }
html.dv3 .v3s-add b, html.dv3 .v3s-pvadd b{ font-size:13px; font-weight:700; }
html.dv3 .v3s-add:disabled{ opacity:.6; }

html.dv3 .v3s-all{ display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; margin-top:10px; padding:0 12px !important;
  border-radius:var(--v3-r-photo); background:var(--bg) !important; color:var(--green) !important; font-size:15px !important; font-weight:600; text-align:center; }

/* ---------- выдача ---------- */
html.dv3 .v3s-tabs{ position:sticky; top:0; z-index:2; display:flex; gap:24px; margin:0 -16px; padding:0 16px;
  background:var(--paper); border-bottom:1px solid var(--line); }
html.dv3 .v3s-tabs button{ position:relative; min-height:42px; font-size:15px !important; font-weight:600; color:var(--muted) !important; }
html.dv3 .v3s-tabs button span{ font-size:13px; font-weight:600; color:var(--muted); }
html.dv3 .v3s-tabs button.is-on{ color:var(--ink) !important; font-weight:700; }
html.dv3 .v3s-tabs button.is-on span{ color:var(--green); }
html.dv3 .v3s-tabs button.is-on::after{ content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; border-radius:2px; background:var(--green); }

html.dv3 .v3s-flt{ padding-top:14px; padding-bottom:2px; }
html.dv3 .v3s-flt .v3-chip{ height:36px; }
html.dv3 .v3s-flt .v3-chip .v3-i{ width:16px; height:16px; }

html.dv3 .v3s-in{ display:flex; align-items:center; gap:6px; margin:6px -16px 0; padding:6px 16px; overflow-x:auto; scrollbar-width:none;
  font-size:12px; color:var(--muted); white-space:nowrap; }
html.dv3 .v3s-in::-webkit-scrollbar{ display:none; }
html.dv3 .v3s-inchip{ flex:none; display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:0 10px 0 6px !important;
  border-radius:var(--v3-r-pill); background:var(--bg) !important; color:var(--ink) !important; font-size:12px !important; font-weight:600; }
html.dv3 .v3s-inchip{ position:relative; }
html.dv3 .v3s-inchip::before{ content:''; position:absolute; inset:-6px -3px; }  /* 28 → 40 по высоте */
html.dv3 .v3s-inchip.is-on{ background:var(--green-soft) !important; color:var(--green) !important; }
html.dv3 .v3-mono.v3s-mono16{ width:16px; height:16px; border-radius:4px; font-size:10px; background:none; color:inherit; }

html.dv3 .v3s .v3s-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px 10px; margin:14px 0 0; padding:0; }

/* Магазины в выдаче (26:112) */
html.dv3 .v3s-shops{ padding-top:2px; }
html.dv3 .v3s-lead{ margin:12px 0 10px; font-size:14px; color:var(--ink); }
html.dv3 .v3s-shop{ margin-bottom:var(--v3-gap); }
html.dv3 .v3s-shead{ display:flex; align-items:center; gap:12px; }
html.dv3 .v3s-shead .v3-grow{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
html.dv3 .v3s-sname{ font-size:17px; font-weight:700; line-height:1.2; }
html.dv3 .v3s-st{ display:flex; align-items:flex-start; gap:6px; font-size:13px; line-height:1.3; }  /* часы не режем — переносим */
html.dv3 .v3s-st i{ flex:none; width:8px; height:8px; margin-top:4px; border-radius:50%; background:currentColor; }
html.dv3 .v3s-st.is-open{ color:var(--green); }
html.dv3 .v3s-st.is-closed{ color:var(--red); }
html.dv3 .v3s-cnt{ flex:none; min-height:32px; padding:0 8px 0 12px !important; border-radius:16px !important; font-size:13px !important;
  background:var(--green-soft) !important; color:var(--green) !important; }
html.dv3 .v3s-cnt .v3-i{ width:14px; height:14px; }
html.dv3 .v3s-prev{ display:flex; gap:8px; margin:14px -16px 0; padding:0 16px; overflow-x:auto; scrollbar-width:none; }
html.dv3 .v3s-prev::-webkit-scrollbar{ display:none; }
html.dv3 .v3s-pv{ position:relative; flex:none; width:84px; display:flex; flex-direction:column; gap:2px; }
html.dv3 .v3s-pvimg{ display:block; margin-bottom:6px !important; }
html.dv3 .v3s-ph84{ display:grid; place-items:center; width:84px; height:84px; color:var(--v3-sub); }
html.dv3 .v3s-pv > b{ font-size:15px; font-weight:700; }
html.dv3 .v3s-pv > span{ font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html.dv3 .v3s .v3-plus.v3s-pvadd{ position:absolute; top:54px; right:4px; width:26px; height:26px; background:var(--green) !important; color:#fff !important; }
html.dv3 .v3s .v3-plus.v3s-pvadd::before{ content:''; position:absolute; inset:-9px; }   /* зона 44 */
html.dv3 .v3s .v3-plus.v3s-pvadd .v3-i{ width:16px; height:16px; }
html.dv3 .v3s-more{ flex:none; display:flex !important; flex-direction:column; align-items:center; justify-content:center; width:84px; height:84px;
  border-radius:var(--v3-r-photo); background:var(--bg) !important; color:var(--green) !important; }
html.dv3 .v3s-more b{ font-size:15px; font-weight:700; }
html.dv3 .v3s-more span{ font-size:12px; color:var(--muted); }
html.dv3 .v3s-shop.is-closed .v3s-prev{ opacity:.6; }
html.dv3 .v3s-note{ margin:0; padding:14px 16px; border-radius:var(--v3-r-photo); background:var(--paper); font-size:13px; line-height:1.4; color:var(--ink); }

/* ---------- ничего не нашли (27:2) ---------- */
html.dv3 .v3s-nothing{ display:flex; flex-direction:column; padding-top:28px; }
html.dv3 .v3s-ring{ align-self:center; display:grid; place-items:center; width:88px; height:88px; border-radius:50%; background:var(--bg); color:var(--ink); }
html.dv3 .v3s-ring .v3-i{ width:44px; height:44px; stroke-width:2.2; }
html.dv3 .v3s-nothing h2{ margin:18px 0 0; text-align:center; font-size:20px; font-weight:700; line-height:1.25; }
html.dv3 .v3s-nothing > p{ margin:8px 0 0; text-align:center; font-size:14px; line-height:1.45; color:var(--muted); }
html.dv3 .v3s-nothing > .v3s-cap{ margin-top:22px; }
html.dv3 .v3s-sims{ display:flex; flex-direction:column; gap:var(--v3-gap); }
html.dv3 .v3s-sim{ display:flex !important; align-items:center; gap:12px; width:100%; min-height:60px; padding:8px 16px 8px 12px !important;
  border-radius:var(--v3-r-photo); background:var(--bg) !important; text-align:left; }
html.dv3 .v3s-sim .v3-grow{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
html.dv3 .v3s-sim .v3s-t{ font-weight:600; }
html.dv3 .v3s-sim .v3s-tile{ width:40px; height:40px; }
html.dv3 .v3s-help{ margin-top:22px; padding:16px; border-radius:var(--v3-r-card); background:var(--green-soft); }
html.dv3 .v3s-help > b{ display:block; font-size:16px; font-weight:700; color:var(--green); }
html.dv3 .v3s-help > p{ margin:6px 0 14px; font-size:14px; line-height:1.4; color:var(--ink); }
html.dv3 .v3s-write{ display:flex !important; align-items:center; justify-content:center; width:100%; min-height:48px;
  border-radius:var(--v3-r-ctl); background:var(--green) !important; color:#fff !important; font-size:15px !important; font-weight:700; }

/* Узкие экраны 320 */
@media (max-width:359px){
  html.dv3 .v3s-head{ gap:8px; padding-left:12px; padding-right:12px; }
  html.dv3 .v3s-body{ padding-left:12px; padding-right:12px; }
  html.dv3 .v3s-tabs, html.dv3 .v3s-in, html.dv3 .v3s-prev, html.dv3 .v3s-rubs, html.dv3 .v3s-shoprow{ margin-left:-12px; margin-right:-12px; padding-left:12px; padding-right:12px; }
  html.dv3 .v3s-field input{ font-size:16px; }
  html.dv3 .v3s-price{ font-size:14px; }
}
@media (prefers-reduced-motion:no-preference){
  html.dv3 .v3s{ animation:v3s-in .16s ease-out; }
  @keyframes v3s-in{ from{ opacity:0; transform:translateY(8px); } }
}

/* 01.10 · ленты только вбок; товар строкой — фото крупнее (56) и от края до края; «+» круглый,
   как в карточке, с пружинкой */
html.dv3 :is(.v3s-rubs, .v3s-shoprow, .v3s-prev, .v3s-in){ overflow-y:hidden; }
html.dv3 .v3s-ph48{ width:56px; height:56px; border-radius:12px; overflow:hidden; position:relative; background:var(--v3-photo); }
html.dv3 .v3s-ph48 img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; padding:0; border:0; mix-blend-mode:normal; }
html.dv3 .v3s-add{ width:36px; height:36px; border-radius:50%;
  box-shadow:0 4px 10px color-mix(in srgb, var(--green) 30%, transparent); transition:transform .22s cubic-bezier(.3,1.8,.5,1); }
html.dv3 .v3s-add:active{ transform:scale(.86); }
html.dv3 .v3s-rubs .v3-chip, html.dv3 .v3s-recent .v3-chip{ transition:transform .2s cubic-bezier(.3,1.7,.5,1); }
html.dv3 .v3s-rubs .v3-chip:active, html.dv3 .v3s-recent .v3-chip:active{ transform:scale(.94); }
@media (prefers-reduced-motion:reduce){ html.dv3 .v3s-add, html.dv3 .v3s-rubs .v3-chip, html.dv3 .v3s-recent .v3-chip{ transition:none; } }
