/* ═══════════════════════════════════════════════════════════════════════════
   Online-Shop + Click & Collect (Block G.2)
   ─ Admin-Sub-Tab im Shop-Tab
   ─ Öffentlicher Produktkatalog-Shop (#public-shop)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────────────────
   PUBLIC SHOP — Wrapper
   ──────────────────────────────────────────────────────────────────────────── */
#public-shop {
  min-height: 100vh;
  background: var(--bg, #eff0f5);
  font-family: var(--font-body, 'Montserrat', sans-serif);
}

/* ── Nav-Bar ── */
.pshop-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--card, #fff);
  border-bottom: 1px solid var(--b1, rgba(0,0,0,.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.pshop-nav-left  { display: flex; align-items: center; gap: 10px; }
.pshop-nav-right { display: flex; align-items: center; gap: 8px; }
.pshop-logo      { display: flex; align-items: center; color: var(--np, #b66db5); }
.pshop-shopname  { font-size: 16px; font-weight: 700; color: var(--t1, #1a1b24); letter-spacing: -.01em; }

/* ── Body ── */
.pshop-body-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ── Loading / Error ── */
.pshop-loading,
.pshop-error-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 14px;
  color: var(--t3, #8b8fa8);
  font-size: 14px;
}
.pshop-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--b1, rgba(0,0,0,.12));
  border-top-color: var(--np, #b66db5);
  border-radius: 50%;
  animation: pshop-spin .7s linear infinite;
}
@keyframes pshop-spin { to { transform: rotate(360deg); } }
.pshop-error-icon  { font-size: 40px; }
.pshop-error-msg   { font-size: 14px; color: var(--t2, #5a5c72); text-align: center; max-width: 340px; }

/* ── Intro ── */
.pshop-intro {
  padding: 14px 16px;
  background: var(--s2, rgba(0,0,0,.04));
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--t2, #5a5c72);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* ── Kategorie-Leiste ── */
.pshop-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pshop-cat-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--b1, rgba(0,0,0,.1));
  background: var(--card, #fff);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t2, #5a5c72);
  cursor: pointer;
  transition: all .15s;
}
.pshop-cat-btn:hover { background: var(--s2); }
.pshop-cat-btn.active {
  background: var(--np, #b66db5);
  border-color: var(--np, #b66db5);
  color: #fff;
}

/* ── Produkt-Grid ── */
.pshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 480px) {
  .pshop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── Produkt-Card ── */
.pshop-card {
  background: var(--card, #fff);
  border-radius: 14px;
  border: 1px solid var(--b1, rgba(0,0,0,.07));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.pshop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}
.pshop-card-img {
  height: 160px;
  background: var(--s2, rgba(0,0,0,.05)) no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3, #8b8fa8);
}
.pshop-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pshop-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--t1, #1a1b24);
  line-height: 1.3;
}
.pshop-card-desc {
  font-size: 11.5px;
  color: var(--t3, #8b8fa8);
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}
.pshop-stock {
  font-size: 11px;
  color: var(--ng, #1dd97a);
  font-weight: 600;
}
.pshop-stock.pshop-stock-low { color: var(--na, #d4943a); }

.pshop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.pshop-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1, #1a1b24);
}

/* ── Buttons ── */
.pshop-add-btn {
  padding: 6px 12px;
  background: var(--np, #b66db5);
  color: #fff;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.pshop-add-btn:hover { opacity: .88; }
.pshop-add-btn:disabled { opacity: .45; cursor: not-allowed; }

.pshop-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--s2, rgba(0,0,0,.05));
  border-radius: 8px;
  overflow: hidden;
}
.pshop-qty-ctrl button {
  width: 28px; height: 28px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--t1, #1a1b24);
  display: flex; align-items: center; justify-content: center;
}
.pshop-qty-ctrl button:hover { background: var(--b1, rgba(0,0,0,.08)); }
.pshop-qty-ctrl span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--t1, #1a1b24);
}

/* ── Cart FAB ── */
.pshop-cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--np, #b66db5);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(182,109,181,.4);
  display: none;
  align-items: center;
  gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.pshop-cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(182,109,181,.5);
}
#pshop-cart-count {
  background: rgba(255,255,255,.28);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 5px;
}

/* ── Cart Drawer ── */
#pshop-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 400;
}
#pshop-cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: var(--card, #fff);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
#pshop-cart.open { transform: translateX(0); }

.pshop-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--b1, rgba(0,0,0,.08));
}
.pshop-cart-title {
  font-size: 16px; font-weight: 700; color: var(--t1, #1a1b24);
}
.pshop-cart-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--t3, #8b8fa8); font-size: 18px; line-height: 1;
}
#pshop-cart-inner {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pshop-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pshop-ci-info { flex: 1; min-width: 0; }
.pshop-ci-name {
  font-size: 13px; font-weight: 600; color: var(--t1, #1a1b24);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pshop-ci-price { font-size: 11.5px; color: var(--t3, #8b8fa8); }
.pshop-ci-subtotal { font-size: 13px; font-weight: 700; color: var(--t1, #1a1b24); white-space: nowrap; }
.pshop-cart-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--b1, rgba(0,0,0,.08));
  font-size: 14px; font-weight: 700; color: var(--t1, #1a1b24);
}
.pshop-min-warn {
  font-size: 12px; color: var(--na, #d4943a); font-weight: 600;
  padding: 6px 10px;
  background: rgba(212,148,58,.1);
  border-radius: 6px;
}
.pshop-checkout-btn {
  width: 100%;
  padding: 13px;
  background: var(--np, #b66db5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .15s;
  margin-top: 8px;
}
.pshop-checkout-btn:hover { opacity: .88; }
.pshop-checkout-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Leer-State ── */
.pshop-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--t3, #8b8fa8);
  font-size: 13.5px;
}

/* ── Checkout-Seite ── */
.pshop-checkout { max-width: 860px; margin: 0 auto; }
.pshop-back-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--t3, #8b8fa8);
  padding: 0; margin-bottom: 20px;
}
.pshop-back-btn:hover { color: var(--np, #b66db5); }
.pshop-checkout-title {
  font-size: 22px; font-weight: 800; color: var(--t1, #1a1b24);
  margin-bottom: 22px; letter-spacing: -.02em;
}
.pshop-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 640px) {
  .pshop-checkout-grid { grid-template-columns: 1fr; }
}
.pshop-summary-box,
.pshop-form-box {
  background: var(--card, #fff);
  border-radius: 14px;
  border: 1px solid var(--b1, rgba(0,0,0,.07));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pshop-summary-title,
.pshop-form-title {
  font-size: 14px; font-weight: 700; color: var(--t1, #1a1b24);
  margin-bottom: 4px;
}
.pshop-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--t2, #5a5c72);
  padding: 2px 0;
}
.pshop-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: var(--t1, #1a1b24);
  border-top: 1px solid var(--b1, rgba(0,0,0,.08));
  padding-top: 10px;
  margin-top: 4px;
}
.pshop-pickup-info {
  display: flex;
  gap: 7px;
  font-size: 12px;
  color: var(--t3, #8b8fa8);
  background: var(--s2, rgba(0,0,0,.04));
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}
.pshop-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--np, #b66db5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .15s;
  margin-top: 8px;
}
.pshop-submit-btn:hover   { opacity: .88; }
.pshop-submit-btn:disabled { opacity: .45; cursor: not-allowed; }
.pshop-err {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--nd, #e05f5f);
  font-weight: 600;
}

/* ── Bestellbestätigung ── */
.pshop-confirm {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  padding: 0 16px;
}
.pshop-confirm-icon {
  width: 72px; height: 72px;
  background: rgba(29,217,122,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--ng, #1dd97a);
}
.pshop-confirm-title {
  font-size: 24px; font-weight: 800; color: var(--t1, #1a1b24);
  margin-bottom: 10px;
}
.pshop-confirm-num {
  font-size: 15px; color: var(--t2, #5a5c72); margin-bottom: 14px;
}
.pshop-confirm-msg {
  font-size: 14px; color: var(--t3, #8b8fa8); line-height: 1.6; margin-bottom: 16px;
}
.pshop-confirm-total {
  font-size: 14px; color: var(--t2, #5a5c72);
  background: var(--s2, rgba(0,0,0,.04));
  padding: 12px 18px;
  border-radius: 10px;
  display: inline-block;
}

/* ────────────────────────────────────────────────────────────────────────────
   ADMIN — Team-Pill-Erweiterungen für Bestellstatus
   ──────────────────────────────────────────────────────────────────────────── */
.team-pill-new       { background: rgba(59,158,255,.14); color: var(--nb, #3b9eff); }
.team-pill-processing{ background: rgba(212,148,58,.14); color: var(--na, #d4943a); }
.team-pill-ready     { background: rgba(182,109,181,.14); color: var(--np, #b66db5); }
.team-pill-picked_up { background: rgba(29,217,122,.14); color: var(--ng, #1dd97a); }
.team-pill-cancelled { background: rgba(224,95,95,.12);  color: var(--nd, #e05f5f); }
