/* extra.css — наши дополнения поверх style.css и shop.css разработчика.
   Источник — signalplus/seo/extra.css; в public/ его копирует seo.py.
   Править здесь, а не в public/: новый архив разработчика заменит public/ целиком. */

/* ── хлебные крошки на страницах разделов ── */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:#626e82;margin-bottom:6px}
.crumbs a{color:inherit;text-decoration:none}
.crumbs a:hover{color:var(--blue)}

/* ── страница раздела каталога ── */
.section-intro{padding:14px 0 0}
.section-intro h1{margin:10px 0 18px}
.section-intro p{margin:0}
.section-products{max-width:none;margin:40px 0 0}
@media(min-width:1001px){.section-products .related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* кнопки «Подробнее» на одной линии, даже если подпись у соседа в две строки */
.section-products .related-card{display:flex;flex-direction:column;align-items:flex-start}
.section-products .related-card>a:first-child{display:block;width:100%}
.section-products .related-card p{flex:1}
.section-guide{padding:56px 0 8px}
.section-guide h2:first-child{margin-top:0}
.info-page h3{font-size:19px;font-weight:600;line-height:1.35;margin:26px 0 8px}
.info-page h3+p{margin-top:0}
.info-page strong{color:var(--ink);font-weight:600}
.info-page p a,.about-sections a{color:var(--blue);text-underline-offset:3px}
.section-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:28px 0 0;font-size:14px;color:#626e82}
.section-links a{padding:11px 18px;border-radius:24px;background:var(--surface);color:var(--ink);text-decoration:none}
.section-links a:hover{background:var(--line)}

/* ── ссылки на разделы над названием товара ── */
.purchase-panel .eyebrow a{color:inherit;text-decoration:none}
.purchase-panel .eyebrow a:hover{text-decoration:underline}

/* ════ Правки вёрстки по проверке 07.10.2026 (qa_layout.py: 14 страниц × 7 ширин) ════ */

/* Кнопки «Подробнее» в одном ряду стояли на разной высоте (до 24 px),
   когда у соседней карточки название или подпись в две строки. */
.related-card{display:flex;flex-direction:column;align-items:flex-start}
.related-card>a:first-child{display:block;width:100%}
.related-card>p{flex:1}
/* 601–1100 px карточка — сетка: последний ряд тянется, кнопка прижата к низу.
   На телефоне карточка — колонка, там align-self сдвинул бы кнопку вправо. */
@media(min-width:601px) and (max-width:1100px){
  .product-body{grid-template-rows:auto auto auto 1fr}
  .product-bottom{align-self:end}
}
@media(max-width:600px){.product-bottom{margin-top:auto;padding-top:9px}}

/* Текст 9–10 px: артикул, «Цена на Ozon», подписи в шапке, реквизиты, фильтры на телефоне. */
.product-sku,.price-link{font-size:11px}
.campaign .eyebrow{font-size:10px}
.header-actions>a,.header-actions>button{font-size:11px}
.footer>p{font-size:11px}
@media(max-width:600px){
  .price-link{font-size:11px}
  .catalog .muted{font-size:11px}
  .filters button{font-size:12px}
  .product-description{font-size:11px;min-height:31px}
  .category{font-size:11px}
}
@media(max-width:350px){.text-button{font-size:11px}}

/* Подвал: десять ссылок и реквизиты. На широком экране реквизиты одной строкой,
   на телефоне строки ссылок высотой под палец (были 16 px). */
@media(min-width:1101px){
  .footer nav{flex:1 1 0;min-width:0;row-gap:10px;padding-top:8px}
  .footer>p{white-space:nowrap;margin:8px 0 0}
}
@media(max-width:700px){
  .footer nav{row-gap:0}
  .footer nav a{padding:9px 0}
  .pdp-back{padding:8px 0;margin-bottom:6px}
  .share-button{min-height:36px}
}

/* «Другие устройства этой категории» раскрывалось стандартным треугольником браузера,
   остальные блоки страницы — плюсом справа. В Safari треугольник оставался у всех. */
summary::-webkit-details-marker{display:none}
.pdp-models summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:0}
.pdp-models summary::after{content:'+';color:#0054ff;font-size:22px;line-height:1}
.pdp-models[open] summary::after{content:'−'}

/* ── уведомление о cookie (seo/consent.js) ── */
.cookie-note{position:fixed;z-index:25;left:16px;right:16px;bottom:16px;max-width:760px;margin:0 auto;display:flex;align-items:center;gap:16px;padding:14px 14px 14px 20px;border-radius:18px;background:var(--ink);color:#fff;box-shadow:0 12px 40px rgba(16,20,33,.22);font-size:13px;line-height:1.45}
.cookie-note p{margin:0;flex:1}
.cookie-note a{color:#9dffe7;text-underline-offset:3px}
.cookie-note button{flex:none;background:#fff;color:var(--ink);border-radius:24px;padding:10px 18px;font-size:13px;font-weight:500;min-height:40px}
@media(max-width:700px){
  .cookie-note{left:10px;right:10px;bottom:10px;gap:12px;padding:12px 12px 12px 16px;font-size:12px}
  /* на странице товара внизу закреплена панель «Купить на Ozon» — уведомление встаёт над ней */
  body:has(.mobile-buybar) .cookie-note{bottom:calc(92px + env(safe-area-inset-bottom))}
}

/* ── страница политики ── */
.legal-page h2{font-size:21px;margin:32px 0 12px}
.legal-page p{font-size:16px;margin:0 0 12px}
.legal-page .legal-date{color:#626e82;font-size:14px;margin:-24px 0 28px}
.legal-page button.blue-button{margin:6px 0 4px;font-size:14px}

/* Mobile fixes · 08.10.2026. Safari painted the sort pseudo-element outside
   its flex container. Put the icon on the label itself, keeping native select. */
@media(max-width:600px){
  .sort{width:44px;height:44px;background:#f5f6f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596679' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 20V4m-4 4 4-4 4 4M16 4v16m-4-4 4 4 4-4'/%3E%3C/svg%3E") center/20px no-repeat;border-radius:12px}
  .sort::after{display:none}
  .sort select{width:44px;max-width:44px;height:44px;background:transparent;font-size:16px}
  .search input{font-size:16px}
  .catalog h2{white-space:normal}
}
html{overscroll-behavior-x:none}
.hero-controls>button,.slide-arrows button{padding:0;line-height:1;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hero-controls svg{display:block}
@media(max-width:600px){
  .hero-controls{left:18px;right:18px;bottom:14px;gap:10px}
  .hero-controls>button{width:44px;height:44px}
  .hero-controls .dots{height:44px;padding:0 8px;gap:0;border-radius:24px}
  .dots button,.dots button[aria-current=true]{width:44px;height:44px;flex:0 0 44px}
  .dots button[aria-current=true]::after{width:28px}
}
/* The close icon uses strokes rather than a font-dependent × baseline. */
#zoom-dialog{padding-top:64px;max-height:calc(100dvh - 24px);overscroll-behavior:contain}
.zoom-close{top:10px;right:10px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;line-height:1;z-index:2}
.zoom-close svg{display:block;width:20px;height:20px;stroke-width:2}
.zoom-close:focus-visible{outline-offset:-2px}
#zoom-dialog[data-pointer-open=true] .zoom-close:focus-visible{outline:none}
.zoom-image-viewport{max-height:calc(100dvh - 220px);touch-action:pan-y pinch-zoom}
.zoom-image-viewport[data-zoomed=true]{touch-action:pan-x pan-y pinch-zoom}
.zoom-image-viewport img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.zoom-tools button,.zoom-nav button{padding:0;min-width:44px;min-height:44px;line-height:1;display:grid;place-items:center}

#zoom-dialog[data-single=true] .zoom-nav{display:none}

/* WebKit also includes the visually hidden label in flex scroll overflow. */
.sort{overflow:hidden}
.sort:focus-within{outline:2px solid var(--blue);outline-offset:3px}

/* ── заголовок карточки товара ──
   08.10.2026 заголовок стал длиннее: в нём слова, которыми товар ищут. При прежних 36/30 px
   он занимал 4–5 строк на телефоне и отодвигал фото вниз. Кегль меньше, строки ровнее. */
.pdp-grid .purchase-panel h1{font-size:30px;line-height:1.16;letter-spacing:-.8px;text-wrap:balance}
@media(max-width:1000px){.pdp-grid .purchase-panel h1{font-size:26px;letter-spacing:-.6px}}
@media(max-width:700px){.pdp-grid .purchase-panel h1{font-size:24px;letter-spacing:-.5px}}
@media(max-width:350px){.pdp-grid .purchase-panel h1{font-size:22px}}

/* Catalogue actions share the full card width and the same row baseline. */
@media(max-width:1100px){
  .product-body{display:flex;flex-direction:column;flex:1;min-width:0}
  .product-bottom{display:flex;flex-direction:column-reverse;align-items:stretch;align-self:stretch;width:100%;margin-top:auto;padding-top:14px;gap:8px}
  .product-bottom .detail{width:100%;min-height:44px;padding:11px 12px;border-radius:24px;text-align:center}
  .product-bottom .price-link{text-align:left}
}
/* Use opacity for image changes; avoid moving the product frame. */
.motion-previous{pointer-events:none!important;z-index:1!important;animation:none!important;transition:none!important}
.zoom-image-viewport{position:relative}
.hero.is-changing .hero-copy{animation:signal-copy-in .48s cubic-bezier(.22,1,.36,1) both}
@keyframes signal-copy-in{from{opacity:.72;transform:translateY(4px)}to{opacity:1;transform:none}}
.photo-enter{animation:signal-photo-in .42s cubic-bezier(.22,1,.36,1) both}
@keyframes signal-photo-in{from{opacity:.8}to{opacity:1}}
.blue-button,.detail,.favorite,.gallery-thumbs button{transition:background-color .22s ease,border-color .22s ease,transform .22s cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){
  .hero.is-changing .hero-copy,.photo-enter{animation:none!important}
  .blue-button,.detail,.favorite,.gallery-thumbs button{transition:none}
}

/* Reserve two copy lines so changing a banner does not move the catalogue. */
.hero-copy p{min-height:2.9em}

.gallery-stage .zoom-icon{z-index:2}

/* Shared favourite controls: fixed circular targets and centred symmetric SVG. */
.product-photo .favorite,.pdp-favorite{padding:0;border:1px solid #e6ebf2;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;background:#fff;color:var(--ink);box-shadow:0 2px 8px #172d4b08;flex-shrink:0}
.product-photo .favorite{width:44px;height:44px;top:10px;right:10px}
.favorite svg,.pdp-favorite svg,#favorites-toggle svg{display:block;width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.product-photo .favorite:hover{transform:none}
.product-photo .favorite[aria-pressed=true],.pdp-favorite[aria-pressed=true]{background:#edf3ff;border-color:#bfd2ff;color:var(--blue);box-shadow:none}
.favorite[aria-pressed=true] svg,.pdp-favorite[aria-pressed=true] svg,#favorites-toggle[aria-pressed=true] svg{fill:var(--blue);stroke:var(--blue)}
.favorite:active,.pdp-favorite:active{transform:scale(.96)}
.favorite,.pdp-favorite{transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s cubic-bezier(.22,1,.36,1)}
.gallery-controls>button{padding:0;line-height:1;display:flex;align-items:center;justify-content:center}
.gallery-controls>button svg{display:block;width:20px;height:20px}
@media(max-width:800px){
  .header-actions #favorites-toggle{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;justify-content:center;gap:0;border-radius:50%}
}
@media(hover:hover) and (pointer:fine){.product-photo .favorite:not([aria-pressed=true]):hover,.pdp-favorite:not([aria-pressed=true]):hover{background:#f4f7fc;border-color:#cdd7e5}}
@media(prefers-reduced-motion:reduce){.favorite,.pdp-favorite{transition:none}.favorite:active,.pdp-favorite:active{transform:none}}

.zoom-tools svg,.zoom-nav svg{display:block;width:20px;height:20px}
.search>svg{display:block;width:20px;height:20px}

/* Four persistent mobile destinations, with iPhone safe-area space. */
:root{--mobile-nav-space:calc(64px + env(safe-area-inset-bottom,0px))}
.mobile-tabs{display:none}
@media(max-width:800px){
 body.mobile-navigation{padding-bottom:calc(var(--mobile-nav-space) + 20px)}
 body.mobile-navigation:has(.mobile-buybar){padding-bottom:calc(var(--mobile-nav-space) + 96px)}
 .mobile-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:30;left:0;right:0;bottom:0;height:var(--mobile-nav-space);padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fffffff5;backdrop-filter:blur(16px);border-top:1px solid #e5eaf2;box-shadow:0 -3px 18px #172d4b06}
 .mobile-tabs>a{min-height:52px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:3px 2px;color:#647084;font-size:11px;line-height:1.25;font-weight:500;border-radius:12px}
 .mobile-tabs>a[aria-current=page]{color:var(--blue);background:#edf3ff}
 .mobile-tab-icon{position:relative;width:24px;height:24px;display:block}
 .mobile-tab-icon svg{display:block;width:24px;height:24px;stroke-width:1.8}
 .mobile-tab-count{position:absolute;top:-5px;right:-12px;min-width:17px;height:17px;padding:0 3px;display:grid;place-items:center;border-radius:12px;background:var(--blue);color:white;font-size:10px;line-height:1;border:2px solid white}
 .mobile-navigation .mobile-buybar{bottom:var(--mobile-nav-space);padding-bottom:12px;z-index:29}
 body.mobile-navigation .cookie-note{bottom:calc(var(--mobile-nav-space) + 12px)}
 body.mobile-navigation:has(.mobile-buybar:not([hidden])) .cookie-note{bottom:calc(var(--mobile-nav-space) + 94px)}
 body.mobile-navigation .toast{bottom:calc(var(--mobile-nav-space) + 16px)}
 body.mobile-navigation:has(.mobile-buybar:not([hidden])) .toast{bottom:calc(var(--mobile-nav-space) + 94px)}
 body.nav-keyboard .mobile-tabs,body.nav-keyboard .mobile-buybar{display:none}
}
@media(min-width:701px) and (max-width:800px){
 body.mobile-navigation:has(.mobile-buybar){padding-bottom:calc(var(--mobile-nav-space) + 20px)}
 body.mobile-navigation:has(.mobile-buybar:not([hidden])) .cookie-note{bottom:calc(var(--mobile-nav-space) + 12px)}
 body.mobile-navigation:has(.mobile-buybar:not([hidden])) .toast{bottom:calc(var(--mobile-nav-space) + 16px)}
}
/* On a short landscape screen, keep the middle of the page usable. */
@media(max-width:800px) and (max-height:480px){
 body.mobile-navigation .cookie-note,body.mobile-navigation:has(.mobile-buybar:not([hidden])) .cookie-note{top:8px;bottom:auto;max-height:calc(100dvh - var(--mobile-nav-space) - 16px)}
}
@media(max-width:800px){body.nav-keyboard .cookie-note{display:none}}
