/* ===================================
   CUSTOM FONTS
   =================================== */
@font-face {
    font-family: 'BangersCustom';
    src: url('../fonts/Bangers-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700; /* Standard bold weight */
    font-style: normal;
    font-display: swap;
}


.font-nunito-semibold {
    font-family: 'Nunito', Arial, sans-serif !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   CURSOR FIX - Kein blinkender Text-Cursor
   =================================== */

/* Verhindert Text-Selektion und Cursor überall */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default !important;
}

/* Erlaubt Text-Selektion nur in Eingabefeldern */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

/* Spezielle Cursor für interaktive Elemente */
button,
a,
.btn,
.open-modal-btn,
.product-card,
.product-card-new,
[role="button"],
.carousel-item-card,
select,
.scroll-btn,
.show-more-extras,
.product-info-link {
    cursor: pointer !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Scrollbare Bereiche */
.product-scroll,
.carousel-container,
.menu-carousel,
.zeit-scroll-container,
#categoryChipsSection {
    cursor: grab !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.product-scroll:active,
.carousel-container:active,
.menu-carousel:active,
.zeit-scroll-container:active,
#categoryChipsSection:active {
    cursor: grabbing !important;
}

/* Radio/Checkbox Labels bleiben klickbar */
.form-check-label,
.btn-size,
.toggle-container label {
    cursor: pointer !important;
}

/* ===================================
   GLOBAL STYLES
   =================================== */
html, body {
    overscroll-behavior-x: none;
    max-width: 100%;
}

body {
    touch-action: pan-y pinch-zoom;
}

* {
    max-width: 100%;
}

/* ===================================
   BOTTOM NAVIGATION
   =================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1320px;
    height: 60px; /* Reduced height */
    border-radius: 10px;
    background-color: #C25B3A;
    z-index: 1031;
    display: flex;
    margin-bottom: 10px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1); 
}

@media (max-width: 767px) {
    .bottom-nav {
        left: 0;
        transform: none;
        max-width: none;
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
    }
}

/* New rule to hide bottom-nav on desktop */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: row; /* Changed to row */
    gap: 5px; /* Added gap */
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 800; /* Added font-weight */
    transition: color 0.2s; /* Added transition */
}

.bottom-nav a img { /* New rule for images */
    width: 24px;
    height: 24px;
    filter: invert(1); /* Default: white */
    transition: filter 0.2s ease-in-out;
}

.bottom-nav a.active {
    color: #F2A900; /* Correct active text color */
    font-weight: 800; /* Ensure active text is also bold */
}

.bottom-nav a.active img {
    /* Generated filter for white to #F2A900 */
    filter: invert(72%) sepia(85%) saturate(300%) hue-rotate(340deg) brightness(100%) contrast(100%);
}

