/*
 * Hepsi-Markt Angebotsseite – CSS
 *
 * Farbschema:
 *   Primärgrün:      #24583e  (Text, Überschriften)
 *   Akzentgrün:      #9dc043  (Buttons, Rahmen, Badges)
 *   Hintergrund:     #f3fad9  (Sekundärflächen)
 *   Weiß:            #ffffff  (Karten)
 *   Grau hell:       #f5f5f5  (Hintergrundflächen)
 *   Rahmen grau:     #e0e0e0
 *   Text mittel:     #555555
 *
 * Laden: Nur auf der Angebotsseite via wp_enqueue_style.
 *
 * WICHTIG: Die bestehenden Preis-Klassen aus dem Child Theme
 * (.price-tag-right, .price-box, .sale-price, .discount-right,
 *  .original-price) werden NICHT überschrieben.
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

.hepsi-angebote-page {
    --ha-green-dark:   #24583e;
    --ha-green-accent: #9dc043;
    --ha-green-bg:     #f3fad9;
    --ha-white:        #ffffff;
    --ha-grey-bg:      #f5f5f5;
    --ha-grey-border:  #e0e0e0;
    --ha-grey-text:    #555555;
    --ha-radius:       8px;
    --ha-shadow:       0 2px 8px rgba(0, 0, 0, 0.08);
    --ha-shadow-md:    0 4px 16px rgba(0, 0, 0, 0.12);
    --ha-transition:   0.2s ease;
}

/* ==========================================================================
   Seiten-Wrapper
   ========================================================================== */

.hepsi-angebote-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    background: var(--ha-white);
}

/* ==========================================================================
   Highlights-Karussell
   ========================================================================== */

.hepsi-angebote-highlights {
    position: relative;
    margin-bottom: 40px;
}

.hepsi-angebote-highlights h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ha-green-dark);
    margin: 0 0 16px;
}

.hepsi-angebote-highlights__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    /* Scrollbar verstecken – sichtbar nur bei Fokus (Barrierefreiheit) */
    scrollbar-width: none;
}

.hepsi-angebote-highlights__track::-webkit-scrollbar {
    display: none;
}

/* Einzelne Kategorie-Karte im Karussell */
.hepsi-angebote-highlights__card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--ha-white);
    border: 1px solid var(--ha-grey-border);
    border-radius: var(--ha-radius);
    box-shadow: var(--ha-shadow);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--ha-transition), transform var(--ha-transition);
    display: block;
}

.hepsi-angebote-highlights__card:hover {
    box-shadow: var(--ha-shadow-md);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.hepsi-angebote-highlights__card .card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--ha-grey-bg);
}

.hepsi-angebote-highlights__card .card-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hepsi-angebote-highlights__card .card-date-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--ha-green-accent);
    color: var(--ha-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.hepsi-angebote-highlights__card .card-title {
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ha-green-dark);
    margin: 0;
}

/* Karussell Pfeil-Buttons */
.hepsi-angebote-highlights__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ha-green-accent);
    background: var(--ha-white);
    color: var(--ha-green-dark);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background var(--ha-transition), color var(--ha-transition);
    box-shadow: var(--ha-shadow);
    /* Vertikale Anpassung: nach unten, damit Titel nicht überdeckt wird */
    margin-top: 20px;
}

.hepsi-angebote-highlights__nav:hover {
    background: var(--ha-green-accent);
    color: var(--ha-white);
}

.hepsi-angebote-highlights__nav.prev {
    left: -20px;
}

.hepsi-angebote-highlights__nav.next {
    right: -20px;
}

/* ==========================================================================
   Wochen-Tabs + FILTER-Button
   ========================================================================== */

.hepsi-angebote-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid var(--ha-grey-border);
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.hepsi-angebote-tabs::-webkit-scrollbar {
    display: none;
}

.hepsi-angebote-tabs__tab {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ha-grey-text);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color var(--ha-transition), border-color var(--ha-transition);
    text-decoration: none;
    display: inline-block;
}

.hepsi-angebote-tabs__tab:hover {
    color: var(--ha-green-dark);
    background: var(--ha-green-bg);
    text-decoration: none;
}

.hepsi-angebote-tabs__tab.active {
    color: var(--ha-green-dark);
    font-weight: 700;
    border-bottom-color: var(--ha-green-accent);
}

/* FILTER-Button – ganz rechts */
.hepsi-angebote-filter__toggle {
    margin-left: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ha-green-dark);
    background: transparent;
    border: 2px solid var(--ha-green-dark);
    border-radius: var(--ha-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background var(--ha-transition), color var(--ha-transition);
    flex-shrink: 0;
}

