/* AWIN-Badge entfernt – Produktkarten ohne Partner-Banner */

/* Custom Bootstrap-like 2.5/9.5 Grid Breite ab md (>=768px) */
@media (min-width: 768px) {
  .col-md-2-5 {
    -ms-flex: 0 0 20.833333%;
    flex: 0 0 20.833333%;
    max-width: 20.833333%;
  }
  .col-md-9-5 {
    -ms-flex: 0 0 79.166667%;
    flex: 0 0 79.166667%;
    max-width: 79.166667%;
  }
}


/* Smart Filters Bar */
.smart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  background: #f8f9fb;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.smart-filters .sf-section {
  display: flex;
  align-items: center;
  gap: 6px;
}
.smart-filters .sf-title {
  font-size: 0.85rem;
  color: #6c757d;
  margin-right: 2px;
}
.smart-filters .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: #0d6efd;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}
.smart-filters .chip:hover { background: #eef5ff; }
.smart-filters .chip.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}
.smart-filters .chip .cnt {
  color: #6c757d;
  font-size: 0.8rem;
}
.smart-filters .divider { height: 22px; width: 1px; background: #e0e6ee; margin: 0 4px; }

/* View toggle toolbar */
.view-toggle {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}
.view-switch .form-check-input {
  width: 48px;
  height: 24px;
  cursor: pointer;
}

/* ============================================
   GRID VIEW ADJUSTMENTS
   ============================================ */

/* Gemeinsame Grid-Styles (für beide Grid-Ansichten) */
.grid-view .product-card,
.grid-view-4 .product-card {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 8px;
}
.grid-view .product-image-container,
.grid-view-4 .product-image-container {
  width: 100%;
  margin-right: 0;
  margin-bottom: 6px;
}
.grid-view .product-info,
.grid-view-4 .product-info { 
  width: 100%; 
}
/* Nur Titel anzeigen in Grid (beide Ansichten) */
.grid-view .seller-section,
.grid-view .product-description,
.grid-view .condition-text,
.grid-view .shipping-section,
.grid-view-4 .seller-section,
.grid-view-4 .product-description {
  display: none !important;
}
.grid-view-4 .condition-text { display: block !important; }
.grid-view-4 .shipping-section { 
  display: none !important; 
}
.grid-view .price-section,
.grid-view-4 .price-section { 
  display: block !important; 
  margin-top: 4px; 
  padding-top: 0; 
  border-top: 0; 
}
.grid-view .price-inline-container,
.grid-view-4 .price-inline-container { 
  gap: 6px; 
}
.grid-view .current-price,
.grid-view-4 .current-price { 
  font-size: 1.2rem; 
  color: #000; 
}
.grid-view .price-section .uvp-price,
.grid-view-4 .price-section .uvp-price { 
  font-size: 0.85rem; 
}
.grid-view .price-section .discount-percent,
.grid-view-4 .price-section .discount-percent { 
  font-size: 0.8rem; 
}
.grid-view .product-title,
.grid-view-4 .product-title {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 0;
}

/* ============================================
   NORMALE GRID-ANSICHT (3 Spalten)
   ============================================ */
.grid-view .product-image-container {
  height: 170px;
}

/* Normale Grid-Ansicht: geringere Abstände zwischen den Karten */
#productContainer.grid-view {
  --bs-gutter-x: 0.5rem; /* horizontaler Abstand zwischen Spalten */
  --bs-gutter-y: 0.6rem; /* vertikaler Abstand zwischen Zeilen */
}
#productContainer.grid-view > [class^="col-"],
#productContainer.grid-view > [class*=" col-"] {
  margin-bottom: 8px !important; /* reduziert mb-3 aus dem Markup */
}

/* Desktop: Bild in der normalen Grid-Ansicht größer rendern */
@media (min-width: 992px) { /* md+ */
  .grid-view .product-image-container { height: 260px; }
}
@media (min-width: 1200px) { /* lg+ */
  .grid-view .product-image-container { height: 320px; }
}
@media (min-width: 1400px) { /* xl+ */
  .grid-view .product-image-container { height: 360px; }
}

/* Kompaktere Meta-Zeilen in normaler Grid */
.grid-view .condition-text { font-size: 0.9rem; }
.grid-view .price-section .current-price { font-size: 1.3rem; }
.grid-view .price-section .uvp-price { font-size: 0.85rem; }
.grid-view .price-section .discount-percent { font-size: 0.8rem; }

/* ============================================
   4-GRID-ANSICHT (4 Spalten)
   ============================================ */
.grid-view-4 .product-image-container {
  height: 150px; /* Etwas kleiner für 4 Spalten */
  margin-bottom: 24px; /* Mehr Abstand für Bildpunkte */
}

/* 4-Grid-Ansicht: noch kompaktere Abstände */
#productContainer.grid-view-4 {
  --bs-gutter-x: 0.4rem; /* noch geringerer horizontaler Abstand */
  --bs-gutter-y: 0.5rem; /* noch geringerer vertikaler Abstand */
}
#productContainer.grid-view-4 > [class^="col-"],
#productContainer.grid-view-4 > [class*=" col-"] {
  margin-bottom: 6px !important; /* noch kompakter */
}

/* Desktop: Bild in der 4-Grid-Ansicht (etwas kleiner als normale Grid) */
@media (min-width: 992px) { /* md+ */
  .grid-view-4 .product-image-container { height: 220px; margin-bottom: 24px; }
}
@media (min-width: 1200px) { /* lg+ */
  .grid-view-4 .product-image-container { height: 260px; margin-bottom: 24px; }
}
@media (min-width: 1400px) { /* xl+ */
  .grid-view-4 .product-image-container { height: 300px; margin-bottom: 24px; }
}

