* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f2f5; color: #1a1a1a; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.page { max-width: 100%; margin: 0 auto; padding: 12px 12px 200px; min-height: 100vh; }
@media (min-width: 600px) { .page { padding: 20px 20px 200px; } }

/* --- HP Embed: Badge + Sprache + Cart ausblenden, Header bleibt --- */
body.mode-embed.shop-haushaltsparadies .product-badge { display: none; }
body.mode-embed.shop-haushaltsparadies .lang-wrap { display: none; }
body.mode-embed.shop-haushaltsparadies .cart-btn,
body.mode-embed.shop-haushaltsparadies .cart-dropdown { display: none !important; }

/* --- Header --- */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; margin-bottom: 12px;
  background: var(--header-bg, linear-gradient(135deg, #1a1a2e, #0d0d1a));
  border-radius: 12px; color: var(--header-text, #fff);
}
@media (min-width: 600px) { .header { padding: 16px 24px; margin-bottom: 16px; border-radius: 16px; } }
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
@media (min-width: 600px) { .header-left { gap: 14px; } }
.header-logo { height: 32px; width: auto; object-fit: contain; flex-shrink: 0; }
@media (min-width: 600px) { .header-logo { height: 44px; } }
.header h1 { font-size: 15px; font-weight: 600; color: var(--header-text, #b8c4e0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 600px) { .header h1 { font-size: 20px; } }
.product-badge {
  background: var(--badge-bg, rgba(184,196,224,0.2)); color: var(--header-text, #b8c4e0);
  padding: 6px 16px; border-radius: 20px;
  font-size: 14px; font-weight: 600; flex-shrink: 0; white-space: nowrap;
  border: 1px solid var(--badge-border, rgba(184,196,224,0.3));
}
@media (max-width: 540px) { .product-badge { display: none; } }
.lang-wrap { position: relative; flex-shrink: 0; }
.lang-icon-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--header-text, #b8c4e0); opacity: 0.7; transition: opacity 0.15s;
  display: flex; align-items: center;
}
.lang-icon-btn:hover { opacity: 1; }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
  background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 130px; z-index: 50; overflow: hidden;
}
.lang-wrap.open .lang-dropdown { display: block; }
.lang-opt {
  display: block; width: 100%; text-align: left; padding: 8px 14px;
  border: none; background: none; font-size: 13px; color: #333;
  cursor: pointer;
}
.lang-opt:hover:not(:disabled) { background: #f3f4f6; }
.lang-opt:disabled { color: #bbb; cursor: default; }
.lang-opt.active { font-weight: 600; color: var(--accent, #1a1a2e); }

/* --- Cart --- */
.cart-btn {
  position: relative; background: var(--accent, rgba(255,255,255,0.15)); border: 1px solid rgba(184,196,224,0.3);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--accent-text, #b8c4e0); transition: background 0.15s;
}
.cart-btn:hover { background: var(--badge-bg, rgba(0,0,0,0.06)); }
.cart-btn svg { vertical-align: middle; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: #e53e3e; color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 9px; padding: 0 4px;
  transition: transform 0.3s ease;
}
.cart-badge.bump { animation: cartBump 0.4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.cart-badge:empty { display: none; }

.cart-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 10px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  width: 320px; max-height: 400px; overflow-y: auto; z-index: 100;
  padding: 16px; color: #1a1a1a;
}
.cart-dropdown.open { display: block; animation: cartOpen 0.3s ease; }
@keyframes cartOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cart-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #f4f6f5; }
.cart-item .cart-item-name { flex: 1; font-weight: 500; }
.cart-item .cart-remove {
  background: none; border: none; color: #e53e3e; cursor: pointer; font-size: 16px;
  opacity: 0.5; transition: opacity 0.15s;
}
.cart-item .cart-remove:hover { opacity: 1; }
.cart-empty { text-align: center; color: #999; font-size: 13px; padding: 20px 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cart-header h3 { font-size: 15px; font-weight: 600; }
.cart-header .cart-count-label { font-size: 12px; color: #888; }
.cart-pay-buttons { display: flex; gap: 8px; padding: 10px 0 4px; border-top: 1px solid #eee; margin-top: 8px; justify-content: center; }
.pay-btn { height: 36px; padding: 0 14px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, box-shadow 0.15s; }
.pay-btn:hover { border-color: #999; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.pay-apple { background: #fff; }
.pay-google { background: #fff; }
.pay-paypal { background: #ffc439; border-color: #f0b630; }

/* fly-to-cart ghost */
.fly-ghost {
  position: fixed; z-index: 9999; pointer-events: none; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); overflow: hidden; background: #fff;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.7s ease, width 0.7s ease, height 0.7s ease;
}

/* add-to-cart button on cards */
.card-detail-btn {
  background: transparent; color: #1a1a2e; border: 1px solid #d0d8e8; border-radius: 6px;
  padding: 5px 10px; font-size: 11px; font-weight: 500; cursor: pointer;
  transition: background 0.15s;
}
.card-detail-btn:hover { background: #f0f2f6; }
.card-ask-btn {
  background: #e8ecf4; color: #1a1a2e; border: none; border-radius: 6px;
  padding: 5px 10px; font-size: 11px; font-weight: 500; cursor: pointer;
  transition: background 0.15s;
}
.card-ask-btn:hover { background: #d0d8e8; }
/* Beim Champion Button verstecken (Eingabefeld übernimmt) */
.product-card.margin-champion .card-ask-btn { display: none; }
.card-cart-btn {
  background: #fff; color: var(--accent, #1a1a2e); border: 1px solid var(--accent, #1a1a2e); border-radius: 6px;
  padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; min-height: 28px;
}
.card-cart-btn:hover { background: var(--accent, #1a1a2e); color: var(--accent-text, #fff); }
.card-cart-btn.added { background: var(--accent, #1a1a2e); color: var(--accent-text, #fff); opacity: 0.7; }
.card-compare-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid rgba(0,80,85,0.3); background: rgba(255,255,255,0.8);
  cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent; transition: all 0.2s ease;
}
.card-compare-check:hover { border-color: var(--accent, #1a1a2e); background: #fff; }
.card-compare-check.selected {
  background: var(--accent, #1a1a2e); border-color: var(--accent, #1a1a2e); color: var(--accent-text, #fff);
}

/* Compare bar (sticky bottom) */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--accent, #1a1a2e); color: var(--accent-text, #fff); padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  z-index: 50; box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.compare-bar span { font-size: 14px; font-weight: 500; flex: 1; }
.btn-compare {
  background: #b8c4e0; color: #1a1a2e; border: none; border-radius: 8px;
  padding: 8px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn-compare:hover { background: #fff; }
.btn-compare-clear {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 16px;
  transition: background 0.15s;
}
.btn-compare-clear:hover { background: rgba(255,255,255,0.1); }

/* Compare modal */
.compare-modal-bg {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  justify-content: center; align-items: flex-start; padding: 40px 20px;
  opacity: 0; transition: opacity 0.4s ease; overflow-y: auto;
}
.compare-modal-bg.open { display: flex; }
.compare-modal-bg.visible { opacity: 1; }
.compare-modal {
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 95%; max-width: 900px; max-height: 85vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.4s ease;
}
.compare-modal-bg.visible .compare-modal { transform: none; }
.compare-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
}
.compare-header h2 { font-size: 18px; font-weight: 700; }
.compare-close {
  background: none; border: none; font-size: 24px; cursor: pointer; color: #888;
}
.compare-close:hover { color: #333; }
.compare-table-wrap { padding: 20px 24px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
  text-align: center; padding: 12px 10px; background: #f8f9fa;
  font-weight: 600; border-bottom: 2px solid #e5e7eb;
}
.compare-table th img { width: 80px; height: 80px; object-fit: contain; display: block; margin: 0 auto 8px; }
.compare-table td {
  padding: 8px 10px; border-bottom: 1px solid #f3f3f3; text-align: center;
}
.compare-table td:first-child {
  text-align: left; font-weight: 500; color: #888; width: 140px;
}
.compare-table tr:hover td { background: #fafafa; }
.compare-table .diff { background: #e8ecf4; font-weight: 600; }
.compare-ai-section {
  padding: 24px; margin: 0 24px 20px; border-radius: 12px;
  background: linear-gradient(135deg, var(--modal-chat-bg, #1a1a2e), var(--modal-chat-bg2, #0d0d1a)); color: #fff;
}
.compare-ai-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #b8c4e0; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.compare-ai-title .ai-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #b8c4e0;
  animation: aiPulse 1.5s ease-in-out infinite;
}
.compare-ai-title .ai-dot.done { animation: none; }
@keyframes aiPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.compare-ai-text {
  font-size: 15px; line-height: 1.8; color: #e8ecf4; min-height: 30px;
  text-align: left;
}
.compare-ai-text:has(.btn-start-analysis) { text-align: center; }
.compare-ai-text .token-fade { color: #fff; }
.compare-reply {
  display: flex; gap: 8px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(184,196,224,0.2);
}
.compare-reply input {
  flex: 1; padding: 10px 14px; border-radius: 10px; border: none;
  font-size: 14px; outline: none; background: rgba(255,255,255,0.15);
  color: #fff;
}
.compare-reply input::placeholder { color: rgba(184,196,224,0.5); }
.btn-start-analysis {
  background: #b8c4e0; color: #1a1a2e; border: none; border-radius: 10px;
  padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.btn-start-analysis:hover { background: #fff; }
.compare-reply button {
  background: #b8c4e0; color: #1a1a2e; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* --- Advisor Panel --- */
.advisor-panel {
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 12px;
  min-height: auto;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: min-height 0.35s ease;
}
@media (min-width: 600px) { .advisor-panel { margin-bottom: 16px; border-radius: 16px; } }
.advisor-scroll {
  display: flex; flex-direction: column;
}
.advisor-answer { padding: 14px 16px 8px; font-size: 15.5px; line-height: 1.6; color: #1a1a1a; }
@media (min-width: 600px) { .advisor-answer { padding: 18px 28px 10px; font-size: 16.5px; } }
.token-fade { display: inline; animation: tokenIn 0.5s ease both; }
@keyframes tokenIn { from { opacity: 0; } to { opacity: 1; } }
.filter-thinking-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-left: 12px;
}
.typing-area {
  display: flex; align-items: center;
  opacity: 0.15; transition: opacity 0.8s ease;
}
.typing-area.active { opacity: 1; }

/* --- Quick Replies --- */
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px 0; justify-content: flex-start; }
@media (min-width: 600px) { .quick-replies { gap: 8px; } }
.qr-btn {
  background: #f0f2f7; border: 1px solid rgba(0,0,0,0.06); color: #1a1a2e;
  padding: 7px 12px; border-radius: 18px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
  opacity: 0; transform: translateY(6px);
}
@media (min-width: 600px) { .qr-btn { padding: 10px 18px; font-size: 14px; border-radius: 20px; } }
.qr-btn.qr-visible { opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.4s ease, background 0.15s, color 0.15s, border-color 0.15s; }
.qr-btn.qr-hidden { display: none; }
.qr-btn.qr-more { background: transparent; border: 1px dashed rgba(0,0,0,0.15); color: #6b7280; font-size: 11px; }
.qr-btn:hover { background: var(--accent, #1a1a2e); color: var(--accent-text, #fff); border-color: var(--accent, #1a1a2e); }
.qr-btn.qr-more:hover { background: #f0f2f7; color: #1a1a2e; border-style: solid; }

/* --- Input --- */
.input-row { display: flex; gap: 8px; padding: 12px 12px; border-top: 1px solid #f0f0f0; margin-top: auto; flex-wrap: nowrap; }
@media (min-width: 600px) { .input-row { padding: 14px 24px; gap: 10px; } }
@media (max-width: 540px) {
  .input-row { gap: 5px; padding: 10px 8px; }
  .input-row button:not(.nav-btn) { padding: 8px 14px; font-size: 13px; flex-shrink: 0; }
  .nav-btn.visible { max-width: 40px; padding: 6px 8px; }
}
.input-row input {
  flex: 1; border: 1.5px solid #e0e3e8; border-radius: 12px;
  padding: 10px 14px; font-size: 14px; outline: none; transition: border-color 0.2s;
  background: #f8f9fb;
}
@media (min-width: 600px) { .input-row input { padding: 12px 16px; font-size: 15px; } }
.input-row input:focus { border-color: var(--accent, #1a1a2e); background: #fff; }
.input-row button:not(.nav-btn) {
  background: var(--accent, #1a1a2e); color: var(--accent-text, #fff); border: none; border-radius: 12px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
@media (min-width: 600px) { .input-row button:not(.nav-btn) { padding: 12px 24px; font-size: 15px; } }
.input-row button:not(.nav-btn):hover { background: var(--accent-hover, #0d0d1a); }

/* --- Filters (collapsible) --- */
.filter-wrap { margin-bottom: 16px; }
.filter-toggle {
  background: none; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; color: #1a1a2e;
  cursor: pointer; transition: background 0.15s;
}
.filter-toggle:hover { background: #e8ecf4; }
.filter-toggle .count { background: var(--accent, #1a1a2e); color: var(--accent-text, #fff); border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: 6px; }
.filter-bar { display: none; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filter-bar.open { display: flex; }
.filter-tag { background: #e8ecf4; color: #0d0d1a; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; }

/* --- Product Grid --- */
.grid-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.grid-header h2 { font-size: 18px; font-weight: 600; }
.grid-header .count { font-size: 14px; color: #888; }

/* === Product Grid — Mobile-first (iPhone Pro 390px) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
  align-items: stretch;
  transition: gap 0.6s ease;
}
@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
}
/* State: few (2-4 products) — nebeneinander, gleiche Höhe */
.product-grid.state-few {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: stretch;
}
@media (min-width: 600px) { .product-grid.state-few { gap: 14px; } }
/* State-few: Champion/Top-Margin NICHT über volle Breite, sondern gleiche Zellengröße */
.product-grid.state-few .product-card.margin-champion,
.product-grid.state-few .product-card:has(.margin-badge.top-margin) {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
}
/* State: one (1 product) */
.product-grid.state-one {
  grid-template-columns: 1fr;
  gap: 14px;
}

/* === Product Card — Premium Commerce === */
.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
  will-change: transform, opacity;
  transition: box-shadow 0.4s ease, transform 0.3s ease, border-color 0.3s ease,
              border-radius 0.4s ease, padding 0.4s ease;
  overflow: hidden;
}
/* Smooth state-Uebergaenge: Grid animiert gap, Karten animieren Innenteile */
.product-grid {
  transition: gap 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.card-top {
  transition: width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.card-body {
  transition: padding 0.4s ease;
}
.card-price {
  transition: font-size 0.3s ease;
}
@media (hover: hover) {
  .product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.08);
  }
}
.product-grid.state-few .product-card,
.product-grid.state-one .product-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  border-radius: 16px;
}

/* === Card Animations — Staggered per card === */
.product-card.card-entering {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}
.product-card.card-entering.card-go {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}
/* Staggered delays — each card enters slightly later */
.product-card.card-entering:nth-child(1) { transition-delay: 0s; }
.product-card.card-entering:nth-child(2) { transition-delay: 0.06s; }
.product-card.card-entering:nth-child(3) { transition-delay: 0.12s; }
.product-card.card-entering:nth-child(4) { transition-delay: 0.18s; }
.product-card.card-entering:nth-child(5) { transition-delay: 0.24s; }
.product-card.card-entering:nth-child(6) { transition-delay: 0.3s; }
.product-card.card-entering:nth-child(n+7) { transition-delay: 0.36s; }
/* Alternate subtle motion direction */
.product-card.card-entering:nth-child(odd) { transform: translateY(40px) scale(0.96); }
.product-card.card-entering:nth-child(even) { transform: translateY(30px) scale(0.97) translateX(8px); }
.product-card.card-entering.card-go:nth-child(odd),
.product-card.card-entering.card-go:nth-child(even) { transform: translateY(0) scale(1) translateX(0); }

.product-card.card-leaving {
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.55, 0, 1, 0.45);
  opacity: 0 !important;
  transform: scale(0.85) translateY(-12px);
}
.product-card.card-flying { transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1); }

/* Hover + Click */
.product-card { position: relative; cursor: pointer; transform-origin: top center; }
/* Product detail modal */
.product-modal-bg {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 100;
  justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.5s ease;
}
.product-modal-bg.open { display: flex; }
.product-modal-bg.visible { opacity: 1; }
.product-modal {
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 75vw; width: 90%; max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.95); transition: transform 0.5s ease;
}
.product-modal-bg.visible .product-modal { transform: scale(1); }
.product-modal .modal-top {
  display: flex; flex-direction: row; padding: 24px; gap: 20px;
  border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.product-modal .modal-image {
  width: 160px; flex-shrink: 0; background: #f4f6f5; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-modal .modal-image img { width: 100%; height: auto; object-fit: contain; }
.product-modal .modal-info { flex: 1; }
.product-modal .modal-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.product-modal .modal-type { font-size: 14px; color: #888; margin-bottom: 12px; }
.product-modal .modal-links { display: flex; gap: 10px; }
.product-modal .modal-specs-wrap {
  flex: 1; overflow-y: auto; padding: 20px 24px;
}
.product-modal .modal-specs-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: #1a1a2e; margin-bottom: 12px;
}
.product-modal .modal-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
}
.product-modal .modal-spec-row {
  display: flex; gap: 8px; font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.product-modal .modal-spec-row:last-child { border-bottom: none; }
.product-modal .modal-spec-label { color: #888; width: 120px; flex-shrink: 0; }
.product-modal .modal-spec-value { color: #1a1a1a; font-weight: 600; }
.product-modal .modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: #888; transition: color 0.15s; z-index: 5;
}
.product-modal .modal-close:hover { color: #333; }
/* Product modal chat */
.product-modal .modal-chat {
  border-top: 2px solid #e8ecf4; padding: 12px 24px;
  background: linear-gradient(135deg, var(--modal-chat-bg, #1a1a2e), var(--modal-chat-bg2, #0d0d1a));
  border-radius: 0 0 16px 16px; flex-shrink: 0;
}
.product-modal .modal-chat-text {
  font-size: 14px; line-height: 1.7; color: #e8ecf4;
  margin-bottom: 10px; text-align: left; max-height: 120px; overflow-y: auto;
}
.product-modal .modal-chat-text:empty {
  display: none;
}
.product-modal .modal-chat-label {
  font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 6px; font-style: italic;
}
.product-modal .modal-chat-input {
  display: flex; gap: 8px;
}
.product-modal .modal-chat-input input {
  flex: 1; padding: 10px 14px; border-radius: 10px; border: none;
  font-size: 14px; outline: none; background: rgba(255,255,255,0.15); color: #fff;
}
.product-modal .modal-chat-input input::placeholder { color: rgba(255,255,255,0.5); }
.product-modal .modal-chat-input button {
  background: rgba(255,255,255,0.85); color: var(--accent, #1a1a2e); border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
/* ── Mobile Compare Modal ──────────────────────────────────── */
@media (max-width: 540px) {
  .compare-modal-bg { padding: 0; align-items: stretch; }
  .compare-modal {
    width: 100%; max-width: 100%; max-height: 100vh; max-height: 100dvh;
    border-radius: 0;
  }
  .compare-header { padding: 14px 16px; }
  .compare-header h2 { font-size: 16px; }
  .compare-table-wrap { padding: 12px 8px; }
  .compare-table { font-size: 11px; }
  .compare-table th img { width: 50px; height: 50px; }
  .compare-table td:first-child { width: 90px; font-size: 11px; }
  .compare-ai-section {
    margin: 0 12px 16px; padding: 16px; border-radius: 10px;
  }
  .compare-ai-text { font-size: 14px; line-height: 1.6; }
  .compare-reply { gap: 6px; }
  .compare-reply input { padding: 8px 10px; font-size: 13px; }
  .compare-reply button { padding: 8px 14px; font-size: 13px; }
}

/* ── Mobile Product Modal ──────────────────────────────────── */
@media (max-width: 540px) {
  .product-modal {
    max-width: 100vw; width: 100vw; max-height: 100vh;
    border-radius: 0; margin: 0;
    height: 100vh; height: 100dvh;
  }
  .product-modal-bg { align-items: stretch; }
  .product-modal .modal-top {
    flex-direction: column; padding: 16px; gap: 12px;
  }
  .product-modal .modal-image {
    width: 100%; max-height: 200px;
  }
  .product-modal .modal-name {
    font-size: 16px; line-height: 1.3;
  }
  .product-modal .modal-type { font-size: 12px; margin-bottom: 8px; }
  .product-modal .modal-close {
    top: 8px; right: 10px; font-size: 28px;
    background: rgba(255,255,255,0.85); border-radius: 50%;
    width: 36px; height: 36px; display: flex;
    align-items: center; justify-content: center;
  }
  .product-modal .modal-specs-wrap { padding: 12px 16px; }
  .product-modal .modal-specs-grid {
    grid-template-columns: 1fr; gap: 0;
  }
  .product-modal .modal-spec-row { gap: 6px; font-size: 12px; }
  .product-modal .modal-spec-label { width: 100px; }
  .product-modal .modal-chat { padding: 10px 16px; }
  .product-modal .modal-chat-input input {
    padding: 8px 10px; font-size: 13px;
  }
  .product-modal .modal-chat-input button {
    padding: 8px 14px; font-size: 13px;
  }
  .product-modal .modal-chat-text { font-size: 13px; max-height: 80px; }
  .product-modal .modal-variant-list { font-size: 12px; }
}

/* Specs overlay inside hovered card — left specs, right image */
.product-card .card-hover-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 12px;
  padding: 14px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex; flex-direction: row; gap: 12px;
}
.product-card:hover:not(.card-expanded) .card-hover-overlay {
  opacity: 1; pointer-events: auto;
}
.card-hover-overlay .hover-left { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-hover-overlay .hover-right { width: 40%; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.card-hover-overlay .hover-right img { width: 100%; height: 100%; object-fit: cover; }
.card-hover-overlay .hover-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.card-hover-overlay .hover-type { font-size: 10px; color: #888; margin-bottom: 2px; }
.card-hover-overlay .hover-specs { flex: 1; overflow: hidden; }
.card-hover-overlay .hover-spec-row {
  display: flex; gap: 4px; font-size: 10px; padding: 2px 0;
  border-bottom: 1px solid #f3f3f3;
}
.card-hover-overlay .hover-spec-row:last-child { border-bottom: none; }
.card-hover-overlay .hover-spec-label { color: #999; width: 80px; flex-shrink: 0; }
.card-hover-overlay .hover-spec-value { color: #1a1a1a; font-weight: 600; }

/* === Card Image === */
.card-top {
  background: #f8f9fb; height: 140px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: height 0.6s ease;
}
@media (min-width: 600px) { .card-top { height: 170px; } }
@media (min-width: 900px) { .card-top { height: 190px; } }
.card-top img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 8px; }
.card-top .icon { font-size: 36px; color: #c5cdd8; }

/* State-few: 2 cards, image left + specs right */
.product-grid.state-few .product-card {
  flex-direction: row; flex-wrap: nowrap;
}
.product-grid.state-few .card-top { height: auto; width: 130px; flex-shrink: 0; }
.product-grid.state-few .card-top img { width: 130px; height: auto; object-fit: contain; }
.product-grid.state-few .card-body { flex: 1; min-width: 0; }

/* State-one: full width detail */
.product-grid.state-one .product-card {
  grid-column: 1 / -1;
  flex-direction: column;
  overflow: visible; max-height: none;
}
.product-grid.state-one .card-top { width: 100%; height: 220px; background: #f8f9fb; }
.product-grid.state-one .card-top img { width: auto; height: 220px; object-fit: contain; }
.product-grid.state-one .card-body { flex: 1; overflow: visible; }
.product-grid.state-one .card-details,
.product-grid.state-one .card-details-extra { columns: 2; column-gap: 24px; }
.product-grid.state-one .card-detail-row { break-inside: avoid; }

/* Mobile: state-few collapses to column, champion to 1 col */
@media (max-width: 600px) {
  .product-grid.state-few .product-card { flex-direction: column; }
  .product-grid.state-few .card-top { width: 100%; height: 140px; }
  .product-grid.state-few .card-top img { width: 100%; height: 140px; }
  .product-grid.state-one .card-details,
  .product-grid.state-one .card-details-extra { columns: 1; }
}

/* === Card Body === */
.card-body {
  padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px;
  transition: padding 0.5s ease;
}
@media (min-width: 600px) { .card-body { padding: 12px 14px; gap: 6px; } }
.product-grid.state-few .card-body { padding: 16px 20px; }
.product-grid.state-one .card-body { padding: 20px 24px; }

/* Product name — compact on mobile */
.card-body .name {
  font-size: 13px; font-weight: 600; line-height: 1.35; color: #1a1a1a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: font-size 0.5s ease;
}
@media (min-width: 600px) { .card-body .name { font-size: 14px; } }
.product-grid.state-few .card-body .name { font-size: 16px; -webkit-line-clamp: 3; }
.product-grid.state-one .card-body .name { font-size: 20px; -webkit-line-clamp: unset; }
.card-body .product-link {
  font-size: 10px; color: var(--accent, #4a90d9); text-decoration: none;
  display: inline-block; margin-top: 1px; opacity: 0.7;
}
.card-body .product-link:hover { text-decoration: underline; opacity: 1; }
.card-body .type-label {
  font-size: 10px; color: #9ca3af; margin-top: 1px;
  text-transform: uppercase; letter-spacing: 0.3px; font-weight: 500;
}
@media (min-width: 600px) { .card-body .type-label { font-size: 11px; } }
.product-grid.state-few .card-body .type-label { font-size: 12px; }
.product-grid.state-one .card-body .type-label { font-size: 13px; color: #6b7280; }

/* Specs table — hidden in many-state, revealed in few/one */
.card-details {
  max-height: 0; overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.5s ease 0.1s,
              padding 0.6s ease;
  opacity: 0; padding: 0 12px;
}
.product-grid.state-few .card-details,
.product-grid.state-one .card-details {
  max-height: 800px; opacity: 1; padding: 12px 20px;
}
.product-grid.state-one .card-details { padding: 16px 28px; }
.card-details-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: #1a1a2e; margin-bottom: 8px; display: none;
}
.product-grid.state-few .card-details-title,
.product-grid.state-one .card-details-title { display: block; }
.product-grid.state-one .card-details-title { font-size: 13px; margin-bottom: 12px; }
.card-detail-row {
  display: flex; gap: 8px; font-size: 12px; padding: 5px 0; line-height: 1.4;
  border-bottom: 1px solid #f3f3f3;
  transition: font-size 1.2s ease, padding 1.2s ease;
}
.product-grid.state-few .card-detail-row { font-size: 13px; padding: 7px 0; }
.product-grid.state-one .card-detail-row { font-size: 14px; padding: 9px 0; }
.card-detail-row:last-child { border-bottom: none; }
.card-detail-label { color: #9ca3af; width: 80px; flex-shrink: 0; font-size: 10px;
  transition: width 0.5s ease, font-size 0.5s ease; }
@media (min-width: 600px) { .card-detail-label { width: 100px; font-size: 11px; } }
.product-grid.state-few .card-detail-label { width: 140px; font-size: 11px; color: #777; }
.product-grid.state-one .card-detail-label { width: 160px; font-size: 12px; color: #666; font-weight: 500; }
.card-detail-value { color: #1a1a1a; font-weight: 500; }
.product-grid.state-one .card-detail-value { font-weight: 600; }

/* All specs — only in single-product state */
.card-details-extra {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s,
              opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s,
              padding 1.2s ease 0.4s;
  padding: 0 14px;
}
.product-grid.state-one .card-details-extra {
  max-height: 2000px; opacity: 1; padding: 0 28px 16px;
}

/* Product description text — only state-one */
.card-description {
  max-height: 0; overflow: hidden; opacity: 0; font-size: 14px; line-height: 1.6; color: #444;
  transition: max-height 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s,
              opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.8s,
              padding 1.2s ease 0.6s;
  padding: 0;
}
.product-grid.state-one .card-description {
  max-height: 200px; opacity: 1; padding: 8px 0 12px;
}

/* === Price & Actions — Online Shop Style === */
.card-links {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: auto; padding-top: 6px;
  border-top: 1px solid #f0f2f5;
}
.card-price {
  font-size: 18px; font-weight: 800; color: var(--accent, #1a1a2e);
  letter-spacing: -0.3px; padding: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 600px) { .card-price { font-size: 19px; } }
.card-buttons {
  display: flex; gap: 5px; flex-wrap: wrap; align-items: center;
}
/* Compact buttons on mobile */
.card-detail-btn, .card-ask-btn {
  font-size: 10px; padding: 4px 8px; border-radius: 6px;
}
.card-cart-btn {
  font-size: 11px; padding: 5px 10px; border-radius: 8px; min-height: 26px;
}
@media (min-width: 600px) {
  .card-detail-btn, .card-ask-btn { font-size: 11px; padding: 5px 10px; }
  .card-cart-btn { padding: 6px 12px; }
}
.product-grid.state-few .card-links { padding-top: 10px; gap: 8px; }
.product-grid.state-one .card-links { padding-top: 14px; gap: 10px; }
.product-grid.state-few .card-price { font-size: 20px; }
.product-grid.state-one .card-price { font-size: 22px; }
.product-grid.state-few .card-cart-btn,
.product-grid.state-few .card-detail-btn,
.product-grid.state-few .card-ask-btn { font-size: 12px; padding: 7px 14px; }
.product-grid.state-one .card-cart-btn,
.product-grid.state-one .card-detail-btn,
.product-grid.state-one .card-ask-btn { font-size: 13px; padding: 9px 20px; border-radius: 8px; }
.link-data { background: #e8ecf4; color: #1a1a2e; }
.link-data:hover { background: #b8c4e0; }
.no-products { text-align: center; padding: 80px 40px; color: #888; font-size: 16px; line-height: 1.6; grid-column: 1 / -1; }

/* --- Feedback --- */
.qr-feedback-row { display: flex; align-items: center; padding: 8px 16px 16px; gap: 8px; }
@media (min-width: 600px) { .qr-feedback-row { padding: 8px 28px 16px; } }
.feedback-row { display: flex; align-items: center; gap: 6px; }
.fb-btn {
  background: none; border: 1px solid #b8c4e0; border-radius: 20px; padding: 5px 8px;
  cursor: pointer; opacity: 0.35; color: #1a1a2e; transition: all 0.15s; line-height: 1; display: flex; align-items: center;
}
.fb-btn:hover { opacity: 0.8; border-color: #1a1a2e; }
.fb-btn.selected { opacity: 1; border-color: #1a1a2e; background: #e8ecf4; }
.fb-label { font-size: 11px; color: #aaa; }
.fb-comment { display: flex; gap: 6px; justify-content: flex-end; }

/* --- Thinking Animation --- */
.advisor-panel.thinking { position: relative; overflow: hidden; }
.advisor-panel.thinking::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #b8c4e0 30%, #1a1a2e 50%, #b8c4e0 70%, transparent 100%);
  background-size: 200% 100%; animation: thinking-bar 1.5s linear infinite;
}
@keyframes thinking-bar { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.thinking-label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #1a1a2e; }
.thinking-icon { position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; }
.thinking-icon .brand { font-size: 7px; font-weight: 400; color: #1a1a2e; text-decoration: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 1; white-space: nowrap; letter-spacing: 0.5px; animation: brand-pulse 2.5s ease-in-out infinite; }
@keyframes brand-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.thinking-icon .particle { position: absolute; border-radius: 50%; }
.thinking-icon .p1 { width: 3px; height: 3px; background: #1a1a2e; animation: po1 5s linear infinite; }
.thinking-icon .p2 { width: 3px; height: 3px; background: #b8c4e0; animation: po2 6s linear infinite; }
.thinking-icon .p3 { width: 2px; height: 2px; background: #1a1a2e; animation: po3 4.5s linear infinite; }
.thinking-icon .p4 { width: 2px; height: 2px; background: #b8c4e0; animation: po4 7s linear infinite; }
.thinking-icon .p5 { width: 3px; height: 3px; background: #1a1a2e; animation: po5 5.5s linear infinite; }
.thinking-icon .p6 { width: 2px; height: 2px; background: #b8c4e0; animation: po6 4s linear infinite; }
@keyframes po1 { 0% {top:0;left:50%;opacity:0} 20% {opacity:1} 50% {top:50%;left:100%} 80% {opacity:1} 100% {top:100%;left:50%;opacity:0} }
@keyframes po2 { 0% {top:50%;left:0;opacity:0} 20% {opacity:0.7} 50% {top:0;left:50%} 80% {opacity:0.7} 100% {top:50%;left:100%;opacity:0} }
@keyframes po3 { 0% {top:100%;left:30%;opacity:0} 30% {opacity:1} 60% {top:10%;left:70%} 100% {top:0;left:100%;opacity:0} }
@keyframes po4 { 0% {top:20%;left:100%;opacity:0} 25% {opacity:0.6} 50% {top:80%;left:0} 75% {opacity:0.6} 100% {top:20%;left:100%;opacity:0} }
@keyframes po5 { 0% {top:0;left:0;opacity:0} 30% {opacity:0.8} 70% {top:100%;left:100%;opacity:0.8} 100% {top:0;left:0;opacity:0} }
@keyframes po6 { 0% {top:100%;left:100%;opacity:0} 40% {opacity:0.5} 100% {top:0;left:0;opacity:0} }
.thinking-text { font-size: 13px; color: #1a1a2e; transition: opacity 0.5s ease; }
/* Margin Badges */
/* === Margin Badges — Premium Tags === */
.margin-badge {
  position: absolute;
  top: 6px; left: 6px;
  z-index: 5;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.margin-badge.top-margin {
  background: var(--accent, #1a1a2e);
  color: var(--accent-text, #fff);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.margin-badge.high-margin {
  background: rgba(255,255,255,0.9);
  color: var(--accent, #1a1a2e);
  border: 1px solid rgba(0,0,0,0.08);
}
.product-card { position: relative; }

/* === Top-Margin / Champion: 2 Spalten breit, immer oben === */
.product-card.margin-champion,
.product-card:has(.margin-badge.top-margin):not(.margin-champion) {
  grid-column: span 2;
  order: -2;
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto;
  background: linear-gradient(135deg, #fff 0%, #f8f9fd 100%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.product-card:has(.margin-badge.top-margin):not(.margin-champion) { order: -1; }
.product-card:not(.margin-champion):not(:has(.margin-badge.top-margin)) { order: 0; }
@media (min-width: 600px) {
  .product-card.margin-champion,
  .product-card:has(.margin-badge.top-margin):not(.margin-champion) {
    grid-template-columns: 140px 1fr;
  }
}

/* Champion/Top-margin card internals */
.product-card.margin-champion .card-top,
.product-card:has(.margin-badge.top-margin) .card-top {
  height: auto; min-height: 120px; grid-row: 1 / -1; background: #f4f6f9;
}
.product-card.margin-champion .card-top img,
.product-card:has(.margin-badge.top-margin) .card-top img {
  width: 100%; height: auto; min-height: 120px; object-fit: contain; padding: 6px;
}
.product-card.margin-champion .card-body,
.product-card:has(.margin-badge.top-margin) .card-body {
  padding: 10px 14px;
}
.product-card.margin-champion .name,
.product-card:has(.margin-badge.top-margin) .name {
  font-size: 13.5px; -webkit-line-clamp: 2;
}
@media (min-width: 600px) {
  .product-card.margin-champion .name,
  .product-card:has(.margin-badge.top-margin) .name { font-size: 15px; }
}
/* Champion / Top-Margin: Specs immer sichtbar (mehr Details als normale Karten) */
.product-card.margin-champion .card-details,
.product-card:has(.margin-badge.top-margin) .card-details {
  max-height: 300px !important;
  opacity: 1 !important;
  padding: 6px 14px !important;
}
.product-card.margin-champion .card-details-title,
.product-card:has(.margin-badge.top-margin) .card-details-title {
  display: block !important;
  font-size: 10px;
  margin-bottom: 3px;
  color: #9ca3af;
}
.product-card.margin-champion .card-detail-row,
.product-card:has(.margin-badge.top-margin) .card-detail-row {
  font-size: 11px; padding: 2px 0;
}
/* Extra-Specs beim Champion ausblenden (zu viel für Grid) */
.product-card.margin-champion .card-details-extra {
  display: none !important;
}

/* Inline-Chat: nur bei state-few, state-one und Champion sichtbar */
/* Chat-Input + Send auf Karten: standardmäßig versteckt */
.card-chat-input, .card-chat-send { display: none; }
/* Inline-Chat beim Champion immer sichtbar */
.product-card.margin-champion .card-chat-input {
  display: block;
  flex: 1;
  min-width: 120px;
  border: 1px solid #e0e4ec;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
  background: #f8f9fb;
  transition: border-color 0.2s;
}
.card-chat-input:focus { border-color: #1a1a2e; background: #fff; }
.card-chat-input::placeholder { color: #aab0c0; }
.product-card.margin-champion .card-chat-send {
  display: flex;
  align-items: center;
  background: var(--accent, #1a1a2e);
  color: var(--accent-text, #fff);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}
.card-chat-send:hover { background: #2d2d5e; }

/* --- Navigation Buttons (Zurück / Reset) --- */
.nav-btn { background: transparent; color: #888; border: 1px solid #d1d5db; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; line-height: 1; flex-shrink: 0; font-weight: 400; max-width: 0; overflow: hidden; opacity: 0; padding-left: 0; padding-right: 0; border-width: 0; transition: max-width 0.35s ease, opacity 0.3s ease, padding 0.35s ease, border-width 0.35s ease; }
.nav-btn.visible { max-width: 120px; opacity: 1; padding: 6px 12px; border-width: 1px; }
.nav-btn:hover { background: #f3f4f6; color: #1a1a1a; border-color: #9ca3af; }
.nav-back { font-size: 12px; }
.nav-reset { font-size: 16px; }

/* --- Varianten-Familie --- */
.card-family { margin: 6px 0; padding: 4px 0; border-top: 1px solid #eee; }
.card-family-badge { font-size: 11px; color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.card-family-variants { display: flex; flex-wrap: wrap; gap: 4px; }
.card-variant-chip { font-size: 10px; background: #f0f0f5; border-radius: 10px; padding: 2px 8px; color: #374151; white-space: nowrap; }
.card-variant-more { background: #e0e0ea; font-weight: 600; }

/* Modal variants */
.modal-variants { padding: 12px 16px; border-bottom: 1px solid #eee; }
.modal-variant-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.modal-variant-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f8f8fc; border-radius: 6px; font-size: 13px; }
.modal-variant-row.modal-variant-active { background: #eef2ff; border: 1px solid #c7d2fe; }
.modal-variant-label { flex: 1; color: #374151; }
.modal-variant-price { font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.modal-variant-cart { background: none; border: none; cursor: pointer; padding: 4px 6px; color: #6b7280; transition: color 0.15s; border-radius: 4px; }
.modal-variant-cart:hover { color: #4f46e5; background: rgba(79,70,229,0.08); }
.modal-variant-link { color: #6b7280; text-decoration: none; padding: 4px 6px; border-radius: 4px; transition: color 0.15s; }
.modal-variant-link:hover { color: #4f46e5; background: rgba(79,70,229,0.08); }
.modal-variant-toggle { background: none; border: none; color: #4f46e5; cursor: pointer; font-size: 13px; padding: 6px 0; width: 100%; text-align: left; }
.modal-variant-toggle:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════
   HP-EMBED THEME: Haushaltsparadies.at visueller Angleich
   Scope: .mode-embed.shop-haushaltsparadies — nur HP-Embed, kein anderer Shop.
   Basis: HP Shopware-Theme (Inter, border-radius:0, #d41916 primary)
   ══════════════════════════════════════════════════════════════════ */

/* ── Typografie ─────────────────────────────────────────────────── */
.mode-embed.shop-haushaltsparadies {
  font-family: "Inter", "InterSwap", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f9f9f9;
  color: #565656;
  font-size: 14px;
  line-height: 1.5;
}
.mode-embed.shop-haushaltsparadies h1,
.mode-embed.shop-haushaltsparadies h2,
.mode-embed.shop-haushaltsparadies h3 {
  color: #2b3136;
  font-weight: 700;
}

/* ── Radien: Original-Widget-Radien beibehalten (HP-Website ist eckig, ──
   aber das Widget sieht mit Radien besser aus als eingebettetes Element) */

/* ── Buttons: HP-Farben, Widget-Radien beibehalten ────────────── */
.mode-embed.shop-haushaltsparadies .qr-btn {
  border: 1px solid #bcc1c7;
  color: #565656;
  background: #fff;
}
.mode-embed.shop-haushaltsparadies .qr-btn:hover {
  background: var(--accent, #d41916);
  color: #fff;
  border-color: var(--accent, #d41916);
}

/* ── Input-Zeile: Standard-Widget-Look mit HP-Farben ──────────── */
.mode-embed.shop-haushaltsparadies .input-row input {
  border-color: #bcc1c7;
  color: #565656;
}
.mode-embed.shop-haushaltsparadies .input-row input:focus {
  border-color: var(--accent, #d41916);
}
/* Senden-Button: gleicher Diagonal-Radius wie Cart-Button */
.mode-embed.shop-haushaltsparadies .input-row button:not(.nav-btn) {
  border-radius: 0 8px 0 8px;
}

/* ── Produktkarten: HP-Stil (dezenter Border, normaler Hover) ── */
.mode-embed.shop-haushaltsparadies .product-card {
  border: 1px solid rgba(121,132,144,0.25);
  background: #fff;
}
/* HP-Hover: roter Border zusaetzlich zum Standard-Hover */
@media (hover: hover) {
  .mode-embed.shop-haushaltsparadies .product-card:hover {
    border-color: var(--accent, #d41916);
  }
}

/* ── Preis: HP-Rot, gross, fett ────────────────────────────────── */
.mode-embed.shop-haushaltsparadies .card-price {
  color: var(--accent, #d41916);
  font-weight: 700;
  font-size: 20px;
}
.mode-embed.shop-haushaltsparadies .product-card .name {
  color: #565656;
}

/* ── Warenkorb-Button: HP-Stil (obere-links + untere-rechts eckig) ── */
.mode-embed.shop-haushaltsparadies .card-cart-btn {
  background: var(--accent, #d41916);
  color: #fff;
  border: none;
  border-radius: 0 8px 0 8px;
  padding: 8px 10px;
  min-width: 36px;
  min-height: 36px;
}
.mode-embed.shop-haushaltsparadies .card-cart-btn:hover {
  background: var(--accent-hover, #b01518);
  color: #fff;
}
.mode-embed.shop-haushaltsparadies .card-cart-btn.added {
  background: var(--accent, #d41916);
  color: #fff;
  opacity: 0.6;
}

/* ── Gratisversand-Badge (HP: ab 39 EUR, nur aufgeklappte Karte) ── */
.mode-embed.shop-haushaltsparadies .hp-shipping-badge {
  display: none;
  background: var(--accent, #d41916);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 4px 0;
}
.mode-embed.shop-haushaltsparadies .product-grid.state-few .hp-shipping-badge,
.mode-embed.shop-haushaltsparadies .product-grid.state-one .hp-shipping-badge {
  display: inline-block;
}

/* ── Filter-Chips: dezent, HP-Border ──────────────────────────── */
.mode-embed.shop-haushaltsparadies .filter-chip {
  border: 1px solid #798490;
  background: #fff;
  color: #565656;
}

/* ── Produkt-Badge: HP-dezent ─────────────────────────────────── */
.mode-embed.shop-haushaltsparadies .product-badge {
  border: 1px solid rgba(43,49,54,0.2);
  background: rgba(43,49,54,0.08);
  color: #565656;
  font-weight: 400;
  font-size: 12px;
}

/* ── Margen-Badges: im HP-Embed komplett ausblenden ───────────── */
.mode-embed.shop-haushaltsparadies .margin-badge { display: none !important; }

/* ── Chat-Bereich: warmes Grau statt Blau ─────────────────────── */
.mode-embed.shop-haushaltsparadies .msg.bot {
  background: #fff;
  border: 1px solid rgba(121,132,144,0.2);
  color: #565656;
}
.mode-embed.shop-haushaltsparadies .msg.user {
  background: var(--accent, #d41916);
  color: #fff;
}

/* ── Links: HP-Rot ────────────────────────────────────────────── */
.mode-embed.shop-haushaltsparadies a {
  color: var(--accent, #d41916);
}
.mode-embed.shop-haushaltsparadies a:hover {
  color: #aa1412;
}
