/* Stairway to Gray — brand store page. Layout shared with the Grey Markets build; tokens mapped onto the STG dark terminal palette. */
.gm-store{
	--gm-ink:var(--stg-fg); --gm-ink-2:#c9cdd9; --gm-mute:var(--stg-muted); --gm-faint:#6f7589;
	--gm-surface:var(--stg-bg-2); --gm-ivory:var(--stg-bg-3); --gm-stone:var(--stg-line);
	--gm-hair:var(--stg-line); --gm-hair-2:#3a4154;
	--gm-cobalt:var(--stg-accent); --gm-cobalt-deep:#a9c2ff; --gm-cobalt-50:rgba(122,162,255,.13); --gm-cobalt-200:#b9c9ff;
	--gm-font:inherit; --gm-r-sm:10px; --gm-r:14px; --gm-r-lg:18px;
	--gm-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 24px 48px -28px rgba(0,0,0,.8);
	--gm-shadow-sm:0 12px 24px -16px rgba(0,0,0,.7);
	--gm-ease:cubic-bezier(.2,.7,.2,1);
}
/* Grey Markets — brand store page (ustone-child/dokan/store.php). Loaded only on Dokan store pages. */
.gm-store{ --gm-verify:#1d7cf2; --gm-verify-ink:#0b5ac2; --gm-star:#e5a00d; --gm-star-off:#dcdcd3; --gm-green:#0c7a40; margin:8px 0 64px; }

/* ---------- Header ---------- */
.gm-sh{
	position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:32px;
	padding:32px; background:var(--gm-surface); border:1px solid var(--gm-hair); border-radius:var(--gm-r-lg); box-shadow:var(--gm-shadow);
}
.gm-sh::before{ content:""; position:absolute; inset:0 0 auto 0; height:180px; pointer-events:none;
	background:radial-gradient(640px 180px at 8% -10%,var(--gm-cobalt-50),transparent 72%); }
.gm-sh > *{ position:relative; }
.gm-sh-main{ display:flex; gap:28px; align-items:flex-start; min-width:0; }
.gm-sh-logo{
	flex:0 0 172px; height:172px; display:flex; align-items:center; justify-content:center; padding:16px; overflow:hidden;
	background:var(--gm-ink); border-radius:20px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),var(--gm-shadow-sm);
}
.gm-sh-logo img{ max-width:100%!important; max-height:100%!important; width:auto!important; height:auto!important; object-fit:contain; border-radius:8px; }
.gm-sh-logo .stg-card-mono{ font-size:46px; font-weight:650; font-stretch:115%; color:var(--gm-surface); }
.gm-sh-copy{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; padding-top:2px; }

.gm-sh-name:not(#gm-x){ display:flex; align-items:center; flex-wrap:wrap; gap:.28em; margin:0!important; font-size:clamp(30px,3.5vw,46px)!important; }
.gm-sh-tick{ display:inline-flex; flex:none; width:.74em; height:.74em; color:var(--gm-verify); }
.gm-sh-tick .gm-tick{ width:100%; height:100%; filter:drop-shadow(0 3px 6px rgba(29,124,242,.35)); }

.gm-sh-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin:0!important; padding:0!important; list-style:none!important; font-size:14px; color:var(--gm-mute); }
.gm-sh-meta li{ display:inline-flex; align-items:center; gap:7px; margin:0!important; padding:0; list-style:none!important; }
.gm-sh-meta li::before{ display:none!important; }
.gm-sh-meta svg{ flex:none; width:17px; height:17px; color:var(--gm-faint); }
.gm-sh-meta a{ display:inline-flex; align-items:center; gap:8px; color:inherit!important; text-decoration:none!important; }
.gm-sh-meta a:hover span{ color:var(--gm-cobalt); text-decoration:underline; }
.gm-sh-meta strong{ font-weight:600; color:var(--gm-ink); }
.gm-sh-meta li.gm-pill-verify{ gap:6px; padding:5px 12px 5px 7px; border-radius:999px; background:rgba(29,124,242,.1); box-shadow:inset 0 0 0 1px rgba(29,124,242,.18);
	color:var(--gm-verify-ink); font-size:12.5px; font-weight:600; letter-spacing:.01em; }