/* Kompaktere Meta-Zeilen in 4-Grid */
.grid-view-4 .condition-text { font-size: 0.85rem; }
.grid-view-4 .price-section .current-price { font-size: 1.6rem; }
.grid-view-4 .price-section .uvp-price { font-size: 0.95rem; }
.grid-view-4 .price-section .discount-percent { font-size: 0.85rem; }
.grid-view-4 .product-title {
  font-size: 1.05rem; /* Exakt wie in Listenansicht */
  line-height: 1.35;
  font-weight: bold;
}

/* Sehr große Screens: noch größere Bilder */
@media (min-width: 1400px) {
    .product-image-container {
        width: 480px;
        height: 480px;
    }
}
/* Reset and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    background-color: #f1f3f5; /* neutrales, kühles Hellgrau als globaler Hintergrund */
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* verhindert horizontales Ziehen/Scrollen */
    overscroll-behavior-x: none; /* verhindert horizontales Bounce/Scroll-Chaining */
}

/* Einheitliche Navbar-Höhe als CSS-Variable für Navbar und Subnav */
:root {
    --navbar-height: 100px;
    --search-btn-right-desktop: 6px;
    --search-btn-top-desktop: 4px;
    --search-btn-bottom-desktop: 3px;
    --search-btn-right-tablet: 5px;
    --search-btn-top-tablet: 5px;
    --search-btn-bottom-tablet: 3px;
    --search-btn-right-mobile:15px;
    --search-btn-top-mobile: 6px;
    --search-btn-bottom-mobile: 3px;
}
@media (max-width: 768px) { :root { --navbar-height: 60px; } }
@media (max-width: 576px) { :root { --navbar-height: 55px; } }

body {
    padding-top: calc(var(--navbar-height, 100px) - 8px);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Layout Containers */
.container-fluid {
    padding: 0 28px;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    background: transparent;
}

.container-fluid .row {
    margin-left: 0;
    margin-right: 0;
    background-color: transparent !important;
}

.main-content {
    flex: 1 0 auto;
    padding: 20px 0;
    margin-bottom: 20px;
    background-color: transparent;
}

/* Navbar Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--navbar-height, 100px);
    display: flex;
    align-items: center;
    padding: 0 30px;
    --search-radius: 18px;
}

.navbar > .container-fluid {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar .logo.d-none.d-md-inline {
    margin-right: 1.5rem;
}

/* Hide-on-scroll behavior for navbar */
.navbar {
    transition: transform 0.2s ease-in-out;
    will-change: transform;
}
.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 1rem;
    width: 350px;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-left: 15px;
}

/* Search Styles */
.search-container { flex: 1; max-width: 600px; margin: 0 2rem; position: relative; }

/* Vereinheitlichte Navbar-Suchleiste wie Landing: vollbreit und stärker abgerundet */
.navbar .search-container {
    max-width: 100%;
    margin: 0;
    transition: margin 0.2s ease;
}

@media (min-width: 992px) {
    .navbar .search-container {
        margin-left: 2rem;
    }
}
.navbar .search-input { height: 48px; border-radius: var(--search-radius); }

.search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    padding-right: 3rem; /* Platz für Button */
    border: 2px solid #ddd;
    border-radius: 14px; /* engerer Radius, damit Button bündiger wirkt */
    font-size: 1rem;
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
    /* weicherer, breiterer innerer Glow – oben UND unten */
    box-shadow: inset 0 14px 26px rgba(0,0,0,0.07), inset 0 -14px 26px rgba(0,0,0,0.06), inset 0 0 10px rgba(0,0,0,0.03);
}

.search-input:focus {
    outline: none;
    border-color: #666;
    /* stärkerer innerer Glow + dezenter äußerer Ring in Markenfarbe */
    box-shadow: inset 0 10px 22px rgba(0,0,0,0.08), inset 0 -10px 22px rgba(0,0,0,0.07), 0 0 0 3px rgba(0,127,163,0.18);
}

.search-button {
    position: absolute;
    right: var(--search-btn-right-desktop);
    top: var(--search-btn-top-desktop);
    bottom: var(--search-btn-bottom-desktop);
    transform: none;
    background: #007fa3; /* dunkleres Türkis */
    border: none;
    color: #ffffff; /* Icon in Weiß */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 8px;
    border-top-right-radius: var(--search-radius);
    border-bottom-right-radius: var(--search-radius);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: border-box;
    box-shadow: none;
    aspect-ratio: 1 / 1;   /* bleibt quadratisch */
}

.search-button:hover {
    color: #ffffff;
    background: #006f94;
}

.search-button:focus { outline: none; box-shadow: none; }

.search-button svg { width: 60%; height: 60%; }

@media (max-width: 768px) {
  .navbar .search-input {
      height: 56px;
      font-size: 1.05rem;
      padding: 0.95rem 1.2rem;
      padding-right: 3.6rem;
  }
  .search-button {
      right: var(--search-btn-right-tablet);
  }
}

@media (max-width: 576px) {
  .navbar .search-container { padding: 0 10px; }
  .navbar .search-input {
      height: 60px;
      font-size: 1.08rem;
      padding: 1rem 1.25rem;
      padding-right: 3.8rem;
  }
  .search-button {
      right: var(--search-btn-right-mobile);
  }
}

.navbar-spacer {
    width: 350px;
}

/* User Button (Anmelden) rechts in der Navbar */
.user-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #2c3e50;
}
.user-button:hover { background: #e9f2ff; border-color: #cfe1ff; }
.user-button svg { width: 22px; height: 22px; }

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1200; /* über .subnav-wrap (1025), unter Overlay (2000) */
    display: none;
}