.bottom-nav a .badge {
    position: absolute;
    top: 2px;
    right: 40%;
    background-color: #ffc107;
    color: #000;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* ===================================
   NAVIGATION
   =================================== */
.main-navbar {
    background-color: #ddad2a;
}

.main-navbar .container-fluid {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;    /* Match hero-slider px-3 */
    padding-right: 1rem;   /* Match hero-slider px-3 */
}

@media (min-width: 768px) {
    /* Match hero-slider px-md-4 */
    .main-navbar .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.main-navbar .navbar-brand img {
    height: 100px;
}

/* FIX: Ensure .container in navbar keeps correct height */
.main-navbar .container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-section {
    height: 30vh;
    border-radius: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
}

.hero-bg,
.hero-bg-next {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-bg {
    opacity: 1;
}

.hero-bg-next {
    opacity: 0;
}


/* ===================================
   MENU CAROUSEL
   =================================== */
.menu-carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.menu-carousel::-webkit-scrollbar {
    display: none;
}

.menu-carousel .card {
    scroll-snap-align: start;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .menu-carousel .card {
        min-width: 32%;
        max-width: 32%;
    }
}

/* ===================================
   PRODUCT ITEMS (GENERAL)
   =================================== */
.product-item h3 {
    font-size: 1.0rem;
}

@media (max-width: 576px) {
    .product-item h3 {
        font-size: 0.95rem !important;
    }
    .product-item .text-muted.small {
        font-size: 0.8rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-item img {
        width: 70px !important;
        height: 70px !important;
    }
}

/* ===================================
   PRODUCT SCROLL (HORIZONTAL)
   =================================== */
.product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-scroll-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

/* ===================================
   PRODUCT CARD (GENERAL)
   =================================== */
.product-card {
    border: none;
    background: #fafafa;
    border-radius: 10px;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}



.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-card .card-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #f6f0dd;
}

.product-card-title {
    font-size: 0.85rem;
    line-height: 1.3;
    min-height: calc(0.85rem * 1.3 * 2); /* Mindesthöhe für 2 Zeilen reservieren */
    margin-bottom: 6px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

.product-card-description {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.7rem; /* Angeglichen an .product-card-new-desc */
    line-height: 1.25; /* Angeglichen an .product-card-new-desc */
    min-height: calc(0.7rem * 1.25 * 2); /* Mindesthöhe für 2 Zeilen reservieren */
    color: #6c757d;
    margin-bottom: 6px;
    
    /* Umstellung auf mehrzeilige Darstellung wie .product-card-new-desc */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-width: 0;

    position: relative;
    padding-right: 15px; /* Etwas Platz für Fade-Out */
}

.product-card-description::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(246, 240, 221, 0), #f6f0dd);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.product-card-price {
    font-size: 1.1rem; /* Angeglichen an .product-card-new-price */
    line-height: 1; /* Angeglichen an .product-card-new-price */
    color: #000000;
    font-family: 'Nunito', sans-serif;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
}

/* ===================================
   ZEITBASIERTE ANGEBOTE (SPECIFIC)
   =================================== */
.zeit-scroll-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.zeit-scroll-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .zeit-item {
        width: 160px;
    }
    .zeit-scroll-container .product-card {
        width: 160px !important;
    }
}

/* Zeit-Item spezifische Styles */
.zeit-item .product-card {
    cursor: default;
    width: 180px;
    border: none;
    background-color: #fafafa;
}

.zeit-item .badge-container {
    z-index: 10;
}

.zeit-item .zeit-badge {
    background-color: rgba(255, 255, 255, 0.95); /* White background, as requested */
    color: #000; /* Black text, as requested */
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.zeit-item .product-card-img {
    height: 100px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.zeit-item .product-card-title {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zeit-item .price-special {
    font-size: 0.9rem;
}

.zeit-item .rating-container {
    background-color: #F8F9FA;
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.zeit-item .rating-icon {
    font-size: 0.7rem;
    color: green;
}

.zeit-item .rating-percentage {
    font-weight: bold;
}

.zeit-item .rating-count {
    color: #666;
    font-size: 0.7rem;
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.angebot-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}



/* ===================================
   BADGES & ICONS
   =================================== */

.treuepunkte-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 4px;
    flex-shrink: 0;
}

.badge-icon-img {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    object-fit: contain !important;
    display: inline-block !important;
    flex-shrink: 0;
}



/* ===================================
   SCROLL BUTTONS
   =================================== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.2s ease;
}

.scroll-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-btn-left {
    left: -20px;
}

.scroll-btn-right {
    right: -20px;
}

.scroll-btn i {
    font-size: 1.5rem;
    color: #333;
}

/* ===================================
   CATEGORY CHIPS
   =================================== */
#categoryChipsSection::-webkit-scrollbar {
    display: none;
}

#categoryChipsSection {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================================
   FORM CONTROLS
   =================================== */
.form-check-input:checked {
    background-color: #C25B3A !important;
    border-color: #C25B3A !important;
}

.size-price {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.1;
    display: inline-block;
    white-space: nowrap;
}

.extra-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    margin-left: auto;
    text-align: right;
    min-width: 60px;
}

.toggle-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.toggle-container input[type="radio"] {
    display: none;
}

.toggle-container label {
    border-radius: 50px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    cursor: default;
    border: 2px solid #d9230f;
    color: #d9230f;
    transition: all 0.3s ease;
}

.toggle-container input[type="radio"]:checked+label {
    background-color: #d9230f;
    color: #fff;
}

.input-group .form-control {
    max-width: 60px;
    min-width: 40px;
    padding: 0.25rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-color {
    background-color: #7D6F50;
}
.btn-lg.custom-pay-button {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem;
}

.open-modal-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   LAYOUT
   =================================== */
.main-container {
    padding-bottom: 180px;
}

.extra-hidden {
    transition: all 0.3s ease;
}

.display-none-important {
    display: none !important;
}

#qrcode {
    width: 100%;
}

/* ===================================
   MENU SECTION TITLE
   =================================== */
h2.menu-section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700; /* Nunito-Bold corresponds to 700 */
    font-size: 1.75rem;
    color: #343a40;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */
@media (min-width: 768px) {
    .product-scroll-item {
        flex: 0 0 190px;
    }
    .product-card-img {
        height: 120px;
    }
    .product-card-title {
        font-size: 0.95rem;
    }
    .product-card-description {
        font-size: 0.8rem;
    }
    .product-card-price {
        font-size: 1rem;
    }
    .product-card-rating {
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .product-scroll-item {
        flex: 0 0 210px;
    }
    .product-card-img {
        height: 140px;
    }
}

/* ===================================
   MODAL STYLES (FROM PHP)
   =================================== */
.size-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-size {
    flex: 1 1 calc(50% - 10px);
    min-width: 100px;
    text-align: center;
    padding: 0.5rem;
}

@media (min-width: 576px) {
    .btn-size {
        flex: 1 1 calc(33.333% - 10px);
        padding: 0.75rem;
    }
}

.btn-size.active {
    background-color: #bb2d3b !important;
    color: white !important;
}

.btn-size .size-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-size .size-price {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #bb2d3b;
    margin-top: 0.25rem;
}

@media (min-width: 576px) {
    .btn-size .size-name {
        font-size: 1rem;
    }
    .btn-size .size-price {
        font-size: 1em;
    }
}

.btn-check:checked + .btn-size .size-name,
.btn-check:checked + .btn-size .size-price {
    color: #ffffff !important;
}

.form-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.modal-title {
    font-size: 1rem !important;
}



.extra-group > legend {
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600;
}

@media (min-width: 768px) {
    .extra-group > legend {
        font-size: 1.1rem;
    }
}

.extra-group .form-check-label {
    font-weight: 500;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .extra-group .form-check-label {
        font-size: 0.95rem;
    }
}

.size-select-label {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .size-select-label {
        font-size: 1.1rem;
    }
}

.extra-price {
    color: #000;
    font-weight: 600;
}

.form-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
    font-weight: 600;
}

small.text-muted {
    font-size: 0.85rem;
}

.show-more-extras {
    color: #C25B3A;
    padding-left: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}



.more-extras {
    margin-top: 0.5rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background-color: #f8f9fa;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.rating-badge i {
    font-size: 0.9rem;
}

@media (min-width: 576px) {
    .rating-badge {
        gap: 4px;
        padding: 4px 8px;
        font-size: 0.85rem;
        margin-left: 8px;
    }
    .rating-badge i {
        font-size: 1rem;
    }
}

.attribute-item-image {
    width: 22px !important;
    height: 22px !important;
    margin-right: 6px !important;
    border-radius: 50%;
    object-fit: cover;
}



.product-image-modal {
    width: 100% !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    object-fit: cover !important;
}

@media (min-width: 768px) {
    .product-image-modal {
        /* max-height: 300px; */
    }
}

.modal-body-with-image {
    padding: 0 !important;
}

.modal-body-with-image > .p-3 {
    padding: 0.6rem !important;
}



h4 {
    font-size: 1rem !important;
}

@media (min-width: 768px) {
    h4 {
        font-size: 1.35rem;
    }
}

.product-description {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}



.product-badge {
    background-color: #fafafa !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 0.7rem !important;
    font-weight: normal !important;
    padding: 4px 8px !important;
}

@media (min-width: 768px) {
    .product-badge {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }
}

.badge-icon {
    height: 10px;
    width: auto;
    margin-right: 3px;
}

@media (min-width: 768px) {
    .badge-icon {
        height: 12px;
    }
}

.btn-add-to-cart {
    font-size: 0.95rem !important;
    padding: 0.55rem !important;
    font-weight: 600;
}

@media (min-width: 768px) {
    .btn-add-to-cart {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
}

.product-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .product-header {
        gap: 0.75rem;
    }
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

/* ===================================
   CAROUSEL STYLES (FROM PHP)
   =================================== */
.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 !important;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-items {
    display: inline-flex;
    gap: 6px !important;
}



@media (hover: hover) {
    .carousel-item-card:hover {
        border-color: #dee2e6;
    }
}

.carousel-item-card:active,
.carousel-item-card:focus,
.carousel-item-card:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

.carousel-item-card.selected {
    background-color: #C25B3A !important;
    border-color: #C25B3A !important;
    color: white;
}

.carousel-item-card.selected .carousel-item-name,
.carousel-item-card.selected .carousel-item-price {
    color: white;
}

.carousel-item-card input[type="checkbox"],
.carousel-item-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.carousel-item-image {
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 2px !important;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.carousel-item-name {
    font-size: 0.55rem !important;
    margin-bottom: 1px !important;
    font-weight: 500;
    word-wrap: break-word;
}

.carousel-item-price {
    font-size: 0.6rem !important;
    font-weight: 600;
    color: #bb2d3b;
}





/* ===================================
   ALLERGEN INFO ACCORDION
   =================================== */
#allergenCollapseContent .allergen-group {
    margin-bottom: 1rem;
}

#allergenCollapseContent .allergen-group:last-child {
    margin-bottom: 0;
}

#allergenCollapseContent .allergen-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

#allergenCollapseContent .allergen-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

#allergenCollapseContent .allergen-list li {
    padding: 0.2rem 0;
}

/* ===================================
   ATTRIBUTE FONTS
   =================================== */
/* Attributnamen (legend in fieldset) */
.extra-group > legend {
    font-family: 'Nunito', sans-serif;
    font-weight: 900; /* Black */
}

/* Attribut-Items (Checkboxen/Radio-Labels) */
.extra-group .form-check-label,
.carousel-item-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800; /* ExtraBold */
}

/* ===================================
   STATUS BAR (unter Slider)
   =================================== */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800; /* Bolder */
    font-size: 0.95rem; /* Slightly larger */
    color: #000000; /* Darker, 50% transparent red */
    background-color: #f6f0dd; /* Changed from #7D6F50 */
    border-radius: 25px; /* Changed from 8px */
    flex-wrap: nowrap;
    white-space: nowrap;
    color: #3C3C3C;
}

