/**
 * JuLis Spreadshop Bridge — Storefront Styles
 *
 * Folgt dem JuLis Corporate Design (Styleguide v1):
 *   - Primärfarben: Magenta #E6007E, Yellow #FFED00, Cyan #009EE3
 *   - Sekundärfarben: Soft Magenta #F5B5D2, Soft Yellow #FFF7B2, Soft Cyan #A1DAF8
 *   - Schriftfamilie: Anybody (self-hosted, OFL-Lizenz)
 *   - Subheadline-Pillen: Magenta auf Yellow, Eckenradius 14px
 *   - Headlines optional 7° nach links gekippt (Modifier .is-tilted)
 *   - Regel "Magenta auf Cyan, lass es sein!" - wir nutzen Magenta-Text nur
 *     auf Weiß, Yellow oder Soft Cyan, nicht auf vollem Cyan.
 *
 * Fonts werden vom Plugin selbst ausgeliefert (keine Google-Fonts-Verbindung,
 * DSGVO-konform).
 */

/* -------------------------------------------------------------------- */
/* @font-face: Anybody (self-hosted)                                    */
/* Lizenz: SIL Open Font License 1.1 — siehe assets/fonts/LICENSE-Anybody.txt
/* -------------------------------------------------------------------- */

/* Latin */
@font-face {
    font-family: "Anybody";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/anybody-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Anybody";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/anybody-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Anybody";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/anybody-latin-800-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Anybody";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/anybody-latin-700-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Anybody";
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/anybody-latin-800-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin Extended (für Umlaute außerhalb des Standard-Latin-Bereichs,
   z. B. č, ł, đ — die deutschen Umlaute selbst liegen bereits im Latin-Block) */
@font-face {
    font-family: "Anybody";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/anybody-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Anybody";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/anybody-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Anybody";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/anybody-latin-ext-800-normal.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Anybody";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/anybody-latin-ext-700-italic.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Anybody";
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/anybody-latin-ext-800-italic.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Primärfarben */
    --juli-magenta: #E6007E;
    --juli-yellow:  #FFED00;
    --juli-cyan:    #009EE3;

    /* Sekundärfarben */
    --juli-soft-magenta: #F5B5D2;
    --juli-soft-yellow:  #FFF7B2;
    --juli-soft-cyan:    #A1DAF8;
    --juli-white:        #FFFFFF;
    --juli-black:        #000000;

    /* Tertiärfarben (nur für Sticker/Pattern) */
    --juli-soft-purple: #A49BCB;
    --juli-soft-orange: #ECB299;

    /* Interaktion */
    --juli-magenta-hover: #c40068;
    --juli-text-muted: #4b5563;

    /* Form-Tokens (JuLis-Styleguide) */
    --juli-radius-card: 16px;
    --juli-radius-pill: 14px;    /* Sublinegröße 14px laut Styleguide */
    --juli-radius-button: 12px;

    /* Schatten dezent, da JuLis-CD auf flache Farben setzt */
    --juli-shadow: 0 1px 3px rgba(230, 0, 126, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --juli-shadow-hover: 0 4px 16px rgba(230, 0, 126, 0.18);

    --juli-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Schriftfamilie: Anybody mit Calibri-Fallback wie im Styleguide vorgesehen */
    --juli-font: "Anybody", Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* -------------------------------------------------------------------- */
/* Accessibility                                                        */
/* -------------------------------------------------------------------- */

.sprd-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------- */
/* Card                                                                 */
/* -------------------------------------------------------------------- */
.sprd-cart {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px;
    font-family: var(--juli-font, 'Anybody', Calibri, system-ui, sans-serif);
    color: #1a1a1a;
}

/* --- Header ------------------------------------------------- */
.sprd-cart__header { margin-bottom: 22px; }

.sprd-cart__eyebrow {
    display: inline-block;
    background: var(--juli-yellow, #FFED00);
    color: var(--juli-magenta, #E6007E);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 14px;
}

.sprd-cart__heading {
    font-size: 36px;
    font-weight: 800;
    color: var(--juli-magenta, #E6007E);
    margin: 10px 0 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.sprd-cart__meta {
    font-size: 14px;
    color: var(--juli-text-muted, #666);
    margin: 8px 0 0;
}

/* --- Item-Liste --------------------------------------------- */
.sprd-cart__items {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sprd-cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease;
}

.sprd-cart-item:hover { border-color: #d0d0d0; }

.sprd-cart-item__image {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sprd-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sprd-cart-item__name {
    font-weight: 800;
    font-size: 15px;
    margin: 0 0 2px;
    line-height: 1.25;
    color: #1a1a1a;
}

.sprd-cart-item__variant {
    font-size: 12.5px;
    color: var(--juli-text-muted, #666);
    margin: 0 0 8px;
}

.sprd-cart-item__qty {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--juli-magenta, #E6007E);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    color: var(--juli-magenta, #E6007E);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.7;
}

.sprd-cart-item__price {
    text-align: right;
    min-width: 90px;
}

.sprd-cart-item__unit {
    font-size: 11px;
    color: #888;
    margin: 0 0 2px;
}

.sprd-cart-item__total {
    font-weight: 800;
    font-size: 18px;
    color: #1a1a1a;
}

/* --- Bestellübersicht --------------------------------------- */
.sprd-cart__summary {
    background: #FFFCEB;
    border: 2px solid var(--juli-yellow, #FFED00);
    border-radius: 10px;
    padding: 20px 22px;
    margin: 0 0 16px;
}

.sprd-cart__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.sprd-cart__summary-row strong { font-weight: 800; }

.sprd-cart__summary-row--muted {
    font-size: 13px;
    color: var(--juli-text-muted, #666);
    margin-bottom: 12px;
}

.sprd-cart__summary-row--muted em { font-style: italic; }

.sprd-cart__summary-total {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.sprd-cart__summary-total > span {
    font-weight: 800;
    font-size: 16px;
}

.sprd-cart__summary-total strong {
    font-weight: 800;
    font-size: 26px;
    color: var(--juli-magenta, #E6007E);
}

/* CTA-Button-Variante für den Warenkorb */
.sprd-checkout-btn.sprd-checkout-btn--cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-sizing: border-box;
}

.sprd-checkout-btn--cart svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Weiter-einkaufen-Link */
.sprd-cart__continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--juli-magenta, #E6007E);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sprd-cart__continue:hover { text-decoration: underline; }

/* --- Trust-Zeile -------------------------------------------- */
.sprd-cart__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.sprd-cart__trust-item {
    text-align: center;
    padding: 13px 8px;
    background: #F7F7F7;
    border-radius: 8px;
}

.sprd-cart__trust-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--juli-cyan, #009EE3);
}

.sprd-cart__trust-item span {
    display: block;
    font-size: 12px;
    color: #444;
    margin-top: 4px;
    font-weight: 800;
}

/* --- Rechtshinweis ------------------------------------------ */
.sprd-cart__legal {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #F4F4F4;
    border-left: 4px solid var(--juli-magenta, #E6007E);
    border-radius: 0 4px 4px 0;
    font-size: 12.5px;
    color: #555;
    line-height: 1.55;
    margin: 0;
}

.sprd-cart__legal-icon {
    width: 20px;
    height: 20px;
    stroke: var(--juli-magenta, #E6007E);
    flex-shrink: 0;
    margin-top: 1px;
}

.sprd-cart__legal strong {
    color: #1a1a1a;
    font-weight: 800;
}

.sprd-cart__legal a {
    color: var(--juli-magenta, #E6007E);
    text-decoration: underline;
}

.sprd-cart__legal small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 11px;
}

/* --- Empty State -------------------------------------------- */
.sprd-cart__empty {
    text-align: center;
    padding: 40px 20px;
}

.sprd-cart__empty svg {
    width: 56px;
    height: 56px;
    stroke: #ccc;
    margin-bottom: 12px;
}

.sprd-cart__empty p {
    font-size: 16px;
    color: var(--juli-text-muted, #666);
    margin: 0 0 18px;
}

/* --- Mobile ------------------------------------------------- */
@media (max-width: 640px) {
    .sprd-cart {
        padding: 20px 14px;
    }

    .sprd-cart__heading {
        font-size: 28px;
    }

    .sprd-cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .sprd-cart-item__image {
        width: 60px;
        height: 60px;
    }

    .sprd-cart-item__price {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border-top: 1px dashed #eee;
        padding-top: 8px;
        margin-top: 2px;
    }

    .sprd-cart-item__unit {
        margin: 0;
    }

    .sprd-cart__trust {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------- */
/* Headline & Subline (JuLis-Schrifthierarchie)                         */
/* -------------------------------------------------------------------- */

/* Anybody Extra Bold, Magenta auf Weiß */
.sprd-card__title {
    margin: 0;
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    color: var(--juli-magenta);
    letter-spacing: -0.01em;
}

/* Optionale Neigung wie im Styleguide (Head + Subline immer gemeinsam) */
.sprd-card__title-group.is-tilted {
    transform: rotate(-7deg);
    transform-origin: left center;
    display: inline-block;
}

/* Subline-Pille: Magenta auf Yellow, 14px Eckenradius */
.sprd-subline {
    display: inline-block;
    background: var(--juli-yellow);
    color: var(--juli-magenta);
    font-family: var(--juli-font);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    padding: 6px 10px;
    border-radius: var(--juli-radius-pill);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Preis: Anybody Extra Bold, groß, Magenta */
.sprd-card__price {
    margin: 0;
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 20px;
    color: var(--juli-magenta);
}

/* -------------------------------------------------------------------- */
/* Variant fieldsets                                                    */
/* -------------------------------------------------------------------- */

.sprd-card__variants {
    border: 0;
    padding: 0;
    margin: 0;
}

.sprd-card__variants-label {
    display: block;
    font-family: var(--juli-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--juli-black);
    margin-bottom: 6px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------- */
/* Color swatches                                                       */
/* -------------------------------------------------------------------- */

.sprd-card__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sprd-swatch {
    cursor: pointer;
    position: relative;
}

.sprd-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sprd-swatch__dot {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--swatch-color, var(--juli-soft-cyan));
    border: 2px solid var(--juli-white);
    box-shadow: 0 0 0 1px var(--juli-black);
    transition: box-shadow var(--juli-transition), transform var(--juli-transition);
}

.sprd-swatch:hover .sprd-swatch__dot {
    transform: scale(1.1);
}

.sprd-swatch input:checked + .sprd-swatch__dot {
    box-shadow: 0 0 0 3px var(--juli-magenta);
}

.sprd-swatch input:focus-visible + .sprd-swatch__dot {
    box-shadow: 0 0 0 3px var(--juli-magenta),
                0 0 0 6px var(--juli-soft-magenta);
}

/* -------------------------------------------------------------------- */
/* Sizes — Pill-Buttons im Subline-Stil                                 */
/* -------------------------------------------------------------------- */

.sprd-card__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sprd-size {
    cursor: pointer;
}

.sprd-size input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sprd-size__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border: 2px solid var(--juli-magenta);
    border-radius: var(--juli-radius-pill);
    background: var(--juli-white);
    font-family: var(--juli-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--juli-magenta);
    transition: all var(--juli-transition);
}

.sprd-size:hover .sprd-size__label {
    background: var(--juli-soft-magenta);
}

.sprd-size input:checked + .sprd-size__label {
    background: var(--juli-magenta);
    color: var(--juli-yellow);
}

.sprd-size input:focus-visible + .sprd-size__label {
    box-shadow: 0 0 0 3px var(--juli-soft-magenta);
}

/* -------------------------------------------------------------------- */
/* Add-to-cart button                                                   */
/* -------------------------------------------------------------------- */

.sprd-card__add {
    margin-top: auto;
    width: 100%;
    padding: 14px 16px;
    background: var(--juli-magenta);
    color: var(--juli-yellow);
    border: 0;
    border-radius: var(--juli-radius-button);
    font-family: var(--juli-font);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--juli-transition), transform var(--juli-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
}

/* Add-to-cart Hover: color explizit gegen Theme-Override */
.sprd-card__add:hover:not(:disabled) {
    background: var(--juli-magenta-hover);
    color: var(--juli-yellow) !important;
}

/* Generic Checkout-Hover: same fix */
.sprd-checkout-btn:hover:not(:disabled) {
    background: var(--juli-magenta-hover);
    color: var(--juli-yellow) !important;
}

/* Add-Feedback: immer absolut zentriert overlayen, nicht erst beim Success */
.sprd-card__add-feedback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--juli-transition);
    color: var(--juli-yellow);
}

.sprd-card__add.is-success .sprd-card__add-label {
    opacity: 0;
}

.sprd-card__add.is-success .sprd-card__add-feedback {
    opacity: 1;
}

.sprd-card__add:active:not(:disabled) {
    transform: scale(0.98);
}

.sprd-card__add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sprd-card__add:focus-visible {
    outline: 3px solid var(--juli-yellow);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------- */
/* Generic checkout button                                              */
/* -------------------------------------------------------------------- */

.sprd-checkout-btn {
    padding: 14px 28px;
    background: var(--juli-magenta);
    color: var(--juli-yellow);
    border: 0;
    border-radius: var(--juli-radius-button);
    font-family: var(--juli-font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--juli-transition), transform var(--juli-transition);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sprd-checkout-btn:hover:not(:disabled) {
    background: var(--juli-magenta-hover);
}

.sprd-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sprd-checkout-btn:focus-visible {
    outline: 3px solid var(--juli-yellow);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------- */
/* Toast (Feedback)                                                     */
/* -------------------------------------------------------------------- */

.sprd-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--juli-magenta);
    color: var(--juli-yellow);
    padding: 14px 22px;
    border-radius: var(--juli-radius-pill);
    box-shadow: var(--juli-shadow-hover);
    font-family: var(--juli-font);
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 250ms ease-out, opacity 250ms ease-out;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sprd-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sprd-toast--error {
    background: var(--juli-black);
    color: var(--juli-yellow);
}

/* -------------------------------------------------------------------- */
/* Responsive                                                           */
/* -------------------------------------------------------------------- */

@media (max-width: 640px) {
    .sprd-card__body {
        padding: 14px;
        gap: 10px;
    }
    .sprd-card__title {
        font-size: 18px;
    }
    .sprd-card__price {
        font-size: 17px;
    }
}

/* -------------------------------------------------------------------- */
/* Cart Widget (Header-Icon mit Counter-Badge)                          */
/* -------------------------------------------------------------------- */

.sprd-cart-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--juli-magenta);
    text-decoration: none;
    transition: transform var(--juli-transition);
}

.sprd-cart-widget:hover {
    transform: scale(1.05);
    color: var(--juli-magenta-hover);
}

.sprd-cart-widget:focus-visible {
    outline: 3px solid var(--juli-yellow);
    outline-offset: 2px;
    border-radius: 8px;
}

.sprd-cart-widget__icon {
    width: 26px;
    height: 26px;
}

.sprd-cart-widget__count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--juli-magenta);
    color: var(--juli-yellow);
    border-radius: 999px;
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--juli-white);
    transition: transform var(--juli-transition);
}

.sprd-cart-widget__count--empty {
    display: none;
}

/* -------------------------------------------------------------------- */
/* Cart Page (volle Warenkorb-Ansicht)                                  */
/* -------------------------------------------------------------------- */

.sprd-cart {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: var(--juli-font);
    color: var(--juli-black);
}

.sprd-cart__heading {
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 32px;
    color: var(--juli-magenta);
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}

.sprd-cart__empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--juli-soft-yellow);
    border-radius: var(--juli-radius-card);
}

.sprd-cart__empty p {
    font-size: 18px;
    color: var(--juli-magenta);
    font-weight: 700;
    margin: 0 0 16px 0;
}

.sprd-cart__back-link {
    display: inline-block;
    color: var(--juli-magenta);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    border: 2px solid var(--juli-magenta);
    border-radius: var(--juli-radius-pill);
    transition: all var(--juli-transition);
}

.sprd-cart__back-link:hover {
    background: var(--juli-magenta);
    color: var(--juli-yellow);
}

.sprd-cart__items {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid var(--juli-magenta);
    border-radius: var(--juli-radius-card);
    overflow: hidden;
    background: var(--juli-white);
}

.sprd-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--juli-soft-magenta);
}

.sprd-cart-item:last-child {
    border-bottom: 0;
}

.sprd-cart-item__image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--juli-soft-yellow);
    border-radius: 8px;
    flex-shrink: 0;
}

.sprd-cart-item__info {
    flex: 1;
    min-width: 0;
}

.sprd-cart-item__name {
    margin: 0 0 4px 0;
    font-family: var(--juli-font);
    font-weight: 700;
    font-size: 15px;
    color: var(--juli-black);
    line-height: 1.3;
}

.sprd-cart-item__qty {
    margin: 0;
    font-size: 13px;
    color: var(--juli-text-muted);
}

.sprd-cart-item__price {
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 16px;
    color: var(--juli-magenta);
    flex-shrink: 0;
}

.sprd-cart__summary {
    margin-top: 24px;
    padding: 20px;
    background: var(--juli-soft-yellow);
    border-radius: var(--juli-radius-card);
}

.sprd-cart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.sprd-cart__subtotal strong {
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 22px;
    color: var(--juli-magenta);
}

.sprd-cart__note {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--juli-text-muted);
}

.sprd-cart__summary .sprd-checkout-btn {
    width: 100%;
}

.sprd-cart__legal {
    margin: 16px 0 0 0;
    font-size: 12px;
    color: var(--juli-text-muted);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .sprd-cart {
        padding: 20px 16px;
    }
    .sprd-cart__heading {
        font-size: 26px;
    }
    .sprd-cart-item {
        padding: 12px;
        gap: 12px;
    }
    .sprd-cart-item__image {
        width: 56px;
        height: 56px;
    }
    .sprd-cart-item__name {
        font-size: 14px;
    }
}

/* -------------------------------------------------------------------- */
/* Produktkarten-Innenraum                                              */
/* Klare vertikale Rhythmik zwischen Title, Variants, Preis, Button.    */
/* -------------------------------------------------------------------- */

.sprd-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px;
}

.sprd-card__title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sprd-card__title-group.is-tilted {
    display: inline-flex;
    transform: rotate(-7deg);
    transform-origin: left center;
}

.sprd-card__variants + .sprd-card__variants {
    margin-top: 4px;
}

.sprd-card__variants-label {
    margin-bottom: 10px;
}

.sprd-card__swatches {
    gap: 10px;
}

.sprd-card__sizes {
    gap: 8px;
}

.sprd-card__price {
    margin-top: 2px;
}

.sprd-card__add {
    margin-top: 6px;
}

@media (max-width: 640px) {
    .sprd-card__body {
        padding: 16px;
        gap: 14px;
    }
}

/* -------------------------------------------------------------------- */
/* Cart-Status (Live-Anzeige für Shop-/Produktseiten)                   */
/* -------------------------------------------------------------------- */

.sprd-cart-status {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 2px solid var(--juli-magenta);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 0 16px;
    font-family: var(--juli-font);
    color: var(--juli-magenta);
    font-size: 14px;
    line-height: 1.3;
}

.sprd-cart-status[hidden] {
    display: none;
}

.sprd-cart-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--juli-magenta);
    color: var(--juli-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

.sprd-cart-status__text {
    flex: 1;
    font-weight: 700;
    color: var(--juli-magenta);
}

.sprd-cart-status__text strong {
    font-weight: 800;
    font-size: 16px;
    margin-right: 4px;
    letter-spacing: -0.01em;
}

.sprd-cart-status__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--juli-magenta);
    color: var(--juli-yellow) !important;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 14px;
    font-family: var(--juli-font);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.15s ease, transform 0.15s ease;
    line-height: 1.3;
    flex-shrink: 0;
    white-space: nowrap;
}

.sprd-cart-status__cta:hover {
    background: var(--juli-magenta-hover);
    color: var(--juli-yellow) !important;
    transform: translateY(-1px);
}

.sprd-cart-status__cta:active {
    transform: translateY(0);
}

/* Mobile: Button auf eigene Zeile */
@media (max-width: 480px) {
    .sprd-cart-status {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .sprd-cart-status__text {
        flex: 1 1 auto;
    }
    .sprd-cart-status__cta {
        width: 100%;
        justify-content: center;
    }
}