/* Wrapper für Suggestions-Liste und Bild */
.suggestions-wrapper {
    display: flex;
    max-height: 450px;
    overflow: hidden; /* Scrollen komplett deaktiviert */
}

/* Suggestions-Liste (links) */
.suggestions-list {
    flex: 1;
    overflow: hidden; /* Kein Scrollen */
    max-height: 450px;
}

/* Bild-Container (rechts) */
.suggestion-image-container {
    display: none;
    flex: 0 0 200px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-left: 1px solid #ddd;
}

.suggestion-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar { width: 0; height: 0; }

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.06s ease;
}

.suggestion-item:hover {
    background-color: #f5f6f8;
}

/* Aktive Auswahl (Keyboard-Navigation) */
.suggestion-item.active {
    background-color: #eef5ff;
    transition: background-color 0s;
}

.suggestion-item .suggestion-meta {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Hover Panels (Landing Unter-Navigation) */
.hover-panel {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px;
    min-width: 520px;
    max-width: 860px;
    z-index: 1300;
    /* Stabilisiere Farb-/AA-Darstellung beim Ein-/Ausblenden */
    isolation: isolate;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity, transform;
}

/* Spezieller, schmaler Stil nur für das Kategorien‑Panel (eine Spalte) */
#hoverPanelCategories {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    padding: 6px; /* noch kompakteres Innenpadding */
    max-height: 65vh; /* vertikal begrenzen */
    overflow-y: auto; /* Scrollen ermöglichen */
    overflow-x: hidden; /* keine horizontale Scrollleiste */
    overscroll-behavior: contain; /* Scroll nicht auf Seite durchreichen */
}

/* Breiteres Panel rechts für Unterkategorien (mehrspaltig) */
#hoverPanelSubcategories {
    width: 680px;
    min-width: 520px;
    max-width: 860px;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Kleinere Abstände und umbruchfähige Linktexte im schmalen Panel */
#hoverPanelCategories .row { --bs-gutter-x: .2rem; }
#hoverPanelCategories a { white-space: normal; word-break: break-word; font-size: .9rem; line-height: 1.2; }

/* Dezente Scrollbar im Panel */
#hoverPanelCategories { scrollbar-width: none; -ms-overflow-style: none; }
#hoverPanelCategories::-webkit-scrollbar { width: 0; height: 0; }

/* Mobile: Hover‑Panels vollständig deaktivieren */
@media (max-width: 576px) {
    #hoverPanelCategories,
    #hoverPanelBrands { display: none !important; }
}

/* === Mobile Suggestions Overlay === */
@media (max-width: 768px) {
    body.suggestions-open { overflow: hidden; }

    /* Inhalt sichtbar lassen – kein Vollbild-Overlay nötig */

    /* Navbar: Logo sichtbar lassen, nur Spacer ausblenden */
    body.suggestions-open .navbar .spacer { display: none !important; }
    body.suggestions-open .navbar .search-container { max-width: 100% !important; width: 100% !important; margin: 0 !important; }

    /* Dropdown als Vollbild-Overlay unterhalb der Navbar (Logo bleibt sichtbar) */
    body.suggestions-open #searchSuggestions.search-suggestions {
        position: fixed;
        top: var(--navbar-height, 60px);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--navbar-height, 60px));
        height: calc(100dvh - var(--navbar-height, 60px));
        margin-top: 0;
        border-radius: 0;
        max-height: none;
        z-index: 3000;
        border-top: 1px solid #ddd;
        display: block !important; /* falls JS toggling ausbleibt */
        pointer-events: auto;
    }
    body.suggestions-open #searchSuggestions .suggestion-item { padding: 16px 18px; }
    body.suggestions-open #searchSuggestions .suggestion-text { font-size: 1.2rem; line-height: 1.35; }
    body.suggestions-open #searchSuggestions .suggestion-meta { font-size: 0.9rem; }
}

@media (max-width: 576px) {
    body.suggestions-open #searchSuggestions.search-suggestions { top: var(--navbar-height, 55px); }
    body.suggestions-open #searchSuggestions .suggestion-item { padding: 18px 20px; }
    body.suggestions-open #searchSuggestions .suggestion-text { font-size: 1.3rem; }
}

/* Search Container Styles */
/* Entfernt doppelte Basisdefinition der Suchleiste; Landing-spezifisches in landing.css */
/* .search-container Breitensteuerung erfolgt kontextabhängig, Standard bleibt flexibel */

