/* =================================================================
   BLAZE SLIDER – Framework CSS
   Ladereihenfolge: nach variables.css, auf allen Seiten (PageType=all)
   Quelle: sd24/themes/my-snackys/css/inlinecss/blaze.css
   ================================================================= */

/* === Blaze Slider Grundstruktur === */

.blaze-slider {
    --slides-to-show: 1.4;
    --slide-gap: 20px;
    direction: ltr;
    margin-bottom: 50px;
    overflow: visible;
    position: relative;
}

/* Track & Slide-Layout */

.blaze-track-container {
    overflow: visible;
}

.blaze-track {
    display: flex;
    gap: var(--slide-gap);
    will-change: transform;
    backface-visibility: hidden;
    touch-action: pan-y;
    --slide-width: calc(
            (100% - (var(--slides-to-show) - 1) * var(--slide-gap))
            / var(--slides-to-show)
    );
}

.blaze-track > * {
    box-sizing: border-box;
    width: var(--slide-width);
    flex-shrink: 0;
}

/* === Karten-Design === */

.blaze-track a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card {
    background: #fff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sd-shadow-blaze);
    border-radius: var(--sd-radius-base);
    position: relative;
}

.card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--sd-radius-base) var(--sd-radius-base) 0 0;
}

.card img,
.brand-logo {
    pointer-events: none;
}

.blaze-slider,
.blaze-track {
    touch-action: pan-y !important;
}

.card p {
    margin: 0 !important;
}

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 28px;
    gap: 6px;
    position: relative;
}

/* Brand-Zeile oben */

.logo-brand-slide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sd-text-light);
}

.brand-name {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
}

img.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Titel & Subtitle */

.blaze-card-title {
    font-family: var(--sd-font-heading);
    font-size: var(--sd-h5);
    font-weight: 600;
    color: var(--sd-text-heading);
    margin-top: 4px;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 13px;
    color: var(--sd-text-body);
}

/* Preise unten links */

.prices {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.old {
    text-decoration: line-through;
    color: var(--sd-text-light);
    font-size: 13px;
    font-weight: 500;
}

.new {
    color: var(--sd-text);
    font-weight: 700;
    font-size: 18px;
}

.discount {
    color: var(--sd-success-alt);
    font-weight: bold;
    font-size: 1em;
}

.saving {
    color: #222;
    font-size: 0.95em;
}

/* Pagination-Bullets */

.blaze-pagination {
    display: none;
    justify-content: center;
    margin-top: 16px;
    gap: 8px;
}

@media (max-width: 768px) {
    .blaze-pagination {
        display: flex;
    }
    .blaze-prev, .blaze-next {
        display: none !important;
    }
}

.blaze-pagination button {
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    text-indent: -9999px;
    font-size: 0;
    width: 12px;
    height: 12px;
}

.blaze-pagination button.active {
    background: var(--sd-text);
}

/* Pfeile */

.blaze-prev,
.blaze-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.58);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.11);
    transition: background 0.15s;
}

.blaze-prev:hover,
.blaze-next:hover {
    background: rgba(0,0,0,0.35);
}

.blaze-prev { left: 10px; }
.blaze-next { right: 10px; }

.blaze-prev:before,
.blaze-next:before {
    content: '';
    display: inline-block;
    border: solid #fff;
    border-width: 0 3px 3px 0;
}

.blaze-prev:before {
    transform: rotate(135deg);
}

.blaze-next:before {
    transform: rotate(-45deg);
}

/* === Responsives Layout === */

@media (max-width: 600px) {
    .blaze-slider { --slide-gap: 10px; }
    .blaze-track {
        --slide-width: calc(100% - 2 * var(--slide-gap));
        overflow: visible !important;
    }
    .blaze-slider { --slides-to-show: 1.4; }
}

.blaze-track {
    overflow: visible !important;
}

@media (max-width: 1155px) {
    .blaze-slider { --slides-to-show: 3.4; }
    .blaze-track-container { overflow: visible; }
}

/* Badge oben links */

.saving-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--sd-badge-sale);
    color: #fff;
    border-radius: var(--sd-radius-pill);
    box-shadow: var(--sd-shadow-badge);
    z-index: 2;
    display: none;
    align-items: center;
    font-size: 11px !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Plus-Button unten rechts */

.card-add-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--sd-text-heading);
    color: #fff;
    font-size: 24px;
    line-height: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.forgotsth.text-center {
    margin-top: 50px;
    margin-bottom: 50px;
}
