/* One calm header, with personal controls only after sign-in. */
#site-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:22px;height:72px;max-width:1240px;padding:0 32px;margin:0 auto;border:0;border-radius:0;background:transparent;position:relative;z-index:40}
#site-header .brand{display:inline-flex;align-items:center;flex:none;gap:7px;font-size:28px;letter-spacing:-1.5px;width:auto}
#site-header .brand-symbol{width:32px;height:32px;flex:none}
#site-header .header-feed{margin:0 auto 0 12px;min-height:44px;padding:10px 15px;font-size:12px;border-radius:10px;white-space:nowrap}
#site-header .header-actions{display:flex;align-items:center;gap:12px;min-width:0;margin-left:auto}
#site-header .city-picker{display:block;position:relative;max-width:180px;min-width:44px;margin:0;grid-column:auto;grid-row:auto}
#site-header .city-picker summary{min-height:44px;display:flex;align-items:center;gap:5px;font-size:11px;color:#8b7b9a}
#site-header .city-picker summary>svg{width:16px;height:16px;flex:none}
#site-header #city-label{max-width:130px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#site-header .city-menu{left:auto;right:0;top:calc(100% + 8px);background:#fff;border-color:#ebe3f2;z-index:50}
#site-header .header-login{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 18px;border-radius:11px;background:#7653d8;color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
#site-header .header-saved{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;background:#f1ebf9;border-radius:11px;color:#7653bd;font-size:11px;font-weight:700;white-space:nowrap}
#site-header .header-saved svg{width:19px;height:19px;flex:none}
#site-header #saved-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;background:#e3d7f4;border-radius:9px;font-size:9px;line-height:1}
#site-header .account-menu{position:relative;flex:none}
#site-header .account-menu>summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border-radius:11px;color:#776286;background:#f6f2fa;cursor:pointer}
#site-header .account-menu>summary::-webkit-details-marker{display:none}
#site-header .account-menu>summary svg{width:20px;height:20px}
#site-header .account-panel{position:absolute;top:calc(100% + 8px);right:0;width:224px;max-width:calc(100vw - 28px);padding:7px;border:1px solid #ebe3f2;border-radius:14px;background:#fff;box-shadow:0 12px 35px #3f245324;z-index:50}
#site-header .account-panel>*{display:flex;align-items:center;min-height:44px;width:100%;padding:10px 12px;text-align:left;font-size:12px;color:#614b70;border-radius:8px}
#site-header .account-panel>*:hover{background:#f5effb}
#site-header button:focus-visible,#site-header summary:focus-visible,#site-header a:focus-visible{outline:3px solid #baa1ee;outline-offset:2px}
#site-header[data-auth-state="guest"] [data-auth-only],#site-header[data-auth-state="signed-in"] [data-guest-only]{display:none!important}

/* A full-width purchase target in the same style as the photo popup. */
.product-shop-card{grid-template-columns:58px minmax(0,1fr) 44px;gap:7px 9px}
.product-shop-card .shop-card-actions{align-self:start;display:flex;align-items:center;justify-content:flex-end;flex-direction:row}
.product-shop-card .product-save{width:44px;height:44px;padding:12px}
.product-shop-card .shop-card-buy{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;height:44px;min-height:44px;padding:8px 11px;border-radius:9px;background:#ffdf38;color:#2f2514;font-size:11px;font-weight:700;line-height:1.3}
.product-shop-card .shop-card-buy>span:nth-child(2){flex:1;text-align:center}
.product-shop-card .shop-card-buy>svg{width:14px;height:14px;flex:none}
.product-shop-card .shop-card-buy .market-button-mark{display:grid;place-items:center;width:24px;height:21px;flex:none}
.product-shop-card .shop-card-buy .market-button-mark img{display:block;width:24px;height:21px;object-fit:contain}
.product-shop-card .shop-card-buy .market-word{font-size:10px;font-weight:850;letter-spacing:-.5px}
.product-shop-card .shop-card-buy.store-ozon{background:#005bff;color:#fff}
.product-shop-card .shop-card-buy.store-wb{background:linear-gradient(100deg,#d021c9,#8032df);color:#fff}
.product-shop-card .shop-card-buy:hover{filter:brightness(.96)}

@media(max-width:899px){
 #site-header{height:64px;padding:0 20px;gap:10px}
 #site-header .brand{font-size:25px;letter-spacing:-1.4px;gap:6px}
 #site-header .brand-symbol{width:29px;height:29px}
 #site-header .header-feed{display:none}
 #site-header .header-actions{gap:8px}
 #site-header .header-save-label{display:none}
 #site-header .header-saved{width:44px;height:44px;padding:10px}
 #site-header #saved-count{position:absolute;top:0;right:-2px;min-width:17px;height:17px;font-size:8px}
 #site-header .city-picker{max-width:128px}
 #site-header #city-label{max-width:92px}
 #site-header .city-picker summary{font-size:10px}
 #site-header .city-menu{position:fixed;top:61px;right:16px;left:auto;width:330px;max-width:calc(100vw - 32px)}
}
@media(max-width:430px){
 #site-header{padding:0 14px;gap:6px}
 #site-header .brand{font-size:23px;gap:5px;letter-spacing:-1.3px}
 #site-header .brand-symbol{width:27px;height:27px}
 #site-header .header-actions{gap:5px}
 #site-header .city-picker{max-width:84px}
 #site-header #city-label{max-width:55px}
 #site-header .city-picker summary{gap:3px;font-size:9px}
 #site-header .city-picker summary>svg{width:14px;height:14px}
 #site-header .header-login{padding:8px 13px;font-size:11px}
 #site-header[data-auth-state="signed-in"] .city-picker{max-width:64px}
 #site-header[data-auth-state="signed-in"] #city-label{max-width:34px}
}
@media(max-width:350px){
 #site-header .brand{font-size:21px}
 #site-header .brand-symbol{width:25px;height:25px}
 #site-header[data-auth-state="signed-in"] .city-picker{width:44px;min-width:44px}
 #site-header[data-auth-state="signed-in"] .city-chevron{display:none}
 #site-header[data-auth-state="signed-in"] #city-label{max-width:25px}
}