.search-container input {
    width: 100%;
    height: 45px;
    font-size: 1.1rem;
    padding-left: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

/* Spacer */
.spacer {
    width: 150px;
}

/* Dual Range Slider (Preisbereich) */
.range-slider { position: relative; height: 36px; }
.range-slider input[type="range"] {
  position: absolute; left: 0; right: 0; top: 10px; width: 100%; pointer-events: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; background: none; height: 0;
}
.range-slider input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #007fa3; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,127,163,0.35); }
.range-slider input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #007fa3; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,127,163,0.35); }
.range-slider .slider-track { position: absolute; left: 0; right: 0; top: calc(50% - 9px); height: 4px; background: #e9ecef; border-radius: 4px; }
.range-slider .slider-range { position: absolute; top: calc(50% - 9px); height: 4px; background: #007fa3; border-radius: 4px; }


.product-card {
    background: #f1f3f5;
    border: none;
    border-radius: 16px; /* gleiche Rundung wie Featured-Karten */
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    position: relative; /* für stretched-link */
    cursor: pointer;
}

.product-image-container {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    background: #f8f7f7;
    box-shadow: inset 0 0 0 1px rgb(243, 241, 241);
}
.product-image-container::before,
.product-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.product-image-container::before {
    background: linear-gradient(145deg, #ffffff 0%, #b3b5b8 100%);
    z-index: 0;
}
.product-image-container::after {
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0) 80%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    opacity: 0;
    z-index: 1;
}
.product-image-container.is-loading::after {
    opacity: 1;
}
.product-image-container.is-loading {
    background: linear-gradient(145deg, #f0f2f7 0%, #eaebf0 100%);
}
.product-image-container.is-loaded::after {
    opacity: 0;
}
.product-image-container.image-error::before {
    background: linear-gradient(145deg, #f7d7d7 0%, #f1bcbc 100%);
}
.product-image-container.image-error::after {
    opacity: 0;
}

.list-view-compact .product-card,
#productContainer:not(.grid-view):not(.grid-view-4) .product-card {
    padding: 16px 22px;
    min-height: auto;
    align-items: stretch;
}

.list-view-compact .product-image-container,
#productContainer:not(.grid-view):not(.grid-view-4) .product-image-container {
    width: 340px;
    height: 340px;
    margin-right: 18px;
    border-radius: 16px;
    background: transparent;
    padding: 0;
}

.list-view-compact .product-image,
#productContainer:not(.grid-view):not(.grid-view-4) .product-image {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    background-color: #ffffff;
}

.list-view-compact .product-info,
#productContainer:not(.grid-view):not(.grid-view-4) .product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-view-compact .product-title,
#productContainer:not(.grid-view):not(.grid-view-4) .product-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.list-view-compact .product-meta p,
#productContainer:not(.grid-view):not(.grid-view-4) .product-meta p,
.list-view-compact .product-shipping p,
#productContainer:not(.grid-view):not(.grid-view-4) .product-shipping p,
.list-view-compact .seller-section p,
#productContainer:not(.grid-view):not(.grid-view-4) .seller-section p {
    margin-bottom: 2px;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #4a4a4a;
}

.list-view-compact .product-meta,
#productContainer:not(.grid-view):not(.grid-view-4) .product-meta,
.list-view-compact .product-shipping,
#productContainer:not(.grid-view):not(.grid-view-4) .product-shipping {
    margin-bottom: 4px;
    display: grid;
    row-gap: 2px;
}

.list-view-compact .price-section,
#productContainer:not(.grid-view):not(.grid-view-4) .price-section {
    margin-top: 4px;
}


.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    border-radius: 16px;
    background-color: #ffffff;
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.product-image.fade-out {
    opacity: 0.4;
    transform: scale(0.98);
}

.product-image.image-fit-cover {
    object-fit: cover;
}
.product-image-container.is-loaded .product-image {
    opacity: 1;
}
.product-image-container.image-error .product-image {
    opacity: 1;
    filter: grayscale(0.35);
}

/* Bild-Navigation (Carousel) */
.product-image-container .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: none; /* Icons standardmäßig verstecken */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}
.product-image-container .image-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}
.product-image-container .image-prev { left: 8px; }
.product-image-container .image-next { right: 8px; }

.product-image-container .image-dot-nav {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.2s ease;
    /* Neu: Begrenzung auf Bildbreite */
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none; /* Klicks gehen durch, wenn unsichtbar/überlappt? Nein, Dots brauchen events */
}
.product-image-container .image-dot-nav > * { pointer-events: auto; }

.product-image-container:hover .image-dot-nav,
.product-image-container.show-dots .image-dot-nav {
    opacity: 1;
}

.product-image-container .image-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.product-image-container .image-dot.active {
    width: 18px;
    background: #4a4a4a;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.product-image-container.has-multiple-images .image-nav { display: none !important; }

.product-image-container .image-hitarea {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}
.product-image-container .image-hitarea-left { left: 0; }
.product-image-container .image-hitarea-right { right: 0; }
.product-image-container.has-multiple-images .image-hitarea { display: block; }
.product-image-container:not(.has-multiple-images) .image-hitarea { display: none; }

/* Leichte visuelle Rückmeldung beim Hovern (nur Desktop) */
@media (hover:hover) {
    .product-image-container .image-hitarea-left:hover { background: transparent; }
    .product-image-container .image-hitarea-right:hover { background: transparent; }
}

/* Mobile: größere Klickflächen */
@media (max-width: 768px) {
    /* VOLLBREITE AUCH BIS 768px */
    .container-fluid.main-content { padding-left: 0 !important; padding-right: 0 !important; }
    .container-fluid.main-content .row,
    .container-fluid.main-content .row.g-3,
    #productContainer.row,
    #paginationContainer.row {
        margin-left: 0 !important; margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
    }
    .container-fluid.main-content [class^="col-"],
    .container-fluid.main-content [class*=" col-"] {
        padding-left: 0 !important; padding-right: 0 !important;
    }
    .product-image-container .image-nav {
        width: 32px;
        height: 32px;
    }
}