.hepsi-angebote-filter__toggle:hover,
.hepsi-angebote-filter__toggle.open {
    background: var(--ha-green-dark);
    color: var(--ha-white);
}

.hepsi-angebote-filter__toggle .filter-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ==========================================================================
   FILTER-Dropdown
   ========================================================================== */

.hepsi-angebote-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.hepsi-angebote-filter__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--ha-white);
    border: 1px solid var(--ha-grey-border);
    border-radius: var(--ha-radius);
    box-shadow: var(--ha-shadow-md);
    z-index: 200;
    padding: 12px 0 8px;
}

.hepsi-angebote-filter__panel.open {
    display: block;
}

.hepsi-angebote-filter__panel .dropdown-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ha-grey-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 16px 8px;
    border-bottom: 1px solid var(--ha-grey-border);
    margin-bottom: 8px;
}

.hepsi-angebote-filter__panel label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ha-green-dark);
    transition: background var(--ha-transition);
}

.hepsi-angebote-filter__panel label:hover {
    background: var(--ha-green-bg);
}

/* Custom Checkbox in Hepsi-Grün */
.hepsi-angebote-filter__panel input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ha-grey-border);
    border-radius: 4px;
    background: var(--ha-white);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--ha-transition), background var(--ha-transition);
    position: relative;
}

.hepsi-angebote-filter__panel input[type="checkbox"]:checked {
    background: var(--ha-green-accent);
    border-color: var(--ha-green-accent);
}

.hepsi-angebote-filter__panel input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--ha-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.hepsi-angebote-filter__panel .category-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--ha-grey-text);
}

.hepsi-angebote-filter__panel .dropdown-all-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--ha-green-accent);
    text-decoration: underline;
    cursor: pointer;
    border-top: 1px solid var(--ha-grey-border);
    margin-top: 8px;
    background: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}

.hepsi-angebote-filter__panel .dropdown-all-link:hover {
    color: var(--ha-green-dark);
}

/* ==========================================================================
   Datums-Sub-Filter-Leiste (sticky)
   ========================================================================== */

.hepsi-angebote-date-filter {
    position: sticky;
    top: 0; /* Wird per JS auf Header-Höhe gesetzt wenn nötig; Fallback: 0 */
    z-index: 100;
    background: var(--ha-white);
    border-bottom: 1px solid var(--ha-grey-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 32px;
}

.hepsi-angebote-date-filter::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   Datums-Abschnitte
   ========================================================================== */

.hepsi-angebote-date-section {
    margin-bottom: 48px;
    /* Abstand = Hauptmenü + Controls + Date-Filter + Safe-Area + 12px Puffer */
    scroll-margin-top: calc(var(--ha-menu-h, 52px) + var(--ha-controls-h, 52px) + 48px + var(--ha-safe-top, 0px) + 12px);
}

.hepsi-angebote-date-section > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ha-green-dark);
    padding-bottom: 10px;
    border-top: 2px solid var(--ha-grey-border);
    padding-top: 16px;
    margin-bottom: 24px;
}

/* Warengruppen-Abschnitt */
.hepsi-angebote-category-section {
    margin-bottom: 36px;
    scroll-margin-top: calc(var(--ha-menu-h, 52px) + var(--ha-controls-h, 52px) + 48px + var(--ha-safe-top, 0px) + 12px);
}

.hepsi-angebote-category-section > h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ha-green-dark);
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--ha-green-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Produkt-Grid
   ========================================================================== */

.hepsi-angebote-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ==========================================================================
   Produkt-Karte
   ========================================================================== */

.hepsi-angebote-product-card {
    background: var(--ha-white);
    border: 1px solid var(--ha-grey-border);
    border-radius: var(--ha-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--ha-transition), transform var(--ha-transition);
}

.hepsi-angebote-product-card:hover {
    box-shadow: var(--ha-shadow-md);
    transform: translateY(-2px);
}

/* Bild-Bereich */
.hepsi-angebote-product-card .product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 */
    background: var(--ha-grey-bg);
    overflow: hidden;
}

.hepsi-angebote-product-card .product-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

/* Rabatt-Badge */
.hepsi-angebote-product-card .discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ha-green-accent);
    color: var(--ha-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* Karten-Inhalt */
.hepsi-angebote-product-card .product-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.hepsi-angebote-product-card .product-category-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ha-green-accent);
}

.hepsi-angebote-product-card .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ha-green-dark);
    margin: 0;
    line-height: 1.3;
    /* max. 2 Zeilen */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hepsi-angebote-product-card .product-unit {
    font-size: 0.75rem;
    color: var(--ha-grey-text);
    margin: 0;
}

/* Preis-Bereich – nutzt die bestehenden Child-Theme-Klassen;
   hier nur Layout-Wrapper */
