/* Seller shops: shop page, cabinet editor, card badges. Colours come from the
   theme variables, so light, dark and seasonal themes apply as elsewhere. */
.shop-icon { width: 18px; height: 18px; flex: none; }
.shop-dialog { width: 100%; max-width: 760px; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; font-family: var(--font-market, inherit); }
.shop-dialog::backdrop { background: #151512cc; }
@media (min-width: 800px) { .shop-dialog { height: calc(100dvh - 48px); margin-top: 24px; border-radius: 20px; border: 1px solid var(--border); } }
.shop-loading, .shop-missing { padding: 48px 20px; text-align: center; color: var(--ink-soft); }
.shop-missing h2 { color: var(--ink); font-size: 20px; margin-bottom: 16px; }
.shop-cover { position: relative; z-index: 0; height: 150px; background: color-mix(in srgb, var(--brand-yellow, #f2c94c) 22%, var(--surface)); background-size: cover; background-position: center; }
.shop-cover-bar { position: absolute; top: calc(12px + var(--safe-top, 0px)); left: 12px; right: 12px; display: flex; justify-content: space-between; }
.shop-round { width: 44px; height: 44px; border-radius: 14px; border: 0; background: #1b1d19c0; color: #f2f1e9; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.shop-body { padding: 0 16px calc(32px + var(--bottom-inset, 0px)); display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.shop-owner-note { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.shop-head { display: flex; align-items: flex-end; gap: 12px; margin-top: -36px; }
.shop-owner-note + .shop-head { margin-top: 0; }
.shop-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); font-weight: 800; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-logo--big { width: 76px; height: 76px; border-radius: 20px; border: 4px solid var(--bg); font-size: 24px; }
.shop-logo--mid { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
.shop-logo--tiny { width: 18px; height: 18px; border-radius: 6px; font-size: 8px; }
.shop-badges { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.shop-badge { display: inline-flex; align-items: center; background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; }
.shop-badge--soft { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; font-weight: 700; }
.shop-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.5px; overflow-wrap: anywhere; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-soft); margin-top: -8px; }
.shop-rating { color: var(--accent, #b77716); font-weight: 800; }
.shop-description { font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.shop-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.shop-primary { min-height: 48px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); font: inherit; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.shop-actions .shop-primary { grid-column: 1 / -1; }
.shop-primary[aria-pressed="true"] { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.shop-secondary { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.shop-primary:disabled, .shop-secondary:disabled { opacity: .6; }
.shop-text-button { border: 0; background: none; color: var(--accent, #b77716); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 0; }
.shop-notify-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-soft); }
.shop-notify-note[hidden] { display: none; }
.shop-info { margin: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.shop-info > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; font-size: 14px; }
.shop-info > div + div { border-top: 1px solid var(--border); }
.shop-info dt { color: var(--ink-soft); }
.shop-info dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.shop-search { display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding: 0 14px; color: var(--ink-soft); }
.shop-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.shop-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab { flex: none; min-height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.shop-tab small { opacity: .65; font-size: 12px; }
.shop-tab[aria-pressed="true"] { background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); border-color: transparent; }
.shop-grid { padding: 0 !important; }
.shop-more[hidden] { display: none; }
.shop-section-title { margin: 10px 0 0; font-size: 19px; font-weight: 800; }
.shop-address { font-size: 14px; line-height: 1.5; }
.shop-address a, .shop-chip-link { color: var(--accent, #b77716); font-weight: 700; }
.shop-links { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip-link { text-decoration: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--ink); }
.shop-reviews { display: flex; flex-direction: column; gap: 10px; }
.shop-report { align-self: center; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 10px; }
.shop-report-form { display: flex; flex-direction: column; gap: 10px; }
.shop-radio { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; }

/* Cards and listing page */
.card.card--shop { box-shadow: 0 0 0 2px var(--brand-yellow, #f2c94c); }
.shop-card-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 7px; pointer-events: none; }
.shop-card-name { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); min-width: 0; }
.shop-card-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-seller { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.shop-seller-top { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.shop-seller-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-seller-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shop-seller-title strong { font-size: 16px; overflow-wrap: anywhere; color: var(--ink); }
.shop-seller { color: var(--ink); }
.shop-seller-sub { font-size: 13px; color: var(--ink-soft); }
.shop-seller-more { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.shop-seller-more:empty { display: none; }
.shop-seller-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shop-seller-thumbs:empty { display: none; }
.shop-thumb { height: 84px; border-radius: 10px; border: 0; padding: 0; overflow: hidden; background: var(--border); cursor: pointer; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-seller-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.shop-invite { border-radius: 16px; background: var(--surface); border: 1px solid var(--brand-yellow, #f2c94c); padding: 16px; display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.shop-invite strong { font-size: 17px; }
.shop-invite p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

/* Cabinet editor */
.shop-editor { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.shop-status { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.shop-status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-state { font-size: 13px; font-weight: 800; }
.shop-state--active { color: #2e8b47; }
[data-theme="dark"] .shop-state--active { color: #7fcb86; }
.shop-state--hidden { color: #c4513f; }
.shop-state--closed { color: var(--ink-soft); }
.shop-hidden-text { margin: 0; font-size: 13px; line-height: 1.45; }
.shop-link-row { display: flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 12px; background: var(--bg); padding: 0 6px 0 12px; font-size: 14px; }
.shop-link-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-mini { min-height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); font: inherit; font-weight: 800; font-size: 12px; cursor: pointer; flex: none; }
.shop-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.shop-stats strong { display: block; font-size: 18px; }
.shop-stats small { color: var(--ink-soft); font-size: 11px; }
.shop-form-title { margin: 8px 0 0; font-size: 18px; font-weight: 800; }
.shop-form-title small { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.shop-media { display: flex; gap: 12px; align-items: stretch; }
.shop-upload { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; border: 1px dashed var(--border); background: var(--surface); color: var(--ink-soft); font-size: 13px; text-align: center; cursor: pointer; }
.shop-upload img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-upload--logo { width: 76px; height: 76px; flex: none; }
.shop-upload--cover { flex: 1; height: 76px; }
.shop-upload.is-disabled { cursor: default; opacity: .7; }
.shop-upload.is-loading { opacity: .5; }
.shop-hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.shop-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shop-field-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.shop-input { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; font-size: 15px; }
textarea.shop-input { padding: 10px 12px; resize: vertical; min-height: 84px; line-height: 1.4; }
.shop-input-prefix { display: flex; align-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding-left: 12px; font-size: 14px; color: var(--ink-soft); }
.shop-input-prefix .shop-input { border: 0; padding-left: 2px; min-width: 0; }
.shop-field-note { font-size: 13px; }
.shop-field-note.is-ok { color: #2e8b47; }
[data-theme="dark"] .shop-field-note.is-ok { color: #7fcb86; }
.shop-field-note.is-bad, .shop-field-error { color: #c4513f; font-size: 13px; }
.shop-field.has-error .shop-input, .shop-field.has-error .shop-input-prefix { border-color: #d9705f; }
.shop-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-toggle { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.shop-toggle[aria-pressed="true"] { background: var(--brand-yellow, #f2c94c); color: var(--on-yellow, #24231f); border-color: transparent; }
.shop-section-list { display: flex; flex-direction: column; gap: 8px; }
.shop-section-list.has-error { outline: 1px solid #d9705f; border-radius: 12px; padding: 6px; }
.shop-section-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.shop-section-row .shop-mini { background: var(--bg); color: var(--ink); border: 1px solid var(--border); }
.shop-section-tools { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.shop-icon-button { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.shop-icon-button:disabled { opacity: .35; }
.shop-save { margin-top: 8px; }
.shop-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 60dvh; overflow-y: auto; margin-bottom: 12px; }
.shop-pick { display: grid; grid-template-columns: auto 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--border); }
.shop-pick input { width: 20px; height: 20px; }
.shop-pick-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--border); }
.shop-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-pick-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.shop-pick-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-pick-text small { color: var(--ink-soft); }
@media (max-width: 380px) { .shop-field-pair { grid-template-columns: 1fr; } }
