/* Vereinsartikel-Shop - eigenständiges, modernes Design (bewusst nicht am Rest der Seite
   orientiert, siehe Mario-Feedback). Nutzt dieselben Marken-Farben (--blau/--gold) wie
   css/style.css, definiert aber ein eigenes, großzügigeres visuelles System. */

.shop-intro {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: .92rem;
  color: #444;
  line-height: 1.55;
}
.shop-intro strong { color: var(--blau); }

/* Zweispaltiges Layout: Produkte links, Warenkorb rechts fixiert (siehe .shop-cart-sidebar) */
.main-content.shop-wide { max-width: 1400px; }
.shop-layout { display: flex; align-items: flex-start; gap: 28px; }
.shop-main { flex: 1; min-width: 0; }

.shop-cart-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  /* .site-header ist selbst "position: sticky; top: 0" und 84px hoch (siehe css/style.css) -
     ohne diesen Abstand rutscht die Sidebar beim Scrollen unter den Seiten-Header. */
  top: 100px;
  z-index: 10;
  background: #14203f;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(20, 32, 63, 0.25);
  max-height: calc(100vh - 120px);
}
.shop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: .9rem;
}
.shop-cart-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.shop-cart-leer { font-size: .82rem; opacity: .65; text-align: center; padding: 8px 0; margin: 0; }
.shop-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .8rem;
}
.shop-cart-item button {
  border: none;
  background: none;
  color: #fff;
  opacity: .7;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.shop-cart-item button:hover { opacity: 1; }
.shop-cart-summe {
  font-weight: 800;
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}
.shop-cartbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold, #e8b93a);
  color: #14203f;
  font-weight: 800;
  font-size: .85rem;
  transition: transform .25s ease;
}
.shop-cartbar-badge.pulse { transform: scale(1.35); }
.shop-cartbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #14203f;
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-cartbar-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.shop-filters + .shop-filters { margin-bottom: 26px; }

.shop-chip {
  border: none;
  background: #eef0f5;
  color: #4a5164;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.shop-chip:hover { background: #dfe3ec; }
.shop-chip.active { background: var(--blau); color: #fff; }
.shop-chip:active { transform: scale(.96); }

.shop-select {
  border: none;
  background: #eef0f5;
  color: #4a5164;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 34px 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a5164'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.shop-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,32,63,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.shop-card[hidden] { display: none; }
.shop-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,32,63,.14); }

.shop-card-media { position: relative; background: #f2f3f7; }
.shop-card-mainimg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f2f3f7;
}
.shop-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20,32,63,.85);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: 999px;
}
.shop-card-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #fff;
}
.shop-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f2f3f7;
  opacity: .65;
  transition: opacity .15s ease, border-color .15s ease;
}
.shop-thumb:hover { opacity: 1; }
.shop-thumb.active { opacity: 1; border-color: var(--blau); }

.shop-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card-body h3 { font-size: 1rem; color: #14203f; margin: 0; }
.shop-card-desc { font-size: .82rem; color: #767c8c; margin: 0; line-height: 1.5; }

.shop-card-preis {
  font-size: .95rem;
  font-weight: 800;
  color: var(--blau);
}
.shop-card-preis .ab { font-size: .72rem; font-weight: 600; color: #98a0b3; margin-right: 4px; }

.shop-card-row { display: flex; gap: 8px; margin-top: auto; }

.shop-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #e7e9ee;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-qty button {
  border: none;
  background: #f5f6f9;
  width: 30px;
  height: 38px;
  font-size: 1rem;
  font-weight: 700;
  color: #4a5164;
  cursor: pointer;
}
.shop-qty button:hover { background: #eaecf2; }
.shop-qty input {
  width: 32px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: #14203f;
  -moz-appearance: textfield;
}
.shop-qty input::-webkit-outer-spin-button,
.shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.shop-groesse-auswahl,
.shop-namenswunsch {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e7e9ee;
  border-radius: 10px;
  font-size: .85rem;
  font-family: 'Outfit', sans-serif;
  color: #14203f;
  box-sizing: border-box;
}
.shop-groesse-auswahl:focus,
.shop-namenswunsch:focus { outline: none; border-color: var(--blau2); }

.shop-btn-add {
  flex: 1;
  border: none;
  background: var(--blau);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.shop-btn-add:hover { background: #0f1a33; }
.shop-btn-add:active { transform: scale(.97); }
.shop-btn-add.added { background: #1c8a4b; }

/* Lightbox */
.shop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-lightbox[hidden] { display: none; }
.shop-lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.shop-lightbox-close,
.shop-lightbox-prev,
.shop-lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.shop-lightbox-close:hover,
.shop-lightbox-prev:hover,
.shop-lightbox-next:hover { background: rgba(255,255,255,.25); }
.shop-lightbox-close { top: 20px; right: 20px; width: 42px; height: 42px; font-size: 1.4rem; }
.shop-lightbox-prev,
.shop-lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.6rem; }
.shop-lightbox-prev { left: 16px; }
.shop-lightbox-next { right: 16px; }

/* Bestellseite */
.shop-order-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(20,32,63,.08);
  margin-bottom: 24px;
}
.shop-order-card h2 { color: #14203f; font-size: 1.05rem; margin: 0 0 16px; }
.shop-order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f5;
  font-size: .9rem;
  color: #333;
}
.shop-order-row:last-child { border-bottom: none; }
.shop-order-remove { color: #c0392b; text-decoration: none; font-size: .8rem; margin-left: 10px; white-space: nowrap; }
.shop-order-summe { text-align: right; font-weight: 800; font-size: 1.05rem; color: #14203f; margin-top: 14px; }

.shop-form label { font-size: .85rem; font-weight: 700; color: #14203f; display: block; margin-bottom: 6px; }
.shop-form input[type="text"],
.shop-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e7e9ee;
  border-radius: 10px;
  font-size: .9rem;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
  margin-bottom: 16px;
}
.shop-form input:focus { outline: none; border-color: var(--blau2); }

.shop-btn-primary {
  background: var(--blau);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
}
.shop-btn-primary:hover { background: #0f1a33; }

.shop-empty { background: #fff; border-radius: 18px; padding: 48px 24px; text-align: center; color: #767c8c; }
.shop-empty a { color: var(--blau); font-weight: 700; text-decoration: none; }

.shop-fallback-hint { font-size: .82rem; color: #767c8c; margin-top: 16px; }
.shop-fallback-text {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1.5px solid #e7e9ee;
  border-radius: 10px;
  font-family: monospace;
  font-size: .8rem;
  box-sizing: border-box;
}

/* Unter 900px ist neben dem Produktraster kein Platz mehr für eine Sidebar - der Warenkorb
   rutscht dann als normale (nicht fixierte) Karte vor die Produkte. */
@media (max-width: 900px) {
  .shop-layout { flex-direction: column; }
  .shop-cart-sidebar { width: 100%; position: static; max-height: none; order: -1; }
  .shop-cart-liste { max-height: 180px; }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shop-card-body { padding: 12px; }
  .shop-lightbox-prev, .shop-lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
}
