/* Витрина и страница смеси на телефоне — перенос мобильной версии home (Дмитрий, 8.11.2026).
   Подключается с media="(max-width:600px)": компьютер и планшет эти правила не видят.
   Отличия от home — только то, что требует b2b: закладка на строке смеси, круг образцов. */
:root { --pbar-h: 72px; --shop-h: 62px; }

/* шапка: одна строка, разделы — во вкладках и в подвале */
.top .wrap { padding-top: 0; min-height: 52px; }
.top nav.links, .top .tools { display: none; }
.top .logo { display: inline-flex; align-items: center; min-height: 44px; }

/* полоса «Оформить заказ» над вкладками: две строки, кнопка-контур */
.tab-on .shop-bar { bottom: calc(var(--tab-h) + var(--pk-rim-w) + var(--sab) - 1px); padding-top: 6px; padding-bottom: 6px; }
.tab-on body.has-shopbar { padding-bottom: calc(var(--tab-h) + var(--pk-rim-w) + var(--shop-h) + var(--sab)); }
.tab-on:not(.search-open) body.has-shopbar .tabbar { border-top-color: var(--white); }
.tab-on .shop-bar .wrap { gap: 10px; }
.tab-on .shop-bar .sb-sum { min-height: 0; display: block; font-size: 14px; line-height: 1.3; padding: 2px 0; line-height: 1.25; }
.tab-on .shop-bar .sb-sum b { font-size: 15px; }
.tab-on .shop-bar .next { min-height: 44px; padding: 0 14px; font-size: 14px; background: var(--white); color: var(--brick-deep); box-shadow: inset 0 0 0 var(--rim-2) var(--brick); }
.tab-on .shop-bar .next:active { background: var(--brick-tint); }
.tab-on footer { padding-bottom: 24px; }
.search-open .shop-bar { display: none !important; }
html { scroll-padding-bottom: calc(var(--bar-h) + var(--tab-h) + 16px); }

/* первый экран: герой ниже, фото-сцена только под ним, список на эмали */
.stage { background: var(--enamel); border-bottom: 0; }
.stage-bg { display: none; }
.field-photo { padding: 10px 0; border-bottom: var(--rim-band) solid var(--rim); background: var(--choc-deep); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .field-photo { background: linear-gradient(color-mix(in srgb, var(--choc-deep) 84%, transparent), color-mix(in srgb, var(--choc-deep) 84%, transparent)), var(--choc-deep) url(/static/showcase/flatlay-blur.jpg) 60% 45% / cover no-repeat; }
}
/* короткий заголовок на телефоне: полный остаётся в разметке — для поиска и экранного чтеца */
.hero h1 { font-size: 24px; line-height: 1.1; letter-spacing: -.03em; padding-right: 0; max-width: none; }
.hero h1 > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero h1::before { content: "Какао для кофеен"; content: "Какао для кофеен" / ""; }
.hero .facts { margin: 8px 0 0; gap: 4px; }
.hero .facts li { font-size: 14px; line-height: 1.3; }
.hero .facts li svg { width: 18px; height: 18px; }
.hero-side { margin: 6px var(--rim-2) 0 0; }
/* круг образцов — на месте штампа home: слова читаются, стрелка уходит */
.cta-round { width: 96px; padding: 6px; gap: 0; }
.cta-round-main { font-size: 12px; line-height: 1.15; }
.cta-round-sub { font-size: 12px; line-height: 1.15; margin-top: 2px; }
.cta-round svg { display: none; }

/* подбор — в окне поиска */
#blends .picker, #blends .picker-note { display: none; }

