/* Shared RU / AZ / TR identity. Red canvas, white resting surfaces, gold controls. */
html:root[lang]{--baazar-red:#ec1729;--baazar-ink:#202126;--baazar-gold:#c99a2e;background:#ec1729}
html:root[lang] body.baazar-theme{background:#ec1729!important;color:#fff!important;--navy:#202126;--purple:#b9192a;--green:#b9192a;--gold:#c99a2e;--lime:#fff;--muted:#555963;--line:#e7dfd3}
html:root[lang] body.baazar-theme :is(header,.page,.entry-page,.entry-copy,.hero,.vr-root,.vr-hero,.vr-hero-copy,.vr-seller){background:#ec1729!important;color:#fff!important;box-shadow:none!important}
html:root[lang] body.baazar-theme header{border-bottom:3px solid #fff!important}
html:root[lang] body.baazar-theme header :is(.brand,.brandlight,.brand small){color:#fff!important}
html:root[lang] body.baazar-theme :is(.brand-logo,.footer-logo){background:transparent!important;box-shadow:none!important;filter:none!important}
html:root[lang] body.baazar-theme :is(.panel,.empty,.stat,.card,dialog,.filters,.search-attributes,.catalog-extra,.tr-search-panel,.venue,.source,.install-strip,.vr-store-demo,.ss-panel){background:#fff!important;color:#202126!important;border:1px solid #e7dfd3!important;border-radius:18px;box-shadow:0 5px 20px #65071314!important}
html:root[lang] body.baazar-theme :is(.panel,.empty,.stat,.card,dialog,.filters,.venue,.source,.install-strip,.search-attributes,.catalog-extra,.tr-search-panel,.vr-store-demo) :is(h1,h2,h3,p,label,.meta,.muted,summary,small,.eyebrow){color:#202126!important}
html:root[lang] body.baazar-theme :is(.hero,.entry-copy) :is(h1,h2,p,.eyebrow,em,.entry-note,.guided-caption,.type-label){color:#fff!important}
html:root[lang] body.baazar-theme :is(.page-title,.page>.eyebrow,.section-head,.loading){color:#fff!important}
html:root[lang] body.baazar-theme :is(#main,header,footer,dialog,.mobile-nav,.page-shortcuts,.admin-portal-bar) :is(button,.primary,.vr-button,.text-button),html:root[lang] body.baazar-theme .tr-country-in-city{background:#fff!important;color:#171717!important;border:3px solid #c99a2e!important;border-radius:12px;box-shadow:0 2px 0 #8c641b22!important;font-weight:750}
html:root[lang] body.baazar-theme :is(#main,header,footer,dialog,.mobile-nav,.page-shortcuts) button:hover{background:#fff8e6!important;border-color:#a87916!important;color:#171717!important}
html:root[lang] body.baazar-theme :is(#main,header,footer,dialog,.mobile-nav) :is(button.active,button[aria-pressed=true]){background:#ffedbd!important;color:#171717!important;border-color:#986b15!important}
html:root[lang] body.baazar-theme :is(input,select,textarea){background:#fff!important;color:#202126!important;border:2px solid #b9b5ae!important;border-radius:10px}
html:root[lang] body.baazar-theme :is(input[type=checkbox],input[type=radio]){accent-color:#bd1021}
html:root[lang] body.baazar-theme :is(summary,.tr-sellers span){background:#fff!important;color:#202126!important;border-color:#c99a2e!important}
html:root[lang] body.baazar-theme .tr-sellers input:checked+span{background:#ffedbd!important;color:#171717!important}
html:root[lang] body.baazar-theme :is(footer,.mobile-nav){background:#fff!important;color:#202126!important;border-top:3px solid #c99a2e!important}
html:root[lang] body.baazar-theme footer :is(.footer-brand,.brandlight,p,span){color:#202126!important}
html:root[lang] body.baazar-theme .vr-editorial{background:#ec1729!important}
html:root[lang] body.baazar-theme :is(.vr-editorial-copy,.vr-community>div){background:#fff!important;color:#202126!important;border-radius:22px;padding:clamp(24px,4vw,58px)}
html:root[lang] body.baazar-theme :is(.vr-editorial-copy,.vr-community>div) :is(h2,p,.vr-kicker,span){color:#202126!important}
html:root[lang] body.baazar-theme .vr-community{background:#ec1729!important;color:#fff!important}
html:root[lang] body.baazar-theme .vr-card{background:#fff!important;color:#202126!important;border-radius:18px;overflow:hidden}
html:root[lang] body.baazar-theme .vr-card :is(h3,p,.vr-caption){color:#202126!important}
html:root[lang] body.baazar-theme .hero{border:0!important;padding-bottom:24px}
html:root[lang] body.baazar-theme .entry-page{border:0!important}
html:root[lang] body.baazar-theme .searchbar{border-color:#c99a2e!important;background:#fff!important;color:#202126!important}
html:root[lang] body.baazar-theme .searchbar .search-icon{color:#b9192a!important}
html:root[lang] body.baazar-theme .source :is(h2,p,.source-icon,.arrow){color:#202126!important}
html:root[lang] body.baazar-theme .entry-copy :is(button,.primary){color:#171717!important}
html:root[lang] body.baazar-theme :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #152b4c!important;outline-offset:3px}
html:root[lang] body.baazar-theme .vr-category-card span,html:root[lang] body.baazar-theme .vr-wide-card span,html:root[lang] body.baazar-theme .vr-mosaic span{color:#fff!important}
html:root[lang] body.baazar-theme #toast{background:#fff!important;color:#202126!important;border:2px solid #c99a2e!important}
@media(max-width:700px){html:root[lang] body.baazar-theme :is(.vr-editorial-copy,.vr-community>div){border-radius:18px;padding:24px 20px}html:root[lang] body.baazar-theme .search-attributes{padding:12px}}

/* Compact public masthead: retain each locale's existing logo dimensions. */
html:root[lang] body.baazar-theme header.compact-public-header{
 --header-inset:4.5%;position:relative;display:grid!important;
 grid-template-columns:var(--header-logo-width,180px) minmax(0,1fr)!important;
 grid-template-rows:1fr 1fr;align-items:center!important;gap:0 20px!important;
 padding:12px var(--header-inset)!important;border-bottom:0!important;
}
html:root[lang] body.baazar-theme header.compact-public-header::after{content:'';position:absolute;bottom:0;left:calc(var(--header-inset) + var(--header-logo-width,180px) + 16px);right:0;height:3px;background:#fff;pointer-events:none}
html:root[lang] body.baazar-theme header.compact-public-header .brand{display:contents!important}
html:root[lang] body.baazar-theme header.compact-public-header .brand-logo{grid-column:1;grid-row:1/3;align-self:center}
html:root[lang] body.baazar-theme header.compact-public-header .brand>span{grid-column:2;grid-row:1;align-self:end;margin-bottom:12px;text-align:left}
html:root[lang] body.baazar-theme header.compact-public-header .region-row{grid-column:2;grid-row:2;align-self:start;display:flex!important;flex-wrap:nowrap!important;width:100%!important;min-width:0;gap:7px!important;margin:0!important;padding:0 0 10px!important;overflow-x:auto;align-items:center;justify-content:flex-start!important;scrollbar-width:thin}
html:root[lang] body.baazar-theme header.compact-public-header nav{display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto!important;width:auto!important;margin:0!important;gap:7px!important;position:static!important}
html:root[lang] body.baazar-theme header.compact-public-header .language-switch{margin:0!important;flex:0 0 auto;order:3}
html:root[lang] body.baazar-theme header.compact-public-header .page-shortcuts{padding:0!important;margin:0!important;flex-wrap:nowrap!important;flex:0 0 auto;gap:7px!important}
html:root[lang] body.baazar-theme header.compact-public-header :is(button,#account-button,.region){font-size:15px!important;line-height:1.2!important;padding:9px 11px!important;min-height:42px!important;max-width:none!important;white-space:nowrap!important;flex:0 0 auto!important;margin:0!important}
html:root[lang] body.baazar-theme header.compact-public-header .country-picker{font-size:11px}
html:root[lang] body.baazar-theme header.compact-public-header .country-picker select{min-height:42px;padding:8px;font-size:15px}
@media(max-width:700px){html:root[lang] body.baazar-theme header.compact-public-header{--header-inset:16px;gap:0 12px!important}html:root[lang] body.baazar-theme header.compact-public-header .brand>span{font-size:20px!important;overflow-wrap:anywhere}html:root[lang] body.baazar-theme header.compact-public-header .brand small{display:none!important}}
/* Smaller masthead logo and high-contrast compact category captions. */
html:root[lang] body.baazar-theme header.compact-public-header .brand-logo{width:58px!important;height:58px!important}
html:root[lang] body.baazar-theme:has(.home-page) header.compact-public-header .brand-logo{width:90px!important;height:90px!important}
html:root[lang] body.baazar-theme.guest header.compact-public-header .brand-logo{width:42px!important;height:42px!important}
html:root[lang=tr] body.baazar-theme header.compact-public-header .brand-logo{width:130px!important;height:130px!important}
html:root[lang] body.baazar-theme header.compact-public-header{grid-template-rows:auto auto;padding-top:8px!important;padding-bottom:8px!important}
html:root[lang] body.baazar-theme header.compact-public-header .brand>span{margin-bottom:8px}
html:root[lang] body.baazar-theme #main .vr-category-card{height:194px!important;padding:0!important;background:#fff!important}
html:root[lang] body.baazar-theme #main .vr-category-card>span{min-height:50px;padding:6px 9px!important;margin:0;display:flex!important;justify-content:center;flex-direction:column;background:#fff!important;color:#171717!important;line-height:1.15}
html:root[lang] body.baazar-theme #main .vr-category-card>span :is(strong,small){color:#171717!important;text-shadow:none!important}
html:root[lang] body.baazar-theme #main .vr-category-card strong{font-size:18px!important;line-height:1.15!important}
@media(max-width:700px){html:root[lang] body.baazar-theme header.compact-public-header .brand-logo{width:52px!important;height:52px!important}html:root[lang] body.baazar-theme:has(.home-page) header.compact-public-header .brand-logo{width:76px!important;height:76px!important}html:root[lang] body.baazar-theme.guest header.compact-public-header .brand-logo{width:27px!important;height:27px!important}html:root[lang=tr] body.baazar-theme header.compact-public-header .brand-logo{width:96px!important;height:96px!important}}
html:root[lang=tr] body.baazar-theme:is(.guest,.tr-theme,.vr-active) header.compact-public-header .brand-logo{width:130px!important;height:130px!important}
@media(max-width:700px){html:root[lang=tr] body.baazar-theme:is(.guest,.tr-theme,.vr-active) header.compact-public-header .brand-logo{width:96px!important;height:96px!important}}
html:root[lang] body.baazar-theme .ru-name-search{display:grid;gap:8px;margin:18px 0}
html:root[lang] body.baazar-theme .ru-name-search>div{display:flex;gap:8px}.ru-name-search input{flex:1;min-width:0;padding:14px;background:white;color:#171717;border:2px solid #c99a2e;border-radius:12px}
.ru-source-options{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ru-selected-venue{padding:12px;background:#fff;color:#171717;border-radius:12px}#venue-choices{max-height:55vh;overflow-y:auto}#venue-choices button{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:6px;width:100%}
html:root[lang=tr] body.baazar-theme #main .vr-category-search{display:flex;align-items:center;border:2px solid #c99a2e;border-radius:999px;background:#fff;overflow:hidden;padding:3px}
html:root[lang=tr] body.baazar-theme #main .vr-category-search input{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:999px;min-width:0;padding:12px 20px}
html:root[lang=tr] body.baazar-theme #main .vr-category-search button{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;padding:4px!important;min-height:54px;border:0!important;border-radius:50%!important;background:#ffedbd!important;font-size:36px!important;line-height:1;color:#171717!important;box-shadow:none!important}
html:root[lang] body.admin-portal #admin-login-fields{max-width:520px}html:root[lang] body.admin-portal #admin-login-fields form{padding:0;margin:0}html:root[lang] body.admin-portal #admin-login-fields label{margin:12px 0}
/* Content remains visible even if the scroll reveal observer is interrupted. */
html:root[lang=tr] body.baazar-theme .vr-reveal.vr-observed:not(.vr-visible){opacity:1;transform:none}
html.app-starting body>header,html.app-starting body>footer,html.app-starting .page-shortcuts{visibility:hidden}
html.app-starting body{background:#f7f7f7!important}
#startup-status{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f7f7f7;color:#202126;z-index:9999;font:18px Arial,sans-serif;gap:12px}#startup-status strong{font-size:30px;color:#ec1729}#startup-status button{padding:12px 20px}
html.admin-starting body>header,html.admin-starting body>footer,html.admin-starting .page-shortcuts{display:none!important}
html:root[lang] body.baazar-theme dialog:has(#venue-choices){width:min(620px,calc(100vw - 24px));height:min(650px,85dvh);max-height:85dvh;padding:22px!important;overflow:hidden!important}
html:root[lang] body.baazar-theme dialog:has(#venue-choices) #modal-content{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;overflow:hidden}
html:root[lang] body.baazar-theme dialog:has(#venue-choices) :is(.modal-brand,.modal-home){display:none!important}
html:root[lang] body.baazar-theme dialog:has(#venue-choices) h2{font-size:23px!important;line-height:1.2;margin:0;padding-right:44px}
html:root[lang] body.baazar-theme dialog:has(#venue-choices) #venue-query{width:100%;min-width:0;font-size:17px;padding:10px;min-height:44px}
html:root[lang] body.baazar-theme #venue-choices{min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;margin:0;padding-right:6px}
html:root[lang] body.baazar-theme dialog:has(#venue-choices)>button{position:absolute;top:8px;right:8px;width:36px;height:36px;min-height:36px!important;padding:3px!important;font-size:24px!important;z-index:2}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
html:root[lang] body.baazar-theme #venue-choices{display:flex!important;flex-direction:column;justify-content:flex-start;gap:8px}
html:root[lang] body.baazar-theme #venue-choices>button{flex:0 0 auto;min-height:72px;height:auto;justify-content:center!important;padding:12px!important;font-size:17px!important}