.hepsi-angebote-product-card .product-price-wrap {
    margin-top: auto;
    padding-top: 8px;
}

/* "Zur Einkaufsliste"-Button */
.hepsi-angebote-product-card .product-wishlist-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    color: var(--ha-green-dark);
    background: transparent;
    border: 2px solid var(--ha-green-dark);
    border-radius: var(--ha-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--ha-transition), color var(--ha-transition);
}

.hepsi-angebote-product-card .product-wishlist-btn:hover {
    background: var(--ha-green-dark);
    color: var(--ha-white);
    text-decoration: none;
}

/* ==========================================================================
   Leer-Zustand
   ========================================================================== */

.hepsi-angebote-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--ha-grey-text);
}

.hepsi-angebote-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.hepsi-angebote-empty p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Skeleton-Loader (Puls-Animation)
   ========================================================================== */

@keyframes ha-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.hepsi-angebote-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hepsi-angebote-skeleton .skeleton-card {
    background: var(--ha-white);
    border: 1px solid var(--ha-grey-border);
    border-radius: var(--ha-radius);
    overflow: hidden;
    animation: ha-skeleton-pulse 1.4s ease-in-out infinite;
}

.hepsi-angebote-skeleton .skeleton-img {
    width: 100%;
    padding-top: 75%;
    background: var(--ha-grey-bg);
}

.hepsi-angebote-skeleton .skeleton-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hepsi-angebote-skeleton .skeleton-line {
    height: 12px;
    background: var(--ha-grey-bg);
    border-radius: 4px;
}

.hepsi-angebote-skeleton .skeleton-line.short {
    width: 60%;
}

.hepsi-angebote-skeleton .skeleton-line.long {
    width: 90%;
}

.hepsi-angebote-skeleton .skeleton-price {
    height: 20px;
    width: 50%;
    background: var(--ha-grey-bg);
    border-radius: 4px;
    margin-top: 4px;
}

/* ==========================================================================
   Fade-In nach Tab-Wechsel
   ========================================================================== */

@keyframes ha-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hepsi-angebote-date-section.is-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.hepsi-angebote-date-section.fade-in {
    animation: ha-fade-in 0.3s ease forwards;
}

/* ==========================================================================
   Smooth Scroll für Anker-Navigation
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Responsive – Tablet (768px – 1023px)
   ========================================================================== */

@media (max-width: 1023px) {
    .hepsi-angebote-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hepsi-angebote-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }

    .hepsi-angebote-highlights__card {
        flex: 0 0 240px;
    }

    .hepsi-angebote-highlights__nav.prev {
        left: -12px;
    }

    .hepsi-angebote-highlights__nav.next {
        right: -12px;
    }
}

/* ==========================================================================
   Responsive – Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
    .hepsi-angebote-page {
        padding: 16px 12px 48px;
    }

    .hepsi-angebote-product-grid {
        grid-template-columns: 1fr;
    }

    .hepsi-angebote-skeleton {
        grid-template-columns: 1fr;
    }

    .hepsi-angebote-highlights__card {
        flex: 0 0 200px;
    }

    .hepsi-angebote-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .hepsi-angebote-date-filter {
        overflow-x: auto;
        white-space: nowrap;
    }

    .hepsi-angebote-highlights__nav {
        display: none; /* Auf Mobile: Swipe reicht aus */
    }

    .hepsi-angebote-date-section > h2 {
        font-size: 1.05rem;
    }

    .hepsi-angebote-filter__toggle span.filter-label {
        display: none; /* Nur Icon auf sehr kleinen Screens */
    }
}

/* ==========================================================================
   Mobile – kleines Grid (2 Spalten ab 480px)
   ========================================================================== */

@media (min-width: 480px) and (max-width: 767px) {
    .hepsi-angebote-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hepsi-angebote-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Dauerangebote-Sektion
   ========================================================================== */

.hepsi-angebote-permanent {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border, #e5e7eb);
}

.hepsi-angebote-permanent__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #111827);
    margin-bottom: 0.5rem;
}

.hepsi-angebote-permanent__intro {
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hepsi-angebote-category-section--permanent {
    opacity: 0.92;
}

/* ==========================================================================
   FIXES: BEM-Klassen aus Template die im Original-CSS fehlten
   ========================================================================== */

/* Highlights wrapper */
.hepsi-angebote-highlights__wrapper {
    position: relative;
    overflow: hidden;
}

/* Highlight card sub-elements */
.hepsi-angebote-highlights__card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--ha-radius, 8px) var(--ha-radius, 8px) 0 0;
    background: #f5f5f5;
}
.hepsi-angebote-highlights__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hepsi-angebote-highlights__card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3fad9 0%, #9dc043 100%);
}
.hepsi-angebote-highlights__card-name {
    display: block;
    padding: 8px 12px 0;
    font-weight: 700;
    color: #24583e;
    font-size: 14px;
}
.hepsi-angebote-highlights__card-count {
    display: block;
    padding: 0 12px 12px;
    font-size: 12px;
    color: #555;
}

