/* =======================================================
   Amzly – Main Stylesheet
   Font: Inter (Google Fonts)
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---- CSS-Variablen ----------------------------------------- */
:root {
  --font-main:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --transition: .18s ease;
  --radius: 8px;
  --radius-lg: 12px;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.3px; }
[data-bs-theme="dark"] {
  --amzly-bg:        #0d0d0d;
  --amzly-bg2:       #131318;
  --amzly-card:      #18181f;
  --amzly-card-hov:  #1e1e28;
  --amzly-nav:       #0a0a10;
  --amzly-border:    #252530;
  --amzly-muted:     #6b7280;
  --amzly-text:      #e8e8f0;
  --amzly-accent:    #fbbf24;
  --amzly-accent2:   #f59e0b;
  --shadow-sm:       0 1px 4px rgba(0,0,0,.4);
  --shadow-md:       0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:       0 8px 32px rgba(0,0,0,.6);
}
[data-bs-theme="light"] {
  --amzly-bg:        #f0f2f5;
  --amzly-bg2:       #e8eaed;
  --amzly-card:      #ffffff;
  --amzly-card-hov:  #fafbff;
  --amzly-nav:       #0f0f1a;
  --amzly-border:    #e0e3ea;
  --amzly-muted:     #6b7280;
  --amzly-text:      #111827;
  --amzly-accent:    #d97706;
  --amzly-accent2:   #b45309;
  --shadow-sm:       0 1px 4px rgba(0,0,0,.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:       0 8px 32px rgba(0,0,0,.12);
}

/* ---- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-main);
  font-size: 15px;
  background: var(--amzly-bg);
  color: var(--amzly-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.container-fluid { max-width: 1600px; }

/* ---- Navbar ------------------------------------------------- */
.navbar-amzly {
  background: var(--amzly-nav) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  padding: .5rem 0;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.4px;
  color: #fff !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-brand .brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amzly-accent);
  flex-shrink: 0;
  position: relative;
  top: 0px;
}
.navbar-brand .lightning { display: none; }
.navbar-amzly .nav-link  { color: rgba(255,255,255,.75) !important; font-weight: 500; transition: color var(--transition); font-size: .9rem; }
.navbar-amzly .nav-link:hover { color: var(--amzly-accent) !important; }

/* Such-Formular: nimmt verfügbaren Platz, schrumpft aber kontrolliert */
.nav-search-form {
  flex: 1 1 auto;
  min-width: 180px;   /* nie kleiner als das */
  max-width: 540px;
  width: 0;           /* flex-basis override – wächst durch flex-grow */
  margin: .4rem .75rem;
}
@media (max-width: 991px) {
  .nav-search-form { max-width: 100%; min-width: 0; margin: .4rem 0; width: auto; }
}
.nav-search-form .input-group { flex-wrap: nowrap; }
.nav-search-form .form-control {
  flex: 1 1 0;
  min-width: 0;       /* darf schrumpfen, Input-Basis kümmert sich nicht um Inhalt */
}
.navbar-amzly .form-control,
.nav-search-form .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .88rem;
  padding: .42rem .75rem;
}
.navbar-amzly .form-control::placeholder { color: rgba(255,255,255,.32); }
.navbar-amzly .form-control:focus,
.nav-search-form .form-control:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--amzly-accent);
  box-shadow: none;
  color: #fff;
}
.btn-search {
  background: var(--amzly-accent);
  border: none;
  color: #000;
  font-weight: 700;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .42rem .9rem;
  font-size: .88rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn-search:hover { background: var(--amzly-accent2); color: #000; }

/* Watchlist-Badge in Navbar */
.wl-nav-count {
  position: absolute;
  top: 2px; right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ---- Hero --------------------------------------------------- */
.hero-section {
  background: #0a0a12;
  padding: 3.2rem 0 2.8rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 15% 60%, rgba(251,191,36,.04) 0%, transparent 65%),
              radial-gradient(ellipse 50% 80% at 90% 20%, rgba(59,130,246,.03) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amzly-accent);
  margin-bottom: .85rem;
}
.hero-section h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -.6px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: .85rem;
}
.hero-section h1 em {
  font-style: normal;
  color: var(--amzly-accent);
}
.hero-sub {
  color: rgba(255,255,255,.5);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 1.6rem;
}
.hero-search .form-control {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 1rem;
  padding: .75rem 1.1rem;
  border-radius: var(--radius) 0 0 var(--radius);
  height: 52px;
  transition: border-color var(--transition), background var(--transition);
}
.hero-search .form-control::placeholder { color: rgba(255,255,255,.32); }
.hero-search .form-control:focus {
  background: rgba(255,255,255,.13);
  border-color: var(--amzly-accent);
  box-shadow: none;
  color: #fff;
}
.hero-search .btn {
  height: 52px;
  padding: 0 1.6rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: .2rem;
}
.hero-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .72rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.cat-pill:hover {
  background: rgba(251,191,36,.1);
  border-color: rgba(251,191,36,.3);
  color: var(--amzly-accent);
}
.cat-pill .bi { font-size: .7rem; opacity: .7; }

/* ---- Abschnitt-Überschriften -------------------------------- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0;
}

/* Neue Section-Heading-Komponente */
.amzly-section {
  margin-bottom: 1.5rem;
}
.amzly-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--amzly-accent);
  display: block;
  margin-bottom: .3rem;
}
.amzly-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amzly-text);
  margin: 0;
  letter-spacing: -.3px;
}

