/* Shop-spezifische Stile */

.is-hidden {
  display: none !important;
}

body.cart-open {
  overflow: hidden;
}

.shop-hero {
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(circle at 20% 20%, rgba(74, 168, 222, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(201, 162, 39, 0.07), transparent 32%),
    linear-gradient(180deg, #09121e, var(--bg));
  border-bottom: 1px solid var(--border);
}

.shop-hero-content {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.shop-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
}

.shop-shipping-notice {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  max-width: 680px;
  margin-inline: auto;
}

.shop-lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Shop Layout */
.shop-layout {
  padding: 64px 0 88px;
  background: var(--bg);
  min-height: calc(100vh - var(--header-h));
}

.shop-container {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

/* Sidebar Filter */
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: fit-content;
}

.filter-group {
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-soft);
}

.filter-title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.filter-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.filter-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.filter-label:hover {
  color: var(--text);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

/* Price Range */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.price-slider {
  width: 100%;
  cursor: pointer;
}

.price-display {
  font-size: 0.9rem;
  color: var(--gold-strong);
  font-weight: 700;
}

/* Main Content */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Search & Sort Bar */
.shop-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-soft);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: rgba(74, 159, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

.sort-select {
  height: 50px;
  min-width: 190px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:hover {
  border-color: rgba(74, 159, 212, 0.55);
}

.sort-select:focus {
  outline: none;
  border-color: rgba(74, 159, 212, 0.55);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 158, 214, 0.26);
  box-shadow: var(--shadow-card);
}

.product-image {
  width: 100%;
  height: 220px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(74, 168, 222, 0.08), transparent 30%),
    linear-gradient(180deg, #1a2535, #131e2f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  text-align: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 159, 212, 0.2);
  color: var(--blue-strong);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.product-description {
  margin: 0 0 16px;
  flex: 1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-image-link {
  display: block;
  text-decoration: none;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover {
  color: var(--gold-light);
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-strong);
}

.product-price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 4px;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #07101d;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--gold-light), #f1d75c);
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(201, 162, 39, 0.22);
}

/* Empty State */
.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.shop-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.shop-state.error {
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
  border-color: rgba(180, 35, 24, 0.18);
}

/* Cart Panel (Offcanvas) */
.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5);
  z-index: 100;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-panel.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-close:hover {
  background: rgba(201, 162, 39, 0.14);
}

.cart-items {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  padding-top: 40px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

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

.cart-item-name {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-strong);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.cart-item-qty input {
  width: 30px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: #ff6b6b;
  cursor: pointer;
  margin-top: 4px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  margin-top: auto;
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-strong);
}

#checkout-btn {
  width: 100%;
}

.cart-back-btn {
  width: 100%;
  margin-top: 10px;
  font-size: 1rem;
  padding: 14px 24px;
}

.checkout-screen {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.checkout-screen h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.checkout-shipping-hint {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
  color: var(--text);
}

.shipping-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}

.shipping-ack input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.payment-methods {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
}

.payment-methods legend {
  font-weight: 600;
  padding: 0 6px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.payment-option input {
  width: auto;
}

.checkout-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.checkout-message {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(43, 158, 214, 0.16);
  background: rgba(74, 159, 212, 0.08);
  color: var(--text);
  font-weight: 600;
}

/* Cart Badge */
.cart-link {
  position: relative;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  color: var(--text);
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
  box-shadow: 0 10px 24px rgba(11,34,51,0.06);
  overflow: visible;
}

.nav-cart::before {
  content: "";
  width: 19px;
  height: 19px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h-2l-1 2H2v2h2l3.6 7.59-1.35 2.44A2 2 0 0 0 8 21h11v-2H8l1.1-2h7.45a2 2 0 0 0 1.8-1.11L21 8H7.42L7 4Zm3.2 7 1.12-2h7.45l-1 2H10.2ZM9 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h-2l-1 2H2v2h2l3.6 7.59-1.35 2.44A2 2 0 0 0 8 21h11v-2H8l1.1-2h7.45a2 2 0 0 0 1.8-1.11L21 8H7.42L7 4Zm3.2 7 1.12-2h7.45l-1 2H10.2ZM9 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-cart:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.26);
  background: linear-gradient(135deg, var(--surface), rgba(201, 162, 39, 0.12));
  box-shadow: 0 14px 28px rgba(11,34,51,0.09);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #07101d;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(11,34,51,0.08);
}

/* ── Mobile Filter Toggle ───────────────────────────────────────────────── */
.filter-toggle-btn {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, background 0.2s;
}

.filter-toggle-btn:hover {
  border-color: rgba(201, 162, 39, 0.35);
}

.filter-toggle-btn::before {
  content: "☰";
  font-size: 1.1rem;
}

.filter-toggle-btn.is-active::before {
  content: "✕";
}

/* Responsive */
@media (max-width: 1040px) {
  .shop-container {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: relative;
    top: 0;
  }

  .filter-toggle-btn {
    display: flex;
  }

  .shop-sidebar .filter-group,
  .shop-sidebar .btn-secondary {
    display: none;
  }

  .shop-sidebar.filters-open .filter-group,
  .shop-sidebar.filters-open .btn-secondary {
    display: block;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-hero {
    padding: calc(var(--header-h) + 48px) 0 56px;
  }

  .shop-layout {
    padding: 32px 0 56px;
  }

  .shop-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: auto;
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 16px;
  }

  .product-image {
    height: 150px;
    margin-bottom: 10px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .btn-add-cart {
    min-width: 0;
    width: 100%;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-cart {
    width: 44px;
    height: 44px;
  }

  .cart-panel {
    width: 100%;
    right: -100%;
  }
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 16px 0;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination button:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.3);
}

.pagination button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #07101d;
  border-color: var(--gold);
  font-weight: 700;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 8px;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--header-h) + 24px) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border-strong);
}

