/* ═══════════════════════════════════════════════
   FF WHEELS — SINGLE PRODUCT PAGE
   Apple Card-Based Design System
   Uses design tokens from homepage.css
   ═══════════════════════════════════════════════ */

body.single-product { background-color: var(--bg, #F5F5F7) !important; }

/* ── Product Hero Section ── */
.dm-product-hero {
  background: var(--bg) !important;
  padding: 48px 0 56px;
}
.dm-product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Gallery (Card) ── */
.dm-product-hero__gallery {
  position: sticky;
  top: 100px;
}
.dm-product-hero__main-img {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
}
.dm-product-hero__main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease, transform-origin .1s ease;
}
.dm-product-hero__main-img:not(.is-zoomed):hover img {
  transform: scale(1.03);
}
.dm-product-hero__main-img.is-zoomed { cursor: crosshair; overflow: hidden; }
.dm-product-hero__main-img.is-zoomed img { transform: scale(2.5); }

/* Image toolbar */
.dm-product-img-toolbar {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}
.dm-product-img-tool {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  color: var(--text);
}
.dm-product-img-tool:hover {
  background: var(--text);
  color: #fff;
}
.dm-product-img-tool .material-symbols-rounded { font-size: 20px; }

/* Thumbs */
.dm-product-hero__thumbs {
  display: flex;
  gap: 8px;
}
.dm-product-thumb {
  width: 68px; height: 68px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  background: var(--card);
  padding: 6px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.dm-product-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.dm-product-thumb.is-active,
.dm-product-thumb:hover {
  border-color: var(--accent);
}
.dm-product-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.dm-product-thumb--placeholder .material-symbols-rounded {
  font-size: 22px;
  color: var(--border);
}
.dm-product-thumb--placeholder:hover { border-color: transparent; }

/* ── Info Side (Card) ── */
.dm-product-hero__info {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.dm-product-hero__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.dm-product-hero__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.5px;
}
.dm-product-hero__color-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dm-product-hero__color-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dm-color-dot--lg {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.dm-product-hero__excerpt {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin: 0 0 24px;
}

/* Spec tags */
.dm-product-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.dm-product-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 980px;
}
.dm-product-spec-tag .material-symbols-rounded {
  font-size: 16px;
  color: var(--accent);
}
.dm-product-spec-tag__name {
  font-weight: 500;
  color: var(--text3);
}
.dm-product-spec-tag__value {
  font-weight: 700;
  color: var(--text);
}

/* Price + Stock */
.dm-product-hero__price-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.dm-product-hero__price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.dm-product-hero__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.dm-product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stock-color, #22c55e);
}
.dm-stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--stock-color, #22c55e);
}
.dm-product-hero__tax-note {
  font-size: 12px;
  color: var(--text3);
}

/* Quantity + ATC */
.dm-product-hero__actions { margin-bottom: 28px; }
.dm-product-atc-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.dm-qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.dm-qty-btn {
  width: 40px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  transition: background .15s;
  padding: 0;
  user-select: none;
}
.dm-qty-btn:hover { background: var(--card); }
.dm-qty-btn .material-symbols-rounded { font-size: 18px; }
.dm-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  font-family: var(--font);
  -moz-appearance: textfield;
  appearance: textfield;
}
.dm-qty-input::-webkit-inner-spin-button,
.dm-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dm-btn-add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font);
  letter-spacing: .02em;
}
.dm-btn-add-to-cart:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.dm-btn-add-to-cart .material-symbols-rounded { font-size: 20px; }

.dm-product-out-of-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--r-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* Express Checkout */
.dm-express-checkout { margin-bottom: 24px; }
.dm-express-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dm-express-divider::before,
.dm-express-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.dm-express-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dm-express-buttons {
  display: flex;
  gap: 8px;
}
.dm-express-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.dm-express-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.dm-express-btn svg { display: block; }
.dm-express-btn--klarna { background: #FFB3C7; border-color: #FFB3C7; }

/* Info Bar (Card) */
.dm-product-info-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 20px;
  background: var(--bg);
  border: none;
  border-radius: var(--r-sm);
}
.dm-info-bar__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.dm-info-bar__item:first-child { padding-left: 0; }
.dm-info-bar__item:last-child { padding-right: 0; }
.dm-info-bar__item .material-symbols-rounded {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.dm-info-bar__item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.dm-info-bar__item span {
  font-size: 10px;
  color: var(--text3);
  line-height: 1.3;
}
.dm-info-bar__item span a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dm-info-bar__divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Product Details / Tabs (Card) ── */
.dm-product-details {
  background: var(--bg);
  padding: 0 0 80px;
}
.dm-product-details .dm-container {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 0 32px 32px;
  box-shadow: var(--shadow);
}
.dm-product-tabs__nav {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  padding-top: 28px;
  border-bottom: 1.5px solid var(--border);
}
.dm-product-tabs__btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: -1.5px;
  font-family: var(--font);
}
.dm-product-tabs__btn.is-active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.dm-product-tabs__btn:hover:not(.is-active) { color: var(--text2); }
.dm-product-tab-panel { display: none; }
.dm-product-tab-panel.is-active { display: block; }
.dm-product-tab-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  max-width: 720px;
}