/* USP-Streifen */
.usp-strip {
  background: var(--amzly-nav);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 1.4rem 0;
}
.usp-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.usp-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .6rem 1rem;
  border-right: 1px solid rgba(255,255,255,.07);
}
.usp-strip-item:last-child { border-right: none; }
.usp-strip-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .3rem;
}
.usp-strip-num span { color: var(--amzly-accent); }
.usp-strip-desc {
  font-size: .73rem;
  color: rgba(255,255,255,.4);
  line-height: 1.4;
}
@media (max-width: 575px) {
  .usp-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-strip-item:nth-child(2) { border-right: none; }
  .usp-strip-item:nth-child(1),
  .usp-strip-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.07); }
}

/* ---- Live-Price Dot ---------------------------------------- */
.price-live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.price-live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,.3);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%       { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .price-live-dot::after { animation: none; }
}

/* ---- Produktkarte (Grid-Ansicht) ---------------------------- */
.product-card {
  background: var(--amzly-card);
  border: 1px solid var(--amzly-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  border-color: rgba(251,191,36,.2);
}
.product-img-wrap {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  height: 172px;
  padding: 12px;
  overflow: hidden;
}
.product-img {
  max-height: 100%; max-width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .85rem; }
.product-title {
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--amzly-text);
  margin-bottom: .4rem;
}
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: var(--amzly-accent); }

/* ---- Deal Badge -------------------------------------------- */
.deal-badge {
  position: absolute; top: 8px; left: 8px;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .2px;
  z-index: 2;
}
.hot-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: #f59e0b;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .2px;
}

