.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.shop-filters {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.shop-search {
  flex: 1 1 220px;
  padding: .6rem .8rem;
  border-radius: .6rem;
  border: 1px solid var(--border-subtle);
  background: #0b1120;
  color: var(--text);
  font: inherit;
}
.shop-sort, .shop-price-filter {
  padding: .6rem .8rem;
  border-radius: .6rem;
  border: 1px solid var(--border-subtle);
  background: #0b1120;
  color: var(--text);
  font: inherit;
}

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

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #06210f;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.product-badge-neu { background: linear-gradient(135deg, var(--accent), var(--accent-blue)); }
.product-badge-beliebt { background: linear-gradient(135deg, #f59e0b, #f97316); color: #2a1400; }
.product-badge-letzte_chance { background: linear-gradient(135deg, #ef4444, #dc2626); color: #2a0505; }
.product-badge-coming-soon { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.product-card-coming-soon { opacity: .92; }
.product-card-coming-soon .product-main-image {
  filter: grayscale(.25);
  border: 2px solid #fff;
  box-sizing: border-box;
}
.coming-soon-countdown {
  margin-top: .6rem;
  padding: .5rem .75rem;
  border-radius: .6rem;
  background: rgba(99,102,241,.12);
  color: var(--accent-soft, #a5b4fc);
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
}
.product-highlight {
  position: relative;
  border-radius: 1rem;
  box-shadow: 0 0 0 2px var(--accent), 0 0 32px rgba(34,197,94,.45), 0 0 60px rgba(34,197,94,.25);
  animation: product-highlight-pulse 1.8s ease-out 1;
}
@keyframes product-highlight-pulse {
  0% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 rgba(34,197,94,.6); }
  40% { box-shadow: 0 0 0 2px var(--accent), 0 0 45px rgba(34,197,94,.6), 0 0 75px rgba(34,197,94,.35); }
  100% { box-shadow: 0 0 0 2px var(--accent), 0 0 32px rgba(34,197,94,.45), 0 0 60px rgba(34,197,94,.25); }
}

.cart-fly-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  box-shadow: 0 0 12px rgba(34,197,94,.7);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.cart-fly-dot.fly {
  transition: transform .65s cubic-bezier(.3,.8,.4,1), opacity .65s ease .25s;
  transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) scale(.35);
  opacity: 0;
}

.nav-cart.cart-bump {
  animation: cart-bump .35s ease;
}
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #06210f;
  font-weight: 600;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(34,197,94,.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.product-main-image {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.product-main-image:hover {
  transform: scale(1.03);
}

.product-gallery {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 1.1rem 0;
  overflow-x: auto;
}

.product-gallery button {
  flex: 0 0 60px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 0.45rem;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
}

.product-gallery button.active {
  border-color: var(--accent-soft);
}

.product-gallery img {
  width: 60px;
  height: 50px;
  display: block;
  object-fit: cover;
}

.product-content {
  padding: 1.1rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-content h3 {
  margin-bottom: 0.4rem;
}

.product-content p {
  min-height: 3.2rem;
}

.product-price {
  margin: 0.8rem 0;
  color: var(--accent-soft);
  font-size: 1.1rem;
  font-weight: 700;
}
.product-price del { color:var(--muted); font-size:.85rem; font-weight:400; margin-right:.25rem; }
.discount-badge { display:inline-block; margin-left:.3rem; padding:.12rem .4rem; border-radius:999px; background:rgba(34,197,94,.15); color:var(--accent-soft); font-size:.7rem; }

.product-content .add-to-cart {
  width: 100%;
  margin-top: auto;
}

.product-purchase { display: flex; align-items: center; gap: .6rem; margin: .8rem 0; }
.quantity-label { color: var(--muted); font-size: .85rem; }
.product-quantity, .cart-quantity-input { width: 4.5rem; padding: .45rem .55rem; border: 1px solid var(--border-subtle); border-radius: .45rem; background: #020617; color: var(--text); font: inherit; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.product-quantity::-webkit-inner-spin-button,
.product-quantity::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #f97316;
  color: white;
  font-size: 0.7rem;
}

.cart-panel {
  display: none;
  margin-top: 1.4rem;
}

.cart-panel.open {
  display: block;
}

.checkout-panel {
  display: none;
  max-width: 680px;
  margin: 1.4rem auto 0;
}

.checkout-panel.open { display: block; }
.checkout-button { width: 100%; margin-top: 1rem; }
.checkout-back { border: 0; padding: 0; background: transparent; color: var(--accent-soft); cursor: pointer; font: inherit; }
.checkout-intro { color: var(--muted); margin-bottom: 1.4rem; }
.checkout-form { display: grid; gap: 1rem; }
.checkout-form input, .checkout-form textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: .7rem;
  padding: .85rem 1rem;
  background: #0f172a;
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(56,189,248,.14); }
.checkout-form label { margin-bottom: -.7rem; color: var(--muted); font-size: .85rem; }
.address-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.address-grid input:nth-child(3) { grid-column: 1 / -1; }
body.light-theme .checkout-form input, body.light-theme .checkout-form textarea { background: #fff; border-color: #cbd5e1; }
@media (max-width: 640px) { .address-grid { grid-template-columns: 1fr; } .address-grid input:nth-child(3) { grid-column: auto; } }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex: 1;
}

.cart-item-image {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: .55rem;
  object-fit: cover;
}

.cart-item small {
  color: var(--muted);
}

.cart-quantity {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 9.4rem;
}
.cart-product-link { color: inherit; border-radius: .55rem; outline-offset: 3px; }
.cart-product-link:hover { color: var(--accent-blue); }
.cart-product-link:focus-visible,
.cart-product-link:active {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
.cart-product-link:focus-visible img.cart-item-image,
.cart-product-link:active img.cart-item-image {
  box-shadow: 0 0 0 2px var(--accent-blue), 0 0 16px rgba(56,189,248,.45);
}

.cart-quantity button {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.4rem;
  background: #020617;
  color: var(--text);
  cursor: pointer;
}

.cart-quantity-input {
  width: 3.4rem;
  height: 1.8rem;
  padding: .15rem .25rem;
  text-align: center;
}

.cart-delete {
  flex: 0 0 auto;
  border: 1px solid #ef4444;
  border-radius: .4rem;
  padding: .35rem .6rem;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  font: inherit;
}

.cart-delete:hover {
  background: rgba(239, 68, 68, .12);
}

body.light-theme .cart-quantity button {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.cart-total {
  margin-top: 1rem;
  text-align: right;
  font-weight: 700;
}
.cart-total-original {
  font-weight: 400;
  opacity: .6;
  margin-right: .35rem;
}
.coupon-form { margin-top:1rem; }
.coupon-form > div { display:flex; gap:.5rem; margin-top:.35rem; }
.coupon-form input { flex:1; min-width:0; padding:.65rem .75rem; border:1px solid var(--border-subtle); border-radius:.65rem; background:#020617; color:var(--text); font:inherit; }
.coupon-submit { white-space:nowrap; }
.coupon-success { color:var(--accent-soft); }
.coupon-error { color:#f87171; }
body.light-theme .coupon-form input { background:#fff; border-color:#cbd5e1; color:#0f172a; }

.payment-methods {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.7rem;
}

.payment-methods legend {
  padding: 0 0.4rem;
  font-weight: 700;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.7rem;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.35rem;
  background: #fff;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-badge img {
  display: block;
  width: auto;
  height: 1.35rem;
  max-width: 5rem;
  margin: 0 auto;
}

.projects-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: #020617;
}

.project-slide {
  display: none;
  cursor: zoom-in;
}

.project-slide.active {
  display: block;
}

.project-slide img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.project-slide-content {
  padding: 1rem 1.2rem;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
}

.slider-controls button {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #020617;
  color: var(--text);
  cursor: pointer;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--accent-soft);
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.8rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

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

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cart-item-info { min-width: calc(100% - 5.2rem); }
  .cart-quantity { margin-left: 5.2rem; }
  .cart-item-total { margin-left: auto; }
  .cart-delete { margin-left: 5.2rem; }
  .payment-badges { gap: .35rem; }
  .payment-badge { padding: .2rem .45rem; }
  .payment-badge img { height: 1.15rem; max-width: 4.2rem; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .product-main-image { height: 190px; }
  .checkout-panel, .cart-panel { padding: 1rem; }
  .checkout-form input, .checkout-form textarea { min-height: 2.75rem; }
}
.related-products {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.related-products-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.related-products-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x proximity;
}
.related-product-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: .8rem;
  padding: .7rem;
  background: #0b1120;
  transition: transform .18s ease, box-shadow .18s ease;
}
.related-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, .18);
  border-color: var(--accent);
}
.related-product-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: .5rem;
}
.related-product-name {
  font-size: .85rem;
  font-weight: 600;
}
.related-product-price {
  font-size: .8rem;
  color: var(--muted);
}
.related-product-price del {
  margin-right: .3rem;
}