.status-bar .separator {
    color: #C25B3A; /* Darker, 50% transparent red */
    font-weight: 700; /* Bold */
}

@media (max-width: 576px) {
    .status-bar {
        font-size: 0.8rem; /* Keep existing media query adjustment */
        gap: 6px;
        padding: 6px 12px;
    }
}

/* Custom wrapper for status bar to remove container vertical padding */
.status-bar-wrapper.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Custom styles for product modal close button */
.product-card-img-wrapper .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-card-img-wrapper .btn-close:hover {
    opacity: 1;
}

/* ===================================
   MOBILE-FIRST PRODUCT CARD SYSTEM
   Ultra-Kompakt, Fixe Höhe, 1 Card/Zeile Mobile
   =================================== */

/* Category Title with Background Image */
.category-title-with-bg {
    font-family: 'BangersCustom', cursive;
    position: relative;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    
    /* OPTIMIERT FÜR SCHÄRFE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Verhindert unscharfes Rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    /* Bessere Bildqualität beim Skalieren */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Mindesthöhe für bessere Darstellung */
    min-height: 120px;
}

@media (min-width: 768px) {
    .category-title-with-bg {
        padding: 2rem 1rem;
        min-height: 150px;
    }
}

.category-title-with-bg::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-color: rgb(201 192 130 / 25%);/* Besserer Kontrast */
    z-index: 1;
}