/* Nav buttons */
.hepsi-angebote-highlights__nav--prev,
.hepsi-angebote-highlights__nav--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #9dc043;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #24583e;
    transition: all 0.2s ease;
}
.hepsi-angebote-highlights__nav--prev { left: 8px; }
.hepsi-angebote-highlights__nav--next { right: 8px; }
.hepsi-angebote-highlights__nav--prev:hover,
.hepsi-angebote-highlights__nav--next:hover {
    background: #9dc043;
    color: white;
}
.hepsi-angebote-highlights__nav svg {
    width: 18px;
    height: 18px;
}

/* Tab active state */
.hepsi-angebote-tabs__tab--active {
    color: #24583e !important;
    border-bottom: 3px solid #9dc043;
    font-weight: 700;
}

/* Controls wrapper (tabs + filter row) */
.hepsi-angebote-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

/* Date filter items */
.hepsi-angebote-date-filter__item {
    display: inline-block;
    padding: 8px 16px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.hepsi-angebote-date-filter__item:hover,
.hepsi-angebote-date-filter__item--active {
    color: #24583e;
    border-bottom-color: #9dc043;
}

/* Date section heading */
.hepsi-angebote-date-section__heading {
    font-size: 1.8em;
    color: #24583e;
    margin: 32px 0 16px;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
}

/* Category section heading */
.hepsi-angebote-category-section__heading {
    font-size: 1.2em;
    color: #24583e;
    margin: 16px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #9dc043;
}

/* Product card sub-elements */
.hepsi-angebote-product-card__image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 12px;
}
.hepsi-angebote-product-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.hepsi-angebote-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #9dc043;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}
.hepsi-angebote-product-card__body {
    padding: 12px;
}
.hepsi-angebote-product-card__category {
    font-size: 11px;
    text-transform: uppercase;
    color: #9dc043;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hepsi-angebote-product-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #24583e;
    margin-bottom: 8px;
}
.hepsi-angebote-product-card__link {
    text-decoration: none;
    color: inherit;
}
.hepsi-angebote-product-card__unit {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}
.hepsi-angebote-product-card__list-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border: 1px solid #9dc043;
    background: transparent;
    color: #24583e;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.hepsi-angebote-product-card__list-btn:hover {
    background: #9dc043;
    color: white;
}

/* Filter panel elements */
.hepsi-angebote-filter__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hepsi-angebote-filter__item {
    padding: 6px 0;
}
.hepsi-angebote-filter__label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #24583e;
}
.hepsi-angebote-filter__checkbox {
    accent-color: #9dc043;
    width: 16px;
    height: 16px;
}
.hepsi-angebote-filter__count {
    color: #999;
    font-size: 12px;
}

/* Content wrapper */
.hepsi-angebote-content {
    min-height: 400px;
}

/* Empty state */
.hepsi-angebote-empty {
    text-align: center;
    padding: 48px 24px;
    color: #555;
    font-size: 16px;
}


/* ==========================================================================
   FIX: Rabatt-Badge Konflikte auf Angebotsseite
   ========================================================================== */

/* Das rote discount-right Badge aus dem Child Theme price HTML ausblenden —
   wir haben bereits unser eigenes grünes Badge oben links auf der Karte */
.hepsi-angebote-product-card .discount-right,
.hepsi-angebote-product-card .discount {
    display: none !important;
}

/* Das Shoptimizer Sale-Flash Badge (grünes oben links) ausblenden —
   wir verwenden unser eigenes .hepsi-angebote-product-card__badge */
.hepsi-angebote-product-card .onsale,
.hepsi-angebote-product-card .woocommerce-sale-flash {
    display: none !important;
}

/* Preis-Box im Karten-Kontext besser positionieren */
.hepsi-angebote-product-card .price-tag-right {
    position: relative;
    z-index: 1;
}

/* Unit-Info Duplikate: die lose unit-price Zeile außerhalb der price-box ausblenden */
.hepsi-angebote-product-card__unit {
    display: none;
}


/* ==========================================================================
   FIX: Grünes Badge oben links entfernen + Rabatt im Preis-Block zeigen
   ========================================================================== */

/* Unser eigenes grünes Badge oben links auf der Karte ausblenden */
.hepsi-angebote-product-card__badge {
    display: none !important;
}

