/* Shop-Modul — nur auf Shop-Seiten geladen */
.shop-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.shop-checkout-hint {
  margin: 0 0 8px;
}
.shop-catalog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0.25rem;
}
.shop-catalog-filter-label {
  font-size: 0.9rem;
  color: var(--muted, #667085);
  margin-right: 0.15rem;
}
.shop-catalog-filter .shop-filter-btn,
.shop-catalog-filter .shop-admin-filter-btn {
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
/* Stärker als Brand `.cta.ghost` (z. B. RSV/SGM), sonst sieht aktiv wie inaktiv aus. */
body .shop-catalog-filter .cta.ghost.shop-filter-btn.is-active,
body .shop-catalog-filter .cta.ghost.shop-admin-filter-btn.is-active,
body .shop-catalog-filter .cta.ghost.shop-filter-btn.is-active:hover,
body .shop-catalog-filter .cta.ghost.shop-admin-filter-btn.is-active:hover,
body[data-theme="dark"] .shop-catalog-filter .cta.ghost.shop-filter-btn.is-active,
body[data-theme="dark"] .shop-catalog-filter .cta.ghost.shop-admin-filter-btn.is-active {
  background: var(--sf-blue-dark, var(--color-primary-dark, #0b2d63));
  color: #fff;
  border-color: var(--sf-blue-dark, var(--color-primary-dark, #0b2d63));
  box-shadow: none;
  opacity: 1;
}
.shop-catalog-empty {
  grid-column: 1 / -1;
  margin: 0.5rem 0;
}
.shop-card {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--card-bg, #fff);
  color: var(--color-text, #1a2332);
}
.shop-card-body {
  min-width: 0;
}
.shop-card-media {
  position: relative;
  min-width: 0;
}
.shop-card-media--empty {
  min-height: 120px;
  border-radius: 8px;
  background: #f3f6fa;
  border: 1px dashed var(--border, #d8dde6);
}
.shop-card-slideshow {
  position: relative;
}
.shop-card-slide-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f7f8fa;
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
}
.shop-card-slide-main img,
.shop-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0;
  background: #f7f8fa;
  pointer-events: none;
  display: block;
}
.shop-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.shop-slide-prev { left: 0.35rem; }
.shop-slide-next { right: 0.35rem; }
.shop-slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.shop-slide-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c5cedb;
  cursor: pointer;
}
.shop-slide-dot.is-active {
  background: var(--brand, #0a3d91);
}
.shop-card-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.shop-card-img-btn img {
  margin-bottom: 0;
  pointer-events: none;
}
@media (max-width: 640px) {
  .shop-card {
    grid-template-columns: 1fr;
  }
  .shop-card-slide-main img,
  .shop-card img {
    height: 160px;
  }
}
.shop-card .muted,
.shop-card .meta {
  color: #5b6575;
}
.shop-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: inherit;
}
.shop-card .field label {
  color: inherit;
}
.shop-item-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #f7f8fa;
  border: 1px solid var(--border, #d8dde6);
  vertical-align: middle;
  margin-right: 10px;
}
.shop-item-thumb--lg {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 0 8px;
}
.shop-item-editor-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.shop-item-gallery-empty {
  margin: 0.25rem 0;
}
.shop-item-gallery-tile {
  position: relative;
  width: 112px;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  background: #f7f8fa;
  padding: 0.35rem;
}
.shop-item-gallery-tile img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.shop-item-gallery-primary {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.68rem;
}
.shop-item-gallery-actions {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.35rem;
}
.shop-item-gallery-actions .cta {
  padding: 0.15rem 0.4rem;
  min-width: 0;
  font-size: 0.85rem;
}
.shop-admin-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.shop-admin-item-row .shop-admin-item-body {
  flex: 1;
  min-width: 0;
}
.shop-card--trainer {
  border-color: rgba(26, 127, 212, 0.45);
  box-shadow: inset 0 0 0 1px rgba(26, 127, 212, 0.12);
}
.shop-staff-hint {
  margin: 0.65rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #f0d48a;
  color: #6b4e00;
  font-size: 0.9rem;
  line-height: 1.4;
}
.shop-staff-hint.is-hidden {
  display: none !important;
}
.shop-card-player-note,
.shop-order-line-player-flag {
  margin: 0.15rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a5a00;
}
.shop-order-staff-warn {
  margin: 0.75rem 0 0.35rem;
}
.shop-order-lines--editable select.shop-order-edit-item {
  min-width: 12rem;
  max-width: 22rem;
}
.shop-card .pill {
  font-size: 0.72rem;
  vertical-align: middle;
}
.shop-card .shop-price {
  font-weight: 600;
  margin: 0.35rem 0;
}
.shop-card .field {
  margin: 0.35rem 0;
}
.shop-card-feedback {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.35;
}
.shop-card-feedback--error {
  color: #b42318;
  font-weight: 600;
}
.shop-card-feedback--ok {
  color: #067647;
  font-weight: 600;
}
.shop-input-invalid {
  border-color: #b42318 !important;
  outline: 2px solid rgba(180, 35, 24, 0.25);
}
.shop-public-feedback {
  min-height: 1.25em;
  margin: 0.75rem 0 0;
}
.shop-public-feedback.shop-public-feedback--error {
  color: #b42318;
  font-weight: 600;
}
.shop-store-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.shop-store-picker a,
.shop-store-picker button {
  min-width: 140px;
}
.shop-store-tile {
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: var(--card-bg, #fff);
  text-align: left;
  cursor: pointer;
}
.shop-store-tile:hover {
  border-color: var(--accent, #1e3a5f);
}
.shop-admin-tabs .cta.is-active {
  opacity: 1;
}
.shop-admin-hub-tiles {
  margin: 0 0 1rem;
}
.shop-admin-hub-tiles .tile-card.is-active {
  outline: 2px solid var(--brand, #0a3d91);
  outline-offset: 2px;
}
.shop-admin-panel-nav {
  margin: 0 0 0.85rem;
}
.shop-admin-manage-card {
  border: 1px solid var(--border, #d8dde6);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 10px 24px rgba(14, 26, 43, 0.06);
  padding: 1rem 1.1rem 1.1rem;
}
.shop-admin-manage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border, #e5e9ef);
}
.shop-admin-manage-head .shop-admin-panel-lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
}
.shop-admin-stores-list {
  display: grid;
  gap: 0.75rem;
}
.shop-admin-store-tile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 12px;
  background: #fff;
}
.shop-admin-store-tile-main {
  min-width: 0;
  flex: 1 1 14rem;
}
.shop-admin-store-tile-title {
  font-size: 1.02rem;
}
.shop-admin-store-tile-actions {
  flex: 0 0 auto;
  margin: 0;
}
body[data-theme="dark"] .shop-admin-manage-card {
  background: linear-gradient(180deg, #151d2c 0%, #121a27 100%);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}
body[data-theme="dark"] .shop-admin-store-tile {
  background: #182233;
  border-color: rgba(148, 163, 184, 0.22);
}
.is-hidden {
  display: none !important;
}
.shop-size-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  align-items: center;
}
.shop-size-row .input {
  flex: 1;
}
.shop-order-card {
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.shop-orders-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
}
.shop-orders-toolbar .field {
  margin: 0;
}
.shop-orders-toolbar-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.shop-orders-toolbar-spacer {
  visibility: hidden;
  height: 1.1em;
  margin: 0;
}
.shop-orders-count {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}
.shop-orders-empty {
  margin: 0.5rem 0;
}
.shop-orders-master-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: 0.85rem;
  align-items: start;
}
.shop-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: min(70vh, 760px);
  overflow: auto;
  padding-right: 0.15rem;
}
.shop-order-list-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.85rem;
  color: inherit;
  font: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.shop-order-list-row:hover {
  border-color: #9db5d8;
  background: #f8fbff;
}
.shop-order-list-row.is-active {
  border-color: var(--brand, #0a3d91);
  background: linear-gradient(180deg, #eef4fc 0%, #e7eef9 100%);
  box-shadow: inset 3px 0 0 var(--brand, #0a3d91);
}
.shop-order-list-main,
.shop-order-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  min-width: 0;
}
.shop-order-list-name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}
.shop-order-list-lastname {
  font-weight: 700;
}
.shop-order-list-date,
.shop-order-list-shop,
.shop-order-list-items {
  font-size: 0.84rem;
  color: var(--muted, #5b6575);
}
.shop-order-list-shop {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.shop-order-list-meta .shop-order-total {
  margin-left: auto;
  font-size: 0.98rem;
}
.shop-orders-detail-pane {
  border: 1px solid var(--border, #d8dde6);
  border-radius: 12px;
  background: #fff;
  min-height: 12rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  position: sticky;
  top: 0.75rem;
}
.shop-order-detail-empty {
  padding: 1.25rem 1rem;
}
.shop-order-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.shop-order-detail-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--border, #d8dde6);
}
.shop-order-detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.shop-order-nr {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand, #1a3a6b);
}
.shop-order-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #e8eef6;
  color: #1a3a6b;
}
.shop-order-status-badge--wartet_bestaetigung {
  background: #fff3cd;
  color: #7a5b00;
}
.shop-order-status-badge--neu {
  background: #dbeafe;
  color: #1e40af;
}
.shop-order-status-badge--in_bearbeitung {
  background: #e0e7ff;
  color: #3730a3;
}
.shop-order-status-badge--abholbereit {
  background: #ccfbf1;
  color: #0f766e;
}
.shop-order-status-badge--versendet {
  background: #dbeafe;
  color: #1e40af;
}
.shop-order-status-badge--erledigt {
  background: #dcfce7;
  color: #166534;
}
.shop-order-status-badge--storniert {
  background: #fee2e2;
  color: #991b1b;
}
.shop-order-detail-grid {
  padding: 0.85rem 1rem 0.35rem;
}
.shop-order-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem 1rem;
}
.shop-order-block-grid > div {
  min-width: 0;
}
.shop-order-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5b6575);
  margin-bottom: 0.12rem;
}
.shop-order-block-grid strong,
.shop-order-block-grid a {
  font-size: 0.95rem;
  word-break: break-word;
}
.shop-order-total {
  color: var(--brand, #1a3a6b);
}
.shop-order-block-status {
  flex: 0 0 min(200px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 9.5rem;
}
.shop-order-block-status label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #5b6575);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shop-order-status-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 16rem;
}
.shop-order-ready-mail-meta {
  margin: 0 1rem 0.35rem;
  font-size: 0.9rem;
}
.shop-order-mail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 1rem 0.65rem;
}
.shop-order-lines-wrap {
  padding: 0.65rem 0.75rem 0.85rem;
  overflow-x: auto;
  border-top: 1px solid var(--border, #e8edf4);
}
.shop-order-lines-head {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}
.shop-order-edit-hint {
  font-size: 0.82rem;
}
.shop-order-lines--editable .input {
  width: 100%;
  min-width: 4.5rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.9rem;
}
.shop-order-lines--editable .shop-order-edit-qty {
  max-width: 4.5rem;
  text-align: right;
}
.shop-order-lines--editable .shop-order-edit-price {
  max-width: 6.5rem;
  text-align: right;
}
.shop-order-col-item {
  min-width: 12rem;
}
.shop-order-item-name {
  font-weight: 600;
  line-height: 1.3;
}
.shop-order-manual-price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #5b6575);
  cursor: pointer;
  user-select: none;
}
.shop-order-manual-price input {
  margin: 0;
}
.shop-order-lines--editable select.shop-order-edit-size {
  min-width: 10rem;
  max-width: 16rem;
}
.shop-order-lines-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.shop-order-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.shop-order-lines th,
.shop-order-lines td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #e8edf4;
  vertical-align: top;
}
.shop-order-lines th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #5b6575);
  font-weight: 600;
  background: #fafbfd;
  white-space: nowrap;
}
.shop-order-lines tbody tr:last-child td {
  border-bottom: none;
}
.shop-order-col-artnr code {
  font-size: 0.88em;
  background: #f0f4f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.shop-order-col-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.shop-order-col-init {
  white-space: nowrap;
  font-weight: 600;
}
.shop-order-hinweis {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 0.9rem;
  line-height: 1.4;
}
@media (max-width: 980px) {
  .shop-orders-master-detail {
    grid-template-columns: 1fr;
  }
  .shop-orders-list {
    max-height: none;
  }
  .shop-orders-detail-pane {
    position: static;
  }
}
@media (max-width: 720px) {
  .shop-order-detail-head {
    flex-direction: column;
  }
  .shop-order-block-status {
    width: 100%;
  }
}

body[data-theme="dark"] .shop-order-list-row,
body[data-theme="dark"] .shop-orders-detail-pane {
  background: #121a2a;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-order-list-row:hover {
  background: #172235;
  border-color: #3d5475;
}
body[data-theme="dark"] .shop-order-list-row.is-active {
  background: #1a2740;
  border-color: #4da3e8;
  box-shadow: inset 3px 0 0 #4da3e8;
}
body[data-theme="dark"] .shop-order-detail-head {
  background: linear-gradient(180deg, #152035 0%, #121a2a 100%);
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-order-lines th {
  background: #152035;
  color: #94a3b8;
}
body[data-theme="dark"] .shop-order-lines th,
body[data-theme="dark"] .shop-order-lines td,
body[data-theme="dark"] .shop-order-lines-wrap {
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-order-hinweis,
body[data-theme="dark"] .shop-orders-toolbar {
  background: #152035;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-order-col-artnr code {
  background: #1a2740;
  color: #e2e8f0;
}
body[data-theme="dark"] .shop-order-nr,
body[data-theme="dark"] .shop-order-total {
  color: #7bbff0;
}

.shop-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted, #5b6575);
}
.shop-field-hint code {
  font-size: 0.85em;
}

.shop-admin-howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.shop-admin-howto-item {
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: #f7f9fc;
}
.shop-admin-howto-item strong {
  display: block;
  margin-bottom: 0.25rem;
}
.shop-admin-howto-item span {
  color: var(--muted, #5b6575);
  font-size: 0.92rem;
  line-height: 1.35;
}
.shop-admin-panel-lead {
  margin: 0 0 0.75rem;
}

.shop-cart-panel {
  width: min(560px, calc(100vw - 1.5rem));
  max-width: 560px;
}
.shop-cart-count-label {
  margin: 0.15rem 0 0;
}
.shop-cart-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.shop-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(55vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.shop-cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #1a2332;
}
.shop-cart-thumb-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
}
.shop-cart-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef2f7;
  border: 1px solid var(--border, #d8dde6);
  display: block;
}
.shop-cart-thumb--empty {
  background:
    linear-gradient(135deg, #e8eef6 0%, #f5f7fa 100%);
}
.shop-cart-line-main {
  min-width: 0;
}
.shop-cart-line-title {
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  color: #1a2332;
}
.shop-cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.86rem;
  color: #5b6575;
  margin-bottom: 0.55rem;
}
.shop-cart-line-total {
  font-weight: 700;
  white-space: nowrap;
  padding-top: 0.15rem;
  color: #1a2332;
}
.shop-cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.shop-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 999px;
  padding: 0.1rem;
  background: #fff;
}
.shop-qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #1e3a5f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.shop-qty-btn:hover {
  background: #dbe5f1;
}
.shop-cart-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}
.shop-cart-line-total {
  font-weight: 700;
  white-space: nowrap;
  padding-top: 0.15rem;
  color: #1a2332;
}
.shop-cart-footer {
  border-top: 1px solid var(--border, #d8dde6);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.shop-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
}
.shop-cart-total-row strong {
  font-size: 1.25rem;
}
.shop-cart-checkout-btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 520px) {
  .shop-cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .shop-cart-line-total {
    grid-column: 2;
    padding-top: 0;
  }
  .shop-cart-thumb {
    width: 64px;
    height: 64px;
  }
}

.shop-editor-panel {
  width: min(920px, calc(100vw - 2rem));
  max-width: 920px;
}
.shop-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
.shop-editor-help {
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #f7f9fc;
}
.shop-editor-help h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.shop-editor-help p,
.shop-editor-help li {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted, #5b6575);
}
.shop-editor-help ul {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.1rem;
}
.shop-editor-help code {
  font-size: 0.85em;
}

@media (max-width: 820px) {
  .shop-admin-howto {
    grid-template-columns: 1fr;
  }
  .shop-editor-body {
    grid-template-columns: 1fr;
  }
}

/* Modal: Logo + auffälliger Schließen-Button */
.shop-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.shop-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.shop-modal-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border, #d8dde6);
  flex-shrink: 0;
}
.shop-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.shop-public-help-flyer-link {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline;
}
.shop-page-header .sf-card-hint-body .shop-public-lead {
  margin-top: 0;
}
.shop-page-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  max-width: 100%;
}
.shop-page-action {
  white-space: nowrap;
  flex: 0 0 auto;
  justify-content: center;
}
@media (max-width: 560px) {
  .shop-page-header {
    align-items: stretch;
  }
  .shop-page-brand {
    width: 100%;
  }
  .shop-page-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .shop-page-action {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }
}
.shop-page-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.shop-page-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(14, 26, 43, 0.14);
  flex-shrink: 0;
}
.shop-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 999px;
  border: 2px solid #1e3a5f;
  background: #1e3a5f;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 26, 43, 0.28);
  flex-shrink: 0;
}
.shop-modal-close:hover,
.shop-modal-close:focus-visible {
  background: #152a45;
  border-color: #152a45;
  outline: none;
}