/* ── Product Detail Page ─────────────────────────────────────────────────── */
.product-detail-page {
  padding-bottom: 64px;
}

.product-detail {
  padding-top: 24px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-image {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.product-detail-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.product-detail-description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.product-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.meta-label {
  color: var(--muted);
  font-weight: 600;
}

.meta-value {
  color: var(--text);
  font-weight: 700;
}

.product-detail-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-strong);
}

.product-detail-mwst {
  font-size: 0.78rem;
  color: var(--muted);
}

.product-detail-mwst a {
  color: var(--gold-light);
  text-decoration: underline;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(201, 162, 39, 0.1);
}

.qty-value {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.btn-add-detail {
  flex: 1;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #07101d;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.16);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(201, 162, 39, 0.22);
}

.btn-add-detail:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.product-detail-shipping {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Related Products ────────────────────────────────────────────────────── */
.related-products {
  margin-top: 56px;
}

.related-products h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.related-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(201, 162, 39, 0.25);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.related-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.related-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-strong);
}

/* ── Product Detail Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail-image {
    position: static;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .btn-add-detail {
    width: 100%;
  }
}

/* Checkout legal block */
.checkout-legal {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
}

.checkout-legal-ack {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  cursor: pointer;
  padding: 6px 0;
}

.checkout-legal-ack + .checkout-legal-ack {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.checkout-legal-ack input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.checkout-legal-ack span {
  flex: 1;
}

.checkout-legal-ack a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

.checkout-legal-ack a:hover {
  text-decoration: underline;
}

.checkout-mwst-hint {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.checkout-mwst-hint a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Withdrawal form on widerruf.html */
.withdrawal-form .form-group {
  margin-bottom: 16px;
}

.withdrawal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.withdrawal-form input,
.withdrawal-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.withdrawal-form input:focus,
.withdrawal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.withdrawal-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.withdrawal-message.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.withdrawal-message.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

@media (max-width: 760px) {
}
