/* Unified responsive shell for public pages */
.sj-shared-head{position:sticky;top:0;z-index:70;background:#fff;border-bottom:1px solid #e9edf2;direction:inherit;font:inherit}
.sj-shared-inner{max-width:1240px;margin:auto;padding:12px 22px;display:flex;align-items:center;gap:14px;min-height:74px}
.sj-shared-logo img{width:150px;max-height:52px;object-fit:contain;display:block}
.sj-shared-search{flex:1;display:flex;min-width:140px;max-width:510px;border:1px solid #dfe4ea;border-radius:12px;padding:12px 15px;background:#fafbfc}
.sj-shared-search input{border:0;outline:none;background:none;width:100%;font:inherit;color:#17263c;min-width:0}
.sj-shared-link,.sj-shared-btn{white-space:nowrap;border:1px solid #e2e7ee;border-radius:11px;background:#fff;padding:10px 12px;color:#17263c;text-decoration:none;cursor:pointer;font:inherit;font-weight:700}
.sj-shared-sell{background:#d71932;color:white;border-color:#d71932}.sj-shared-link:hover,.sj-shared-btn:hover{background:#fff0f2}.sj-shared-sell:hover{background:#b91029;color:white}
.sj-lang-select{border:1px solid #dfe4eb;border-radius:11px;background:#fff;color:#10223c;font:inherit;font-weight:800;padding:10px;cursor:pointer}
.sj-inline-lang{display:flex;gap:8px;align-items:center}
.sj-mobile-lang-row{border-top:1px solid #e9edf2;padding:12px;margin-top:8px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.sj-mobile-lang-row label{font-size:13px;font-weight:800}
.sj-shell-hidden{display:none!important}
@media(max-width:1024px){.sj-shared-head{display:none!important}}
@media(min-width:1025px){body>.accountHeader,body>.sj-page-head,body>.site-header{display:none!important}}
@media(min-width:1025px){#mobileMarket .mm-desktop-actions [data-sj-lang]{min-width:110px;margin-inline:3px}#mobileMarket .mm-desktop-actions [hidden]{display:none!important}}
/* v31: compact desktop navigation and segmented language selector */
.sj-shared-inner{min-height:62px;padding:8px 20px;gap:9px}
.sj-shared-logo img{width:122px;max-height:43px}
.sj-shared-link,.sj-shared-btn{font-size:12px;padding:10px 12px}
.sj-shared-search{min-width:150px;max-width:440px;padding:9px 13px}
.sj-lang-segmented,.ac-account-lang{display:inline-flex;gap:2px;background:#edf1f6;border:1px solid #e0e6ee;border-radius:12px;padding:3px;direction:ltr;flex:none}
.sj-lang-segmented button,.ac-account-lang button{min-width:37px;height:35px;border:0;background:transparent;color:#68798c;font:800 12px Arial,sans-serif;border-radius:9px;cursor:pointer}
.sj-lang-segmented button.selected,.ac-account-lang button.selected{background:#d71932;color:#fff;box-shadow:0 3px 12px #d7193220}
#mobileMarket .mm-desktop-bar{gap:16px;padding:9px max(20px,calc((100vw - 1240px)/2));min-height:66px;align-items:center}
#mobileMarket .mm-desktop-brand img{max-width:142px;max-height:45px;object-fit:contain}
#mobileMarket .mm-desktop-actions{gap:7px;justify-content:flex-start}
#mobileMarket .mm-desktop-actions button{min-height:39px!important;padding:8px 12px!important;font-size:12px!important}
#mobileMarket .mm-desktop-actions [data-desktop-action="chat"][hidden]{display:none!important}
#mobileMarket .mm-desktop-actions [data-desktop-action="mine"][hidden]{display:none!important}
.sj-shared-head [data-chat][hidden]{display:none!important}
@media(min-width:1025px){.sj-shared-search{margin-inline-start:auto}}
@media(max-width:1024px){.sj-mobile-lang-row{position:sticky;bottom:0;background:white;border-top:1px solid #e3e8ef;z-index:6}.sj-mobile-lang-row .sj-lang-segmented{margin-inline-start:auto}}
/* v33 consistent AR/EN selector and coherent navigation on every page */
.sj-lang-segmented{direction:ltr;white-space:nowrap;border-radius:13px;background:#f0f3f7;border:1px solid #e2e6ed;box-shadow:0 1px 2px #12244308;padding:3px;gap:3px}
.sj-lang-segmented button{color:#495971!important;background:transparent!important;border:0!important;border-radius:10px!important;min-width:43px!important;min-height:36px!important;font-size:12px!important;font-weight:800!important;padding:6px 9px!important}
.sj-lang-segmented button.selected{background:#d71932!important;color:#fff!important;box-shadow:0 3px 12px #d7193226!important}
.sj-lang-segmented button:focus-visible{outline:2px solid #e25b70;outline-offset:2px}
@media(min-width:1025px){
 #mobileMarket .mm-desktop-bar{gap:10px}
 #mobileMarket .mm-desktop-actions{gap:8px;flex-wrap:nowrap;align-items:center}
 #mobileMarket .mm-desktop-actions .sj-lang-segmented button{min-height:36px!important}
}
/* More specific than generic desktop button rules from ui-stability.css. */
#mobileMarket .mm-desktop-actions .sj-lang-segmented button.selected{background:#d71932!important;color:#fff!important;border-color:#d71932!important}
#mobileMarket .mm-desktop-actions .sj-lang-segmented button:not(.selected){background:transparent!important;color:#526177!important}
#mobileMarket .mm-desktop-actions .sj-lang-segmented button:hover:not(.selected){background:#e8edf4!important}