.gm-sh-meta li.gm-pill-verify svg{ width:16px; height:16px; color:var(--gm-verify); }

.gm-sh-bio{ margin:2px 0 0!important; max-width:62ch; font-size:15.5px; line-height:1.65; color:var(--gm-ink-2)!important; }
.gm-sh-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.gm-sh-actions .button{ border-radius:12px!important; }

.gm-sh-facts{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; align-content:center; }
.gm-sh-facts > div{ display:flex; flex-direction:column; justify-content:center; gap:6px; min-height:100px; padding:16px 18px;
	background:var(--gm-ivory); border:1px solid var(--gm-hair); border-radius:var(--gm-r); }
.gm-sh-facts dd{ order:-1; display:flex; align-items:center; gap:7px; margin:0; font-size:26px; font-weight:600; font-stretch:112%; letter-spacing:-.02em; line-height:1.05; color:var(--gm-ink); font-variant-numeric:tabular-nums; }
.gm-sh-facts dt{ margin:0; font-size:12.5px; font-weight:500; color:var(--gm-mute); }
.gm-sh-facts .is-escrow{ background:#edf6f0; border-color:rgba(12,122,64,.16); }
.gm-sh-facts .is-escrow dd{ font-size:20px; color:var(--gm-green); }
.gm-sh-facts .is-escrow svg{ flex:none; width:22px; height:22px; }
.gm-sh-facts > div:only-of-type, .gm-sh-facts > div:nth-child(odd):last-child{ grid-column:1 / -1; }

.gm-sh-trust{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0 0!important; padding:0!important; list-style:none!important; }
.gm-sh-trust li{ display:flex; align-items:center; gap:13px; margin:0!important; padding:14px 16px; list-style:none!important;
	background:rgba(251,251,247,.65); border:1px solid var(--gm-hair); border-radius:var(--gm-r); font-size:13px; line-height:1.45; color:var(--gm-mute); }
.gm-sh-trust li::before{ display:none!important; }
.gm-sh-trust svg{ flex:none; width:38px; height:38px; padding:9px; border-radius:11px; background:var(--gm-cobalt-50); color:var(--gm-cobalt); }
.gm-sh-trust strong{ display:block; margin-bottom:1px; font-size:14px; font-weight:600; color:var(--gm-ink); }

/* ---------- Toolbar spacing ---------- */
.gm-store .stg-store-bar{ margin-top:26px; }

/* ---------- Stars ---------- */
.gm-stars{ position:relative; display:inline-block; flex:none; font-size:15px; line-height:1; letter-spacing:.1em; white-space:nowrap; vertical-align:middle; font-family:system-ui,sans-serif; }
.gm-stars::before{ content:"★★★★★"; color:var(--gm-star-off); }
.gm-stars-fill{ position:absolute; inset:0 auto 0 0; overflow:hidden; }
.gm-stars-fill::before{ content:"★★★★★"; color:var(--gm-star); }

/* ---------- Section heads ---------- */
.gm-sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin-bottom:22px; }
.gm-sec-head h2:not(#gm-x){ margin:10px 0 0!important; font-size:clamp(24px,2.5vw,32px)!important; }
.gm-sec-head > a{ font-size:14px; font-weight:600; text-decoration:none!important; white-space:nowrap; }
.gm-sec-head > a:hover{ text-decoration:underline!important; }

/* ---------- Reviews ---------- */
.gm-rv{ margin-top:72px; scroll-margin-top:120px; }
.gm-rv-body{ display:grid; grid-template-columns:290px minmax(0,1fr); gap:18px; align-items:start; }
.gm-rv-sum{ position:sticky; top:120px; padding:26px; background:var(--gm-surface); border:1px solid var(--gm-hair); border-radius:var(--gm-r-lg); box-shadow:var(--gm-shadow-sm); }
.gm-rv-avg{ display:block; font-size:60px; font-weight:600; font-stretch:115%; letter-spacing:-.045em; line-height:1; color:var(--gm-ink); font-variant-numeric:tabular-nums; }
.gm-rv-sum > .gm-stars{ display:block; width:max-content; margin:12px 0 8px; font-size:20px; }
.gm-rv-count{ display:block; font-size:13px; color:var(--gm-mute); }
.gm-rv-dist{ display:grid; gap:9px; margin:20px 0 0!important; padding:18px 0 0!important; border-top:1px solid var(--gm-hair); list-style:none!important; }
.gm-rv-dist li{ display:grid; grid-template-columns:30px 1fr 18px; align-items:center; gap:10px; margin:0!important; list-style:none!important; font-size:12.5px; color:var(--gm-mute); font-variant-numeric:tabular-nums; }
.gm-rv-dist li::before{ display:none!important; }
.gm-rv-dist li > span:last-child{ text-align:right; }
.gm-rv-dist i{ display:block; height:6px; border-radius:99px; background:var(--gm-stone); overflow:hidden; }
.gm-rv-dist b{ display:block; height:100%; border-radius:inherit; background:var(--gm-star); }
.gm-rv-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.gm-rv-card{ display:flex; flex-direction:column; gap:14px; margin:0; padding:22px; background:var(--gm-surface); border:1px solid var(--gm-hair); border-radius:var(--gm-r);
	transition:border-color .2s var(--gm-ease),box-shadow .2s var(--gm-ease); }
.gm-rv-card:hover{ border-color:var(--gm-hair-2); box-shadow:var(--gm-shadow-sm); }
.gm-rv-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gm-rv-top time{ font-size:12.5px; color:var(--gm-faint); }
.gm-rv-card p{ flex:1; margin:0!important; font-size:14.5px; line-height:1.65; color:var(--gm-ink-2)!important; }
.gm-rv-by{ display:flex; align-items:center; gap:10px; padding-top:14px; border-top:1px solid var(--gm-hair); }
.gm-rv-av{ flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--gm-cobalt-50); color:var(--gm-cobalt); font-size:12px; font-weight:650; letter-spacing:.02em; }
.gm-rv-by strong{ font-size:13.5px; font-weight:600; color:var(--gm-ink); }

