/* Shop catalog and product panels. The 3D scene and map keep their own styling. */
html body.in-shop :is(#catalog-panel,#product-panel){
 --shop-panel-ink:#242424;--shop-panel-muted:#666;--shop-panel-line:#e7e9eb;--shop-panel-yellow:#ffe500;--shop-panel-neutral:#f1f3f5;--shop-panel-focus:#079ceb;
 color:var(--shop-panel-ink);font-family:Onest,Arial,sans-serif;background:#fff!important;border:1px solid var(--shop-panel-line)!important;box-shadow:0 18px 65px #24242424;border-radius:20px!important;
}
html body.in-shop :is(#catalog-panel,#product-panel)[hidden],html body.in-shop :is(#catalog-panel,#product-panel) [hidden]{display:none!important}
html body.in-shop :is(#catalog-panel,#product-panel) :is(button,select,a,summary){font-family:inherit}
html body.in-shop :is(#catalog-panel,#product-panel) :is(button,select,a,summary):focus-visible{outline:3px solid var(--shop-panel-focus);outline-offset:-3px}
html body.in-shop :is(#catalog-panel,#product-panel) button{cursor:pointer}
html body.in-shop :is(#catalog-panel,#product-panel) button:disabled{cursor:default;opacity:.55}

/* Search and filters stay visible; only the product grid scrolls. */
html body.in-shop #catalog-panel{inset:16px 24px 24px auto!important;width:min(760px,58vw);max-width:calc(100% - 48px);max-height:none;padding:0!important;display:flex;flex-direction:column;overflow:hidden!important;z-index:24}
html body.in-shop #catalog-panel .catalog-heading{padding:18px 20px 12px;gap:12px;flex:none}
html body.in-shop #catalog-panel .catalog-heading .eyebrow{font-size:10px;line-height:1.4;letter-spacing:.08em;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .catalog-heading h2{font-size:25px;line-height:1.15;font-weight:700;letter-spacing:-.5px;margin:5px 0 0;color:var(--shop-panel-ink)}
html body.in-shop #catalog-panel .catalog-heading p{font-size:12px;line-height:1.4;margin:6px 0 0;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel #catalog-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:13px;background:var(--shop-panel-neutral);color:var(--shop-panel-ink);font-size:24px}
html body.in-shop #catalog-panel .catalog-search-form{padding:0 20px;flex:none}
html body.in-shop #catalog-panel .catalog-search{min-height:44px;height:44px;padding:0 12px;border:1px solid var(--shop-panel-line);border-radius:12px;background:var(--shop-panel-neutral)}
html body.in-shop #catalog-panel .catalog-search > span{color:var(--shop-panel-muted);font-size:22px}
html body.in-shop #catalog-panel .catalog-search input{font:400 14px/1.4 Onest,Arial,sans-serif;color:var(--shop-panel-ink);padding:10px 0}
html body.in-shop #catalog-panel .catalog-search input::placeholder{color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .catalog-search:focus-within{outline:3px solid var(--shop-panel-focus);outline-offset:-3px;box-shadow:none}
html body.in-shop #catalog-panel .catalog-filters{padding:12px 20px 14px;gap:10px;flex:none;border-color:var(--shop-panel-line)}
html body.in-shop #catalog-panel .catalog-filters label{gap:5px}
html body.in-shop #catalog-panel .catalog-filters label > span{font-size:11px;line-height:1.25;letter-spacing:0;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .catalog-filters select{height:44px;min-height:44px;padding:10px 28px 10px 10px;background:#fff;border:1px solid var(--shop-panel-line);border-radius:11px;color:var(--shop-panel-ink);font-size:13px}
html body.in-shop #catalog-panel #catalog-reset{min-width:44px;min-height:44px;padding:9px 6px;color:var(--shop-panel-ink);font-size:12px;text-underline-offset:3px}
html body.in-shop #catalog-panel .catalog-scroll{flex:1 1 0;min-height:0;padding:16px 18px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#c4c9ce transparent}
html body.in-shop #catalog-panel .catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body.in-shop #catalog-panel .product-tile{background:#fff;border:1px solid var(--shop-panel-line);border-radius:14px;box-shadow:none;min-width:0;transition:border-color .15s,box-shadow .15s}
html body.in-shop #catalog-panel .product-tile:hover{transform:none;border-color:#aaa;box-shadow:0 4px 15px #2424240d}
html body.in-shop #catalog-panel .product-tile .catalog-photo{position:relative;width:100%;aspect-ratio:4/3;max-height:190px;background:#f4f5f6;overflow:hidden;padding:8px}
html body.in-shop #catalog-panel .product-tile .catalog-photo img{position:absolute;inset:8px;display:block;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain;mix-blend-mode:normal;background:transparent}
html body.in-shop #catalog-panel .catalog-photo.is-empty::before{color:#888;border-color:#d8dcdf;width:48px;height:54px;border-radius:10px;font-size:30px}
html body.in-shop #catalog-panel .catalog-photo.is-empty::after{content:"Фото недоступно";bottom:12px;font-size:10px;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .product-tile .catalog-card-body{display:grid;gap:7px;padding:12px;min-height:86px;align-content:start}
html body.in-shop #catalog-panel .product-tile h3{font-size:14px;line-height:1.35;font-weight:600;color:var(--shop-panel-ink);-webkit-line-clamp:2}
html body.in-shop #catalog-panel .product-tile strong{font-size:16px;line-height:1.3;font-weight:700;color:var(--shop-panel-ink)}
html body.in-shop #catalog-panel .product-tile small{font-size:11px;line-height:1.35;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .catalog-card-body .city-product-price{padding:0;margin:0;gap:4px 7px}
html body.in-shop #catalog-panel .catalog-status{font-size:13px;line-height:1.5;color:var(--shop-panel-muted);padding:22px 10px}
html body.in-shop #catalog-panel .catalog-status:empty{display:none}
html body.in-shop #catalog-panel .catalog-status.is-error{color:#843919;background:#fff3ec;border-color:#edcab8;padding:14px}
html body.in-shop #catalog-panel .catalog-footer{display:flex;flex-wrap:wrap;flex:none;align-items:center;gap:8px 12px;min-height:56px;padding:8px 18px;background:#fff;border-color:var(--shop-panel-line)}
html body.in-shop #catalog-panel #catalog-progress{font-size:11px;line-height:1.4;color:var(--shop-panel-muted);margin-left:auto}
html body.in-shop #catalog-panel .catalog-more{min-height:44px;padding:10px 14px;border:1px solid #e0c900;border-radius:11px;background:var(--shop-panel-yellow);color:var(--shop-panel-ink);font-size:12px;font-weight:600}
html body.in-shop #catalog-panel #catalog-completeness{font-size:11px;line-height:1.4;color:var(--shop-panel-muted);margin:0;max-width:100%;flex:1 1 180px}
html body.in-shop #catalog-panel .catalog-footer details{min-width:0;flex:1 1 160px;font-size:12px;line-height:1.5;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .catalog-footer summary{display:list-item;min-height:44px;padding:12px 0;color:var(--shop-panel-ink);font-size:12px;cursor:pointer}
html body.in-shop #catalog-panel .catalog-footer details > :not(summary){max-height:100px;overflow:auto;margin:0 0 7px;overscroll-behavior:contain}

/* The header and actions are outside the scrollable media/details area. */
html body.in-shop #product-panel{position:fixed;top:88px;right:24px;bottom:24px;left:auto;width:min(540px,calc(100vw - 48px));max-width:none;max-height:none;margin:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;z-index:28}
html body.in-shop #product-panel .product-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:10px 18px;border-bottom:1px solid var(--shop-panel-line);background:#fff}
html body.in-shop #product-panel .product-top > :not(button){min-width:0;font-size:13px;font-weight:600;line-height:1.4;color:var(--shop-panel-ink)}
html body.in-shop #product-panel .product-top button{min-height:44px;min-width:44px;border-radius:12px;color:var(--shop-panel-ink);background:var(--shop-panel-neutral);font-size:13px;padding:10px 12px}
html body.in-shop #product-panel #product-close{position:static;display:flex;align-items:center;justify-content:center;flex:none;width:auto;height:44px;min-height:44px;padding:10px 12px;font-size:13px;border-radius:12px;background:var(--shop-panel-neutral);color:var(--shop-panel-ink)}
html body.in-shop #product-panel .product-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:auto;scrollbar-width:thin;scrollbar-color:#c4c9ce transparent}
html body.in-shop #product-panel .product-media{background:#f4f5f6;border-bottom:1px solid var(--shop-panel-line)}
html body.in-shop #product-panel #product-photo{display:block;width:100%;height:clamp(180px,27dvh,260px);max-height:260px;padding:14px;object-fit:contain;background:#f4f5f6;user-select:none;-webkit-user-drag:none}
html body.in-shop #product-panel .retail-gallery{touch-action:pan-x;gap:8px;padding:10px 16px;background:#fff;border:0;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
html body.in-shop #product-panel .retail-gallery button{flex:0 0 54px;min-width:54px;width:54px;height:62px;min-height:44px;padding:3px;border:1px solid var(--shop-panel-line);border-radius:10px;box-shadow:none}
html body.in-shop #product-panel .retail-gallery button.is-active{border-color:#242424;box-shadow:0 0 0 2px var(--shop-panel-yellow)}
html body.in-shop #product-panel .retail-gallery img{background:#f4f5f6}
html body.in-shop #product-panel .product-body{padding:18px 22px 22px}
html body.in-shop #product-panel .product-body :is(.eyebrow,.product-eyebrow){color:var(--shop-panel-muted);font-size:10px;line-height:1.4;letter-spacing:.08em}
html body.in-shop #product-panel #product-title{margin:7px 0 0;font-size:25px;line-height:1.2;letter-spacing:-.4px;font-weight:700;color:var(--shop-panel-ink);overflow-wrap:anywhere}
html body.in-shop #product-panel #product-price{margin:12px 0;font-size:25px;line-height:1.2;font-weight:700;color:var(--shop-panel-ink)}
html body.in-shop #product-panel .product-body p{font-size:14px;line-height:1.5;color:var(--shop-panel-muted)}
html body.in-shop #product-panel #product-description{max-height:none;overflow:visible}
html body.in-shop #product-panel .product-body ul{font-size:13px;line-height:1.5;color:var(--shop-panel-muted);padding-left:18px;margin:12px 0}
html body.in-shop #product-panel .retail-product-note{margin:10px 0;color:var(--shop-panel-muted);font-size:12px;line-height:1.5}
html body.in-shop #product-panel #product-variants{gap:7px;margin:14px 0}
html body.in-shop #product-panel #product-variants button{min-height:44px;min-width:44px;padding:10px 12px;font-size:13px;border:1px solid var(--shop-panel-line);border-radius:11px;background:var(--shop-panel-neutral);color:var(--shop-panel-ink)}
html body.in-shop #product-panel #product-variants button.active{background:#fff8b5;border-color:#bca900}
html body.in-shop #product-panel :is(#product-share,#product-take){min-height:44px;padding:11px 12px;border:1px solid var(--shop-panel-line);border-radius:11px;background:var(--shop-panel-neutral)!important;color:var(--shop-panel-ink)!important;font-size:13px;line-height:1.35;margin-top:9px}
html body.in-shop #product-panel #product-source{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;margin:12px 0 0;color:var(--shop-panel-ink);font-size:13px;line-height:1.4;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
html body.in-shop #product-panel :is(.demo-footnote,.product-carry-hint){color:var(--shop-panel-muted);font-size:11px;line-height:1.5}
html body.in-shop #product-panel .product-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 16px;border-top:1px solid var(--shop-panel-line);background:#fff;box-shadow:0 -5px 20px #24242408;z-index:2}
html body.in-shop #product-panel .product-actions > :is(button,a){display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;min-width:0;padding:11px 12px;margin:0;border:1px solid transparent;border-radius:12px;font-size:13px;line-height:1.35;font-weight:600;text-align:center;white-space:normal;text-decoration:none}
html body.in-shop #product-panel #product-add{background:var(--shop-panel-yellow);border-color:#e0c900;color:var(--shop-panel-ink)}
html body.in-shop #product-panel #product-add:hover{background:#ffeb38}
html body.in-shop #product-panel #product-ask{background:var(--shop-panel-neutral);border-color:var(--shop-panel-line);color:var(--shop-panel-ink)}

@media(max-width:1100px){
 html body.in-shop #catalog-panel{width:min(660px,64vw)}
 html body.in-shop #catalog-panel .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 html body.in-shop #catalog-panel{inset:8px!important;width:auto;max-width:none;max-height:none;border-radius:17px!important}
 html body.in-shop #catalog-panel .catalog-heading{padding:14px 14px 10px;gap:10px}
 html body.in-shop #catalog-panel .catalog-heading h2{font-size:22px;margin-top:4px}
 html body.in-shop #catalog-panel .catalog-heading .eyebrow{font-size:9px}
 html body.in-shop #catalog-panel .catalog-heading p{font-size:11px;margin-top:5px}
 html body.in-shop #catalog-panel .catalog-search-form{padding:0 14px}
 html body.in-shop #catalog-panel .catalog-search input{font-size:16px}
 html body.in-shop #catalog-panel .catalog-filters{padding:10px 14px 12px;gap:8px;flex-wrap:wrap}
 html body.in-shop #catalog-panel .catalog-filters label > span{font-size:10px}
 html body.in-shop #catalog-panel .catalog-filters select{font-size:14px;padding-left:8px;padding-right:22px}
 html body.in-shop #catalog-panel .catalog-scroll{padding:12px}
 html body.in-shop #catalog-panel .catalog-grid{gap:10px}
 html body.in-shop #catalog-panel .product-tile .catalog-photo{aspect-ratio:4/3;max-height:144px;padding:6px}
 html body.in-shop #catalog-panel .product-tile .catalog-card-body{padding:10px;gap:6px;min-height:81px}
 html body.in-shop #catalog-panel .product-tile h3{font-size:13px;line-height:1.3}
 html body.in-shop #catalog-panel .product-tile strong{font-size:15px}
 html body.in-shop #catalog-panel .product-tile small{font-size:10px}
 html body.in-shop #catalog-panel .catalog-photo.is-empty::after{font-size:8px;bottom:8px}
 html body.in-shop #catalog-panel .catalog-footer{padding:7px 12px;gap:6px 8px;min-height:52px}
 html body.in-shop #catalog-panel .catalog-footer details{flex-basis:150px}
 html body.in-shop #catalog-panel .catalog-footer summary{font-size:11px}
 html body.in-shop #catalog-panel #catalog-progress{font-size:10px}
 html body.in-shop #product-panel{top:60px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;right:8px;width:auto;max-width:none;max-height:none;border-radius:17px!important}
 html body.in-shop #product-panel .product-top{min-height:60px;padding:8px 12px}
 html body.in-shop #product-panel #product-photo{height:clamp(160px,24dvh,210px);max-height:210px;padding:10px}
 html body.in-shop #product-panel .product-body{padding:16px 18px 20px}
 html body.in-shop #product-panel #product-title{font-size:23px}
 html body.in-shop #product-panel #product-price{font-size:23px;margin:10px 0}
 html body.in-shop #product-panel .product-actions{padding:10px 12px;gap:8px}
 html body.in-shop #product-panel .product-actions > :is(button,a){min-height:46px;padding:10px;font-size:12px}
}
@media(max-width:359px){
 html body.in-shop #catalog-panel .catalog-heading{padding:12px 12px 9px}
 html body.in-shop #catalog-panel .catalog-heading h2{font-size:21px}
 html body.in-shop #catalog-panel .catalog-search-form{padding:0 12px}
 html body.in-shop #catalog-panel .catalog-filters{padding:9px 12px 10px}
 html body.in-shop #catalog-panel .catalog-filters select{font-size:12px}
 html body.in-shop #catalog-panel .catalog-scroll{padding:10px}
 html body.in-shop #catalog-panel .product-tile .catalog-card-body{padding:9px;min-height:78px}
 html body.in-shop #catalog-panel .product-tile h3{font-size:12px}
 html body.in-shop #catalog-panel .product-tile strong{font-size:14px}
 html body.in-shop #product-panel .product-actions{grid-template-columns:minmax(0,1fr);gap:7px;padding:9px 12px}
 html body.in-shop #product-panel #product-photo{height:150px;max-height:150px}
}
@media(orientation:landscape) and (max-height:600px){
 html body.in-shop #catalog-panel{inset:8px!important;width:auto;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto}
 html body.in-shop #catalog-panel .catalog-heading{grid-column:1/-1;padding:8px 14px 6px;align-items:center}
 html body.in-shop #catalog-panel .catalog-heading h2{font-size:21px;margin:0}
 html body.in-shop #catalog-panel .catalog-heading :is(.eyebrow,p){display:none}
 html body.in-shop #catalog-panel .catalog-search-form{grid-column:1;padding:0 8px 8px 14px;margin:0;align-self:end}
 html body.in-shop #catalog-panel .catalog-filters{grid-column:2;padding:0 14px 8px 0;gap:8px;border:0}
 html body.in-shop #catalog-panel .catalog-filters label > span{display:none}
 html body.in-shop #catalog-panel .catalog-scroll{grid-column:1/-1;padding:10px 12px}
 html body.in-shop #catalog-panel .catalog-grid{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
 html body.in-shop #catalog-panel .product-tile{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:stretch}
 html body.in-shop #catalog-panel .product-tile .catalog-photo{width:96px;height:112px;aspect-ratio:auto;max-height:none}
 html body.in-shop #catalog-panel .product-tile .catalog-card-body{padding:10px;gap:6px;min-height:112px;align-content:center}
 html body.in-shop #catalog-panel .catalog-footer{grid-column:1/-1;min-height:48px;padding:3px 12px}
 html body.in-shop #product-panel{top:52px;bottom:8px;left:8px;right:8px;width:auto;border-radius:16px!important}
 html body.in-shop #product-panel .product-top{min-height:52px;padding:4px 12px}
 html body.in-shop #product-panel .product-scroll{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-content:start;align-items:start}
 html body.in-shop #product-panel #product-photo{height:190px;max-height:none}
 html body.in-shop #product-panel .product-media{border-right:1px solid var(--shop-panel-line);border-bottom:0}
 html body.in-shop #product-panel .product-body{padding:12px 16px 18px}
 html body.in-shop #product-panel #product-title{font-size:22px}
 html body.in-shop #product-panel .product-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:7px 12px}
}
@media(prefers-reduced-motion:reduce){html body.in-shop #catalog-panel .product-tile{transition:none}}
/* Current markup: provenance disclosure, product context and purchase note. */
html body.in-shop #catalog-panel #catalog-purchase-note{font-size:11px;line-height:1.4;margin:5px 0 0;color:var(--shop-panel-muted)}
html body.in-shop #catalog-panel .catalog-card-category{justify-self:start;max-width:100%;padding:3px 6px;border-radius:5px;background:var(--shop-panel-neutral);color:var(--shop-panel-muted);font-size:10px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.in-shop #catalog-panel .catalog-footer-main{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex:1 1 160px;min-width:0}
html body.in-shop #catalog-panel .catalog-footer-main #catalog-progress{margin-left:0}
html body.in-shop #catalog-panel .catalog-provenance{flex:0 1 auto}
html body.in-shop #catalog-panel .catalog-provenance[open]{flex-basis:100%}
html body.in-shop #product-panel #product-section-label{font-size:12px;font-weight:400;color:var(--shop-panel-muted)}
html body.in-shop #product-panel .product-eyebrow{display:block;margin:0}
html body.in-shop #product-panel #product-photo-fallback{display:grid;place-items:center;min-height:180px;padding:24px;font-size:14px;line-height:1.5;text-align:center;color:var(--shop-panel-muted)}
html body.in-shop #product-panel #product-purchase-note{grid-column:1/-1;min-width:0;margin:0;font-size:11px;line-height:1.4;color:var(--shop-panel-muted)}
@media(max-width:760px){
 html body.in-shop #catalog-panel .catalog-footer-main{flex-basis:110px}
 html body.in-shop #catalog-panel .catalog-provenance{flex-basis:auto}
 html body.in-shop #catalog-panel .catalog-provenance summary{font-size:10px}
 html body.in-shop #catalog-panel .catalog-card-category{font-size:9px}
 html body.in-shop #product-panel #product-photo-fallback{min-height:150px}
}