/* Module: cards.css — product cards, grid cards, list cards, images, skeleton cards, hero banner */

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

.product-card {
    background: #f1f3f5;
    border: none;
    border-radius: 16px;
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Lagerbestand: Nicht verfügbar (rot) */
.stock-out {
    color: #dc3545 !important;
    font-weight: 600;
}

.stock-out strong {
    color: #dc3545;
}

.product-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    /* Cleaner white background */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* touch-action: pan-y → vertikales Scrollen bleibt erlaubt, horizontale
       Gesten sind unsere Image-Swipes (sonst hijackt der Browser die
       horizontale Bewegung auf manchen Phones als Scroll/Back-Geste). */
    touch-action: pan-y;
}

/* Pseudo-Elemente entfernt, die das "gelbe Feld" / Verschiebungen verursacht haben */
.product-image-container::before,
.product-image-container::after {
    display: none;
}


/* Hilfsklassen für Ladezustand */
.product-image-container.is-loading {
    background: linear-gradient(145deg, #f0f2f7 0%, #eaebf0 100%);
}


.list-view-compact .product-card,
#productContainer:not(.grid-view):not(.grid-view-5) .product-card {
    padding: 10px 16px;
    min-height: auto;
    flex-direction: row;
    /* WICHTIG: Listenansicht muss horizontal sein */
    align-items: flex-start;
    /* Changed back to flex-start for consistent title alignment */
    gap: 16px;
}

.list-view-compact .product-image-container,
#productContainer:not(.grid-view):not(.grid-view-5) .product-image-container {
    width: 320px;
    min-width: 320px;
    height: 320px;
    margin-right: 0px;
    border-radius: 16px;
    background: transparent;
    padding: 0;
    align-self: flex-start;
}

.list-view-compact .product-image,
#productContainer:not(.grid-view):not(.grid-view-5) .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-5) .product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.list-view-compact .product-title,
#productContainer:not(.grid-view):not(.grid-view-5) .product-title {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 2px;
}

.list-view-compact .product-meta p,
#productContainer:not(.grid-view):not(.grid-view-5) .product-meta p,
.list-view-compact .product-shipping p,
#productContainer:not(.grid-view):not(.grid-view-5) .product-shipping p,
.list-view-compact .seller-section p,
#productContainer:not(.grid-view):not(.grid-view-5) .seller-section p,
.list-view-compact .brand-text,
#productContainer:not(.grid-view):not(.grid-view-5) .brand-text,
.list-view-compact .condition-text,
#productContainer:not(.grid-view):not(.grid-view-5) .condition-text {
    margin-bottom: 0px;
    font-size: 0.85rem;
    line-height: 1.25;
    color: #4a4a4a;
}

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

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


.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: 1;
    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);
}

/* Kein Bild vorhanden */
.product-image-container.no-image {
    background: #f0f2f7;
}
.product-image-container.no-image::after {
    display: flex !important;
    content: '';
    width: 48px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c0c4ce'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.5;
}

/* Swipe-Nachbarn (Carousel-Style): zwei zusätzliche <img>s pro Card,
   die links und rechts vom Hauptbild positioniert sind (außerhalb des
   sichtbaren Container-Bereichs via translateX ±100%). Beim Swipen werden
   sie zusammen mit dem Hauptbild bewegt, sodass der User schon während
   des Ziehens das nächste Bild von der Seite reinkommen sieht — klassisches
   iOS-/eBay-App-Carousel-Verhalten.
   z-index 1: unter dem Hauptbild (z-index 2), damit Klick/Hover-States
   und das aktive Bild visuell führen. pointer-events:none: Ghosts sind
   nicht interaktiv. */
.product-image-container .swipe-neighbor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-color: #ffffff;
    will-change: transform;
}
.product-image-container .swipe-neighbor-left  { transform: translateX(-100%); }
.product-image-container .swipe-neighbor-right { transform: translateX(100%); }

/* 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: 6px;
    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;
}

/* Touch-Geräte: dots dauerhaft sichtbar wenn mehrere Bilder vorhanden,
   sonst hat der User keine optische Bestätigung dass er swipen kann
   (kein :hover auf Touch). */
@media (hover: none) {
    .product-image-container.has-multiple-images .image-dot-nav {
        opacity: 0.85;
    }
}