/* смеси строками */
.shelf { padding: 6px 0 32px; }
.goods, .goods-s { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 -14px; background: var(--white); border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
.tile { min-height: 134px; }   /* строки одной высоты; блок маршмеллоу в сетке их не растягивает */
.goods-s { margin-top: 4px; }
.goods-s:empty { border: 0; }
.tile { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); container-type: normal; border: 0; border-radius: 0; box-shadow: none; padding: 8px 14px; column-gap: 0; transform: none; transition: background-color 120ms var(--ease-out); }
.tile + .tile { border-top: var(--hair) solid var(--line); }
.tile:active { background: var(--enamel); }
.tile-img { aspect-ratio: 3 / 4; width: 90px; align-self: start; border-bottom: 0; border-radius: var(--r-thumb); background: var(--enamel); }
.tile-img img { object-fit: contain; }
.tile-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-content: start; padding: 0 0 0 12px; min-width: 0; }
.tile-name { grid-area: 1 / 1 / 2 / 3; flex: none; margin: 0; }
.tile-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-kind { display: block; margin: 0 0 2px; padding-right: 11em; font-style: normal; letter-spacing: 0; text-transform: none; white-space: normal; font-size: 12px; }
.tile-name b { font-size: 16px; margin: 0; }
.tile-name a > span { display: none; }
/* доля какао — текстом справа вверху, вместо кольца */
.tile .cocoa { container-type: normal; position: absolute; top: 0; right: 0; left: auto; bottom: auto; width: auto; height: auto; aspect-ratio: auto; display: block; padding: 0; margin: 0; transform: none; background: none; border: 0; border-radius: 0; box-shadow: none; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.tile .cocoa::before, .tile .cocoa::after { display: none; content: none; }
.tile .cocoa i, .tile .cocoa b, .tile .cocoa small { display: inline; position: static; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: 0; }
.tile .cocoa i:not(:empty)::after, .tile .cocoa b::after { content: " "; }
/* дозировки и число напитков в строках каталога на телефоне не показываем, но на карточке смеси (.pp-main) оставляем */
.tile .uses, .tile-cups { display: none; }
.tile-price { grid-area: 3 / 1; display: flex; flex-direction: column; align-items: flex-start; align-self: center; padding-right: 0; line-height: 1.15; }
.tile-price .now { font-size: 19px; font-weight: 800; color: var(--ink); }
.tile-per { font-size: 12px; color: var(--ink-2); }
.tile-body > .buyzone { grid-area: 3 / 2 / 4 / 3; align-self: center; position: relative; z-index: 2; }
.tile .buyzone { height: 44px; margin: 0; display: flex; justify-content: flex-end; }
.tile .add { position: relative; width: 56px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.tile .add::before { content: ""; position: absolute; inset: -6px -4px; }
.tile .add .add-ico { display: block; }
.tile .stepper { width: 124px; grid-template-columns: 44px 1fr 44px; }
.tile .add, .tile .stepper { min-height: 44px; height: 44px; font-size: 16px; }
.tile .stepper button { height: 44px; }
.tile .stepper [data-qty] i { display: none; }
.tile-go { display: none; }
.tile-body::after { content: "Техкарта, состав и отзывы ›"; grid-area: 4 / 1 / 5 / 3; margin-top: 2px; font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.tile-addon .tile-body::after { content: "Подробнее ›"; }
.pp-end .pill { width: 100%; }

/* окно поиска */
.search-sheet:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 48; left: 0; right: 0; top: 0; bottom: calc(var(--tab-h) + var(--pk-rim-w) + var(--sab)); background: var(--enamel); padding: 10px 14px 0; overflow-y: auto; overscroll-behavior: contain; }
.typing .search-sheet:not([hidden]) { bottom: 0; }
.search-sheet > * { flex: none; }
.search-open body { overflow: hidden; }
.search-sheet { scrollbar-width: none; }
.search-sheet::-webkit-scrollbar { display: none; }
.ss-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.ss-top h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.ss-close { width: 44px; height: 44px; margin-right: -8px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); border-radius: var(--r-pill); cursor: pointer; }
.ss-close:active, .ss-clear:active { background: var(--track); }
.ss-field { position: relative; margin: 6px 0 8px; }
#searchIn::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
#searchIn { width: 100%; height: 48px; margin: 0; padding: 0 48px 0 16px; border: var(--rim-2) solid var(--field-stroke); border-radius: var(--r-field); background: var(--white); font: 400 16px var(--font); color: var(--ink); }
#searchIn:focus { outline: none; border-color: var(--choc); }
.ss-clear { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); border-radius: var(--r-pill); cursor: pointer; }
.ss-clear[hidden] { display: none; }
.ss-empty { padding: 16px 14px; margin: 0; color: var(--ink-2); }
#searchPicks .picker { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-items: center; gap: 6px; margin: 0 -14px 8px; padding: 2px 14px; scroll-padding-inline: 14px; }
#searchPicks .picker::-webkit-scrollbar { display: none; }
#searchPicks .picker-lbl { flex: none; color: var(--ink-2); font-size: 14px; min-width: 0; }
#searchPicks .picker-note { display: none; }
#searchPicks .task { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: 600 14px var(--font); box-shadow: inset 0 0 0 var(--rim-2) var(--field-stroke); backdrop-filter: none; white-space: nowrap; }
#searchPicks .task[aria-pressed="true"] { background: var(--rim); color: var(--white); box-shadow: none; }
#searchPicks .task:focus-visible { outline-color: var(--choc); }