/* Bild-Zoom */
.shop-lightbox[hidden] {
  display: none !important;
}
.shop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(8, 14, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.shop-lightbox img {
  max-width: min(920px, 100%);
  max-height: min(88vh, 100%);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.shop-lightbox-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 2;
}
.shop-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.shop-lightbox-prev { left: max(0.75rem, env(safe-area-inset-left)); }
.shop-lightbox-next { right: max(0.75rem, env(safe-area-inset-right)); }
.shop-lightbox-counter {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 2;
}
body.shop-lightbox-open {
  overflow: hidden;
}

/* Dark Mode: lesbare Shop-Karten und Warenkorb-Zeilen */
body[data-theme="dark"] .shop-card {
  background: #152033;
  color: #e8eef6;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-card h3,
body[data-theme="dark"] .shop-card .field label,
body[data-theme="dark"] .shop-page .shop-card .muted,
body[data-theme="dark"] .shop-page .shop-card .meta {
  color: #d7e2f0;
}
body[data-theme="dark"] .shop-card .muted,
body[data-theme="dark"] .shop-card .meta {
  color: #b8c8dc !important;
}
body[data-theme="dark"] .shop-card img,
body[data-theme="dark"] .shop-card-img-btn img,
body[data-theme="dark"] .shop-card-slide-main {
  background: #0f1724;
}
body[data-theme="dark"] .shop-card-media--empty {
  background: #0f1724;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-item-gallery-tile {
  background: #0f1724;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-card-feedback--error {
  color: #ffb4a8;
}
body[data-theme="dark"] .shop-card-feedback--ok {
  color: #7ddea0;
}
body[data-theme="dark"] .shop-cart-line {
  background: linear-gradient(180deg, #1a2740 0%, #152033 100%);
  border-color: #2a3b55;
  color: #e8eef6;
}
body[data-theme="dark"] .shop-cart-line-title,
body[data-theme="dark"] .shop-cart-line-total,
body[data-theme="dark"] .shop-cart-qty-value {
  color: #e8eef6;
}
body[data-theme="dark"] .shop-cart-line-meta {
  color: #b8c8dc;
}
body[data-theme="dark"] .shop-cart-thumb,
body[data-theme="dark"] .shop-cart-thumb--empty {
  background: #0f1724;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-cart-qty {
  background: #101a2b;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-qty-btn {
  background: #243552;
  color: #e8eef6;
}
body[data-theme="dark"] .shop-qty-btn:hover {
  background: #314866;
}
body[data-theme="dark"] .shop-cart-footer {
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-modal-logo {
  background: #0f1724;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-page-logo {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
body[data-theme="dark"] .shop-modal-close {
  background: #4da3e8;
  border-color: #4da3e8;
  color: #0b1220;
  box-shadow: 0 4px 16px rgba(77, 163, 232, 0.45);
}
body[data-theme="dark"] .shop-modal-close:hover,
body[data-theme="dark"] .shop-modal-close:focus-visible {
  background: #7bbff0;
  border-color: #7bbff0;
}
body[data-theme="dark"] .shop-admin-howto-item,
body[data-theme="dark"] .shop-editor-help {
  background: #152033;
  border-color: #2a3b55;
}
body[data-theme="dark"] .shop-admin-howto-item span,
body[data-theme="dark"] .shop-editor-help p,
body[data-theme="dark"] .shop-editor-help li {
  color: #b8c8dc;
}