.product-image-container .image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.product-image-container .image-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.product-image-container .image-dot.active {
    width: 10px;
    height: 10px;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.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;
    }
}

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

/* Händler-Logo in Listenansicht (oberhalb des Titels, dezent) */
.merchant-logo-wrap {
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 32px;
    /* Reduced from 42px */
    max-width: 180px;
}

.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: 6px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #2c3e50;
    line-height: 1.3;
    /* BESSERE LESBARKEIT */
    /* Max. 2 Zeilen, dann Ellipse */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    /* Feste Höhe für Alignment */
}

.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: 8px;
    padding-top: 0;
    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;
    /* Fix 2026-05-20: einheitliches kühles Grau wie auf den großen Bannern
       (landing.css .featured-products .card-body.dark-overlay .uvp-price und
       .tv-mega-banner .uvp). Vorher #6c757d (warmer Bootstrap-Grauton), das
       wirkt neben dem roten Rabatt-Badge optisch rosa-stichig. */
    color: #7c8a94;
    text-decoration: line-through;
    font-weight: normal;
}

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

/* 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: 6px;
    padding-top: 0;
    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;
}

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

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

.seller-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merchant-name-text {
    font-size: 1rem;
    color: #2d3748;
}

/* 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;
}

/* 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: #004D66 !important;
    /* Türkis (passend zum neuen Design) */
}

.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 */
}

/* Product Actions Overlay */
.product-actions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover-Effekt: Nur auf Geräten mit Maus (Desktop) verstecken */
@media (hover: hover) {
    .product-actions-overlay {
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
    }

    .product-image-container:hover .product-actions-overlay,
    .product-card:hover .product-actions-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

.product-actions-overlay>* {
    pointer-events: auto;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.action-btn:hover {
    background: #fff;
    color: #008FB3;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.btn-favorite.active {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-price-alert.active {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

/* Compare check wrapper adjustment */
.compare-check-wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

/* Gemeinsame Grid-Styles (für beide Grid-Ansichten) */
.grid-view .product-card,
.grid-view-5 .product-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 8px;
}

.grid-view .product-image-container,
.grid-view-5 .product-image-container {
    width: 100%;
    margin-right: 0;
    margin-bottom: 24px;
    /* Mehr Platz für Bildpunkte */
}

.grid-view .product-info,
.grid-view-5 .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-5 .seller-section,
.grid-view-5 .product-description {
    display: none !important;
}

.grid-view-5 .condition-text {
    display: block !important;
}

.grid-view-5 .shipping-section {
    display: none !important;
}

.grid-view .price-section,
.grid-view-5 .price-section {
    display: block !important;
    margin-top: 4px;
    padding-top: 0;
    border-top: 0;
}

.grid-view .price-inline-container,
.grid-view-5 .price-inline-container {
    gap: 6px;
}

.grid-view .current-price,
.grid-view-5 .current-price {
    font-size: 1.2rem;
    color: #000;
}

.grid-view .price-section .uvp-price,
.grid-view-5 .price-section .uvp-price {
    font-size: 0.85rem;
}

.grid-view .price-section .discount-percent,
.grid-view-5 .price-section .discount-percent {
    font-size: 0.8rem;
}

.grid-view .product-title,
.grid-view-5 .product-title {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.25;
    margin-bottom: 4px;
    height: 2.5em;
    overflow: hidden;
}

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

/* 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;
}

/* ============================================
   5-GRID-ANSICHT (5 Spalten)
   ============================================ */

/* 5-Spalten Bootstrap-kompatible Klasse (20% Breite) */
.col-5ths {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 0.2rem;
    padding-left: 0.2rem;
}

@media (max-width: 575px) {
    .col-5ths { flex: 0 0 50%; max-width: 50%; padding-right: 0.3rem; padding-left: 0.3rem; } /* Mobile: 2 Spalten */
}

@media (min-width: 576px) and (max-width: 767px) {
    .col-5ths { flex: 0 0 50%; max-width: 50%; } /* Kleines Tablet: 2 Spalten */
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-5ths { flex: 0 0 33.333%; max-width: 33.333%; } /* Tablet: 3 Spalten */
}

.grid-view-5 .product-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
}

.grid-view-5 .condition-text {
    font-size: 0.8rem;
}

.grid-view-5 .price-section .current-price {
    font-size: 1.4rem;
}

.grid-view-5 .price-section .uvp-price {
    font-size: 1.05rem;
}

.grid-view-5 .price-section .discount-percent {
    font-size: 0.95rem;
}

.grid-view-5 .product-title {
    font-size: 1.05rem;
    /* Exakt wie in Listenansicht */
    line-height: 1.35;
    font-weight: bold;
}

/* Sehr große Screens: Bilder füllen die Spalte aus */
@media (min-width: 1400px) {
    .product-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-left: 0;
        margin-right: 0;
    }
}

