.btn-shop-update {
  border-color: rgba(255,255,255,.22) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.09)) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
}

.btn-shop-update:hover {
  border-color: rgba(255,255,255,.30) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.13)) !important;
}

.shop-hero {
  padding: 58px 0 28px;
}

.shop-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}

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

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shop-image {
  aspect-ratio: 4/3;
  background: #202a38;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-placeholder {
  font-size: 54px;
  opacity: .55;
}

.shop-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.shop-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.shop-price {
  font-size: 1.35rem;
  font-weight: 850;
  color: #8b5cf6;
  margin-top: auto;
}

.shop-stock {
  font-size: .86rem;
  margin: 6px 0 14px;
  color: var(--muted);
}

.shop-stock.out {
  color: #ff8b8b;
}

.shop-cart-link {
  position: relative;
}

.shop-cart-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  font-weight: 800;
  margin-left: 5px;
}

.cart-table {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 110px 130px auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}

.cart-row input {
  max-width: 90px;
}

.shop-summary {
  margin-left: auto;
  max-width: 430px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.summary-total {
  font-size: 1.25rem;
  font-weight: 850;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 6px;
  padding-top: 14px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
  gap: 22px;
  align-items: start;
}

.shop-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shop-form-grid .full {
  grid-column: 1/-1;
}

.payment-choice {
  display: grid;
  gap: 10px;
}

.payment-choice label {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
}

.shop-empty {
  text-align: center;
  padding: 44px 20px;
}

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

.shop-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-admin-table th,.shop-admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}

.shop-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(139,92,246,.14);
  color: #a78bfa;
  font-weight: 750;
  font-size: .82rem;
}

@media (max-width:900px) {
  .shop-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .shop-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:620px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 1fr 80px;
  }
  .cart-row .cart-price {
    grid-column: 1;
  }
  .shop-form-grid {
    grid-template-columns: 1fr;
  }
  .shop-form-grid .full {
    grid-column: auto;
  }
}

/* Produktgalerie */

.shop-gallery {
  display: grid;
  gap: 12px;
}

.shop-gallery-main {
  aspect-ratio: 4/3;
  background: #202a38;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(72px,1fr));
  gap: 9px;
}

.shop-gallery-thumb {
  appearance: none;
  border: 2px solid transparent;
  background: #202a38;
  border-radius: 11px;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease,transform .16s ease;
}

.shop-gallery-thumb:hover {
  transform: translateY(-1px);
}

.shop-gallery-thumb.active {
  border-color: #8b5cf6;
}

.shop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.payment-choice label {
  align-items: flex-start;
}

.payment-choice label > span {
  display: block;
}

.payment-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  width: 100%;
}

.payment-logo-tile,.payment-logo-cardgroup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 5px 14px rgba(0,0,0,.15);
}

.payment-logo-tile img {
  display: block;
  max-width: 78px;
  height: 24px;
  object-fit: contain;
}

.payment-logo-cardgroup {
  gap: 7px;
  padding-left: 9px;
  padding-right: 9px;
}

.payment-logo-cardgroup img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 48px;
  object-fit: contain;
}

@media (max-width:560px) {
  .payment-logos {
    gap: 7px;
  }
  .payment-logo-tile,.payment-logo-cardgroup {
    min-height: 36px;
    padding: 5px 9px;
  }
  .payment-logo-tile img {
    max-width: 68px;
    height: 22px;
  }
  .payment-logo-cardgroup img {
    height: 22px;
    max-width: 44px;
  }
}

.payment-choice label > span {
  min-width: 0;
  width: 100%;
}

/* Shop-Rabattcodes */

.shop-discount-box {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.shop-discount-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.shop-discount-row input {
  flex: 1;
  min-width: 0;
}

.shop-discount-row .btn {
  white-space: nowrap;
}

.shop-discount-error {
  margin-top: 8px;
  color: #ff9a9a;
  font-size: .9rem;
}

.shop-discount-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(63,190,120,.10);
  border: 1px solid rgba(63,190,120,.24);
}

.shop-discount-active form {
  margin: 0;
}

.shop-discount-summary strong {
  color: #8ee0ae;
}

@media (max-width:560px) {
  .shop-discount-row {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-discount-row .btn {
    width: 100%;
  }
  .shop-discount-active {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Shop Retoure / Gutschrift */

.shop-refund-form .shop-form-grid {
  margin-bottom: 14px;
}

.shop-refund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.shop-refund-row:last-child {
  border-bottom: 0;
}

.shop-refund-row form {
  margin: 0;
}

@media (max-width:700px) {
  .shop-refund-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width:620px) {
  .shop-card h3 {
    font-size: 1.08rem;
  }
}

/* Produktdetail: Produktname kompakter */

.shop-product-detail .shop-product-title {
  font-size: clamp(2.35rem,4.2vw,3.35rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

@media (max-width:620px) {
  .shop-product-detail .shop-product-title {
    font-size: 2.15rem;
    line-height: 1.06;
  }
}

.shop-legal-checkout {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.shop-legal-checkout a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