/* ---------- Other brands ---------- */
.gm-ob{ margin-top:72px; }
.gm-ob-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.gm-ob-card{ display:flex; align-items:center; gap:14px; min-width:0; padding:14px 16px 14px 14px; background:var(--gm-surface); border:1px solid var(--gm-hair); border-radius:var(--gm-r);
	color:var(--gm-ink)!important; text-decoration:none!important; transition:transform .2s var(--gm-ease),border-color .2s var(--gm-ease),box-shadow .2s var(--gm-ease); }
.gm-ob-card:hover{ transform:translateY(-2px); border-color:rgba(31,58,224,.35); box-shadow:var(--gm-shadow-sm); }
.gm-ob-logo{ flex:none; display:flex; align-items:center; justify-content:center; width:92px; height:58px; padding:8px 10px; overflow:hidden; background:var(--gm-ink); border-radius:12px; }
.gm-ob-logo img{ max-width:100%!important; max-height:100%!important; width:auto!important; height:auto!important; object-fit:contain; border-radius:4px; }
.gm-ob-logo .stg-card-mono{ font-size:17px; font-weight:650; color:var(--gm-surface); }
.gm-ob-txt{ display:flex; flex:1; flex-direction:column; gap:2px; min-width:0; }
.gm-ob-txt strong{ overflow:hidden; font-size:14px; font-weight:600; line-height:1.3; white-space:nowrap; text-overflow:ellipsis; }
.gm-ob-txt em{ font-size:12.5px; font-style:normal!important; color:var(--gm-mute); }
.gm-ob-card b{ flex:none; font-weight:500; color:var(--gm-cobalt); transition:transform .2s var(--gm-ease); }
.gm-ob-card:hover b{ transform:translateX(3px); }