/* ---- Preise ------------------------------------------------- */
.price-block { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.price-current {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amzly-accent);
  letter-spacing: -.3px;
}
.price-original { font-size: .8rem; text-decoration: line-through; color: var(--amzly-muted); }
.price-xl {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amzly-accent);
  letter-spacing: -.6px;
}
/* Karte: untere Action-Leiste */
.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .85rem;
  border-top: 1px solid var(--amzly-border);
  margin-top: auto;
  font-size: .75rem;
  color: var(--amzly-muted);
  gap: .5rem;
}
.card-action-row a {
  color: var(--amzly-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: color var(--transition);
  font-weight: 500;
}
.card-action-row a:hover { color: var(--amzly-accent); }

/* ---- Sterne ------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; }
.stars .bi { font-size: .78rem; color: #fbbf24; }
.stars-sm .bi { font-size: .7rem; }

/* ---- Tabellenansicht --------------------------------------- */
.product-table-row {
  background: var(--amzly-card);
  border-bottom: 1px solid var(--amzly-border);
  transition: background var(--transition);
}
.product-table-row:hover { background: var(--amzly-card-hov); }
.product-table-img {
  width: 60px; height: 60px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.table-price { font-size: 1.05rem; font-weight: 700; color: var(--amzly-accent); white-space: nowrap; }
.table-original { font-size: .8rem; text-decoration: line-through; color: var(--amzly-muted); }

/* ---- Filter-Panel ------------------------------------------ */
.filter-panel {
  background: var(--amzly-card);
  border: 1px solid var(--amzly-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  position: sticky;
  top: 62px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--amzly-border) transparent;
}
.filter-panel h6 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--amzly-muted);
  margin-bottom: .7rem;
}
/* Korrekte Label-Struktur: <label for="id"><input id="id"><span>Text</span></label> */
.filter-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .2rem 0;
  cursor: pointer;
  user-select: none;
}
.filter-check input { accent-color: var(--amzly-accent); width: 15px; height: 15px; flex-shrink: 0; }
.filter-check span  { font-size: .86rem; cursor: pointer; }
.filter-check label { font-size: .86rem; cursor: pointer; margin: 0; }
.range-track { accent-color: var(--amzly-accent); }

/* ---- View-Toggle ------------------------------------------- */
.view-toggle .btn {
  background: var(--amzly-card);
  border: 1px solid var(--amzly-border);
  color: var(--amzly-muted);
  padding: .35rem .6rem;
  line-height: 1;
  transition: all var(--transition);
}
.view-toggle .btn.active,
.view-toggle .btn:hover {
  background: var(--amzly-accent);
  border-color: var(--amzly-accent);
  color: #000;
}

/* ---- Toolbar (Suche/Kat-Seite) ----------------------------- */
.results-toolbar {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap;
  background: var(--amzly-card);
  border: 1px solid var(--amzly-border);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  margin-bottom: 1rem;
}
.results-toolbar .form-select {
  font-size: .86rem;
  background-color: var(--amzly-bg);
  border-color: var(--amzly-border);
  color: var(--amzly-text);
  padding: .3rem .7rem;
  min-width: 160px;
}

/* ---- Karten / allgemein ------------------------------------ */
.card {
  background: var(--amzly-card);
  border-color: var(--amzly-border);
  border-radius: var(--radius-lg);
}
.card-header {
  background: transparent;
  border-color: var(--amzly-border);
  font-weight: 600;
}
.bg-body-secondary { background: var(--amzly-bg2) !important; }
.list-group-item {
  background: transparent;
  border-color: var(--amzly-border);
  color: var(--amzly-text);
  font-size: .875rem;
}
.list-group-item.active { background: rgba(251,191,36,.15); border-color: var(--amzly-accent); color: var(--amzly-accent); }
.list-group-item:hover:not(.active) { background: rgba(255,255,255,.04); }

