/* Shop-spezifische Styles (ergaenzt style.css) */

.shop-link {
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(50,216,255,0.2), rgba(124,92,255,0.25));
  border: 1px solid rgba(50,216,255,0.3);
  color: #e8f1ff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(50,216,255,.25);
}

.cart-btn {
  position: relative;
  padding: 6px 14px 6px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #e8f1ff;
}
.cart-btn::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 0 4px 0 -2px currentColor;
}
.cart-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 9px;
  background: #32d8ff;
  color: #07111f;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.shop-flash-list { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.shop-flash {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,28,48,0.7);
}
.shop-flash-success { border-color: rgba(50,216,255,.4); background: rgba(8,30,42,.7); }
.shop-flash-error   { border-color: rgba(255, 96, 96, .5); background: rgba(51, 10, 10, .6); }
.shop-flash-info    { border-color: rgba(200,200,255,.25); background: rgba(20,25,45,.7); }

/* Shop-Grid */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin: 24px 0;
}
.shop-product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.shop-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(50,216,255,.5);
}
.shop-product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.shop-product-card h3 { margin: 0; font-size: 20px; }
.shop-product-card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.shop-product-card .muted { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Formulare */
.shop-form {
  max-width: 560px;
  margin: 24px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.shop-form.wide { max-width: 960px; }
.shop-form h1 { margin-top: 0; font-size: 26px; }
.shop-form .field { margin-bottom: 16px; }
.shop-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.shop-form input[type=text],
.shop-form input[type=email],
.shop-form input[type=password],
.shop-form input[type=tel],
.shop-form input[type=number],
.shop-form select,
.shop-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,17,31,0.6);
  color: var(--text);
  font-size: 15px;
}
.shop-form input:focus,
.shop-form select:focus,
.shop-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50,216,255,.2);
}
.shop-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-form .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.shop-form .muted { color: var(--muted); font-size: 13px; }
.shop-form .btn { cursor: pointer; }

.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Tabellen */
.shop-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.shop-table th,
.shop-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.shop-table th {
  background: rgba(5,10,20,.5);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-table tr:last-child td { border-bottom: 0; }

/* Buttons Ergaenzung */
.btn-danger {
  background: #b00020;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.14);
}
.badge-success { background: rgba(16,185,129,.15); color: #a7f3d0; border-color: rgba(16,185,129,.35); }
.badge-warn    { background: rgba(245,158,11,.15); color: #fde68a; border-color: rgba(245,158,11,.35); }
.badge-danger  { background: rgba(239,68,68,.15); color: #fecaca; border-color: rgba(239,68,68,.35); }
.badge-info    { background: rgba(50,216,255,.15); color: #bae6fd; border-color: rgba(50,216,255,.35); }

@media (max-width: 700px) {
  .shop-form .row { grid-template-columns: 1fr; }
}

/* =============================================================
   Shop-Card Actions & Language Switch
   ============================================================= */
.shop-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  justify-content: flex-start;
}

.lang-switch {
  display: inline-flex;
  margin-left: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.lang-switch .lang-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #cfe4ff;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  line-height: 1;
}
.lang-switch .lang-btn:hover {
  background: rgba(50,216,255,.12);
  color: #e8f7ff;
}
.lang-switch .lang-btn.active {
  background: linear-gradient(135deg, #32d8ff, #7c5cff);
  color: #07111f;
}

/* =============================================================
   Produktdetail – Layout & Galerie
   ============================================================= */
.product-detail {
  margin: 24px 0;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

.product-info h1 {
  margin: 6px 0 10px;
  font-size: 32px;
  line-height: 1.15;
}
.product-info .lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 14px;
}
.product-long-desc {
  margin-top: 16px;
  line-height: 1.65;
}

/* Galerie-Card */
.product-gallery {
  background: linear-gradient(180deg, rgba(50,216,255,.04), rgba(124,92,255,.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.product-version {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

/* Haupt-Bild */
.gallery-main {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main-btn {
  all: unset;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.gallery-main-btn:hover img {
  transform: scale(1.02);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,17,31,.65);
  color: #e8f1ff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}
.gallery-nav:hover {
  background: rgba(50,216,255,.25);
  transform: translateY(-50%) scale(1.07);
}
.gallery-nav-prev { left: 10px; }
.gallery-nav-next { right: 10px; }

/* Thumbnails */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.gallery-thumb {
  all: unset;
  cursor: pointer;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255,255,255,.04);
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumb:hover { transform: translateY(-1px); }
.gallery-thumb.active {
  border-color: #32d8ff;
  box-shadow: 0 0 0 2px rgba(50,216,255,.25);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2,6,15,.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.gallery-lightbox.open {
  display: flex;
}
.gallery-lightbox-stage {
  max-width: min(1200px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.gallery-lightbox-caption {
  color: #cfe4ff;
  font-size: 14px;
  text-align: center;
  min-height: 1.4em;
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(50,216,255,.25);
  transform: scale(1.05);
}
.gallery-lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }

@media (max-width: 700px) {
  .gallery-lightbox { padding: 20px; }
  .gallery-lightbox-close { top: 12px; right: 12px; }
  .gallery-lightbox-prev  { left: 8px;  width: 42px; height: 42px; }
  .gallery-lightbox-next  { right: 8px; width: 42px; height: 42px; }
}

/* Eyebrow & Lead (Produktdetail) */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fd9ff;
  background: rgba(50,216,255,.08);
  border: 1px solid rgba(50,216,255,.25);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
