/* Public storefront — tokens from site theme_json (applyTheme in store.html) */
body.store-page {
  --shop-bg: #0b1220;
  --shop-surface: #151c27;
  --shop-ink: #e2e8f0;
  --shop-muted: #94a3b8;
  --shop-heading: #f1f5f9;
  --shop-accent: #38bdf8;
  --shop-accent-bright: #7dd3fc;
  --shop-line: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(900px 420px at 10% -10%, color-mix(in srgb, var(--shop-accent) 16%, transparent), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--shop-accent) 10%, transparent), transparent 50%),
    var(--shop-bg);
  color: var(--shop-ink);
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", "DM Sans", system-ui, sans-serif;
}
body.store-page.theme-applied {
  /* full brand tokens applied */
}
body.store-page .store-hero h1 {
  font-family: "Cormorant Garamond", "Outfit", Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--shop-heading);
  font-weight: 700;
}

/* Shop Manager — multi-tenant inventory UI (one catalog per brand / siteId) */

/* Mount marker only — never steal a column from .cc-app (rail | main) */
#shopShellHost,
#shopApp > #shopShellHost {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.shop-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.shop-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
  max-height: min(70vh, 640px);
  overflow: auto;
}
.shop-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  font: inherit;
}
.shop-item:hover,
.shop-item.is-active {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.shop-item__img {
  width: 56px;
  height: 56px;
  border-radius: 0.55rem;
  object-fit: cover;
  background: #0f172a;
  flex-shrink: 0;
}
.shop-item__img--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font-size: 0.65rem;
  color: #94a3b8;
  border: 1px solid color-mix(in srgb, var(--sky, #38bdf8) 28%, rgba(148, 163, 184, 0.22));
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--sky, #38bdf8) 22%, transparent) 0%,
      color-mix(in srgb, var(--sky, #38bdf8) 6%, #0f172a) 100%
    );
  box-sizing: border-box;
}
.shop-item__img-initials {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: #e2e8f0;
  line-height: 1;
}
.shop-item__img-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1;
}
.shop-item__name {
  font-weight: 700;
  font-size: 0.95rem;
}
.shop-item__meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}
.shop-item__price {
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}
.badge-active { background: rgba(74, 222, 128, 0.15); color: #86efac; }
.badge-draft { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.badge-archived { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.badge-sold { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }

.shop-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.shop-photos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.shop-photos .rm {
  position: absolute;
  top: 2px;
  right: 2px;
}
.shop-photo-wrap {
  position: relative;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Public storefront layout */
.store-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.store-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.store-exit {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--shop-heading, #f1f5f9);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.store-exit:hover {
  color: var(--shop-accent);
  border-bottom-color: var(--shop-accent);
}
.store-exit--ghost {
  color: var(--shop-muted);
  font-weight: 600;
}
.store-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0.35rem 0;
  line-height: 1.1;
}
.store-hero .muted {
  color: var(--shop-muted);
}
.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}
.store-card {
  border: 1px solid var(--shop-line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--shop-surface);
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--shop-ink) 8%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--shop-ink) 12%, transparent);
}
.store-card__img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--shop-accent) 18%, var(--shop-surface)),
      color-mix(in srgb, var(--shop-accent-bright, var(--shop-accent)) 12%, var(--shop-bg)));
}
.store-card__img--empty {
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--shop-heading) 35%, transparent);
}
.store-card__body {
  padding: 1rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.store-card__body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  color: var(--shop-heading);
  line-height: 1.2;
}
.store-card__cat {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shop-accent);
}
.store-card__price {
  font-weight: 800;
  color: var(--shop-accent);
  font-size: 1.05rem;
}
.store-card__price s {
  color: var(--shop-muted);
  font-weight: 500;
  margin-right: 0.35rem;
}
.store-card__desc {
  font-size: 0.88rem;
  color: var(--shop-muted);
  flex: 1;
  margin: 0;
}
.store-buy.btn,
.store-card .btn {
  margin-top: 0.65rem;
  align-self: flex-start;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--shop-accent-bright, var(--shop-accent)), var(--shop-accent)) !important;
  color: #1a1408 !important;
  border: none !important;
  font-weight: 800 !important;
}
.store-card .badge-sold {
  margin-top: 0.65rem;
  align-self: flex-start;
}

