/* 07.11.2026 (ux1107): фильтры-галочки, цены магазинов в карточке, магазины на первом экране товара,
   график цены, страница магазинов, компактная шапка на телефоне. Подключается после additions.css. */

/* ——— логотип магазина на белой плашке: логотипы сделаны под светлый фон ——— */
.shop-plate{display:grid;place-items:center;flex:none;background:#fff;border-radius:8px;padding:6px 10px;height:40px;min-width:0}
.shop-plate img{display:block;max-height:100%;max-width:100%;width:auto;height:auto}

/* ——— шапка раздела: короткий первый экран ——— */
.catalog-page .catalog-title{margin-bottom:10px}
.catalog-page .catalog-intro{margin:0 0 16px;font-size:15px;line-height:1.6;max-width:1050px}
.quick-picks{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;margin:0 0 20px;padding-bottom:2px}
.quick-picks::-webkit-scrollbar{display:none}
.quick-picks>span{flex:none;font-size:13px;color:var(--muted)}
.quick-picks a{flex:none;white-space:nowrap;font-size:13px;padding:7px 13px;border:1px solid #cfd9e3;border-radius:999px;background:#ffffff;color:#0f1b26}
.quick-picks a small{margin-left:4px;color:#5d6d7b;font-size:12px}
.quick-picks a:hover{border-color:var(--cyan);color:var(--cyan)}
.see-also h3{font-size:16px;margin:18px 0 10px;font-family:var(--body);letter-spacing:0}
.see-also .catalog-subpages{margin:0}

/* ——— панель над результатами: сортировка, фильтры на телефоне, выбранные фильтры ——— */
.catalog-toolbar{display:flex;align-items:center;gap:10px 16px;margin-bottom:14px;min-width:0}
.sort-tabs{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#ffffff;min-width:0;overflow-x:auto;scrollbar-width:none}
.sort-tabs a,.sort-tabs span{flex:none;padding:7px 14px;border-radius:7px;font-size:14px;color:#5d6d7b;line-height:1.3}
.sort-tabs span{background:#e4effb;color:#0f1b26;font-weight:600}
.sort-tabs a:hover{color:#0f1b26;background:#f6f8fb}
.catalog-toolbar .found{margin-left:auto;font-size:14px;color:var(--muted);white-space:nowrap}
.filters-open{display:none}
.applied{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.applied a{display:inline-flex;align-items:center;gap:6px;padding:6px 10px 6px 12px;border-radius:999px;background:#e4effb;border:1px solid #cfd9e3;font-size:13px;color:#0f1b26;line-height:1.3}
.applied a span{color:#0a6fd1;font-size:17px;line-height:1}
.applied a:hover{border-color:var(--cyan)}
.applied .applied-reset{background:none;border-color:transparent;color:var(--cyan)}

/* ——— фильтры ——— */
.in-category .catalog-layout{grid-template-columns:262px minmax(0,1fr)}
.in-category .filters{padding:16px 18px}
.in-category .filters[open]>summary{padding-bottom:12px;margin-bottom:6px}
.filters[open]>summary>.filters-title{transform:none}
.filters-title{display:inline-flex;align-items:center;gap:8px;font-size:17px;font-family:var(--display)}
.filters-n,.filters-open b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--cyan);color:#ffffff;font:700 12px/1 var(--body)}
.fprice.filter-form{display:block;border-top:0;margin-top:0;padding:4px 0 14px}
.fprice .price-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fprice .price-fields input{padding:9px 10px}
.fprice .button{width:100%;margin-top:10px;min-height:38px;padding:8px 12px;font-size:13px}
.fgroup{border-top:1px solid var(--line);padding:14px 0 8px}
.fgroup h2,.fprice h2{font:700 14px/1.3 var(--body);letter-spacing:0;margin:0 0 8px;color:#0f1b26}
.fopt{display:flex;align-items:center;gap:10px;padding:6px 6px;margin:0 -6px;border-radius:6px;font-size:14px;color:#0f1b26;line-height:1.3}
.fopt:hover{background:#f6f8fb;color:#0f1b26}
.fopt i{flex:none;position:relative;width:18px;height:18px;border:1.5px solid #cfd9e3;border-radius:5px;background:#ffffff}
.fopt.on i{background:var(--cyan);border-color:var(--cyan)}
.fopt.on i::after{content:'';position:absolute;left:5px;top:1.5px;width:4px;height:9px;border:solid #ffffff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.fopt.on{color:#0f1b26;font-weight:600}
.fopt span{flex:1;min-width:0;overflow-wrap:anywhere}
.fopt small{flex:none;color:#5d6d7b;font-size:12px;font-weight:400}
.fopt img{flex:none;width:16px;height:16px;border-radius:4px;background:#fff}
.fmore>summary{list-style:none;display:inline-block;padding:6px 0;font-size:13px;font-weight:600;color:var(--cyan);cursor:pointer}
.fmore>summary::-webkit-details-marker{display:none}
.fmore[open]>summary{display:none}
.freset{display:block;margin:12px 0 2px;font-size:14px}
.fshow{display:none}
@media(min-width:801px){
 .in-category .filters>summary{pointer-events:none}
 .in-category .filters-x{display:none}
}

/* ——— карточка: цены всех магазинов ——— */
.in-category .card-content .eyebrow{display:none}
.in-category .card-content .card-title{margin-top:0}
.card-specs{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.catalog-results .card-specs{margin-block:8px 14px;font-size:13.5px}
.card-price{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap}
.card-price .price{font:700 23px/1.2 var(--display)}
.card-gap{font-size:12px;color:#5d6d7b}
.card-offers{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:1px}
.card-offers a{display:flex;align-items:center;gap:8px;padding:4px 6px;margin:0 -6px;border-radius:6px;font-size:13px;color:#0f1b26;line-height:1.3}
.card-offers a:hover{background:#f6f8fb;color:#0f1b26}
.card-offers img{flex:none;width:16px;height:16px;border-radius:4px;background:#fff;object-fit:contain}
.card-offers span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-offers b{flex:none;font-weight:600;white-space:nowrap}
.card-offers .best b{color:#0c8a55}
.card-bottom small.ad-mark{font-size:11px;color:#6b7a88;margin-top:4px}
.card-content .purchase-actions{flex-wrap:nowrap;gap:8px;margin-top:12px}
.card-content .purchase-actions>.buy-button{flex:1 1 auto;min-height:42px}
.card-content .purchase-actions>.compare-action{flex:0 0 auto;min-height:42px;padding:8px 12px;font-size:13px}

/* ——— товар: магазины на первом экране ——— */
.hero-offers{list-style:none;margin:14px 0 2px;padding:0;display:grid;gap:8px}
.hero-offers a{display:grid;grid-template-columns:116px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:8px 12px 8px 8px;border:1px solid #1d4c66;border-radius:11px;background:#061a28;color:var(--ink)}
.hero-offers a:hover{border-color:var(--cyan);color:var(--ink)}
.hero-offers li:first-child a{border-color:#2a8f6a;background:#062319}
.hero-offers .shop-plate{height:38px;padding:5px 10px}
.ho-state{font-size:13px;color:#0c8a55}
.ho-price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.ho-price b{font:700 18px/1.2 var(--display)}
.ho-price small{font-size:12px;color:#c2410c}
.ho-price small.ho-best{color:#0c8a55}
.ho-go{font-size:13px;font-weight:600;color:var(--cyan);white-space:nowrap}
.offer h3 .shop-plate{display:inline-grid;height:34px;width:110px;padding:5px 10px;vertical-align:middle;margin-right:12px}

/* ——— график цены ——— */
.price-chart{margin:18px 0 6px;padding:14px 14px 10px;border:1px solid var(--line);border-radius:12px;background:#ffffff}
.price-chart svg{display:block;width:100%;height:auto;overflow:visible}
.pc-grid{stroke:#e1e7ed;stroke-width:1}
.pc-tick{fill:#6b7a88;font:11px var(--body)}
.pc-line{fill:none;stroke:#0a6fd1;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.pc-low{fill:#0c8a55;stroke:#ffffff;stroke-width:2}
.pc-last{fill:#0a6fd1;stroke:#ffffff;stroke-width:2}
.price-chart figcaption{font-size:13px;color:var(--muted);margin-top:6px}
.pc-key{display:inline-block;width:14px;height:3px;border-radius:2px;background:#0a6fd1;vertical-align:middle;margin-right:6px}
.pc-key-low{width:9px;height:9px;border-radius:50%;background:#0c8a55;margin-left:4px}
.history-table>summary{cursor:pointer;color:var(--cyan);font-size:14px;font-weight:600;margin:12px 0}

/* ——— страница магазинов ——— */
.shops-head h1{font-size:42px}
.shops-head>p{max-width:860px;font-size:17px}
.shops-jump{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0 28px}
.shops-jump .shop-plate{height:58px;width:190px;padding:10px 20px;border:2px solid transparent}
.shops-jump a:hover .shop-plate{border-color:var(--cyan)}
.shop-block{border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#ffffff,#ffffff);padding:26px;margin-bottom:22px;scroll-margin-top:16px}
.shop-block-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:center}
.shop-plate-lg{width:230px;height:78px;padding:12px 22px}
.shop-block-title h2{font-size:30px}
.shop-block-title p{margin-top:6px;font-size:15px}
.shop-block-cta{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.shop-block-cta .button{font-size:16px;padding:14px 28px}
.shop-block-cta small{font-size:11px;color:#6b7a88}
.shop-stats{list-style:none;padding:0;margin:22px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shop-stats li{border:1px solid #e1e7ed;border-radius:12px;padding:12px 16px;background:#ffffff}
.shop-stats b{display:block;font:700 22px/1.25 var(--display)}
.shop-stats span{font-size:13px;color:var(--muted)}
.shop-cols{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;margin-top:24px}
.shop-cols h3,.shop-deals h3{font-size:18px;margin-bottom:12px}
.shop-cat-list{display:flex;flex-wrap:wrap;gap:8px}
.shop-cat-list a{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #e1e7ed;border-radius:10px;background:#ffffff;font-size:14px}
.shop-cat-list a:hover{border-color:var(--cyan)}
.shop-cat-list small{color:#5d6d7b;font-size:12px}
.shop-facts dl{margin:0;display:grid;gap:10px}
.shop-facts dl div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px}
.shop-facts dt{font-weight:600;font-size:14px}
.shop-facts dd{margin:0;font-size:14px;color:#2b3a47;line-height:1.5}
.shop-facts-links{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:14px;margin-top:12px}
.shop-facts-links a{color:var(--cyan);font-weight:600}
.shop-facts small{display:block;font-size:12px;color:#6b7a88;margin-top:8px}
.shop-deals{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}
.deal-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.deal{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;border:1px solid #e1e7ed;border-radius:12px;padding:10px;background:#ffffff}
.deal-pic{display:grid;place-items:center;height:80px;border-radius:8px;background:linear-gradient(180deg,#f7f9fb,#e4ebf1)}
.deal-pic img{max-height:70px;width:auto;mix-blend-mode:multiply}
.deal-name{font-size:14px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.deal p{margin-top:6px;font-size:13px}
.deal p b{font-size:16px;color:#0f1b26}
.deal-save{display:inline-block;margin-top:2px;font-size:12px;color:#0c8a55;font-weight:600}

/* ——— планшет и телефон ——— */
@media(max-width:1000px){
 .hero-offers a{grid-template-columns:104px minmax(0,1fr) auto}
 .hero-offers .ho-go{display:none}
 .shop-block-head{grid-template-columns:auto minmax(0,1fr)}
 .shop-block-cta{grid-column:1/-1;align-items:flex-start}
 .deal-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
 /* фильтры — выезжающая панель, открывается кнопкой «Фильтры» */
 .in-category .catalog-layout{grid-template-columns:minmax(0,1fr);gap:0}
 .in-category .filters:not([open]){padding:0;border:0;background:none}
 .in-category .filters:not([open])>summary{display:none}
 .in-category .filters[open]{position:fixed;inset:0;z-index:90;border:0;border-radius:0;margin:0;padding:0 16px 96px;overflow-y:auto;overscroll-behavior:contain;background:#ffffff}
 .in-category .filters[open]>summary{position:sticky;top:0;z-index:2;margin:0 -16px 4px;padding:14px 16px;background:#ffffff;border-bottom:1px solid var(--line);pointer-events:auto}
 .in-category .filters-x{font-size:0;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#f6f8fb}
 .in-category .filters-x::before{content:'×';font-size:24px;line-height:1;color:#0f1b26}
 .in-category .filters[open]>summary>.filters-x{transform:none}
 .in-category .fshow{display:flex;position:fixed;left:16px;right:16px;bottom:14px;z-index:3;min-height:50px;font-size:16px}
 .in-category .filters .filter-content h2{margin-bottom:8px}
 .fopt{padding:9px 6px;font-size:15px}
 .catalog-toolbar{position:sticky;top:0;z-index:20;margin:0 -16px 12px;padding:8px 16px;background:#f2f5f8f0;border-bottom:1px solid #e1e7ed;backdrop-filter:blur(8px)}
 .filters-open{display:inline-flex;align-items:center;gap:7px;flex:none;padding:8px 12px;border:1px solid #cfd9e3;border-radius:10px;background:#f6f8fb;font-size:14px;font-weight:600;color:#0f1b26}
 .filters-open .icon{width:18px;height:18px}
 .catalog-toolbar .found{display:none}
 .sort-tabs a,.sort-tabs span{padding:6px 10px;font-size:13px}
 .shop-cols{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 /* шапка: логотип, поиск и сравнение в одну строку, разделы — строкой с прокруткой */
 .header-inner{flex-wrap:wrap;gap:8px 10px;padding:6px 16px 0}
 .header .logo{width:96px;height:46px;flex:0 0 96px}
 .header-search{order:2;flex:1 1 0;min-width:0;margin:0;height:40px;padding-inline:10px}
 .header-search kbd{display:none}
 .compare-nav{order:3;margin-left:0}
 .main-nav{order:4;flex:0 0 calc(100% + 32px);margin:0 -16px;padding:2px 16px 0;border-top:1px solid #173b51;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:20px;overflow-x:auto;scrollbar-width:none;font-size:14px;white-space:nowrap}
 .main-nav::-webkit-scrollbar{display:none}
 .main-nav>a,.catalog-menu>summary{padding-block:9px}
 .catalog-menu{position:static}
 .catalog-dropdown{position:absolute;top:100%;left:16px;right:16px;width:auto;max-width:none;max-height:calc(100dvh - 140px)}
 /* карточки списком: фото слева */
 .product-grid,.catalog-results .product-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .product-card{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start}
 .product-card>.product-picture,.catalog-results .product-card>.product-picture{height:112px;padding:8px;margin:10px 0 10px 10px}
 .product-card>.product-picture:not(.no-photo){margin:10px 0 10px 10px;padding:8px}
 .product-card .product-picture img,.catalog-results .product-card .product-picture img{height:96px}
 .product-card .product-picture .category-photo{height:96px}
 .product-card .illustration-label{display:none}
 .card-content,.catalog-results .card-content{padding:10px 12px 12px}
 .card-content .card-title,.catalog-results .card-content .card-title{font-size:14.5px;line-height:1.3}
 .card-content .card-specs{font-size:12.5px;margin-block:4px 8px}
 .card-bottom{padding-top:8px}
 .card-price .price,.card-bottom .price{font-size:19px}
 .card-offers a{font-size:12.5px;padding:3px 6px}
 .card-content .purchase-actions{flex-direction:row;gap:6px;margin-top:10px}
 .card-content .purchase-actions>.button{width:auto;min-height:38px;padding:7px 10px;font-size:13px}
 .card-content .purchase-actions>.buy-button{flex:1 1 auto}
 /* товар */
 .hero-offers a{grid-template-columns:92px minmax(0,1fr) auto;gap:10px;padding:7px 10px 7px 7px}
 .hero-offers .shop-plate{height:34px;padding:4px 8px}
 .ho-state{font-size:12px}
 .ho-price b{font-size:16px}
 .offer h3 .shop-plate{display:grid;margin:0 0 8px}
 .catalog-page .catalog-intro{font-size:14px;line-height:1.55;margin-bottom:12px}
 .catalog-toolbar{gap:8px}
 .filters-open{padding:8px 10px}
 .sort-tabs a,.sort-tabs span{padding:6px 9px}
 .product-intro .purchase-actions{flex-wrap:nowrap}
 .product-intro .purchase-actions>.buy-button{flex:2 1 auto;font-size:15px;padding-inline:12px}
 .product-intro .purchase-actions>.compare-action{flex:1 1 auto;font-size:15px;padding-inline:12px}
 .shop-stats li{display:block}
 .product-page .product-intro h1{font-size:25px;line-height:1.15}
 .pc-tick{font-size:24px}
 .pc-line{stroke-width:4}
 .pc-low,.pc-last{r:7}
 /* магазины */
 .shops-head h1{font-size:32px}
 .shops-head>p{font-size:15.5px}
 .shops-jump{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .shops-jump .shop-plate{width:auto;height:48px;padding:7px 10px}
 .shop-block{padding:16px}
 .shop-block-head{grid-template-columns:minmax(0,1fr);gap:12px}
 .shop-plate-lg{width:100%;max-width:230px;height:64px}
 .shop-block-title h2{font-size:26px}
 .shop-block-cta{align-items:stretch}
 .shop-block-cta .button{width:100%}
 .shop-stats{grid-template-columns:minmax(0,1fr);gap:8px}
 .shop-stats li{display:flex;align-items:baseline;gap:10px;padding:10px 12px}
 .shop-stats b{flex:none;font-size:19px}
 .shop-facts dl div{grid-template-columns:minmax(0,1fr);gap:2px}
 .deal-list{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px){
 .sort-tabs a,.sort-tabs span{padding:6px 7px;font-size:12.5px}
 .filters-open{padding:8px 9px;font-size:13px;gap:5px}
 .filters-open .icon{width:16px;height:16px}
}
/* sb1109: 4+ магазина в плитке, пометка магазина у цены (раскладка BigGeek) */
.card-offers .card-more a{color:var(--cyan);font-size:13px}
.card-offers .card-more a:hover{color:#0f1b26}
.ho-note{display:block;font-style:normal;font-size:12px;color:#a15c00;line-height:1.3}