/* Specs grid */
.dm-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.dm-specs-table { width: 100%; border-collapse: collapse; }
.dm-specs-table tr { border-bottom: 1px solid var(--border); }
.dm-specs-table tr:last-child { border-bottom: none; }
.dm-specs-table td { padding: 14px 0; font-size: 14px; }
.dm-specs-table td:first-child {
  font-weight: 600;
  color: var(--text3);
  width: 180px;
}
.dm-specs-table td:last-child {
  font-weight: 600;
  color: var(--text);
}

/* Gutachten download items (Card) */
.dm-gutachten-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-gutachten-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  transition: box-shadow .2s;
}
.dm-gutachten-item:hover { box-shadow: var(--shadow); }
.dm-gutachten-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(178,152,118,.1);
  border-radius: 12px;
}
.dm-gutachten-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dm-gutachten-item__name { font-size: 14px; font-weight: 700; color: var(--text); }
.dm-gutachten-item__meta { font-size: 12px; color: var(--text3); }
.dm-gutachten-item__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 980px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: all .2s;
  flex-shrink: 0;
  cursor: pointer;
  font-family: var(--font);
}
.dm-gutachten-item__btn:hover {
  background: var(--accent);
}
.dm-gutachten-item__btn .material-symbols-rounded { font-size: 16px; }

/* ── Alternative Felgen (Card section) ── */
.dm-product-alternatives {
  background: var(--bg);
  padding: 0 0 80px;
}
.dm-product-alternatives .dm-section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
}
.dm-alt-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dm-alt-product-card {
  background: var(--card);
  border: none;
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
  position: relative;
}
.dm-alt-product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.dm-alt-product-card__img {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.dm-alt-product-card__img img {
  width: 90%; height: 90%;
  object-fit: contain;
}
.dm-alt-product-card__body { text-align: center; }
.dm-alt-product-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.dm-alt-product-card__variants {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.dm-alt-product-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.dm-alt-product-card__price .woocommerce-Price-amount {
  font-weight: inherit;
  color: inherit;
}
.dm-alt-product-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 18px;
  color: var(--border);
  transition: color .2s;
}
.dm-alt-product-card:hover .dm-alt-product-card__arrow {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .dm-product-hero { padding: 24px 0 32px; }
  .dm-product-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dm-product-hero__gallery { position: static; }
  .dm-product-hero__info { padding: 24px; }
  .dm-product-hero__title { font-size: 22px; }
  .dm-product-hero__price { font-size: 24px; }
  .dm-product-hero__specs { gap: 6px; }
  .dm-product-spec-tag { font-size: 12px; padding: 6px 10px; }
  .dm-product-hero__thumbs { gap: 6px; }
  .dm-product-thumb { width: 52px; height: 52px; }

  .dm-product-info-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .dm-info-bar__divider { width: 100%; height: 1px; }
  .dm-info-bar__item { padding: 0; }

  .dm-specs-grid { grid-template-columns: 1fr; gap: 0; }
  .dm-product-details .dm-container { padding: 0 20px 24px; border-radius: var(--r); }

  .dm-product-tabs__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 0;
  }
  .dm-product-tabs__nav::-webkit-scrollbar { display: none; }
  .dm-product-tabs__btn { white-space: nowrap; padding: 12px 16px; font-size: 13px; }

  .dm-express-buttons { flex-wrap: wrap; }
  .dm-express-btn { flex: 1 1 45%; }

  .dm-alt-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dm-product-alternatives { padding: 0 0 48px; }

  .dm-product-atc-form { flex-direction: column; gap: 10px; }
  .dm-qty-control { width: 100%; justify-content: center; }
}