.category-title-with-bg > span {
    position: relative;
    z-index: 2;
    font-size: 1.75rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .category-title-with-bg > span {
        font-size: 2.25rem;
    }
}

/* ===================================
   PRODUCT GRID - MOBILE FIRST
   =================================== */

   

.category-product-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 Card pro Zeile auf Mobile */
    gap: 0.75rem;
    padding: 0;
}

/* Tablet: 2 Spalten horizontal */
@media (min-width: 768px) {
    .category-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Desktop: 2-3 Spalten je nach Breite */
@media (min-width: 1200px) {
    .category-product-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 1400px) {
    .category-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   PRODUCT CARD - MOBILE (Horizontal Compact)
   =================================== */

.product-card-new {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    grid-template-columns: 100px 1fr; /* Kompaktes Bild auf Mobile */
    height: 110px; /* Fixe Höhe Mobile */
    position: relative;
}

.product-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.product-card-new:active {
    transform: scale(0.98);
}

/* ===================================
   IMAGE SECTION - MOBILE
   =================================== */



.product-card-new-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

/* Badges im Bild - MOBILE OPTIMIERT */


/* ===================================
   CONTENT SECTION - MOBILE KOMPAKT
   =================================== */

.product-card-new-body {
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    overflow: hidden;
    min-width: 0; /* Wichtig für text-overflow */
}

/* Title Row */
.product-card-new-row1 {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.product-card-new-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1.2;
    color: #343a40;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-width: 0;
}

/* Description mit Fade-Out */
.product-card-new-desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 1.25;
    color: #6c757d;
    margin: 0;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    padding-right: 15px;
    min-width: 0;
}

/* Fade-Out Effekt wie zeitbasierte Angebote */
.product-card-new-desc::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

/* Footer mit Preis, Produktinfo und Button */
.product-card-new-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    min-width: 0;
}

