/* Seller-owned storefronts and a focused, mobile-friendly shop editor. */
.shop-kicker { margin: 0 0 18px; font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .12em; color: var(--link); }
.shop-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 112px; height: 112px; border-radius: 24px; overflow: hidden; background: var(--accent); color: #11180b; font: 800 70px/1 var(--display-font); border: 1px solid #d4fb5250; }
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-avatar [hidden] { display: none !important; }
.shop-banner { min-height: 420px; padding: 58px var(--gutter); position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #101412; }
.shop-banner__scene { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0c110efc 15%, #0c110ecc 65%, #0c110e50), url('../img/arcade-hero-v2.webp') 75% center / cover; }
.shop-banner__content { max-width: 1320px; }
.shop-banner .shop-kicker { color: var(--accent); }
.shop-identity { display: flex; align-items: center; gap: 26px; }
.shop-identity > div:last-child { min-width: 0; }
.shop-identity h1 { margin: 0; font-size: clamp(52px, 5.4vw, 104px); line-height: .98; font-family: var(--display-font); font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.shop-handle { font-size: 17px; margin: 12px 0 0; color: #cbd1cb; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 26px 0; font-size: 15px; color: #cbd1cb; }
.shop-meta > span { display: flex; gap: 7px; align-items: center; }
.shop-meta .stars__count { color: #cbd1cb; }
.shop-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-banner__actions .btn--outline { border-color: #788275; color: #fff; background: #10181290; }
.shop-banner__actions .btn--outline:hover { background: #293827; }
.shop-nav { display: flex; gap: 36px; padding: 0 var(--gutter); border-bottom: 1px solid var(--border); background: var(--panel); overflow: auto; white-space: nowrap; }
.shop-nav a { display: flex; align-items: center; gap: 10px; min-height: 70px; font-size: 16px; font-weight: 700; border-bottom: 3px solid transparent; }
.shop-nav a:hover { color: var(--link); border-bottom-color: var(--link); }
.shop-nav span { font-size: 12px; background: var(--panel-alt); padding: 4px 8px; border-radius: 5px; color: var(--muted); }
.shop-section { padding: clamp(38px, 4vw, 76px) var(--gutter); }
.shop-section--tint { background: var(--bg-alt); border-block: 1px solid var(--border); }
.shop-section__heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: end; margin-bottom: 28px; }
.shop-section__heading .shop-kicker { margin-bottom: 12px; }
.shop-section h2 { font-size: clamp(40px, 3.7vw, 68px); line-height: 1.03; margin: 0; }
.shop-section__heading > p { margin: 0; font-size: 15px; color: var(--muted); }
.shop-section__heading h2 > span { color: var(--muted); }
.shop-empty { border: 1px solid var(--border); background: var(--panel); border-radius: 14px; padding: 54px 26px; text-align: center; }
.shop-empty > .icon { color: var(--link); margin: 0 auto 20px; }
.shop-empty h3 { font: 700 36px/1.1 var(--display-font); margin: 0 0 14px; }
.shop-empty p { margin: 0 auto 24px; max-width: 620px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.shop-empty--compact { padding-block: 38px; }
.shop-empty--compact p { margin-bottom: 0; }
.shop-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }
.shop-about h2 { margin-bottom: 26px; }
.shop-story { font-size: 19px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 24px; }
.shop-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--border); padding-top: 26px; margin-top: 34px; }
.shop-facts strong { display: block; font: 800 46px/1.1 var(--display-font); }
.shop-facts span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.shop-policies { border: 1px solid var(--border); padding: 32px; border-radius: 16px; background: var(--panel); align-self: start; }
.shop-policies h3 { font: 700 36px/1.05 var(--display-font); margin: 0 0 18px; }
.shop-policies p { font-size: 16px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.shop-policy { border-top: 1px solid var(--border); }
.shop-policy summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; cursor: pointer; font-size: 17px; }
.shop-policy summary::-webkit-details-marker, .shop-policy-editor summary::-webkit-details-marker { display: none; }
.shop-policy[open] summary > .icon, .shop-policy-editor[open] summary > .icon { transform: rotate(45deg); }
.shop-policies > .inline-link { display: inline-flex; gap: 12px; align-items: center; min-height: 48px; }
.shop-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shop-review { border: 1px solid var(--border); background: var(--panel); padding: 26px; border-radius: 12px; }
.shop-review p { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.shop-review__date { margin-left: auto; font-size: 13px; color: var(--muted); }

.shop-editor-page { padding-bottom: 64px; }
.shop-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-block: 8px 34px; }
.shop-editor-heading > div { max-width: 820px; }
.shop-editor-heading .shop-kicker { margin-bottom: 14px; }
.shop-editor-heading h1 { margin: 0 0 16px; }
.shop-editor-heading p:last-child { font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 0; }
.shop-editor-heading > .btn { flex-shrink: 0; }
.shop-editor-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); align-items: start; gap: 30px; }
.shop-editor-form, .shop-editor-aside { min-width: 0; }
.shop-editor-panel, .shop-preview, .shop-share-card { background: var(--panel); border: 1px solid var(--border); border-radius: 15px; padding: 34px; margin-bottom: 24px; }
.shop-panel-heading { display: flex; align-items: start; gap: 18px; margin-bottom: 30px; }
.shop-panel-heading > span:first-child { flex-shrink: 0; color: var(--link); font: 800 38px/1 var(--display-font); }
.shop-panel-heading h2, .shop-panel-heading strong { display: block; font: 700 36px/1.1 var(--display-font); margin: 0; letter-spacing: -.025em; color: var(--text); }
.shop-panel-heading p, .shop-panel-heading small { display: block; font-size: 15px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; }
.shop-editor-form .form-group { margin-bottom: 25px; }
.shop-editor-form .form-group label { font-size: 15px; }
.shop-editor-form .form-control { min-height: 54px; }
.shop-editor-form .form-group small { display: block; margin-top: 9px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.shop-editor-form textarea { resize: vertical; }
.shop-image-field { display: flex; gap: 22px; align-items: start; padding-top: 5px; }
.shop-avatar--editor { width: 82px; height: 82px; border-radius: 18px; font-size: 48px; }
.shop-image-field .form-group { min-width: 0; flex: 1; margin: 0; }
.shop-image-field input[type=file] { font-size: 14px; max-width: 100%; color: var(--muted); }
.shop-image-field input[type=file]::file-selector-button { color: var(--text); background: var(--panel-alt); border: 1px solid var(--border); border-radius: 7px; min-height: 44px; padding: 10px 14px; margin: 6px 12px 6px 0; cursor: pointer; font: inherit; }
.shop-editor-form .shop-remove-avatar { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 14px; min-height: 44px; }
.shop-remove-avatar input { width: 18px; height: 18px; }
.shop-policy-editor > summary { display: flex; align-items: center; gap: 20px; justify-content: space-between; cursor: pointer; list-style: none; }
.shop-policy-editor > summary .shop-panel-heading { margin-bottom: 0; }
.shop-policy-fields { margin-top: 28px; }
.shop-policy-fields > .inline-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.shop-savebar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 10px; }
.shop-savebar p { font-size: 14px; color: var(--muted); margin: 0; }
.shop-savebar .btn { min-height: 58px; font-size: 17px; }
.shop-editor-aside { position: sticky; top: calc(var(--header-h) + var(--category-h) + 24px); }
.shop-preview { position: relative; overflow: hidden; isolation: isolate; }
.shop-preview::before { content: ''; position: absolute; inset: 0 0 auto; height: 94px; background: linear-gradient(115deg, #25371b, #131d19); border-bottom: 1px solid #d4fb5240; z-index: -1; }
.shop-preview > .shop-kicker { color: #d4fb52; font-size: 11px; }
.shop-preview__avatar { width: 76px; height: 76px; font-size: 48px; border-radius: 18px; margin: 26px 0 24px; }
.shop-preview h2 { font: 800 40px/1.05 var(--display-font); overflow-wrap: anywhere; margin: 0 0 8px; }
.shop-preview__handle { font-size: 14px; color: var(--muted); margin: 0 0 20px; overflow-wrap: anywhere; }
#shop-preview-bio { font-size: 16px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.shop-preview__location { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 14px; margin: 20px 0 26px; overflow-wrap: anywhere; }
.shop-share-card h3 { font: 700 32px/1.1 var(--display-font); margin: 0 0 14px; }
.shop-share-card p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.shop-share-card input { font-size: 14px; margin-bottom: 12px; }
.shop-next-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 12px; padding: 23px; background: var(--accent); color: #18220e; min-height: 80px; }
.shop-next-action span { display: flex; align-items: center; gap: 12px; }
.shop-next-action:hover { background: #e0ff80; }

@media (max-width: 1050px) {
  .shop-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-editor-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .shop-editor-aside > * { margin: 0; }
  .shop-editor-aside > .shop-next-action { grid-column: 1 / -1; }
  .shop-editor-heading { align-items: start; }
}
@media (max-width: 760px) {
  .shop-banner { min-height: 0; padding-block: 32px 34px; }
  .shop-banner__scene { background-position: 72% center; opacity: .8; }
  .shop-identity { gap: 18px; align-items: start; }
  .shop-identity .shop-avatar { width: 68px; height: 68px; border-radius: 16px; font-size: 44px; }
  .shop-identity h1 { font-size: clamp(36px, 10vw, 60px); }
  .shop-handle { font-size: 14px; margin-top: 10px; }
  .shop-meta { font-size: 13px; gap: 10px 16px; margin-block: 24px; }
  .shop-banner__actions { gap: 10px; }
  .shop-banner__actions .btn { flex: 1 1 auto; padding-inline: 14px; font-size: 14px; min-height: 50px; }
  .shop-nav { gap: 26px; }
  .shop-nav a { font-size: 14px; min-height: 62px; }
  .shop-nav span { font-size: 11px; }
  .shop-section h2 { font-size: 40px; }
  .shop-section__heading > p { font-size: 14px; }
  .shop-empty { padding: 34px 22px; }
  .shop-empty h3 { font-size: 32px; }
  .shop-empty p { font-size: 16px; }
  .shop-about, .shop-reviews { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shop-story { font-size: 17px; }
  .shop-facts { gap: 14px; }
  .shop-facts strong { font-size: 40px; }
  .shop-facts span { font-size: 12px; line-height: 1.5; }
  .shop-policies, .shop-review { padding: 24px; }
  .shop-review__date { font-size: 12px; }
  .shop-review .review__head { flex-wrap: wrap; }
  .shop-editor-page { padding-bottom: 44px; }
  .shop-editor-heading { flex-direction: column; gap: 22px; margin-bottom: 28px; }
  .shop-editor-heading .shop-kicker { font-size: 11px; }
  .shop-editor-heading p:last-child { font-size: 16px; }
  .shop-editor-heading > .btn { width: 100%; }
  .shop-editor-grid { gap: 34px; }
  .shop-editor-panel, .shop-preview, .shop-share-card { padding: 24px 20px; }
  .shop-panel-heading { gap: 14px; margin-bottom: 24px; }
  .shop-panel-heading > span:first-child { font-size: 32px; }
  .shop-panel-heading h2, .shop-panel-heading strong { font-size: 30px; }
  .shop-panel-heading p, .shop-panel-heading small { font-size: 14px; }
  .shop-image-field { flex-direction: column; gap: 16px; }
  .shop-image-field .form-group { width: 100%; }
  .shop-policy-editor { padding-block: 25px; }
  .shop-policy-editor > summary { gap: 12px; }
  .shop-savebar { flex-direction: column; gap: 14px; }
  .shop-savebar .btn { width: 100%; }
  .shop-editor-aside { grid-template-columns: minmax(0, 1fr); }
  .shop-preview { margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .shop-next-action:hover > .icon { transform: translateX(4px); transition: transform .25s; }
}