/* Das discount-right Badge aus dem Child Theme Price HTML WIEDER einblenden
   (wurde vorher versteckt, soll aber wie auf Produktseite sichtbar sein) */
.hepsi-angebote-product-card .discount-right {
    display: block !important;
}

/* Einkaufsliste-Button: grün gefüllt wie auf Produktseite */
.hepsi-angebote-product-card__list-btn {
    background: #9dc043 !important;
    color: white !important;
    border-color: #9dc043 !important;
}
.hepsi-angebote-product-card__list-btn:hover {
    background: #8ab038 !important;
}


/* ==========================================================================
   FIX: Rabatt-Badge Positionierung in Produktkarten
   ========================================================================== */

/* Price-tag im Karten-Kontext: kein Float, volle Breite */
.hepsi-angebote-product-card .price-tag-right {
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

/* Discount Badge innerhalb der price-box positionieren */
.hepsi-angebote-product-card .discount-right {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 4px;
}

/* Produktname darf nicht vom Badge überlappt werden */
.hepsi-angebote-product-card__name {
    clear: both;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   FIX: Breite, Badge-Stil, Filter-Dropdown
   ========================================================================== */

/* 1) BREITE: Volle Breite wie Elementor-Seiten */
.hepsi-angebote-page {
    max-width: 1400px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Shoptimizer content-area auf volle Breite */
.page-template-template-angebote .content-area,
.page-template-template-angebote-php .content-area {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
}
/* Nur die Col-Full INNERHALB des Main-Contents voll aufziehen —
   Topbar/Header/Menu behalten ihre Shoptimizer-Standard-Ränder. */
.page-template-template-angebote .site-content .col-full,
.page-template-template-angebote-php .site-content .col-full {
    max-width: 100% !important;
    padding: 0 !important;
}
/* Sidebar ausblenden auf Angebotsseite */
.page-template-template-angebote .widget-area,
.page-template-template-angebote-php .widget-area {
    display: none !important;
}

/* Topbar-Background Edge-to-Edge, Content bleibt 1440-zentriert.
   Shoptimizer limitiert .topbar-wrapper.col-full auf 1440 → bei >1440vw bricht die
   Farbe ab. Lösung: box-shadow + clip-path (malt Farbe seitlich ins Unendliche,
   clippt vertikal auf Elementhöhe). */
.page-template-template-angebote .topbar-wrapper,
.page-template-template-angebote-php .topbar-wrapper {
    box-shadow: 0 0 0 100vmax var(--ha-topbar-bg, #f3fad9);
    clip-path: inset(0 -100vmax);
}

/* Breadcrumb mit dem Angebote-Content alignen (max-w 1400, padding 24).
   Vertikaler Abstand: 20 oben (Luft zum Menü), 12 unten (kompakter zur Highlights-H2). */
.page-template-template-angebote .woocommerce-breadcrumb,
.page-template-template-angebote-php .woocommerce-breadcrumb {
    max-width: 1400px !important;
    margin: 20px auto 12px !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* 2) BADGE: Stil exakt wie Produktseite (rot, eckig) — 
   Das discount-right wird bereits vom Child Theme gerendert.
   Wir müssen nur sicherstellen dass unser CSS es nicht überschreibt. */
.hepsi-angebote-product-card .discount-right {
    display: inline-block !important;
    position: static !important;
    background: #e53935 !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* 3) FILTER-DROPDOWN: Sichtbarkeit und Animation */
.hepsi-angebote-filter__panel {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 200;
    min-width: 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 16px;
    animation: hepsiSlideIn 0.2s ease;
}
.hepsi-angebote-filter__panel.is-open {
    display: block !important;
}
.hepsi-angebote-filter {
    position: relative;
}
@keyframes hepsiSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Filter toggle button styling */
.hepsi-angebote-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #24583e;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.hepsi-angebote-filter__toggle:hover {
    border-color: #9dc043;
    background: #f3fad9;
}
.hepsi-angebote-filter__toggle svg {
    width: 18px;
    height: 18px;
}


/* FIX: Filter-Panel nutzt hidden-Attribut statt is-open Klasse */
.hepsi-angebote-filter__panel[hidden] {
    display: none !important;
}
.hepsi-angebote-filter__panel:not([hidden]) {
    display: block !important;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 200;
    min-width: 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 16px;
    animation: hepsiSlideIn 0.2s ease;
}


/* ==========================================================================
   FIX: Seitentitel ausblenden + einheitlicher Hintergrund
   ========================================================================== */

/* WordPress Seitentitel Angebote ausblenden */
.page-template-template-angebote .entry-title,
.page-template-template-angebote-php .entry-title,
.page-template-template-angebote .page-title,
.page-template-template-angebote-php .page-title,
.hepsi-angebote-page > .entry-header,
.hepsi-angebote-page > h1:first-child {
    display: none !important;
}

/* Einheitlicher Hintergrund – gleiche Farbe wie restliche Seite */
.hepsi-angebote-page {
    background: transparent !important;
}
.hepsi-angebote-highlights {
    background: transparent !important;
}

/* Auch den Content-Area und Body-Hintergrund angleichen */
.page-template-template-angebote .content-area,
.page-template-template-angebote-php .content-area,
.page-template-template-angebote .site-main,
.page-template-template-angebote-php .site-main {
    background: transparent !important;
}


/* ==========================================================================
   FIX: Filter Fullscreen Overlay (wie Aldi), 4-Spalten Grid, Mobile 2-Spalten
   ========================================================================== */

/* --- FILTER: Fullscreen Overlay statt Dropdown --- */
.hepsi-angebote-filter__panel:not([hidden]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: unset !important;
    z-index: 9999 !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 80px 24px 24px !important;
    overflow-y: auto !important;
    animation: hepsiFadeIn 0.25s ease !important;
}

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

/* Schließen-Button oben rechts im Fullscreen Filter */
.hepsi-angebote-filter__panel:not([hidden])::before {
    content: ✕;
    position: fixed;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: #24583e;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Überschrift im Filter */
.hepsi-angebote-filter__panel:not([hidden])::after {
    content: Filter;
    position: fixed;
    top: 24px;
    left: 24px;
    font-size: 24px;
    font-weight: 700;
    color: #24583e;
    z-index: 10000;
    pointer-events: none;
}

/* Filter-Liste im Fullscreen größer */
.hepsi-angebote-filter__panel .hepsi-angebote-filter__list {
    max-width: 600px;
    margin: 0 auto;
}
.hepsi-angebote-filter__panel .hepsi-angebote-filter__item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}
.hepsi-angebote-filter__panel .hepsi-angebote-filter__label {
    font-size: 18px !important;
}
.hepsi-angebote-filter__panel .hepsi-angebote-filter__checkbox {
    width: 22px !important;
    height: 22px !important;
}
.hepsi-angebote-filter__panel .hepsi-angebote-filter__count {
    font-size: 16px !important;
}

/* --- FILTER TOGGLE: Text soll lesbar bleiben beim Klick --- */
.hepsi-angebote-filter__toggle,
.hepsi-angebote-filter__toggle:focus,
.hepsi-angebote-filter__toggle:active,
.hepsi-angebote-filter__toggle:visited {
    color: #24583e !important;
    background: white !important;
    outline: none !important;
}

/* --- GRID: 4 Spalten Desktop, 2 Mobile (wie Aldi) --- */
.hepsi-angebote-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

/* Tablet: 3 Spalten */
@media (max-width: 1200px) {
    .hepsi-angebote-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet klein: 2 Spalten */
@media (max-width: 768px) {
    .hepsi-angebote-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Filter Fullscreen: etwas weniger Padding */
    .hepsi-angebote-filter__panel:not([hidden]) {
        padding: 60px 16px 16px !important;
    }
}

/* Mobile klein: immer 2 Spalten (wie Aldi) */
@media (max-width: 480px) {
    .hepsi-angebote-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Kleinere Produktkarten auf Mobile */
    .hepsi-angebote-product-card__body {
        padding: 8px !important;
    }
    .hepsi-angebote-product-card__name {
        font-size: 13px !important;
    }
    .hepsi-angebote-product-card .sale-price {
        font-size: 1.4em !important;
    }
}


/* ==========================================================================
   FIX: Kompaktere Produktkarten (wie Aldi ~280x474px)
   ========================================================================== */

/* Karten kompakter */
.hepsi-angebote-product-card {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: white;
}

/* Bild kleiner – weniger Padding, kleineres Aspect Ratio */
.hepsi-angebote-product-card__image-wrapper {
    aspect-ratio: 1 / 1 !important;
    padding: 8px !important;
    max-height: 180px;
}

/* Body kompakter */
.hepsi-angebote-product-card__body {
    padding: 8px 12px 12px !important;
}

/* Kategorie-Label kleiner */
.hepsi-angebote-product-card__category {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

/* Produktname kompakter */
.hepsi-angebote-product-card__name {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
}

/* Preis-Bereich kompakter */
.hepsi-angebote-product-card .price-tag-right {
    padding: 4px 0 !important;
}
.hepsi-angebote-product-card .price-box {
    padding: 8px !important;
}
.hepsi-angebote-product-card .sale-price {
    font-size: 1.6em !important;
}
.hepsi-angebote-product-card .original-price {
    font-size: 12px !important;
}
.hepsi-angebote-product-card .additional-info {
    font-size: 11px !important;
}
.hepsi-angebote-product-card .discount-right {
    font-size: 13px !important;
    padding: 4px 10px !important;
}

/* Einkaufsliste-Button kompakter */
.hepsi-angebote-product-card__list-btn {
    padding: 8px !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* Pseudo-Elemente für Filter-Header per CSS entfernen (JS macht das jetzt) */
.hepsi-angebote-filter__panel:not([hidden])::before,
.hepsi-angebote-filter__panel:not([hidden])::after {
    display: none !important;
}


/* ==========================================================================
   STICKY DATE BAR + SCROLL PROGRESS (Aldi-Style)
   ========================================================================== */

/* Sticky-Stack: CSS-Variablen werden per JS mit echten Höhen befüllt.
   Fallback-Werte für SSR / deaktiviertes JS. iOS: env(safe-area-inset-top)
   fängt Dynamic Island / Notch ab (benötigt viewport-fit=cover im Meta). */
:root {
    --ha-menu-h: 52px;      /* .col-full-nav (sticky Hauptmenü) */
    --ha-controls-h: 52px;  /* .hepsi-angebote-controls (Wochen-Tabs) */
    --ha-safe-top: env(safe-area-inset-top, 0px);
}

.hepsi-angebote-controls {
    position: sticky !important;
    top: calc(var(--ha-menu-h) + var(--ha-safe-top)) !important;
    z-index: 500 !important;
    background: #fff !important;
    margin: 0 -24px !important;
    padding: 0 24px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hepsi-angebote-date-filter {
    position: sticky !important;
    top: calc(var(--ha-menu-h) + var(--ha-controls-h) + var(--ha-safe-top)) !important;
    z-index: 499 !important;
    background: #fff !important;
    margin: 0 -24px !important;
    padding: 0 24px !important;
    border-bottom: 1px solid #e8e8e8;
}

/* Mobile: nur EIN sticky Element (Research: Smashing / Aldi-Pattern).
   Haupt-Menü ist auf Mobile ohnehin im Burger → kein sticky col-full-nav.
   Controls (Tabs + FILTER) scrollen mit weg; Date-Filter bleibt oben. */
@media (max-width: 767px) {
    .hepsi-angebote-controls {
        position: static !important;
        box-shadow: none !important;
        margin: 0 -16px !important;
        padding: 8px 16px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .hepsi-angebote-tabs {
        flex: 1 1 auto;
        min-width: 0;
    }
    .hepsi-angebote-filter {
        flex: 0 0 auto;
        margin-left: auto;
    }
    .hepsi-angebote-date-filter {
        top: var(--ha-safe-top) !important;
        margin: 0 -16px !important;
        padding: 0 16px !important;
    }
}

/* Sehr schmale Viewports: Tabs + FILTER bleiben auf EINER Zeile — Filter-Button
   wird kompakter. Kein Column-Break mehr, der User will keine 3-Zeilen-Schichtung. */
@media (max-width: 420px) {
    .hepsi-angebote-controls {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    .hepsi-angebote-filter {
        flex: 0 0 auto !important;
    }
    .hepsi-angebote-filter__toggle {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* Datums-Filter Items mit Fortschrittsbalken */
.hepsi-angebote-date-filter__item {
    position: relative !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
}

/* Fortschrittsbalken unter jedem Datums-Filter */
.hepsi-angebote-date-filter__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #9dc043;
    transition: width 0.15s linear;
    border-radius: 2px;
}

/* Aktiver Datums-Filter: voller Balken */
.hepsi-angebote-date-filter__item--active::after {
    width: 100%;
}

/* Aktuell scrollender Datums-Filter: Balken wächst */
.hepsi-angebote-date-filter__item--scrolling::after {
    /* width wird per JS gesetzt */
    background: #9dc043;
}

.hepsi-angebote-date-filter__item--active,
.hepsi-angebote-date-filter__item--scrolling {
    color: #24583e !important;
}

/* Bereits besuchte (abgeschlossene) Datums-Filter */
.hepsi-angebote-date-filter__item--done::after {
    width: 100%;
    background: #9dc043;
    opacity: 0.5;
}

/* (scroll-margin-top wird bereits oben auf .hepsi-angebote-date-section gesetzt) */


/* ==========================================================================
   ALDI-STYLE PRODUKTKARTEN – Komplett-Redesign
   ========================================================================== */

/* --- Karte --- */
.hepsi-angebote-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s;
}
.hepsi-angebote-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* --- Bild: größer, ca. 50% der Karte --- */
.hepsi-angebote-product-card__image-wrapper {
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
    padding: 16px !important;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

/* --- Body --- */
.hepsi-angebote-product-card__body {
    padding: 12px 14px 14px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* --- Warengruppe (Marke bei Aldi) --- */
.hepsi-angebote-product-card__category {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #888 !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
}

/* --- Produktname --- */
.hepsi-angebote-product-card__name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
}

/* --- Preis-Bereich: Aldi-Style --- */

/* discount-right wieder anzeigen: GELBER Kasten, roter Text */
.hepsi-angebote-product-card .discount-right {
    display: inline-block !important;
    background: #ffe500 !important;
    color: #c41a1a !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

/* Sale-Preis: ROTER Kasten, weißer Text */
.hepsi-angebote-product-card .sale-price {
    display: inline-block !important;
    background: #c41a1a !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 1.5em !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* Alter Preis: rot, durchgestrichen, neben/unter dem Sale-Preis */
.hepsi-angebote-product-card .original-price {
    font-size: 13px !important;
    color: #c41a1a !important;
    margin-top: 2px !important;
}
.hepsi-angebote-product-card .original-price .strikethrough {
    text-decoration: line-through !important;
    color: #c41a1a !important;
}
/* vorher: Text ausblenden, nur den Preis zeigen */
.hepsi-angebote-product-card .original-price {
    font-size: 12px !important;
}

/* Price-Box Layout */
.hepsi-angebote-product-card .price-box {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.hepsi-angebote-product-card .price-tag-right {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Zusatz-Infos (Gewicht, Grundpreis) */
.hepsi-angebote-product-card .additional-info {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
}
.hepsi-angebote-product-card .availability {
    display: none !important;
}

/* --- Einkaufsliste Button: Outline wie Aldi --- */
.hepsi-angebote-product-card__list-btn {
    background: transparent !important;
    color: #24583e !important;
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: auto !important;
    cursor: pointer;
    transition: all 0.2s;
}
.hepsi-angebote-product-card__list-btn:hover {
    border-color: #9dc043 !important;
    background: #f3fad9 !important;
    color: #24583e !important;
}

/* --- Produkte OHNE Rabatt (nur normaler Preis) --- */
.hepsi-angebote-product-card .price-tag-right:not(:has(.discount-right)) .sale-price {
    background: #c41a1a !important;
}


/* ==========================================================================
   FIX: Sticky-Lücke schließen + Preis als echte Box wie Aldi
   ========================================================================== */

/* Sticky Controls: border-top für visuelle Trennung zum Menü
   (top/margin steuert der konsolidierte Block oben via CSS-Variablen). */
.hepsi-angebote-controls {
    margin-top: 0 !important;
    border-top: 1px solid #e8e8e8;
}

/* Beide Leisten: solider weißer Hintergrund, kein Durchscheinen */
.hepsi-angebote-controls,
.hepsi-angebote-date-filter {
    background: white !important;
    backdrop-filter: none !important;
}

/* --- PREIS: Echte Box wie bei Aldi --- */

/* Rabatt-Badge: gelbe Box */
.hepsi-angebote-product-card .discount-right {
    display: inline-block !important;
    background: #ffe500 !important;
    color: #c41a1a !important;
    padding: 4px 10px !important;
    border-radius: 3px 3px 0 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
}

/* Preis-Kasten: rot, direkt unter Rabatt-Badge */
.hepsi-angebote-product-card .sale-price {
    display: block !important;
    background: #c41a1a !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 0 4px 4px 4px !important;
    font-size: 1.6em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    width: fit-content !important;
}

/* Alter Preis: IN der roten Box, kleiner, weiß/durchgestrichen */
.hepsi-angebote-product-card .original-price {
    display: block !important;
    background: #c41a1a !important;
    color: rgba(255,255,255,0.8) !important;
    padding: 0 12px 6px !important;
    border-radius: 0 0 4px 4px !important;
    font-size: 12px !important;
    margin-top: -1px !important;
    width: fit-content !important;
}
.hepsi-angebote-product-card .original-price .strikethrough,
.hepsi-angebote-product-card .original-price .original-price_st {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: line-through !important;
}
/* vorher: Text auch weiß */
.hepsi-angebote-product-card .original-price {
    color: rgba(255,255,255,0.7) !important;
}

/* Price-Box: Discount + Preis + Alter Preis als zusammenhängende Box */
.hepsi-angebote-product-card .price-box {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-top: 8px !important;
}

/* Produkte OHNE Rabatt: Preis trotzdem in roter Box */
.hepsi-angebote-product-card .price-box:not(:has(.discount-right)) .sale-price {
    border-radius: 4px !important;
}

