/* ═══════════════════════════════════════════════════════════════════════════
   ВЕТКЛИНИКИ (сервис с главного экрана — Figma node 3833-48)
   ═══════════════════════════════════════════════════════════════════════════ */
.vet-screen { flex-direction: column; align-items: stretch; justify-content: flex-start; background: #F3F4F6; overflow: hidden; }
/* Шапка прижата вверх — как в «Избранное»: safe-area padding только в полном
   экране, а заголовок подтягивается через --app-title-margin */
.vet-header { background: #FFF; flex-shrink: 0; }
body.platform-ios.tg-fullscreen .vet-header,
body.platform-android.tg-expanded .vet-header {
  padding-top: max(
    calc(env(safe-area-inset-top, 0px) * 1.4 + 24px),
    calc(var(--tg-content-safe-area-inset-top, 0px) * 1.4 + 24px)
  );
}
body.tg-active.platform-ios:not(.tg-fullscreen) .vet-header,
body.tg-active.platform-android:not(.tg-expanded) .vet-header {
  padding-top: 0;
}
.vet-header-inner {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  margin-top: var(--app-title-margin, 0px);
}
body.tg-active.platform-ios:not(.tg-fullscreen) .vet-header-inner,
body.tg-active.platform-android:not(.tg-expanded) .vet-header-inner {
  margin-top: 0;
  height: 44px;
}
.vet-title { overflow: hidden; padding: 0 8px; color: #000; font-size: 16px; font-weight: 600; line-height: 20px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.vet-toolbar { padding: 8px 12px 12px; background: #FFF; flex-shrink: 0; border-radius: 0 0 8px 8px; }
.vet-search-row { display: flex; align-items: center; gap: 8px; }
.vet-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: #F2F2F7; }
.vet-search svg { flex: 0 0 auto; }
.vet-search-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #000; font-size: 14px; font-weight: 400; line-height: 18px; }
.vet-search-input::placeholder { color: #8E8E93; }

.vet-chips { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.vet-chips::-webkit-scrollbar { display: none; }
.vet-chip { flex: 0 0 auto; padding: 6px 10px; border: 0; border-radius: 8px; background: #F2F2F7; color: #000; font-size: 12px; font-weight: 400; line-height: 15px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.vet-chip.active { background: #635CFB; color: #FFF; }

.vet-location { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.vet-location-info { display: flex; align-items: center; gap: 4px; min-width: 0; cursor: pointer; }
.vet-location-info svg { flex: 0 0 auto; }
.vet-location-text { overflow: hidden; color: #000; font-size: 15px; font-weight: 600; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.vet-map-link { flex: 0 0 auto; color: #635CFB; font-size: 14px; font-weight: 400; line-height: 18px; cursor: pointer; }

.vet-content { flex: 1; overflow-y: auto; margin-top: 4px; padding: 12px 12px 24px; background: #FFF; border-radius: 8px 8px 0 0; -webkit-overflow-scrolling: touch; }
.vet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 7px; max-width: 480px; margin-left: auto; margin-right: auto; }
.vet-card { min-width: 0; cursor: pointer; }
.vet-card--static { cursor: default; }
.vet-card-photo-wrap { position: relative; width: 100%; aspect-ratio: 172 / 148; overflow: hidden; border-radius: 16px; background: #F2F2F7; }
.vet-card-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.vet-top-badge { position: absolute; top: 8px; left: 8px; padding: 2px 6px; border-radius: 6px; background: #635CFB; color: #FFF; font-size: 12px; font-weight: 500; line-height: 15px; }
.vet-card-name { overflow: hidden; margin-top: 9px; color: #000; font-size: 16px; font-weight: 700; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.vet-card-status { margin-top: 4px; color: #1BA23D; font-size: 12px; font-weight: 500; line-height: 17px; }
.vet-card-address, .vet-card-distance { overflow: hidden; color: #8E8E93; font-size: 12px; font-weight: 400; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.vet-card-address { margin-top: 4px; }
.vet-empty { grid-column: 1 / -1; padding: 32px 12px; color: #8E8E93; font-size: 14px; text-align: center; }
/* Зоомагазины (Figma 3863-203): строка «Найдено N магазинов» и шаг сетки 16 */
.shop-found { margin-bottom: 12px; color: #8E8E93; font-size: 12px; font-weight: 400; line-height: 15px; }
.shop-found:empty { display: none; }
.vet-grid--shops { gap: 16px 7px; }

/* Скелетоны ветклиник (только при первом открытии без кэша) */
.vet-skel-img { width: 100%; aspect-ratio: 172 / 148; border-radius: 16px; }
.vet-skel-line { height: 14px; margin-top: 9px; border-radius: 6px; }
.vet-skel-line.sm { height: 11px; margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ДЕТАЛЬНЫЙ ЭКРАН КЛИНИКИ (Figma node 3851-778)
   ═══════════════════════════════════════════════════════════════════════════ */
.vetc-screen { flex-direction: column; align-items: stretch; justify-content: flex-start; background: #FFF; overflow: hidden; }
/* Пока открыта шторка карты — прячем содержимое, чтобы сквозь затемнение не
   просвечивал экран (как #screen-ad-details.modal-open в объявлении).
   Экран зоомагазина использует ту же шторку «Адрес» — правила общие. */
#screen-vet-clinic > *,
#screen-pet-shop > * { transition: opacity .4s; }
#screen-vet-clinic.modal-open > *,
#screen-pet-shop.modal-open > * { opacity: 0; pointer-events: none; }
.vetc-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 56px; }

/* Прячем полосу прокрутки (жёлоб справа), сам скролл остаётся рабочим —
   тот же приём, что у .vetc-hero-track. Списки клиник/магазинов (.vet-content)
   и экраны деталей (клиника, магазин, товар). Иначе при прокрутке справа
   появляется полоса и «съедает» правый отступ — сетка выглядит смещённой влево. */
.vet-content, .vetc-scroll, .shopc-scroll, .prodc-scroll { scrollbar-width: none; }
.vet-content::-webkit-scrollbar,
.vetc-scroll::-webkit-scrollbar,
.shopc-scroll::-webkit-scrollbar,
.prodc-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Верхняя панель (избранное + меню) — как .ad-header */
.vetc-topbar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; background: #FFF; z-index: 210; }
.vetc-topbar-actions { display: flex; align-items: center; gap: 0; }
.vetc-action-btn { display: flex; align-items: center; justify-content: center; padding: 4px; border: 0; background: none; cursor: pointer; transition: transform .15s; -webkit-tap-highlight-color: transparent; }
#vetc-fav-btn.active svg path,
#shopc-fav-btn.active svg path { fill: #635CFB; }
body.tg-active.platform-ios.tg-fullscreen .vetc-topbar { top: calc(env(safe-area-inset-top, 0px) + 23px); align-items: flex-end; padding-bottom: 8px; }
/* .shopc-scroll — тот же отступ: иначе в fullscreen шапка съезжает вниз,
   а контент остаётся под нативными кнопками Telegram */
body.tg-active.platform-ios.tg-fullscreen .vetc-scroll,
body.tg-active.platform-ios.tg-fullscreen .shopc-scroll { margin-top: calc(56px + env(safe-area-inset-top, 0px) + 23px); }

/* Hero */
.vetc-hero { position: relative; width: 100%; }
.vetc-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.vetc-hero-track::-webkit-scrollbar { display: none; }
.vetc-hero-img { display: block; flex: 0 0 100%; width: 100%; height: 220px; object-fit: cover; scroll-snap-align: start; background: #F2F2F7; }
.vetc-hero-dots { display: flex; gap: 4px; justify-content: center; }
.vetc-hero-dots:not(:empty) { padding-top: 8px; }
.vetc-hero-dot { width: 6px; height: 6px; border-radius: 50%; background: #E5E5EA; }
.vetc-hero-dot.active { background: #635CFB; }

.vetc-divider { height: 1px; background: #D9D9D9; border-radius: 21px; }

.vetc-body { display: flex; flex-direction: column; padding: 24px 12px; }

/* Инфо */
.vetc-info { display: flex; flex-direction: column; gap: 8px; }
.vetc-name { color: #000; font-size: 20px; font-weight: 700; line-height: 29px; }
.vetc-rating-row { display: flex; align-items: center; gap: 6px; }
.vetc-star-gold { flex: 0 0 20px; }
.vetc-rating-val { color: #000; font-size: 16px; font-weight: 500; line-height: 23px; }
.vetc-rdiv { width: 1px; height: 16px; background: #E5E8EA; border-radius: 13px; }
.vetc-review-count { color: #8E8E93; font-size: 12px; font-weight: 500; line-height: 17px; }

/* О клинике */
.vetc-about { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.vetc-section-head { display: flex; align-items: center; gap: 8px; color: #000; font-size: 16px; font-weight: 600; line-height: 23px; }
.vetc-section-head svg { flex: 0 0 20px; }
.vetc-about-text { color: #000; font-size: 14px; font-weight: 400; line-height: 20px; }

.vetc-section-title { color: #000; font-size: 16px; font-weight: 600; line-height: 23px; }

/* Прайс-лист */
.vetc-block--prices { margin-top: 21px; }
.vetc-price-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.vetc-price-item { display: flex; flex-direction: column; gap: 4px; padding: 13px 19px; border: 1px solid #EEEFF0; border-radius: 12px; background: #F3F4F6; }
.vetc-price-name { color: #8E8E93; font-size: 14px; font-weight: 400; line-height: 20px; }
.vetc-price-val { color: #000; font-size: 16px; font-weight: 700; line-height: 23px; }
.vetc-price-item.is-hidden { display: none; }
.vetc-more-btn { width: 100%; height: 48px; margin-top: 12px; border: 0; border-radius: 12px; background: rgba(99, 92, 251, .12); color: #635CFB; font-size: 14px; font-weight: 600; line-height: 20px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vetc-more-btn.is-hidden { display: none; }

/* График работы */
.vetc-block--sched { margin-top: 30px; }
.vetc-sched-sub { margin-top: 8px; color: #8E8E93; font-size: 14px; font-weight: 400; line-height: 20px; }
.vetc-sched-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.vetc-sched-row { display: grid; grid-template-columns: 182fr 139fr; column-gap: 30px; align-items: center; }
.vetc-sched-day, .vetc-sched-time { display: flex; align-items: center; min-width: 0; }
.vetc-sched-day { gap: 10px; }
.vetc-sched-time { gap: 12px; }
.vetc-sched-day svg, .vetc-sched-time svg { flex: 0 0 20px; }
.vetc-sched-day span { color: #8E8E93; font-size: 14px; font-weight: 500; line-height: 20px; }
.vetc-sched-time span { color: #8E8E93; font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.vetc-sched-time.is-closed span { color: #FF383C; }
.vetc-sched-divider { margin: 4px 0; }

/* Карта */
.vetc-block--map { margin-top: 20px; }
.vetc-map-wrap { position: relative; }
.vetc-map { width: 100%; height: 200px; border-radius: 12px; overflow: hidden; background: #ECECEC; }
/* Превью карты — не тянется пальцем, тап открывает шторку с картой */
.vetc-map-tap { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vetc-block--map .vetc-divider { margin-top: 20px; }
.vetc-map-desc { margin-top: 20px; color: #8E8E93; font-size: 12px; font-weight: 400; line-height: 17px; }
.vetc-map-actions { display: flex; gap: 12px; margin-top: 20px; }
.vetc-map-open { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: #635CFB; color: #FFF; font-size: 14px; font-weight: 600; line-height: 20px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vetc-map-share { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: rgba(99, 92, 251, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Отзывы */
.vetc-block--reviews { margin-top: 18px; }
.vetc-rev-sub { margin-top: 8px; color: #8E8E93; font-size: 14px; font-weight: 400; line-height: 20px; }
.vetc-rev-sub:empty { display: none; }
.vetc-rev-summary { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.vetc-rev-big { color: #000; font-size: 32px; font-weight: 700; line-height: 46px; }
.vetc-rev-sum-right { display: flex; flex-direction: column; gap: 8px; }
.vetc-rev-stars { display: flex; gap: 12px; }
.vetc-rev-count { color: #8E8E93; font-size: 12px; font-weight: 500; line-height: 17px; }
.vetc-histogram { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.vetc-hist-row { display: flex; align-items: center; gap: 12px; min-height: 25px; }
.vetc-hist-num { flex: 0 0 auto; min-width: 11px; color: #4D4C58; font-size: 17px; font-weight: 600; line-height: 25px; text-align: center; }
.vetc-hist-bar { flex: 1; height: 13px; border-radius: 17px; background: #EEEFF0; overflow: hidden; }
.vetc-hist-fill { height: 100%; border-radius: 13px; background: #FFCC00; transition: width .3s; }
.vetc-rev-list { display: flex; flex-direction: column; gap: 20px; margin-top: 41px; }
.vetc-review { display: flex; flex-direction: column; }
.vetc-review-head { display: flex; align-items: center; gap: 12px; }
.vetc-review-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; object-fit: cover; background: #D9D9D9; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 16px; font-weight: 600; }
.vetc-review-name { color: #000; font-size: 14px; font-weight: 600; line-height: 20px; }
.vetc-review-stars { display: flex; gap: 10px; margin-top: 16px; }
.vetc-review-body { margin-top: 8px; color: #000; font-size: 14px; font-weight: 400; line-height: 20px; }
.vetc-star { width: 20px; height: 20px; flex: 0 0 20px; }

/* Написать отзыв */
.vetc-write { margin-top: 20px; padding: 12px; border: 1px solid #635CFB; border-radius: 16px; background: rgba(99, 92, 251, .12); }
.vetc-write-top { display: flex; align-items: flex-start; gap: 10px; }
.vetc-write-icon { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(99, 92, 251, .2); }
.vetc-write-copy { min-width: 0; }
.vetc-write-title { color: #000; font-size: 14px; font-weight: 600; line-height: 18px; }
.vetc-write-text { margin-top: 8px; color: #8E8E93; font-size: 12px; font-weight: 400; line-height: 15px; }
.vetc-write-btn { width: 100%; height: 40px; margin-top: 12px; border: 0; border-radius: 12px; background: #635CFB; color: #FFF; font-size: 14px; font-weight: 500; line-height: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Нижняя панель «Позвонить» */
.vetc-callbar { flex-shrink: 0; padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px)); background: #FFF; }
.vetc-call-btn { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #635CFB; color: #FFF; font-size: 14px; font-weight: 500; line-height: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ═══ Детальный экран товара (Figma node 3915-109) ═══ */
/* Экран и контент белые — верх (за нативной шапкой Telegram и в safe-area)
   белый, пустое место под описанием тоже белое. Серый #F3F4F6 — только два
   чистых разделителя (как зазоры в Figma): 4-px шов между карточкой товара и
   «Описанием» и 8-px полоса над блоком кнопки. Никакой «плавающей» серой
   заливки переменной высоты. */
.prodc-screen { flex-direction: column; align-items: stretch; justify-content: flex-start; background: #FFF; overflow: hidden; }
.prodc-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 56px; overscroll-behavior: none; background: #FFF; }

/* Верхняя панель: название магазина по центру + избранное/поделиться справа.
   «Назад» — нативная кнопка Telegram слева (как на всех детальных экранах). */
.prodc-topbar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; padding: 0 8px; background: #FFF; z-index: 210; }
.prodc-topbar-title { flex: 1; text-align: center; padding: 0 44px; font-size: 16px; font-weight: 600; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prodc-topbar-actions { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.prodc-action-btn { display: flex; align-items: center; justify-content: center; padding: 4px; border: 0; background: none; cursor: pointer; transition: transform .15s; -webkit-tap-highlight-color: transparent; }
#prodc-fav-btn.active svg path { fill: #635CFB; }
body.tg-active.platform-ios.tg-fullscreen .prodc-topbar { top: calc(env(safe-area-inset-top, 0px) + 23px); }
body.tg-active.platform-ios.tg-fullscreen .prodc-scroll { margin-top: calc(56px + env(safe-area-inset-top, 0px) + 23px); }

/* Полноширинные белые блоки; 4-px серый шов между карточкой товара и «Описанием» */
.prodc-card { background: #FFF; }
.prodc-desc-card { border-top: 4px solid #F3F4F6; }

/* Фото товара — по центру на белом, как в макете (155×218) */
.prodc-image-wrap { display: flex; align-items: center; justify-content: center; padding: 12px 12px 0; min-height: 220px; }
.prodc-image { display: block; max-width: 60%; max-height: 218px; object-fit: contain; }

/* Краткая информация */
.prodc-info { padding: 16px 12px; }
.prodc-info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prodc-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; color: #000; }
.prodc-stock { flex-shrink: 0; margin-top: 2px; font-size: 14px; font-weight: 400; line-height: 18px; color: #34C759; white-space: nowrap; }
.prodc-stock.prodc-stock--out { color: #8E8E93; }
.prodc-subtitle { margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 18px; color: #8E8E93; }
.prodc-subtitle:empty { display: none; }
.prodc-price { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 22px; color: #000; }
.prodc-price-label { font-weight: 400; color: #8E8E93; }

/* Описание */
.prodc-desc-card { padding: 12px 12px 20px; }
.prodc-desc-title { font-size: 16px; font-weight: 600; line-height: 20px; color: #000; }
.prodc-desc-text { margin-top: 12px; font-size: 14px; font-weight: 400; line-height: 22px; color: #000; white-space: pre-line; }

/* Комментарии к товару (Figma 3978-34) */
.prodc-comments-card { padding: 20px 12px 24px; border-top: 4px solid #F3F4F6; }
.pcm-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcm-title { font-size: 16px; font-weight: 600; line-height: 23px; color: #211F2E; }
.pcm-sort { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 400; line-height: 17px; color: #635CFB; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pcm-input-wrap { position: relative; margin-top: 12px; }
.pcm-input { display: block; width: 100%; box-sizing: border-box; min-height: 100px; max-height: 220px; padding: 12px 52px 12px 12px; border: 0; border-radius: 12px; background: #F3F4F6; resize: none; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 20px; color: #000; outline: none; overflow-y: auto; }
.pcm-input::placeholder { color: #8E8E93; }
.pcm-send { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #635CFB; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .15s, transform .15s; }
.pcm-send:disabled { opacity: .4; }
.pcm-send:active { transform: scale(.92); }
.pcm-reply-chip { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 8px 6px 12px; border-radius: 10px; background: #ECECFB; }
.pcm-reply-chip[hidden] { display: none; }
.pcm-reply-chip-text { flex: 1; font-size: 12px; font-weight: 500; line-height: 16px; color: #635CFB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcm-reply-cancel { flex-shrink: 0; display: flex; padding: 4px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pcm-desc { margin-top: 12px; font-size: 14px; font-weight: 400; line-height: 20px; color: #8E8E93; }
.pcm-list { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.pcm-empty { font-size: 14px; font-weight: 400; line-height: 20px; color: #8E8E93; }
.pcm-item { display: flex; flex-direction: column; gap: 8px; }
.pcm-reply-to { font-size: 12px; font-weight: 400; line-height: 16px; color: #8E8E93; }
.pcm-reply-to b { font-weight: 500; color: #635CFB; }
.pcm-item-head { display: flex; align-items: center; gap: 12px; }
.pcm-avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #D9D9D9; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #FFF; overflow: hidden; }
.pcm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcm-names { min-width: 0; }
.pcm-name { font-size: 14px; font-weight: 600; line-height: 20px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcm-date { font-size: 12px; font-weight: 400; line-height: 17px; color: #8E8E93; }
.pcm-text { font-size: 14px; font-weight: 400; line-height: 20px; color: #000; white-space: pre-line; word-break: break-word; }
.pcm-reply-btn { align-self: flex-start; border: 0; background: none; padding: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: #635CFB; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Фиксированная нижняя кнопка «Связаться с магазином».
   8-px серая полоса сверху — чистый разделитель от контента (зазор из Figma). */
.prodc-callbar { flex-shrink: 0; padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px)); background: #FFF; border-top: 8px solid #F3F4F6; }
.prodc-contact-btn { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #635CFB; color: #FFF; font-size: 14px; font-weight: 500; line-height: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Модалка отзыва */
/* padding-top 24px = прежние 8px шторки + 4px грабера + его 12px отступа,
   чтобы заголовок остался на том же месте после удаления грабера */
.vetc-review-sheet { padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.vetc-review-title { color: #000; font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.vetc-mstars { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.vetc-mstars .vetc-star { width: 34px; height: 34px; flex: 0 0 34px; cursor: pointer; }
.vetc-review-textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #E5E5EA; border-radius: 12px; background: #F7F7F9; color: #000; font-size: 14px; font-family: var(--font); resize: none; outline: none; }
.vetc-review-textarea:focus { border-color: #635CFB; }
.vetc-review-submit { width: 100%; height: 48px; margin-top: 16px; border: 0; border-radius: 12px; background: #635CFB; color: #FFF; font-size: 15px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vetc-review-submit:disabled { opacity: .5; }

/* ═══════════════════════════════════════════════════════════════════════════
   ДЕТАЛЬНЫЙ ЭКРАН ЗООМАГАЗИНА (Figma 3868-1110)
   Блоки — белые карточки на сером фоне; общие части (галерея, рейтинг,
   график, карта, «Позвонить») переиспользуют классы .vetc-*
   ═══════════════════════════════════════════════════════════════════════════ */

/* Экран белый, серый — только на скролле: над шапкой (в fullscreen она сдвинута
   вниз под нативные кнопки Telegram) должно просвечивать белое, как у клиники */
.shopc-screen { flex-direction: column; align-items: stretch; justify-content: flex-start; background: #FFF; overflow: hidden; }
.shopc-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 56px; display: flex; flex-direction: column; gap: 4px; background: #F3F4F6; }
/* flex-shrink:0 — иначе во flex-колонке со скроллом карточки сжимаются по высоте */
.shopc-card { flex-shrink: 0; padding: 12px; background: #FFF; }
.shopc-card--head { padding: 0; }
.shopc-head-body { padding: 24px 12px 12px; }

/* «Для кого ищете товары?» */
/* Экран «Потерянные питомцы» (Figma 3979-419) */
.lostl-toolbar { flex-shrink: 0; background: #FFF; padding: 4px 12px 12px; }
.lostl-ask { font-size: 14px; font-weight: 600; color: #000; }
.lostl-count { font-size: 14px; font-weight: 500; color: #000; padding: 4px 0 12px; }

/* Сетка «Потерянных» лежит в .vet-content (свой боковой padding 12px), а сама
   .m-ads-grid добавляет ещё padding 0 12px — вместе это давало двойной отступ и
   карточки были уже, чем в «Новых объявлениях»/категориях. Гасим боковой padding
   сетки внутри vet-content, чтобы ширина карточек совпадала (12px, как везде). */
.vet-content .m-ads-grid { padding-left: 0; padding-right: 0; }

.shopc-pet-options { display: flex; gap: 8px; margin-top: 12px; }
.shopc-pet-opt { flex: 1; min-width: 0; height: 39px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 1px solid transparent; border-radius: 12px; background: #F3F4F6; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.shopc-pet-opt.active { border-color: #635CFB; background: rgba(99, 92, 251, .12); }
.shopc-pet-icon { flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; }
.shopc-pet-label { color: #000; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopc-pets-hint { margin-top: 8px; color: #8E8E93; font-size: 11px; font-weight: 400; line-height: 16px; text-align: center; }

/* Тоггл «Новые объявления» (Кошки/Собаки) переиспользует .shopc-pet-opt из
   «Потерянные питомцы», но по макету Figma «Pet category item»: пилюля 171×40,
   отступы 5px 46px, gap 8px, активная — рамка Main-color + фон rgba(99,92,251,.1) */
#m-home-tabs { margin: 4px 0 14px; padding: 0 12px; gap: 8px; }
/* Горизонтальный padding из Figma (46px) не нужен: пилюли flex:1 и так делят
   ряд поровну, контент центрируется — большой отступ лишь обрезал «Собаки» */
#m-home-tabs .shopc-pet-opt { height: 40px; gap: 8px; padding: 5px 12px; border-radius: 12px; }
#m-home-tabs .shopc-pet-label { overflow: visible; }
#m-home-tabs .shopc-pet-opt.active { border-color: #635CFB; background: rgba(99, 92, 251, .1); }

/* Тоггл Кошки/Собаки в разделе «Вязка»: вынесен из белой шапки в тело списка,
   стоит над строкой «N объявлений» (первый элемент .cats-body, фон белый) */
#cats-mating-toggle { margin: 0; padding: 14px 12px 2px; }
#cats-mating-toggle .shopc-pet-opt { height: 40px; gap: 8px; padding: 5px 12px; border-radius: 12px; }
#cats-mating-toggle .shopc-pet-label { overflow: visible; }
#cats-mating-toggle .shopc-pet-opt.active { border-color: #635CFB; background: rgba(99, 92, 251, .1); }

/* «Категории товаров» */
.shopc-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.shopc-cat { height: 103px; display: flex; flex-direction: column; align-items: center; padding: 12px 2px 0; border-radius: 12px; background: #F3F4F6; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.shopc-cat-icon { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.shopc-cat-label { margin-top: 5px; height: 30px; color: #000; font-size: 10px; font-weight: 600; line-height: 15px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   ТОВАРЫ КАТЕГОРИИ МАГАЗИНА (Figma 3873-112)
   Шапка, поиск, чипы и сетка — общие классы .vet-* (совпадают с макетом
   вплоть до сетки gap: 20px 7px). Здесь только то, чего в них нет.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Заголовок центрируется по всей ширине, иконка «поделиться» — поверх справа */
.prod-header-inner { position: relative; }
.prod-share { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; padding: 4px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.prod-filter-btn { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: #F2F2F7; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.prod-sort { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 6px 6px 6px 10px; border: 0; border-radius: 8px; background: #F2F2F7; color: #000; font-family: var(--font); font-size: 12px; font-weight: 400; line-height: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.prod-sort svg { flex: 0 0 16px; }

/* Карточка товара */
.prod-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
/* 1:1 с Figma (node 4227-38, Image Container): фон #F3F4F6, radius 20, без рамки.
   Фото товара должны быть PNG-вырезками с прозрачным фоном — тогда полосы нет.
   Если у фото залит белый фон, на плитке видна серая полоса → перезалить фото. */
.prod-img-wrap { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 20px; background: #F3F4F6; overflow: hidden; }
.prod-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prod-info { display: flex; flex-direction: column; gap: 12px; }
.prod-text { display: flex; flex-direction: column; gap: 8px; }
.prod-brand { overflow: hidden; color: #000; font-size: 14px; font-weight: 700; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.prod-type { overflow: hidden; color: #000; font-size: 14px; font-weight: 400; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.prod-price { color: #635CFB; font-size: 16px; font-weight: 700; line-height: 18px; }

/* Скелетоны и пустое состояние */
.prod-skel-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; }
.prod-empty { grid-column: 1 / -1; padding: 40px 0; color: #8E8E93; font-size: 14px; text-align: center; }