/* RESPONSIVE ANPASSUNGEN FÜR GRÖßERE BILDER */
@media (max-width: 768px) {
    .product-image-container {
        width: 220px;   /* PROPORTIONAL VERGRÖSSERT FÜR TABLETS */
        height: 220px;
        margin-right: 10px;
        border-radius: 16px;
    }
    
    .product-card {
        padding: 10px;    /* NOCH KOMPAKTER */
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    /* VOLLBREITE FÜR MOBILE: alle horizontalen Abstände im Hauptbereich entfernen */
    .container-fluid.main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .container-fluid.main-content .row,
    .container-fluid.main-content .row.g-3,
    #productContainer.row,
    #paginationContainer.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
    }
    .container-fluid.main-content [class^="col-"],
    .container-fluid.main-content [class*=" col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .product-card {
        flex-direction: column;
        text-align: left; /* auf Mobile linksbündig statt zentriert */
        padding: 15px;
    }
    
    .product-image-container {
        width: 100%;
        height: 200px;    /* OPTIMALE HÖHE FÜR SMARTPHONES */
        margin-right: 0;
        margin-bottom: 10px;
        border-radius: 16px;
    }
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Händler-Logo in Listenansicht (oberhalb des Titels, dezent) */
.merchant-logo-wrap { 
    margin-bottom: 6px; 
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 42px;             /* einheitliche Logo-Höhe in Listenansicht */
    max-width: 240px;         /* begrenzt die Breite, verhindert Überlaufen */
}
.merchant-logo {
    max-height: 100%;         /* Logo passt sich an Wrapper-Höhe an */
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;      /* proportional skalieren */
    filter: saturate(90%);
    image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
  .merchant-logo-wrap { height: 34px; max-width: 200px; }
}

@media (max-width: 576px) {
  .merchant-logo-wrap { height: 28px; max-width: 160px; }
}

/* Zustand-Zeile Standardabstand */
.condition-text {
    margin-top: 12px; /* deutlich weiter unten */
    font-size: 0.95rem; /* kleiner als Produkttitel auf Desktop */
}

.product-title {
    font-size: 1.1rem;  /* ETWAS KLEINER FÜR KOMPAKTHEIT */
    font-weight: bold;
    margin-bottom: 8px;  /* WENIGER ABSTAND */
    color: #2c3e50;
    line-height: 1.3;    /* BESSERE LESBARKEIT */
    /* Max. 3 Zeilen, dann Ellipse */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;   /* KLEINER FÜR MEHR PLATZ */
    color: #666;
    margin-bottom: 8px;  /* KOMPAKTER */
    line-height: 1.4;
}

/* Price Section Styles */
.price-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: none;
}

/* NEUES INLINE PREIS LAYOUT */
.price-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: none;
}

.price-inline-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
}

.uvp-price {
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: normal;
}

.discount-percent {
    font-size: 1rem;
    font-weight: bold;
    color: #dc3545;
    background-color: #ffebee; 
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

/* RESPONSIVE ADJUSTMENTS FOR INLINE PRICES */
@media (max-width: 576px) {
    .price-inline-container {
        gap: 8px;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
    
    .uvp-price {
        font-size: 1rem;
    }
    
    .discount-percent {
        font-size: 0.9rem;
        padding: 1px 6px;
    }
}

.shipping-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: none;
}

.shipping-section .shipping-cost {
    font-weight: 500;
    color: #6c757d;
    margin: 0;
}

.shipping-section .delivery-time {
    font-weight: 500;
    color: #28a745;  /* Grün für positive Lieferinfo */
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Anpassung für mobile Geräte - entfernt, da neue Inline-Struktur verwendet wird */

.product-actions {
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #009ec7 0%, #008fb3 50%, #007fa3 100%);
    border-color: #007fa3;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #008fb3 0%, #007fa3 50%, #006f94 100%);
    border-color: #006f94;
    transform: translateY(-1px);
}

.btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, #008fb3 0%, #007fa3 50%, #006f94 100%);
    border-color: #006f94;
    box-shadow: none; /* Fokusring entfernen */
    outline: none;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    /* Feste, robuste Sticky-Position – Body hat bereits padding-top fuer Navbar */
    height: calc(100vh - 64px);
    position: sticky;
    top: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    font-size: 0.9rem;
    margin-bottom: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Wenn die Navbar ausgeblendet ist, verringert sich der notwendige Offset, damit kein leerer
   Platz über der Sidebar entsteht und sie nicht nach unten springt. */
/* Kein spezielles Handling mehr noetig – Sticky-Offset ist fix */

/* Accordion Styles für Filter */
.filter-sidebar .accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    border-radius: 6px;
}

/* Zusätzlicher Abstand für mehrere geöffnete Accordions */
.filter-sidebar .accordion-item .accordion-collapse.show {
    margin-bottom: 5px;
}

.filter-sidebar .accordion-button {
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #f8f9fa;
    border: none;
    border-radius: 6px;
    color: #000 !important; /* Überschrift immer schwarz */
}

.filter-sidebar .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #000 !important; /* geöffnete Überschrift ebenfalls schwarz */
    box-shadow: none;
}

.filter-sidebar .accordion-button:focus {
    box-shadow: none; /* keine blaue Umrandung */
    color: #000 !important; /* Fokusfarbe ebenfalls schwarz halten */
    border-color: #e9ecef;
}

.filter-sidebar .accordion-body {
    padding: 12px 15px;
    font-size: 0.85rem;
}

.filter-sidebar .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #495057;
}

.filter-sidebar .form-control-sm,
.filter-sidebar .form-select-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Alle Form-Controls etwas runder machen */
.form-control, .form-select {
    border-radius: 12px;
}

/* Alle Buttons runder machen */
.btn {
    border-radius: 15px;
}