/* 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;
        height: 220px;
        margin-right: 10px;
        border-radius: 16px;
    }

    .product-card {
        padding: 10px;
        margin-bottom: 10px;
    }

    /* Listenansicht Tablet: Bild fixieren damit es nicht zusammengedrückt wird */
    #productContainer:not(.grid-view):not(.grid-view-5) .product-image-container {
        width: 180px !important;
        height: 180px !important;
        min-width: 180px !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }
}

@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: 220px;
        /* OPTIMALE HÖHE FÜR SMARTPHONES */
        margin-right: 0;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    /* Listenansicht Mobile: Horizontal bleiben aber mit größerem Bild */
    #productContainer:not(.grid-view):not(.grid-view-5) .product-card {
        flex-direction: row !important;
        align-items: flex-start !important;
        padding: 10px 12px !important;
        gap: 12px !important;
    }

    #productContainer:not(.grid-view):not(.grid-view-5) .product-image-container {
        width: 180px !important;
        height: 180px !important;
        min-width: 180px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* Responsive product card mobile */
@media (max-width: 768px) {

    /* PRODUKTKARTEN MOBILE - HORIZONTAL — kompakteres Layout */
    .product-card {
        padding: 8px;
        margin-bottom: 6px;
    }

    .product-image-container {
        height: 180px;
    }

    .product-info {
        width: 100%;
    }

    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* "Marke:"-Zeile unter dem Titel auf Mobile ausblenden — Marke
       erscheint ohnehin im Titel und kostet sonst eine ganze Zeile. */
    .brand-text {
        display: none !important;
    }

    /* Preis-Section dichter an Titel + Zustand rücken (vorher 15px) */
    .price-section {
        margin-top: 6px;
        padding-top: 4px;
    }

    .condition-text {
        font-size: 0.85rem;
        /* kleiner als Titel auf Mobile */
        margin-top: 4px;
        margin-bottom: 2px;
    }

    /* Shipping-Section dichter — war 10px Abstand */
    .shipping-section {
        margin-top: 4px;
        padding-top: 4px;
    }

    .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.7rem;
        padding: 1px 4px;
    }

    /* 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) {

    /* PRODUKTKARTEN SMARTPHONE - HORIZONTAL KOMPAKT */
    .product-card {
        padding: 8px;
        margin-bottom: 4px;
        /* noch dichter — mehr Karten pro Viewport */
        flex-direction: row;
        align-items: flex-start;
    }

    .product-image-container {
        width: 140px !important;
        /* Noch kleiner (war 190px) */
        height: 140px !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.25;
        margin-bottom: 4px;
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.5em;
    }

    /* 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 — dichter an Titel/Zustand */
    .price-section {
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid #eee;
    }

    /* Zustand näher an Preis (war 12px Abstand) */
    .condition-text {
        margin-top: 2px;
        margin-bottom: 0;
    }

    .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.65rem;
        padding: 1px 3px;
    }

    /* SHIPPING SMARTPHONE — kompakter (war 8px) */
    .shipping-section {
        margin-top: 4px;
        padding-top: 4px;
    }

    .shipping-section .shipping-cost,
    .shipping-section .delivery-time {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    /* 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;
    }

    /* SHIPPING SMARTPHONE (Duplikat oben — gleiche Werte beibehalten) */
    .shipping-section {
        margin-top: 4px;
        padding-top: 4px;
    }

    /* 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;
    }
}

/* EXTRA SMALL SMARTPHONES (max-width: 400px) */
@media (max-width: 400px) {
    .product-image-container {
        width: 130px;
        /* noch größer für kleine Geräte -> Nein, jetzt kleiner für Horizontal */
        height: 130px;
        margin-right: 6px;
        margin-left: 0;
        /* direkt an der linken "Wand" */
    }

    .product-title {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.5em;
    }

    .condition-text {
        font-size: 0.8rem;
        /* noch kleiner auf sehr kleinen Geräten */
    }

    .product-description {
        font-size: 0.65rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .uvp-price {
        font-size: 0.75rem;
    }

    .discount-percent {
        font-size: 0.58rem;
        padding: 1px 3px;
    }
}

/* 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;
}

/* 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,
.skeleton-card-grid-5 {
    display: flex;
    flex-direction: column;
}

.skeleton-image-grid,
.skeleton-image-grid-normal,
.skeleton-image-grid-4 {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}

/* 5-Grid Skeleton: etwas kompakter da 5 Spalten = weniger Platz */
.skeleton-image-grid-5 {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
}



.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: 340px;
    height: 340px;
    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: 260px;
        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: 200px;
    }

    .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;
    }
}