/* ---- Pagination -------------------------------------------- */
.page-link {
  background: var(--amzly-card);
  border-color: var(--amzly-border);
  color: var(--amzly-text);
  font-size: .85rem;
  padding: .35rem .65rem;
}
.page-item.active .page-link { background: var(--amzly-accent); border-color: var(--amzly-accent); color: #000; font-weight: 700; }
.page-link:hover { background: var(--amzly-card-hov); color: var(--amzly-accent); }

/* ---- USP-Kacheln ------------------------------------------- */
.usp-card {
  background: var(--amzly-card);
  border: 1px solid var(--amzly-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}
.usp-card:hover { border-color: rgba(251,191,36,.4); }
.usp-icon { font-size: 2.2rem; margin-bottom: .75rem; }

/* ---- Footer ------------------------------------------------- */
.footer {
  background: var(--amzly-nav);
  color: rgba(255,255,255,.5);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .85rem;
}
.footer h5, .footer h6 { color: rgba(255,255,255,.9); font-weight: 600; }
.footer a { color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--transition); }
.footer a:hover { color: var(--amzly-accent); }

/* ---- Detail-Seite ------------------------------------------ */
.product-detail-img {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.price-detail-block {
  background: var(--amzly-bg2);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--amzly-border);
}
.priority-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.priority-high { background: rgba(34,197,94,.15); color: #22c55e; }
.priority-mid  { background: rgba(251,191,36,.12); color: #fbbf24; }

/* ---- Breadcrumb -------------------------------------------- */
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--amzly-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--amzly-accent); }
.breadcrumb-item.active { color: var(--amzly-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--amzly-border); }

/* ---- Autosuggest Dropdown ---------------------------------- */
.suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--amzly-card, #18181f);
  border: 1px solid var(--amzly-border, #252530);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  text-decoration: none;
  color: var(--amzly-text);
  transition: background var(--transition);
  border-bottom: 1px solid var(--amzly-border, #252530);
}
.suggest-item:last-of-type { border-bottom: none; }
.suggest-item:hover,
.suggest-item.active { background: var(--amzly-card-hov, #1e1e28); color: var(--amzly-text); }
.suggest-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  flex-shrink: 0;
}
.suggest-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amzly-muted);
  font-size: 1.1rem;
}
.suggest-info {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}
.suggest-title {
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}
.suggest-title mark {
  background: rgba(251,191,36,.25);
  color: var(--amzly-accent);
  border-radius: 2px;
  padding: 0 1px;
}
.suggest-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .76rem;
  color: var(--amzly-muted);
}
.suggest-price {
  color: var(--amzly-accent);
  font-weight: 600;
  font-size: .82rem;
}
.suggest-brand { opacity: .65; }
.suggest-footer {
  padding: .55rem .9rem;
  background: rgba(251,191,36,.04);
  border-top: 1px solid var(--amzly-border);
}
.suggest-all {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--amzly-accent);
  text-decoration: none;
  text-align: center;
}
.suggest-all:hover { color: var(--amzly-accent2); text-decoration: underline; }

/* ---- Trending-Tabs ----------------------------------------- */
.nav-trending .nav-link {
  font-size: .82rem;
  padding: .3rem .75rem;
  color: var(--amzly-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
}
.nav-trending .nav-link:hover { color: var(--amzly-text); }
.nav-trending .nav-link.active {
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.35);
  color: var(--amzly-accent);
  font-weight: 600;
}