/* Globale Fokus-Unterdrückung für Buttons und Checkboxen (nur Maus-/Touch‑Klicks) */
.btn:focus, .btn:active:focus, button:focus, button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.form-check-input:focus, .form-check-input:focus-visible,
input[type="checkbox"]:focus, input[type="radio"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

.filter-sidebar .form-text {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Legacy filter section styles - kept for compatibility */
.filter-section {
    margin-bottom: 15px;
}

.filter-heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Filter Card Styles */
.filter-card {
    background-color: white !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.filter-card .card-header {
    background-color: white !important;
    border-bottom: 1px solid #eee;
    padding: 1rem;
}

.filter-card .card-body {
    background-color: white !important;
    padding: 1rem;
}

.filter-card h6 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-card .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
}

.filter-card .form-control:focus {
    border-color: #666;
    box-shadow: none;
}

.filter-card .form-check {
    margin-bottom: 0.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

/* Seller Info Styles */
.seller-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.seller-section h6 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: none;
}

/* CONDITION INFO STYLES */
.condition-info {
    font-size: 0.85em;
    color: #6c757d;
}

.condition-info i {
    margin-right: 4px;
    color: #28a745;
}

/* Condition Badges für verschiedene Zustände */
.condition-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}

.condition-new {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.condition-used {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.condition-refurbished {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Rating Styles */
.rating, .feedback-score {
    display: none;
}

/* Promotion Styles */
.promotions-section {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.promotion-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.promotion-icon {
    margin-right: 1rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.promotion-details {
    flex-grow: 1;
}

.promotion-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 0.25rem;
}

.promotion-info {
    font-size: 0.9rem;
    color: #666;
}

.promotion-discount {
    font-weight: bold;
    color: #28a745;
    margin-left: 1rem;
}

.promotion-dates {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Footer Styles */
.footer {
    background-color: #2d3741;
    padding: 15px 0;
    width: 100%;
    margin-top: auto;
}

.footer p {
    color: #fff;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

.log-terminal {
    background-color: #101010;
    color: #9cf2a5;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 12px;
    padding: 16px;
    border-radius: 8px;
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.35;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
}

.logo {
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    white-space: nowrap;
}

.logo-image {
    display: block;
    width: auto; /* Breite automatisch basierend auf Höhe */
    height: auto;
    max-height: 80px; /* Begrenzt, damit Navbar nicht wächst */
    object-fit: contain;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #eee;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-content h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-buttons .accept-all {
    background-color: #3498db;
    color: white;
}

.cookie-buttons .accept-all:hover {
    background-color: #2980b9;
}

.cookie-buttons .customize {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #2c3e50;
}

.cookie-buttons .customize:hover {
    background-color: #e9ecef;
}

.cookie-settings {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

/* Utility Classes */
.mt-3, .mt-4, .g-3, .g-4 {
    background-color: transparent !important;
}

.row {
    background-color: transparent !important;
}

/* =================== RESPONSIVE DESIGN =================== */

/* TABLET DESIGN (768px - 992px) */
@media (max-width: 992px) {
    .filters {
        margin-bottom: 1.5rem;
    }
    
    .container-fluid {
        padding: 0 20px;
    }
    
    .filter-sidebar {
        position: static;
        height: auto;
        margin-bottom: 20px;
    }
}

/* MOBILE DESIGN (max-width: 768px) */
@media (max-width: 768px) {
    /* NAVBAR MOBILE */
    .navbar {
        padding: 0;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .navbar > .container-fluid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .logo-image {
        width: auto;
        max-height: 45px; /* Passt sicher in 55px/60px Navbar */
    }
    
    body {
        padding-top: var(--navbar-height, 60px);
    }
    
    
    .navbar-brand {
        width: auto;
        font-size: 1rem;
        justify-content: flex-start;
    }
    
    .brand-name {
        font-size: 1.5rem;
        margin-left: 5px;
    }
    
    .search-container {
        margin: 0;
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto;
    }
    
    .search-input {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
        height: 34px; /* Reduziert von 40px */
    }
    
    .navbar-spacer {
        display: none;
    }
    
    /* CONTAINER MOBILE */
    .container-fluid {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    /* FILTER SIDEBAR MOBILE - VERSTECKT PER DEFAULT */
    .filter-sidebar {
        position: static;
        height: auto;
        margin-bottom: 20px;
        padding: 15px;
        display: none; /* Versteckt per Default auf Mobile */
    }
    
    /* MOBILE FILTER TOGGLE BUTTON - KLEIN IN NAVBAR */
    #mobileFilterToggle {
        border-radius: 6px;
        padding: 6px 8px;
        font-size: 0.9rem;
        border: 1px solid #007bff;
        transition: all 0.3s ease;
        margin-left: 0;
        min-width: 40px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
    }
    
    #mobileFilterToggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    }
    
    #mobileFilterToggle i {
        margin: 0;
        font-size: 0.85rem;
    }
    
    /* PRODUKTKARTEN MOBILE - HORIZONTAL */
    .product-card { padding: 10px; margin-bottom: 8px; }
    
    .product-image-container { height: 160px; }
    
    .product-info {
        width: 100%;
    }
    
    .product-title { font-size: 0.9rem; margin-bottom: 0; }

    .condition-text {
        font-size: 0.85rem; /* kleiner als Titel auf Mobile */
    }
    
    .product-description {
        font-size: 0.75rem;
        text-align: left;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* PREISE MOBILE */
    .price-inline-container {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .uvp-price {
        font-size: 0.85rem;
    }
    
    .discount-percent {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
    
    /* BUTTONS MOBILE */
    .btn-primary {
        width: auto;
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-top: 8px;
        border-radius: 15px;
        width: auto;
    }

    /* Highlight/Hover-Effekte auf Mobile deaktivieren */
    .product-card:hover,
    .product-card:active,
    .product-card:focus {
        transform: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

/* SMARTPHONE DESIGN (max-width: 576px) */
@media (max-width: 576px) {
    /* NAVBAR SMARTPHONE */
    .navbar { height: auto; padding: 0; }
    .navbar > .container-fluid { padding-left: 6px; padding-right: 6px; }
    body { padding-top: var(--navbar-height, 55px); }
    
    
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
        margin-left: 3px;
    }
    
    /* SUCHLEISTE SMARTPHONE */
    .search-container { max-width: 100%; width: 100%; }
    .search-input { 
        padding: 0.4rem 0.7rem; /* Weniger Padding oben/unten */
        font-size: 0.9rem; 
        height: 34px; /* Reduziert von 38px */
        border-radius: 18px; 
    }
    
    /* CONTAINER SMARTPHONE */
    .container-fluid {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    /* MOBILE FILTER BUTTON SMARTPHONE */
    #mobileFilterToggle {
        padding: 4px 6px;
        font-size: 0.8rem;
        margin-left: 8px;
        min-width: 32px;
        height: 30px;
    }
    
    #mobileFilterToggle i {
        font-size: 0.75rem;
    }
    
    /* FILTER ACCORDION SMARTPHONE */
    .filter-sidebar {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .filter-sidebar .accordion-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .filter-sidebar .accordion-body {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    /* PRODUKTKARTEN SMARTPHONE - HORIZONTAL KOMPAKT */
    .product-card {
        padding: 10px;
        margin-bottom: 6px; /* dichter */
        flex-direction: row;
        align-items: flex-start;
    }
    
    .product-image-container {
        width: 190px !important;   /* Noch kleiner (war 120px) */
        height: 180px !important;
        margin-right: 8px;
        margin-left: 0; /* bündig links */
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .product-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 4px;
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Bild auf Smartphone noch näher an den Rand */
    .product-image {
        padding: 2px;
    }
    
    .product-description {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 6px;
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* PREISE SMARTPHONE */
    .price-section {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #eee;
    }
    
    .price-inline-container {
        gap: 4px;
        justify-content: flex-start;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .uvp-price {
        font-size: 0.8rem;
    }
    
    .discount-percent {
        font-size: 0.7rem;
        padding: 1px 3px;
    }
    
    /* SHIPPING SMARTPHONE */
    .shipping-section {
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .shipping-section .shipping-cost,
    .shipping-section .delivery-time {
        font-size: 0.8rem;
    }
    
    /* BUTTONS SMARTPHONE */
    .btn-primary {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin-top: 6px;
        border-radius: 12px;
        width: auto;
    }
    
    /* FOOTER SMARTPHONE */
    .footer {
        padding: 12px 0;
    }
    
    .footer p {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    /* Highlight/Hover-Effekte auf sehr kleinen Geräten deaktivieren */
    .product-card:hover,
    .product-card:active,
    .product-card:focus {
        transform: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

/* Skeleton Loading Cards */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-card-skeleton {
  animation: fadeIn 0.3s ease-in;
}

.product-card-skeleton .product-card {
  pointer-events: none;
  user-select: none;
  opacity: 0.8;
}

.landing-skeleton-featured {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-skeleton-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 320px;
}

.landing-skeleton-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.landing-skeleton-card-big {
  min-width: 280px;
  width: clamp(280px, 32vw, 420px);
}

.landing-skeleton-slider-block {
  margin-bottom: 32px;
}

.landing-skeleton-slider-track {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.landing-skeleton-slider-item {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.landing-skeleton-image {
  border-radius: 14px;
}

/* Skeleton Shimmer Base */
.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ============================================
   SKELETON CARDS - GRID VIEWS
   ============================================ */

/* Gemeinsame Grid-Skeleton-Styles */
.skeleton-card-grid,
.skeleton-card-grid-normal,
.skeleton-card-grid-4 {
  display: flex;
  flex-direction: column;
}

.skeleton-image-grid,
.skeleton-image-grid-normal,
.skeleton-image-grid-4 {
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  position: relative;
  border-radius: 12px;
  margin-bottom: 12px;
}

.skeleton-image-grid::after,
.skeleton-image-grid-normal::after,
.skeleton-image-grid-4::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* Normale Grid-Ansicht (3 Spalten) - Skeleton */
@media (min-width: 768px) {
  .skeleton-image-grid-normal {
    padding-top: 75%; /* Etwas höher für 3 Spalten */
  }
}
@media (min-width: 992px) {
  .skeleton-image-grid-normal {
    padding-top: 100%; /* 1:1 für Desktop */
  }
}

/* 4-Grid-Ansicht (4 Spalten) - Skeleton */
@media (min-width: 768px) {
  .skeleton-image-grid-4 {
    padding-top: 100%; /* 1:1 für 4 Spalten */
  }
}
@media (min-width: 992px) {
  .skeleton-image-grid-4 {
    padding-top: 100%; /* 1:1 für Desktop */
  }
}

.skeleton-info-grid {
  padding: 0;
}

.skeleton-info-grid .skeleton-title {
  height: 18px;
  width: 90%;
  margin-bottom: 8px;
}

.skeleton-info-grid .skeleton-subtitle {
  height: 14px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-info-grid .skeleton-price {
  height: 22px;
  width: 50%;
}

/* List-View Skeleton (Horizontale Karte) */
.skeleton-card-list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.skeleton-image-list {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  margin-right: 15px;
  border-radius: 12px;
}

.skeleton-info-list {
  flex: 1;
  padding: 0;
}

.skeleton-info-list .skeleton-title {
  height: 24px;
  width: 80%;
  margin-bottom: 10px;
}

.skeleton-info-list .skeleton-subtitle {
  height: 18px;
  width: 50%;
  margin-bottom: 8px;
}

.skeleton-info-list .skeleton-meta {
  height: 16px;
  width: 40%;
  margin-bottom: 8px;
}

.skeleton-info-list .skeleton-price {
  height: 28px;
  width: 35%;
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .skeleton-card-list {
    flex-direction: column;
  }
  
  .skeleton-image-list {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .skeleton-info-list .skeleton-title {
    height: 20px;
    width: 85%;
  }
  
  .skeleton-info-list .skeleton-subtitle {
    height: 16px;
    width: 60%;
  }
  
  .skeleton-info-list .skeleton-meta {
    height: 14px;
    width: 50%;
  }
  
  .skeleton-info-list .skeleton-price {
    height: 24px;
    width: 45%;
  }
}

/* Smartphone (max-width: 576px) */
@media (max-width: 576px) {
  .skeleton-image-list {
    height: 160px;
  }
  
  .skeleton-info-grid .skeleton-title {
    height: 16px;
  }
  
  .skeleton-info-grid .skeleton-subtitle {
    height: 14px;
  }
  
  .skeleton-info-grid .skeleton-price {
    height: 20px;
  }
  
  
  .skeleton-info-list .skeleton-title {
    height: 18px;
  }
  
  .skeleton-info-list .skeleton-subtitle {
    height: 14px;
  }
  
  .skeleton-info-list .skeleton-price {
    height: 22px;
  }
}

/* EXTRA SMALL SMARTPHONES (max-width: 400px) */
@media (max-width: 400px) {
    .container-fluid {
        padding: 0 8px;
    }
    
    .product-image-container {
        width: 190px;   /* noch größer für kleine Geräte */
        height: 190px;
        margin-right: 6px;
        margin-left: 0; /* direkt an der linken "Wand" */
    }
    
    .product-title {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .condition-text {
        font-size: 0.8rem; /* noch kleiner auf sehr kleinen Geräten */
    }
    
    .product-description {
        font-size: 0.65rem;
    }
    
    .current-price {
        font-size: 0.9rem;
    }
    
    .uvp-price {
        font-size: 0.75rem;
    }
    
    .discount-percent {
        font-size: 0.65rem;
    }
    
    
    
    .navbar-brand .brand-name {
        font-size: 1rem;
    }
    
    /* Landing-spezifische mobile Kompaktbreiten sind in landing.css ausgelagert */
}

/* Platform Badge Styles */
.platform-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
}

.platform-badge.ebay {
    background-color: #E53238;
    color: white;
}

.platform-badge.alibaba {
    background-color: #FF6A00;
    color: white;
}

.platform-badge.amazon {
    background-color: #232F3E;
    color: white;
}

/* Discount Section Styles */
.discount-section {
    background-color: #f9f9f9;
    border-left: 4px solid #E53238; /* eBay Rot */
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

.discount-section h6 {
    color: #E53238;
    font-weight: bold;
    margin-bottom: 5px;
}

.discount-section .original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9em;
}

.discount-section .discount-amount {
    color: #008000; /* Grün für Ersparnis */
    font-weight: bold;
}

.discount-section .discount-percentage {
    color: #008000;
    font-size: 0.9em;
}

/* Custom Farben für Featured Cards */
.bg-light-pink {
    background-color: #fce4ec !important; /* Helles Rosa */
}
.bg-light-blue {
    background-color: #e3f2fd !important; /* Helles Blau */
}
.bg-dark-blue {
    background-color: #2c3e50 !important; /* Dunkles Blau (passend zum Logo) */
}
.bg-dark-blue .card-title, .bg-dark-blue .current-price {
    color: #ffffff !important;
}
.bg-dark-blue .text-muted {
    color: rgba(255,255,255,0.7) !important;
}
.bg-dark-blue .badge.bg-danger {
    background-color: #ff6b6b !important; /* Helleres Rot für Kontrast */
}

/* PAGINIERUNG STYLES */
#paginationContainer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination {
    margin-bottom: 1rem;
}

.page-link {
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* ELLIPSEN-STYLES FÜR PAGINIERUNG */
.page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    border: none;
    cursor: default;
    font-weight: bold;
}

.page-item.disabled span.page-link {
    padding: 0.75rem 0.5rem;
    user-select: none;
}

/* Responsive Paginierung für mobile Geräte */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        margin: 1px;
    }
    
    /* AUF MOBILE WENIGER SEITENZAHLEN ANZEIGEN */
    .pagination .page-item:nth-child(n+8):nth-last-child(n+4) {
        display: none;
    }
    
    /* Preis in der 4-Grid-Ansicht auf Smartphones kleiner */
    .grid-view-4 .price-section .current-price {
        font-size: 1rem !important; /* Kleiner als Desktop (1.6rem) */
    }

    /* Kleinere Dots auf Mobile, damit mehr passen */
    .product-image-container .image-dot {
        width: 5px;
        height: 5px;
    }
    .product-image-container .image-dot.active {
        width: 12px;
    }
    .product-image-container .image-dot-nav {
        gap: 4px;
        bottom: -16px;
    }
}

#feedConfigDrawer {
    --bs-offcanvas-width: min(90vw, 820px);
}

@media (max-width: 768px) {
    #feedConfigDrawer {
        --bs-offcanvas-width: 100vw;
    }
}

.feed-options-table code {
    font-size: 0.85rem;
}

.feed-option-current {
    border-left: 4px solid #198754;
}

.feed-name {
    font-weight: 600;
    color: #212529;
}

.feed-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.feed-url {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.75rem;
    color: #495057;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 4px 6px;
    margin-top: 4px;
    display: block;
    max-height: 68px;
    overflow: auto;
    word-break: break-all;
}

.feed-options-table .badge {
    font-size: 0.7rem;
}