/* Light brands (e.g. Rios pink/grey/gold) — soft paper look */
body.store-page.store-light {
  color: var(--shop-ink);
}
body.store-page.store-light .store-card {
  box-shadow: 0 12px 32px rgba(44, 28, 36, 0.08);
}
body.store-page.store-light .store-buy.btn,
body.store-page.store-light .store-card .btn {
  border-radius: 0.2rem 1.2rem 0.2rem 1.2rem !important;
  background: var(--shop-accent, #C9A227) !important;
  color: #1a1408 !important;
  border: 1.5px solid color-mix(in srgb, var(--shop-accent, #C9A227) 70%, #000) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 3px color-mix(in srgb, var(--shop-accent, #C9A227) 18%, transparent) !important;
}

/* Section labels in product editor (Shopify-like blocks) */
.shop-section-label {
  margin: 1rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
}
.shop-section-label:first-child { margin-top: 0; }
.shop-editor-actions { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border, rgba(148,163,184,0.16)); }
.shop-editor-sticky {
  position: sticky;
  bottom: 0;
  background: var(--panel, #151c27);
  z-index: 5;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding: 0.85rem 0.5rem;
  border-top: 1px solid var(--border, rgba(148,163,184,0.16));
}
body.theme-light .shop-editor-sticky {
  background: #FFFCFD;
}

/* Collections / category chips */
.shop-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.shop-chip {
  appearance: none;
  border: 1px solid var(--border, rgba(148,163,184,0.2));
  background: transparent;
  color: var(--muted, #94a3b8);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
  flex: 0 0 auto;
}
.shop-chip.is-on {
  background: color-mix(in srgb, var(--sky, #38bdf8) 18%, transparent);
  border-color: color-mix(in srgb, var(--sky, #38bdf8) 45%, transparent);
  color: var(--text, #e2e8f0);
}
body.theme-light .shop-chip.is-on {
  color: #1a1408;
}

/* Bulk actions bar */
.shop-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--sky, #38bdf8) 35%, transparent);
  background: color-mix(in srgb, var(--sky, #38bdf8) 10%, transparent);
  font-size: 0.88rem;
  font-weight: 700;
}
.shop-bulk-bar.hidden { display: none !important; }
.shop-bulk-bar .btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

.shop-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.shop-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.shop-select-all input { width: auto; margin: 0; }

/* Product row with checkbox */
.shop-item--row {
  display: grid;
  grid-template-columns: auto 56px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: default;
}
.shop-item__check {
  display: grid;
  place-items: center;
  cursor: pointer;
}
.shop-item__check input { width: 1.05rem; height: 1.05rem; margin: 0; cursor: pointer; }
.shop-item__main {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  min-width: 0;
}
.shop-item__main:hover .shop-item__name { color: var(--sky, #38bdf8); }

/* Media gallery — photos optional */
.shop-media-field .shop-media-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 2.5rem;
  margin: 0;
}
.shop-media-field #pPhoto {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.shop-media-field {
  position: relative;
}
.shop-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.45rem 0 0.25rem;
}
.shop-media-hint {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}
.shop-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  min-height: 0;
}
.shop-photos-empty {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--sky, #38bdf8) 35%, rgba(148, 163, 184, 0.3));
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--sky, #38bdf8) 12%, transparent) 0%,
      rgba(15, 23, 42, 0.45) 100%
    );
  box-sizing: border-box;
}
.shop-photos-empty__tile {
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--sky, #38bdf8) 75%, #fff),
    var(--sky, #38bdf8)
  );
  color: #041018;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--sky, #38bdf8) 28%, transparent);
}
.shop-photos-empty__initials {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.shop-photos-empty__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.shop-photos-empty__copy strong {
  font-size: 0.92rem;
  color: #f1f5f9;
}
.shop-photos-empty__copy span {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}
body.theme-light[data-page="shop"] .shop-photos-empty__copy strong,
body.theme-light[data-studio="shop"] .shop-photos-empty__copy strong {
  color: var(--text, #1e293b);
}
body.theme-light[data-page="shop"] .shop-photos-empty__copy span,
body.theme-light[data-studio="shop"] .shop-photos-empty__copy span {
  color: var(--muted, #64748b);
}
.shop-photo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.shop-photo-wrap.is-primary {
  border-color: color-mix(in srgb, var(--sky, #38bdf8) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sky, #38bdf8) 25%, transparent);
}
.shop-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-photo-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}
.shop-photo-star,
.shop-photo-rm {
  position: absolute;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0;
}
.shop-photo-star { top: 4px; left: 4px; }
.shop-photo-rm { top: 4px; right: 4px; }
.shop-photo-star:hover,
.shop-photo-rm:hover { background: rgba(0, 0, 0, 0.8); }

/* Shop Manager on light client brands (theme-light from brand-theme) */
body.theme-light[data-page="shop"],
body.theme-light[data-studio="shop"] {
  color-scheme: light;
  --bg: var(--bg, #F8F1F3);
  --panel: var(--panel, #FFFCFD);
  --panel2: #ffffff;
  --text: var(--text, #2C2C2E);
  --muted: var(--muted, #6B6468);
  background:
    radial-gradient(900px 420px at 10% -10%, color-mix(in srgb, var(--sky, #C9A227) 14%, transparent), transparent 55%),
    var(--bg, #F8F1F3) !important;
  color: var(--text, #2C2C2E) !important;
}
body.theme-light[data-page="shop"] .shop-section-label,
body.theme-light[data-studio="shop"] .shop-section-label {
  color: #6B6468;
}
body.theme-light[data-page="shop"] .shop-editor-actions,
body.theme-light[data-studio="shop"] .shop-editor-actions {
  border-top-color: rgba(44, 44, 46, 0.1);
}
body.theme-light[data-page="shop"] .badge-active,
body.theme-light[data-studio="shop"] .badge-active {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}
body.theme-light[data-page="shop"] .btn.danger,
body.theme-light[data-studio="shop"] .btn.danger {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
  border: 1.5px solid rgba(220, 38, 38, 0.35) !important;
  box-shadow: none !important;
}
body.theme-light[data-page="shop"] .card,
body.theme-light[data-studio="shop"] .card {
  background: var(--panel, #FFFCFD) !important;
  color: var(--text, #2C2C2E) !important;
  border-color: color-mix(in srgb, var(--sky, #C9A227) 22%, transparent) !important;
  box-shadow: 0 12px 32px rgba(44, 28, 36, 0.07);
}
body.theme-light[data-page="shop"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
body.theme-light[data-page="shop"] select,
body.theme-light[data-page="shop"] textarea,
body.theme-light[data-studio="shop"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
body.theme-light[data-studio="shop"] select,
body.theme-light[data-studio="shop"] textarea {
  background: #ffffff !important;
  color: #2C2C2E !important;
  border-color: rgba(44, 44, 46, 0.14) !important;
  color-scheme: light;
}
body.theme-light[data-page="shop"] .btn,
body.theme-light[data-studio="shop"] .btn,
body.theme-light[data-page="shop"] button.btn,
body.theme-light[data-studio="shop"] button.btn {
  appearance: none;
  -webkit-appearance: none;
  background: var(--sky, #C9A227) !important;
  color: #1a1408 !important;
  border: 1.5px solid color-mix(in srgb, var(--sky, #C9A227) 70%, #000) !important;
  border-radius: 0.2rem 1.1rem 0.2rem 1.1rem !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 2px color-mix(in srgb, var(--sky, #C9A227) 16%, transparent);
}
body.theme-light[data-page="shop"] .btn.secondary,
body.theme-light[data-page="shop"] .btn.ghost,
body.theme-light[data-studio="shop"] .btn.secondary,
body.theme-light[data-studio="shop"] .btn.ghost {
  background: #FFFCFD !important;
  color: #2C2C2E !important;
  border: 1.5px solid color-mix(in srgb, var(--sky, #C9A227) 45%, transparent) !important;
  box-shadow: none !important;
}
body.theme-light[data-page="shop"] .shop-item,
body.theme-light[data-studio="shop"] .shop-item {
  background: #ffffff !important;
  color: #2C2C2E !important;
  border-color: rgba(44, 44, 46, 0.12) !important;
}
body.theme-light[data-page="shop"] .shop-item:hover,
body.theme-light[data-page="shop"] .shop-item.is-active,
body.theme-light[data-studio="shop"] .shop-item:hover,
body.theme-light[data-studio="shop"] .shop-item.is-active {
  border-color: color-mix(in srgb, var(--sky, #C9A227) 50%, transparent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sky, #C9A227) 18%, transparent);
}
body.theme-light[data-page="shop"] .shop-item__meta,
body.theme-light[data-studio="shop"] .shop-item__meta {
  color: #6B6468 !important;
}
body.theme-light[data-page="shop"] .shop-item__price,
body.theme-light[data-studio="shop"] .shop-item__price {
  color: #5c4a10 !important;
}
body.theme-light[data-page="shop"] .shop-item__img,
body.theme-light[data-studio="shop"] .shop-item__img {
  background: #F7E4EA !important;
}
body.theme-light[data-page="shop"] .badge-draft,
body.theme-light[data-studio="shop"] .badge-draft {
  background: #EFE4E8;
  color: #3A3538;
}

/* P5 — variant editor */
.shop-option-defs { display: flex; flex-direction: column; gap: 0.65rem; margin: 0.5rem 0; }
.shop-option-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 0.5rem;
  align-items: end;
  padding: 0.65rem;
  border: 1px solid var(--line, rgba(148,163,184,0.2));
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--surface, #151c27) 88%, transparent);
}
.shop-option-row .field { margin: 0; }
.shop-variant-table {
  margin: 0.75rem 0 0.25rem;
  overflow-x: auto;
  border: 1px solid var(--line, rgba(148,163,184,0.18));
  border-radius: 0.65rem;
}
.shop-variant-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.shop-variant-table th,
.shop-variant-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--line, rgba(148,163,184,0.12));
  vertical-align: middle;
}
.shop-variant-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #94a3b8);
  background: color-mix(in srgb, var(--surface, #111) 70%, transparent);
}
.shop-variant-table input[type="text"],
.shop-variant-table input[type="number"] {
  width: 100%;
  min-width: 4.5rem;
  font: inherit;
  padding: 0.35rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line, rgba(148,163,184,0.25));
  background: var(--elevated, #0f172a);
  color: inherit;
}
.shop-variant-table .var-title { font-weight: 700; white-space: nowrap; }
.shop-list-meta-variants { color: var(--sky, #38bdf8); font-weight: 600; }

.shop-toolbar__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; margin-top: 0.65rem;
}
.shop-link-muted { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.shop-link-muted:hover { color: var(--sky); }
.shop-editor-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.shop-orders-card { margin-top: 1rem; }
.shop-orders-list { max-height: 14rem; }

/* Order status cards (manager) */
.shop-order-card {
  border: 1px solid color-mix(in srgb, var(--sky, #38bdf8) 16%, transparent);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.65rem;
  background: color-mix(in srgb, var(--panel, #151c27) 92%, transparent);
}
.shop-order-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.shop-order-card__form {
  display: grid;
  gap: 0.35rem;
}
.shop-order-card__form select,
.shop-order-card__form input {
  width: 100%;
  max-width: 28rem;
}
.shop-order-card__form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

/* —— Mobile shop manager & collections (same chrome as desktop; stack only) —— */
@media (max-width: 900px) {
  body.shop-body,
  body[data-page="shop"] {
    overflow-x: clip;
    max-width: 100%;
  }
  body.shop-body .cc-app,
  #shopApp.cc-app {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  .shop-shell,
  #shopShell,
  .shop-layout {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  .shop-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-toolbar__row .field,
  .shop-toolbar__row label {
    width: 100%;
  }
  .shop-layout {
    grid-template-columns: 1fr !important;
  }
  .shop-list {
    max-height: none;
  }
  .shop-item {
    grid-template-columns: 48px 1fr;
    gap: 0.65rem;
  }
  .shop-item > :last-child {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .shop-collections {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    gap: 0.45rem;
  }
  .shop-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-bulk-bar .btn {
    width: 100%;
    min-height: 44px;
  }
  .shop-editor-sticky {
    position: static !important;
  }
  .shop-variant-table {
    margin: 0 -0.25rem;
  }
  .shop-item .btn,
  .shop-order-card__form .btn {
    min-height: 44px;
  }
  body.cc-body input,
  body.cc-body select,
  body.cc-body textarea,
  .shop-layout input,
  .shop-layout select,
  .shop-layout textarea {
    font-size: 16px !important;
  }
}