/* ---------- Responsive ---------- */
@media (max-width:1100px){
	.gm-sh{ grid-template-columns:1fr; gap:24px; }
	.gm-sh-facts{ grid-template-columns:repeat(4,minmax(0,1fr)); }
	.gm-sh-facts > div:only-of-type, .gm-sh-facts > div:nth-child(odd):last-child{ grid-column:auto; }
	.gm-ob-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:860px){
	.gm-sh-trust{ grid-template-columns:1fr; }
	.gm-rv-body{ grid-template-columns:1fr; }
	.gm-rv-sum{ position:static; }
	.gm-ob-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
	.gm-store{ margin-top:4px; }
	.gm-sh{ padding:20px; gap:20px; border-radius:var(--gm-r); }
	.gm-sh-main{ flex-direction:column; gap:16px; }
	.gm-sh-logo{ flex-basis:auto; width:112px; height:112px; padding:10px; border-radius:16px; }
	.gm-sh-meta{ gap:8px 14px; font-size:13.5px; }
	.gm-sh-actions{ width:100%; }
	.gm-sh-actions .button{ flex:1 1 auto; justify-content:center; text-align:center; }
	.gm-sh-facts{ grid-template-columns:1fr 1fr; gap:8px; }
	.gm-sh-facts > div{ min-height:0; padding:14px; }
	.gm-sh-facts dd{ font-size:21px; }
	.gm-sh-facts .is-escrow dd{ font-size:17px; }
	.gm-sh-facts > div:nth-child(odd):last-child{ grid-column:1 / -1; }
	.gm-sh-facts .is-escrow{ flex-direction:row; align-items:center; justify-content:space-between; }
	.gm-sh-trust li{ padding:12px 14px; gap:12px; }
	.gm-sh-trust svg{ width:34px; height:34px; padding:8px; }
	.gm-rv, .gm-ob{ margin-top:52px; }
	.gm-rv-list, .gm-ob-grid{ grid-template-columns:1fr; }
	.gm-rv-avg{ font-size:48px; }
}
@media (prefers-reduced-motion:reduce){ .gm-ob-card, .gm-ob-card b, .gm-rv-card{ transition:none; } .gm-ob-card:hover{ transform:none; } }

/* ---------- STG dark-palette overrides ---------- */
.gm-store{ --gm-verify:#4c9bff; --gm-verify-ink:#9cc8ff; --gm-star:#f2b632; --gm-star-off:#3a4154; --gm-green:var(--stg-accent-2); }
.gm-sh{ background:linear-gradient(180deg,var(--stg-bg-3),var(--stg-bg-2)); }
.gm-sh::before{ background:repeating-linear-gradient(90deg,var(--stg-accent) 0 6px,transparent 6px 12px); height:3px; opacity:.45; }
.gm-sh-logo,.gm-ob-logo{ background:#0a0c12; box-shadow:inset 0 0 0 1px var(--stg-line); }
.gm-sh-name:not(#gm-x){ font-family:var(--stg-mono)!important; letter-spacing:-.02em!important; }
.gm-sh-facts dd,.gm-rv-avg{ font-family:var(--stg-mono); }
.gm-sh-facts .is-escrow{ background:rgba(156,230,192,.07); border-color:rgba(156,230,192,.22); }
.gm-sh-meta li.gm-pill-verify{ background:rgba(76,155,255,.14); box-shadow:inset 0 0 0 1px rgba(76,155,255,.3); }
.gm-sh-trust li{ background:var(--stg-bg-2); }
.gm-ob-card:hover{ border-color:rgba(122,162,255,.5); }

/* ---------- Store banner (dokan_profile_settings['banner']) ---------- */
.gm-sh-banner{ grid-column:1 / -1; position:relative; height:clamp(150px,17.5vw,250px); margin:-32px -32px -6px; overflow:hidden; border-radius:var(--gm-r-lg) var(--gm-r-lg) 0 0; background:var(--gm-ivory); }
.gm-sh-banner img{ display:block; width:100%!important; height:100%!important; max-width:none!important; object-fit:cover; object-position:64% 50%; }
.gm-sh-banner::after{ content:""; position:absolute; inset:auto 0 0 0; height:34%; pointer-events:none; background:linear-gradient(to bottom,transparent,var(--gm-surface)); }
.gm-sh.has-banner::before{ display:none; }
.gm-sh.has-banner .gm-sh-logo{ position:relative; z-index:2; margin-top:-96px; box-shadow:0 0 0 5px var(--gm-surface),0 18px 36px -18px rgba(0,0,0,.85); }
@media (max-width:640px){
	.gm-sh-banner{ height:132px; margin:-20px -20px -4px; border-radius:var(--gm-r) var(--gm-r) 0 0; }
	.gm-sh.has-banner .gm-sh-logo{ margin-top:-72px; box-shadow:0 0 0 4px var(--gm-surface),0 14px 28px -16px rgba(0,0,0,.85); }
}