/* ============================================
   PREMIUM HERO BANNER SYSTEM
   ============================================ */

.hero-banner-premium {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: "Outfit", sans-serif;
    margin-bottom: 2rem;
    /* Dynamischer Hintergrund-Glow */
    background: radial-gradient(circle at 50% 50%, #f8f9fa 0%, #e9ecef 100%);
}

/* Schwebende Neon-Partikel im Hintergrund */
.neon-aura {
    position: absolute;
    border-radius: 50%;
    background: #00A8CC;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: floatAura 15s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes floatAura {
    0% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    33% { transform: translate(50px, 30px) scale(1.2); opacity: 0.18; }
    66% { transform: translate(-30px, 60px) scale(0.9); opacity: 0.12; }
    100% { transform: translate(20px, -20px) scale(1.1); opacity: 0.15; }
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

@keyframes sweep {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(300%) skewX(-15deg); }
}

.hero-banner-premium .hero-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    z-index: 5;
    animation: sweep 8s infinite linear;
    pointer-events: none;
}


.hero-banner-background {
    position: absolute;
    top: 10% !important;
    right: 20% !important;
    width: 40% !important;
    height: 80% !important;
    background-size: contain !important;
    background-position: center right !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
    display: block !important;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.12));
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    padding: 0 60px;
    width: 60%;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 168, 204, 0.08);
    color: #00A8CC;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1b;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #4a4a4b;
    margin-bottom: 35px;
    max-width: 440px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-hero-primary {
    padding: 14px 32px;
    background: #1a1a1b;
    color: white !important;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary i {
    margin-right: 8px;
}

.btn-hero-primary:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline {
    padding: 14px 32px;
    background: white;
    color: #1a1a1b !important;
    border: 2px solid #e0e0e1;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    border-color: #1a1a1b;
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    /* Deaktiviere teure Animationen auf Mobile/Tablet */
    .neon-aura {
        animation: none;
        filter: none;
        opacity: 0;
    }

    .hero-banner-premium .hero-shine {
        animation: none;
        display: none;
    }

    .hero-banner-premium {
        height: auto;
        min-height: 0;
        flex-direction: column !important;
        padding-bottom: 0;
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .hero-banner-background {
        position: relative !important;
        width: 100% !important;
        height: 110px !important;
        background-position: center right !important;
        background-size: contain !important;
        margin-top: 12px;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
    }

    .hero-banner-content {
        width: 100% !important;
        padding: 16px 18px 14px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: -0.5px;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
        max-width: 100%;
        line-height: 1.35;
    }

    .hero-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neon-aura { animation: none; }
    .hero-banner-premium .hero-shine { animation: none; display: none; }
}

@media (max-width: 576px) {
    .hero-banner-premium {
        min-height: 0;
        border-radius: 12px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0.5rem;
        /* Hero auf Mobile als kompakter "Mini-Hero": Title + 1 Button.
           Subtitle und Background-Image raus → spart ~150px Höhe,
           erstes Produkt-Card landet "above the fold". */
        flex-direction: row !important;
        align-items: center !important;
    }

    .hero-title {
        font-size: 1.05rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    /* Subtitle und Background komplett ausblenden auf kleinen Phones */
    .hero-subtitle,
    .hero-banner-background {
        display: none !important;
    }

    .hero-banner-content {
        padding: 10px 12px !important;
        flex: 1;
    }

    .hero-actions {
        margin-top: 6px !important;
        gap: 6px !important;
    }

    /* Falls mehrere CTAs: nur den primären als Pill behalten,
       sekundären verstecken — Platz ist knapp */
    .btn-hero-outline {
        display: none !important;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Searchpage-only: kompakterer Hero (Homepage-Carousel bleibt unverändert).
   Scope auf #heroRotationContainer — nur die rotierenden Search-Banner. */
#heroRotationContainer .hero-banner-premium {
    height: 280px;
}

@media (max-width: 992px) {
    #heroRotationContainer .hero-banner-premium {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    /* Override der ≤992-Regel: auf Phones/kleinen Tablets kein zwingendes
       340px-Minimum mehr, sondern Content-getrieben. */
    #heroRotationContainer .hero-banner-premium {
        height: auto !important;
        min-height: 0 !important;
    }
}

@media (max-width: 576px) {
    /* Mini-Hero auf Phones: knapp über Title+Button-Höhe.
       Vorher 190px → erste Produkt-Card war unterhalb der Falz.
       Jetzt content-getrieben, Title + Button passen in ~70-90px. */
    #heroRotationContainer .hero-banner-premium {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* Mobile Grid (2 Spalten): Karte vertikal — Bild oben, Text unten.
   Vorher war hier Card horizontal mit 110px-Bild — das war für eine
   1-Spalten-Listenansicht gedacht, jetzt aber redundant weil .col-5ths
   auf Mobile auf 50% steht (2 Spalten Grid). */
@media (max-width: 575px) {
    #productContainer.grid-view-5 .product-card {
        flex-direction: column;
        align-items: stretch;
        /* Card-Padding nur an den Seiten + unten für Text — oben 0
           damit das Produktbild bündig an der Card-Oberkante sitzt
           und so die volle 1:1-Fläche bekommt. */
        padding: 0 8px 8px;
        overflow: hidden;
    }
    #productContainer.grid-view-5 .product-image-container {
        /* Bild edge-to-edge UND voll quadratisch.
           Zwei Fixes hier kombiniert:
           1) width: calc(100% + 16px) + margin -8px links/rechts
              → Container überspannt das Card-Padding und läuft bis zur
              Card-Kante. (Reines width:auto klappt bei Flex-Children
              nicht zuverlässig, deshalb explizite Breite.)
           2) display: block !important — der Default-Style ist
              display: flex (für Pseudo-Centering), aber im Zusammenspiel
              mit aspect-ratio rechnet der Browser dann die Höhe NICHT
              aus der Breite. Mit block greift aspect-ratio 1/1 sauber
              → Container ist tatsächlich quadratisch (Width × Width).
              Die im Container liegenden Elemente (Hitareas, Overlays,
              Dot-Nav) sind eh position:absolute — verlieren also nichts
              durch den Wechsel auf block. */
        display: block !important;
        /* Nicht mehr edge-to-edge: Bild bleibt innerhalb des Card-Paddings,
           also ~16px schmaler als die Card. Kein negativer Margin mehr.
           Bei 187.5px Card-Breite ergibt das ~171px Bild-Breite. */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 0 8px !important;
        /* 4:3 — Höhe ist 3/4 der Breite, also ~128px bei 171px Breite. */
        aspect-ratio: 4 / 3 !important;
        border-radius: 12px;
        overflow: hidden;
    }
    /* object-fit: contain (nicht cover) — Produkt bleibt IMMER vollständig
       sichtbar, auch wenn das Original-Aspect-Ratio nicht zum 4:3-Container
       passt (Sneaker sind oft 3:2 oder quadratisch — mit cover wurden Teile
       abgeschnitten). Bei contain bleibt ein bisschen Whitespace links/rechts
       oder oben/unten, dafür ist der Schuh immer komplett zu sehen. */
    #productContainer.grid-view-5 .product-image-container .product-image,
    #productContainer.grid-view-5 .product-image {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 0px !important;
        margin: 0 !important;
        display: block !important;
        background-color: #ffffff;
    }
    #productContainer.grid-view-5 .product-info {
        width: 100%;
    }
    #productContainer.grid-view-5 .product-title {
        font-size: 0.82rem;
        line-height: 1.25;
        /* 2 Zeilen Titel mit Ellipsis statt unbegrenztem Wrap.
           Sonst macht ein langer Titel die Card unverhältnismäßig hoch.
           max-height = line-height × 2 + kleiner Puffer für Descender. */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: auto;
        max-height: 2.6em;
        white-space: normal;
    }
    #productContainer.grid-view-5 .price-section .current-price {
        font-size: 0.95rem;
    }
}