/* Price Section - Kompakt */
.product-card-new-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.product-card-new-price > span:first-child {
    font-family: 'BangersCustom', cursive;
    font-size: 1.1rem;
    color: #000000;
    line-height: 1;
}

.product-card-new-price .original-price {
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #6c757d;
    text-decoration: line-through;
    line-height: 1;
}

/* Produktinfo direkt nach Preis */
.product-card-new-price .product-info-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: #6c757d;
    cursor: default;
    text-decoration: none;
    line-height: 1.1;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-card-new-price .product-info-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Action Button - Kompakt */
.product-card-new-actions button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card-new-actions button i {
    font-size: 0.95rem;
}

/* ===================================
   SMALL MOBILE OPTIMIZATION (<360px)
   =================================== */

@media (max-width: 359px) {
    .product-card-new {
        grid-template-columns: 90px 1fr;
        height: 105px;
    }
    
    .product-card-new-title {
        font-size: 0.8rem;
    }
    
    .product-card-new-desc {
        font-size: 0.68rem;
    }
    
    .product-card-new-price > span:first-child {
        font-size: 1rem;
    }
}

/* ===================================
   TABLET BREAKPOINT (768px+)
   =================================== */

@media (min-width: 768px) {
    .product-card-new {
        grid-template-columns: 120px 1fr;
        height: 120px;
    }
    
    .product-card-new-badges {
        top: 10px !important;
        right: 10px !important;
        gap: 8px !important;
    }
    
    .product-card-new-badge-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .image-rating-badge {
        bottom: 10px !important;
        left: 10px !important;
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .image-rating-badge i {
        font-size: 0.8rem;
    }
    
    .product-card-new-body {
        padding: 0.65rem 0.8rem;
        gap: 0.3rem;
    }
    
    .product-card-new-title {
        font-size: 0.9rem;
        line-height: 1.25;
    }
    
    .product-card-new-desc {
        font-size: 0.75rem;
        line-height: 1.3;
        padding-right: 20px;
    }
    
    .product-card-new-desc::after {
        width: 50px;
    }
    
    .product-card-new-price > span:first-child {
        font-size: 1.25rem;
    }
    
    .product-card-new-price .original-price {
        font-size: 0.75rem;
    }
    
    .product-card-new-price .product-info-link {
        font-size: 0.7rem;
    }
    
    .product-card-new-actions button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .product-card-new-actions button i {
        font-size: 1rem;
    }
}

/* ===================================
   DESKTOP BREAKPOINT (1024px+)
   =================================== */

@media (min-width: 1024px) {
    .product-card-new {
        grid-template-columns: 135px 1fr;
        height: 135px;
    }
    
    .product-card-new-body {
        padding: 0.75rem 1rem;
        gap: 0.4rem;
    }
    
    .product-card-new-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-card-new-desc {
        font-size: 0.8rem;
        line-height: 1.35;
        padding-right: 25px;
    }
    
    .product-card-new-desc::after {
        width: 60px;
    }
    
    .product-card-new-price > span:first-child {
        font-size: 1.4rem;
    }
    
    .product-card-new-price .original-price {
        font-size: 0.8rem;
    }
    
    .product-card-new-price .product-info-link {
        font-size: 0.75rem;
    }
    
    .product-card-new-actions button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
    
    .product-card-new-actions button i {
        font-size: 1.05rem;
    }
    
    .product-card-new-badges {
        gap: 10px !important;
    }
    
    .product-card-new-badge-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    
    .image-rating-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ===================================
   LARGE DESKTOP (1200px+)
   =================================== */

@media (min-width: 1200px) {
    .product-card-new {
        grid-template-columns: 145px 1fr;
        height: 145px;
    }
    
    .product-card-new-badges {
        top: 8px;
        right: 8px;
    }
    
    .product-card-new-body {
        padding: 0.85rem 1.15rem;
        gap: 0.45rem;
    }
    
    .product-card-new-title {
        font-size: 1.05rem;
    }
    
    .product-card-new-desc {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .product-card-new-price > span:first-child {
        font-size: 1.5rem;
    }
    
    .product-card-new-price .original-price {
        font-size: 0.85rem;
    }
    
    .product-card-new-price .product-info-link {
        font-size: 0.8rem;
    }
    
    .product-card-new-actions button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    .product-card-new-actions button i {
        font-size: 1.1rem;
    }
}

/* ===================================
   EXTRA LARGE DESKTOP (1400px+)
   Bei 3 Spalten etwas kompakter
   =================================== */

@media (min-width: 1400px) {
    .product-card-new {
        grid-template-columns: 140px 1fr;
        height: 140px;
    }
}

/* ===================================
   ACCESSIBILITY & TOUCH OPTIMIZATION
   =================================== */

@media (hover: none) and (pointer: coarse) {
    /* Touch devices: Größere Touch-Targets */
    .product-card-new-actions button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
    
    .product-card-new:active {
        transform: scale(0.97);
    }
}

/* Focus State für Accessibility */
.product-card-new:focus-within {
    outline: 2px solid #d9230f;
    outline-offset: 2px;
}

/* ===================================
   LOADING STATE
   =================================== */

.product-card-new.loading {
    pointer-events: none;
    opacity: 0.6;
}

.product-card-new.loading .product-card-new-img {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   PRINT OPTIMIZATION
   =================================== */

@media print {
    .product-card-new {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .product-card-new-actions {
        display: none;
    }
}
/* ===================================
   PRODUCT CARD IMAGE WRAPPER - FIX
   =================================== */
.product-card-img-wrapper {
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ===================================
   BADGE SYSTEM - OPTIMIERT FÜR 5 BADGES
   =================================== */
.product-card-new-badges {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    z-index: 10 !important;
    max-height: calc(160px - 8px) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-card-new-badge-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: block;
    flex-shrink: 0;
}

.image-rating-badge {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    z-index: 20 !important;
}

.image-rating-badge i {
    color: #28a745 !important;
    font-size: 0.75rem !important;
}

/* ===================================
   CAROUSEL CARDS - FESTE HÖHE
   =================================== */
.carousel-item-card {
    min-width: 65px !important;
    max-width: 65px !important;
    width: 65px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    padding: 3px !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    white-space: normal;
    transition: all 0.2s ease;
    cursor: default;
    border: 2px solid transparent;
    background-color: #f8f9fa;
}

.carousel-item-name {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
    font-weight: 500;
    word-wrap: break-word;
    line-height: 1.2;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom override to remove padding-top from modal-content */
.modal-content {
    padding-top: 0 !important;
}
/* ===================================
   FIX FÜR ALTE PRODUCT-CARD BADGES
   =================================== */
.product-card .product-card-img-wrapper {
    height: 100px !important;
    min-height: 1px !important;
    max-height: 100px !important;
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.product-card .product-card-new-badges {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    z-index: 10 !important;
    max-height: calc(160px - 8px) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-card .product-card-new-badge-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px!important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.product-card .image-rating-badge {
    position: absolute !important;
    bottom: 4px !important;
    left: 4px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000 !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    padding: 3px 6px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    z-index: 20 !important;
}

.product-card .image-rating-badge i {
    color: #28a745 !important;
    font-size: 0.7rem !important;
}

/* Custom Carousel Indicator Dots */
.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 10px;
  height: 10px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: default;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
  border-radius: 50%; /* This makes it a circle */
}

.carousel-indicators .active {
  opacity: 1;
}
.special-price-color {
            color: #C25B3A !important;
        }