/* Shop-Erweiterung, baut auf ../styles.css auf */

.shop-testmode {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  max-width: 340px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: #ffe8a3;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 800;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.shop-hero h1 {
  max-width: 820px;
}

.shop-usp {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.shop-usp li {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.shop-usp li:last-child {
  border-bottom: 0;
}

.shop-usp strong::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  content: "";
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.shop-usp span {
  color: var(--muted);
  font-size: 0.94rem;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

/* Produktliste */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-media img,
.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--soft);
}

.product-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 22px 24px 24px;
}

.product-body h3 {
  margin-bottom: 8px;
}

.product-body h3 a:hover,
.product-body h3 a:focus-visible {
  color: var(--blue);
}

.product-body > p:not(.reference-label) {
  color: var(--muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-foot > div {
  display: grid;
}

.product-price {
  font-size: 1.4rem;
  line-height: 1.1;
}

.product-tax {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Platzhalter-Visual, wenn kein Vorschaubild hochgeladen ist */

.product-placeholder {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  aspect-ratio: 1 / 1;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 12%, rgba(197, 238, 49, 0.9) 0 16%, transparent 16.5%),
    linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.product-card:nth-child(3n + 2) .product-placeholder {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 104, 79, 0.95) 0 16%, transparent 16.5%),
    linear-gradient(145deg, var(--charcoal) 0%, #2a3440 100%);
}

.product-card:nth-child(3n + 3) .product-placeholder {
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(7, 93, 240, 0.9) 0 16%, transparent 16.5%),
    linear-gradient(145deg, var(--lime) 0%, #a9d11c 100%);
}

.product-placeholder-tag {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-placeholder strong {
  max-width: 90%;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.05;
}

.product-placeholder-meta {
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0.8;
}

/* Produktdetail */

.product-hero {
  padding: clamp(104px, 12vw, 140px) 0 clamp(52px, 7vw, 84px);
  background: var(--soft);
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-breadcrumb a {
  color: var(--blue);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-info h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1;
}

.product-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.product-pricebox {
  display: grid;
  gap: 2px;
  margin: 22px 0;
}

.product-pricebox strong {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1;
}

.product-pricebox span {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-features {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.product-features li {
  position: relative;
  padding-left: 26px;
}

.product-features li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.product-meta span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.shop-alert {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff6d6;
  font-weight: 800;
}

.shop-alert-error {
  color: #b42318;
  background: #fff0ee;
}

.buy-box {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.buy-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  cursor: pointer;
}

.buy-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.buy-check a,
.license-card a {
  color: var(--blue);
  font-weight: 800;
}

.buy-box .button {
  width: 100%;
  border: 0;
  font: inherit;
  font-weight: 900;
}

.buy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.product-details-grid > div p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.license-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.license-card h3 {
  font-size: 1.1rem;
}

.license-card p {
  color: var(--muted);
}

.license-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .shop-hero-grid,
  .product-layout,
  .product-details-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery {
    position: static;
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-foot {
    flex-wrap: wrap;
  }

  .shop-testmode {
    right: 8px;
    left: 8px;
    max-width: none;
  }
}

/* Branchen-Filter im Shop */
.branch-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.branch-filter a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.branch-filter a:hover,
.branch-filter a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.branch-filter a[aria-current="page"] {
  border-color: var(--ink);
  color: #ffffff;
  background: var(--ink);
}