/* разделы ниже полки — плотнее */
.band { padding: 28px 0 0; }
.band h2 { font-size: 24px; margin-bottom: 14px; }
footer { padding-top: 28px; }

/* страница смеси: «Назад», фото поменьше, внизу одна полоса покупки */
.p-route body { padding-bottom: calc(var(--pbar-h) + 16px + env(safe-area-inset-bottom)); }
.p-route .shop-bar { display: none !important; }
.p-route .top .tools { display: none; }
.p-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 0 -10px; padding: 0; border: 0; background: none; color: var(--ink); border-radius: var(--r-pill); cursor: pointer; vertical-align: middle; }
.p-back:active { background: var(--enamel); }
.p-back[hidden] { display: none; }
.p-route .crumbs { display: inline; vertical-align: middle; margin: 0; }
.p-route .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.pp { margin-top: 4px; }
.pp-photo { width: 64%; margin: 0 auto; }
.pp-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.p-bar-on .p-buy > .buyzone { display: none; }
.p-buy { margin: 14px 0; }
.p-buy .now { color: var(--ink); }   /* цена чёрная везде на телефоне, как на home */
.pp-cocoa { align-items: center; gap: 8px; margin-top: 8px; }
/* доля какао — текстом, как в строке смеси */
.pp-cocoa .cocoa { container-type: normal; position: static; flex: none; width: auto; height: auto; aspect-ratio: auto; display: block; padding: 0; margin: 0; transform: none; background: none; border: 0; border-radius: 0; box-shadow: none; white-space: nowrap; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.pp-cocoa .cocoa::before, .pp-cocoa .cocoa::after { display: none; content: none; }
.pp-cocoa .cocoa i, .pp-cocoa .cocoa b, .pp-cocoa .cocoa small { display: inline; position: static; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: 0; }
.pp-cocoa .cocoa i:not(:empty)::after, .pp-cocoa .cocoa b::after { content: " "; }
.p-bar { position: fixed; z-index: 46; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; min-height: var(--pbar-h); padding: 10px max(16px, env(safe-area-inset-right)) max(10px, var(--sab)) max(16px, env(safe-area-inset-left)); background: var(--white); border-top: var(--rim-w) solid var(--rim); box-shadow: var(--float-up); }
.p-bar .pb-price { flex: none; font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-bar .buyzone { flex: 1; height: auto; margin: 0; min-width: 0; display: flex; }
.p-bar .add, .p-bar .stepper, .p-bar .stepper button { min-height: 54px; height: 54px; }
.p-bar .add, .p-bar .stepper { width: 100%; }
.p-bar .stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.p-bar .stepper [data-qty] { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; min-width: 0; }
.p-bar .stepper [data-qty] i { display: none; }
.p-bar .stepper [data-qty]::before { content: "В корзине"; display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.p-bar .pb-go { display: none; width: auto; flex: none; margin: 0; padding: 0 18px; min-height: 54px; align-items: center; text-decoration: none; white-space: nowrap; }
.p-bar.incart .pb-go { display: inline-flex; }
.p-bar.incart .pb-price { display: none; }
.typing .p-bar { display: none; }

/* узкий телефон */
@media (max-width: 374px) {
  .tile { grid-template-columns: 80px minmax(0, 1fr); }
  .tile-img { width: 80px; }
  .tile-body { padding-left: 10px; }
  .tile .stepper { width: 116px; grid-template-columns: 44px 1fr 44px; }
  .tile-price { min-width: 0; }
  .p-bar { gap: 8px; }
  .p-bar .stepper { grid-template-columns: 40px 1fr 40px; min-width: 0; }
  .p-bar .pb-go { padding: 0 14px; }
}