/* Rang-Nummer auf Trending-Karten */
.trending-rank {
  position: absolute;
  top: 10px;
  left: 22px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  background: var(--amzly-accent);
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* ---- Watchlist-Button auf Produktseite + Tabellenzeile ----- */
.wl-toggle-btn { transition: all var(--transition); }
.wl-toggle-btn-sm {
  padding: .22rem .4rem;
  font-size: .78rem;
  border: 1px solid rgba(239,68,68,.3);
  color: rgba(239,68,68,.5);
  background: transparent;
  border-radius: 6px;
}
.wl-toggle-btn-sm:hover,
.wl-toggle-btn-sm.is-wl {
  background: rgba(239,68,68,.12) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.wl-toggle-btn.is-wl {
  background: rgba(239,68,68,.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.wl-toggle-btn:hover { background: rgba(239,68,68,.1) !important; border-color: #ef4444 !important; }

/* ---- Varianten-Pills --------------------------------------- */
.variant-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid var(--amzly-border);
  border-radius: 8px;
  background: var(--amzly-card);
  text-decoration: none;
  color: var(--amzly-text);
  transition: all var(--transition);
  min-width: 60px;
  cursor: pointer;
  position: relative;
}
.variant-pill:hover {
  border-color: var(--amzly-accent);
  background: var(--amzly-card-hov);
  color: var(--amzly-text);
}
.variant-pill.active {
  border-color: var(--amzly-accent);
  background: rgba(251,191,36,.08);
  color: var(--amzly-accent);
  cursor: default;
}
.variant-pill-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.1;
  color: inherit;
  text-align: center;
}
.variant-pill.active .variant-pill-label { color: var(--amzly-accent); }
.variant-pill-price { font-size: .78rem; font-weight: 500; opacity: .8; }
.variant-pill-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}
.variant-deal { border-color: rgba(239,68,68,.4); }

/* ---- Watchlist-Tabelle ------------------------------------- */
.wl-table { font-size: .88rem; }
.wl-table thead th { padding: .7rem .5rem; font-weight: 600; }
.wl-table tbody td { vertical-align: middle; padding: .6rem .5rem; }
.wl-row:hover { background: var(--amzly-card-hov, rgba(255,255,255,.02)); }
.wl-change {
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .1rem;
}
.wl-down { color: #22c55e; }
.wl-up   { color: #ef4444; }
.wl-remove-btn { opacity: .4; transition: opacity var(--transition); }
.wl-remove-btn:hover { opacity: 1; }

/* Quick-Filter inputs in Navbar */
.qf-input {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
  font-size: .83rem;
}
.qf-input:focus {
  background: rgba(255,255,255,.15) !important;
  border-color: var(--amzly-accent) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.qf-input option { background: #1a1a24; color: #e8e8f0; }
.quick-filter-toggle.active { color: var(--amzly-accent) !important; }

/* ---- Sortierbare Tabellenspalten --------------------------- */
.sort-link {
  color: var(--amzly-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
  transition: color var(--transition);
}
.sort-link:hover    { color: var(--amzly-accent); }
.sort-link.sort-active { color: var(--amzly-accent); font-weight: 600; }
.sortable-th { white-space: nowrap; }

/* Amazon-Direkt-Button in Tabellenzeile */
.btn-amazon-direct {
  background: rgba(255,153,0,.12);
  border: 1px solid rgba(255,153,0,.3);
  color: #ff9900;
  padding: .22rem .45rem;
  font-size: .78rem;
  border-radius: 6px;
  transition: background var(--transition);
}
.btn-amazon-direct:hover { background: rgba(255,153,0,.22); color: #ff9900; }

.btn-detail-link {
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.3);
  color: var(--amzly-accent);
  border-radius: 6px;
  padding: .22rem .55rem;
}
.btn-detail-link:hover { background: rgba(251,191,36,.2); color: var(--amzly-accent); }

/* Kleines Rabatt-Badge für Nicht-Deals */
.deal-badge-sm {
  background: rgba(107,114,128,.25) !important;
  color: var(--amzly-muted) !important;
  font-size: .65rem !important;
  padding: .2rem .4rem !important;
}

/* ---- Bildgalerie (Produktdetail) --------------------------- */
#mainProductImg {
  transition: opacity .12s ease;
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
}
.product-gallery {
  justify-content: center;
}
.gallery-thumb {
  width: 56px;
  height: 56px;
  padding: 3px;
  border: 2px solid var(--amzly-border);
  border-radius: 8px;
  background: var(--amzly-card);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}
.gallery-thumb:hover  { border-color: rgba(251,191,36,.5); transform: scale(1.06); }
.gallery-thumb.active { border-color: var(--amzly-accent); }

/* Fullscreen-Klick auf Hauptbild */
.fullscreen-img {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.fullscreen-img #mainProductImg {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
}

/* ---- Price Rating Badge ------------------------------------ */
.price-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  cursor: default;
}
.price-rating-best  { background: rgba(34,197,94,.15);  color: #22c55e; }
.price-rating-great { background: rgba(74,222,128,.12); color: #4ade80; }
.price-rating-good  { background: rgba(163,230,53,.12); color: #a3e635; }
.price-rating-avg   { background: rgba(250,204,21,.12); color: #facc15; }
.price-rating-high  { background: rgba(249,115,22,.12); color: #f97316; }

/* ---- Best-Buy Months Chart --------------------------------- */
.bestbuy-bar-wrap {
  background: var(--amzly-border);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}
.bestbuy-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .3s ease;
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 991px) {
  .filter-panel { position: static; }
}
@media (max-width: 767px) {
  .price-xl { font-size: 1.6rem; }
  .hero-section { padding: 2.5rem 0 2rem; }
  .hero-section h1 { font-size: 1.4rem; }
  .product-img-wrap { height: 150px; }
  .container-fluid { padding-left: 12px; padding-right: 12px; }
  .suggest-title { max-width: 220px; }
}
@media (max-width: 575px) {
  .results-toolbar { flex-direction: column; align-items: stretch; }
}
