/* =============================================================================
   Tierhilfe Wolfsburg e.V. – Virtueller Weihnachtsbasar
   Theme „Winter Wonderland“ – Warenkorb-Interaktionen und Produktseite – Version 1.3.0

   Nur geladen bei frontend_theme = winter (header.php), nach theme-winter.css.
   Farben aus den Tokens --ww-* (theme-winter.css). Bewegung nur unter html.fx-on;
   bei html.fx-off steht alles still, Inhalte bleiben sichtbar und bedienbar.

   1. Flug zum Warenkorb, Glitzerspur
   2. Warenkorb-Symbol: Badge-Pop + Klingeln
   3. Toast
   4. Warenkorb-Flyout
   5. Produktseite: Kopf mit Brotkrumen
   6. Produktseite: Galerie mit Frost-/Glanzrahmen
   7. Produktseite: Beschreibung, Spender
   8. Produktseite: Kaufbox (Preis ruhig in Assistant, seit 1.3.0)
   9. Produktseite: verwandte Artikel, nicht gefunden
  10. Kauf-Buttons: hinzugefügt / Höchstmenge
  11. Keyframes
  12. Effekte aus
   ============================================================================= */

/* Winkel für den rotierenden Glitzer-Rand (identisch in theme-winter.css, doppelt schadet nicht) */
@property --ww-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* -----------------------------------------------------------------------------
   1. Flug zum Warenkorb, Glitzerspur (Funkeln .ww-spark liegt in theme-winter.css)
   ----------------------------------------------------------------------------- */

.ww-fly {
    position: fixed;
    z-index: 1100;
    width: 44px;
    height: 44px;
    pointer-events: none;
}

.ww-fly__inner {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--ww-night);
    background: radial-gradient(circle at 30% 25%, #ffffff, var(--ww-gold) 75%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 24px 6px rgba(242, 207, 107, 0.7);
}

.ww-trail {
    position: fixed;
    z-index: 1099;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    pointer-events: none;
}

.ww-trail {
    background: url('../images/winter/snowflake.svg') no-repeat center / contain;
    filter: drop-shadow(0 0 4px rgba(191, 230, 247, 0.9)) drop-shadow(0 0 2px rgba(29, 63, 115, 0.8));
    animation: ww-cart-trail 0.8s ease-out forwards;
}

.ww-trail--gold {
    background: none;
    filter: none;
}

.ww-trail--gold::before {
    content: '✦';
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    line-height: 1;
    color: var(--ww-gold);
    text-shadow: 0 0 6px rgba(242, 207, 107, 0.9);
}

/* -----------------------------------------------------------------------------
   2. Warenkorb-Symbol: Badge-Pop + Klingeln
   (Klassen setzen main.js → is-bumped und winter-cart.js → is-jingle)
   ----------------------------------------------------------------------------- */

html.fx-on .js-cart-count.is-bumped {
    animation: ww-cart-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.fx-on .js-cart-count.is-bumped::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--ww-green);
    opacity: 0;
    pointer-events: none;
    animation: ww-cart-ring 0.7s ease-out;
}

html.fx-on .nav-cart.is-jingle {
    animation: ww-cart-jingle 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* -----------------------------------------------------------------------------
   3. Toast (eigener, unten mittig; Ansage über eine versteckte aria-live-Region)
   ----------------------------------------------------------------------------- */

.ww-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 0.7rem 1.1rem;
    line-height: 1.35;
    color: var(--ww-text-on-dark, #f4f8fd);
    background: rgba(9, 22, 48, 0.95);
    border: 1px solid rgba(191, 230, 247, 0.35);
    border-radius: 1.4rem;
    box-shadow: 0 18px 40px -16px rgba(7, 16, 34, 0.7);
    font-weight: 700;
    font-size: 0.9375rem;
    transform: translate(-50%, 140%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, visibility 0s linear 0.4s;
    pointer-events: none;
}

.ww-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, visibility 0s;
}

.ww-toast i {
    flex-shrink: 0;
    color: var(--ww-green-glow);
}

.ww-toast--info i    { color: var(--ww-ice); }
.ww-toast--warning i { color: var(--ww-gold); }
.ww-toast--danger i  { color: #ff8a9b; }

.ww-toast--warning,
.ww-toast--danger {
    border-color: rgba(242, 207, 107, 0.55);
}

/* Klassische Hinweise (Warenkorbseite, Kopieren) im Winter-Look */
.theme-winter .basar-toast {
    color: var(--ww-text-on-dark, #f4f8fd);
    background-color: rgba(9, 22, 48, 0.95);
    border: 1px solid rgba(191, 230, 247, 0.35);
    border-left: 5px solid var(--ww-green);
    border-radius: 1rem;
}

.theme-winter .basar-toast--danger  { border-left-color: #ff8a9b; }
.theme-winter .basar-toast--warning { border-left-color: var(--ww-gold); }
.theme-winter .basar-toast--info    { border-left-color: var(--ww-ice); }

.theme-winter .basar-toast__icon,
.theme-winter .basar-toast--info .basar-toast__icon { color: var(--ww-green-glow); }
.theme-winter .basar-toast--danger .basar-toast__icon  { color: #ff8a9b; }
.theme-winter .basar-toast--warning .basar-toast__icon { color: var(--ww-gold); }

.theme-winter .basar-toast__link,
.theme-winter .basar-toast__action {
    color: var(--ww-ice);
}

.theme-winter .basar-toast__action:hover {
    background-color: rgba(191, 230, 247, 0.14);
}

.theme-winter .basar-toast__close {
    color: var(--ww-muted-on-dark);
}

.theme-winter .basar-toast__close:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* -----------------------------------------------------------------------------
   4. Warenkorb-Flyout (Position per JS: top/right/max-height, Pfeil über --ww-flyout-arrow)
   ----------------------------------------------------------------------------- */

.ww-flyout {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 32px));
    padding: 1rem 1rem 1.1rem;
    color: var(--ww-text);
    text-align: left;
    background: var(--ww-snow);
    border: 1px solid rgba(191, 230, 247, 0.9);
    border-radius: 1rem;
    box-shadow: 0 30px 60px -20px rgba(7, 16, 34, 0.6), 0 0 0 4px rgba(191, 230, 247, 0.25);
    transform-origin: top right;
}

.ww-flyout[hidden] {
    display: none;
}

.ww-flyout::before {
    content: '';
    position: absolute;
    top: -8px;
    right: var(--ww-flyout-arrow, 18px);
    width: 14px;
    height: 14px;
    background: inherit;
    border-left: 1px solid rgba(191, 230, 247, 0.9);
    border-top: 1px solid rgba(191, 230, 247, 0.9);
    transform: rotate(45deg);
}

html.fx-on .ww-flyout.is-open {
    animation: ww-cart-flyout-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ww-flyout__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ww-flyout__title {
    margin: 0;
    font-family: var(--ww-font-head, 'Playfair Display', Georgia, serif);
    font-size: 1.2rem;
    color: var(--ww-midnight);
}

.ww-flyout__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: var(--ww-text);
    background: var(--ww-ice-soft);
    font-size: 1rem;
    cursor: pointer;
}

.ww-flyout__close:hover {
    background: var(--ww-ice);
}

.ww-flyout__loading,
.ww-flyout__empty {
    margin: 0;
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--ww-text-muted);
}

.ww-flyout__empty i {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 2rem;
    color: var(--ww-dusk);
}

.ww-flyout__warning {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
    color: #5c4709;
    background: rgba(242, 207, 107, 0.2);
    border-radius: 0.6rem;
}

.ww-flyout__list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ww-flyout__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #d7e6f0;
}

.ww-flyout__thumb img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--ww-ice-soft), var(--ww-ice));
}

.ww-flyout__name {
    min-width: 0;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
}

.ww-flyout__link {
    color: var(--ww-text);
    text-decoration: none;
}

.ww-flyout__link:hover,
.ww-flyout__link:focus-visible {
    color: var(--ww-deep);
    text-decoration: underline;
}

.ww-flyout__pickup,
.ww-flyout__qty {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ww-text-muted);
}

.ww-flyout__pickup {
    font-weight: 700;
    color: var(--ww-fir);
}

.ww-flyout__price {
    font-weight: 800;
    color: var(--ww-berry);
    white-space: nowrap;
}

.ww-flyout__remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: var(--ww-text-muted);
    background: transparent;
    cursor: pointer;
}

.ww-flyout__remove:hover,
.ww-flyout__remove:focus-visible {
    color: var(--ww-berry);
    background: #fdecef;
}

.ww-flyout__footer[hidden],
.ww-flyout__loading[hidden],
.ww-flyout__empty[hidden] {
    display: none;
}

.ww-flyout__sum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0.85rem 0 0.2rem;
    font-weight: 800;
}

.ww-flyout__sum-value {
    font-family: var(--ww-font-head, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    color: var(--ww-berry);
}

.ww-flyout__hint {
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    color: var(--ww-text-muted);
}

.ww-flyout__actions {
    display: grid;
    gap: 0.5rem;
}

.ww-flyout__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
}

.ww-flyout__btn--outline {
    color: var(--ww-deep);
    background: var(--ww-snow);
    border: 1.5px solid var(--ww-ice);
}

.ww-flyout__btn--outline:hover,
.ww-flyout__btn--outline:focus-visible {
    color: var(--ww-midnight);
    background: var(--ww-ice-soft);
    border-color: var(--ww-deep);
}

/* -----------------------------------------------------------------------------
   5. Produktseite: schmaler Nachthimmel-Kopf mit Brotkrumen
   (Grundlook .ww-pagehead, Sterne, Schnee, Lichterkette, Boden aus theme-winter.css)
   ----------------------------------------------------------------------------- */

.ww-product-page {
    background: var(--ww-page);     /* Seitenfläche der Phase; nachts bleibt die Artikelseite hell */
}

/* Schmale Bildschirme: der 3-rem-Abstand von .row.g-5 ragte 12 px über den Rand (seit 1.1.0, behoben 1.3.0) */
@media (max-width: 575.98px) {
    .ww-product-page .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

.theme-winter .ww-pagehead--slim {
    padding: 3.6rem 0 4.6rem;
    text-align: left;
}

.ww-pagehead--slim .container {
    position: relative;
    z-index: 4;
}

.ww-pagehead--slim .ww-ground {
    height: 64px;                   /* Form und Farbe: .ww-ground in theme-winter.css */
}

.ww-crumbs {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
}

.ww-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ww-muted-on-dark);
}

.ww-crumbs li + li::before {
    content: '✦';
    font-size: 0.7rem;
    color: var(--ww-gold);
}

.ww-crumbs a {
    color: var(--ww-ice);
    font-weight: 700;
    text-decoration: none;
}

.ww-crumbs a:hover,
.ww-crumbs a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.ww-crumbs [aria-current] {
    color: var(--ww-snow);
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   6. Produktseite: Galerie mit Frost-/Glanzrahmen (Effekt 26) und Bildwechsel (27)
   ----------------------------------------------------------------------------- */

.ww-product-page .gallery-main {
    position: relative;
    padding: 6px;
    overflow: visible;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, var(--ww-ice-soft));
    box-shadow:
        0 0 0 1px rgba(191, 230, 247, 0.9),
        0 26px 50px -18px rgba(15, 35, 71, 0.5),
        0 0 44px -12px rgba(191, 230, 247, 1);
}

/* rotierender Glitzer-Rand: nur der Rand des Verlaufs ist sichtbar */
.ww-product-page .gallery-main::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 3px;
    border-radius: inherit;
    background: conic-gradient(from var(--ww-angle, 0deg),
        #bfe6f7, #ffffff 10%, #f2cf6b 18%, #bfe6f7 30%, #ffffff 45%,
        #9cc026 55%, #bfe6f7 65%, #f2cf6b 80%, #ffffff 90%, #bfe6f7);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

html.fx-on .ww-product-page .gallery-main::before {
    animation: ww-cart-spin 9s linear infinite;
}

.ww-product-page .gallery-main a,
.ww-product-page .gallery-main__img {
    border-radius: 16px;
}

.ww-product-page .gallery-main a {
    overflow: hidden;
}

.ww-product-page .gallery-main__img {
    background: var(--ww-snow);
}

.ww-gallery__fx {
    position: absolute;
    inset: 6px;
    z-index: 2;
    overflow: hidden;
    border-radius: 16px;
    pointer-events: none;
}

.ww-gallery__frost,
.ww-gallery__shine {
    position: absolute;
    inset: 0;
}

.ww-gallery__frost {
    background: url('../images/winter/frost.svg') no-repeat center / cover;
    opacity: 0.75;
}

.ww-gallery__shine {
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
}

html.fx-on .ww-gallery__shine {
    animation: ww-cart-shine 7s ease-in-out 1s infinite;
}

html.fx-on .gallery-main.is-switching .gallery-main__img {
    animation: ww-cart-view-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Thumbnails */
.ww-product-page .gallery-thumbs {
    gap: 0.8rem;
    margin-top: 1rem;
}

.ww-product-page .gallery-thumb {
    padding: 4px;
    border: 0;
    border-radius: 0.6rem;
    background: var(--ww-snow);
    box-shadow: 0 0 0 1px #cfe0ec;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.ww-product-page .gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--ww-ice), 0 8px 16px -8px rgba(15, 35, 71, 0.4);
}

.ww-product-page .gallery-thumb[aria-pressed='true'] {
    box-shadow: 0 0 0 2px var(--ww-deep), 0 0 0 5px rgba(242, 207, 107, 0.55), 0 0 18px rgba(242, 207, 107, 0.6);
}

.ww-product-page .gallery-thumb__img {
    border-radius: 0.4rem;
}

/* -----------------------------------------------------------------------------
   7. Produktseite: Beschreibung, Spender
   ----------------------------------------------------------------------------- */

.ww-product-page .item-description {
    border-top: 1px dashed #cfe0ec;
}

.ww-product-page .item-description h2 {
    color: var(--ww-midnight);
}

.ww-product-page .donor-card {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #fffbea, #ffffff);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0 0 1px #f0dfa4;
}

.ww-product-page .donor-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--ww-night);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff6d6, var(--ww-gold) 60%, #b88c22);
    box-shadow: 0 0 16px rgba(242, 207, 107, 0.6);
}

.ww-product-page .donor-card__label {
    font-weight: 800;
    color: var(--ww-gold-text);
}

.ww-product-page .donor-card__name {
    font-family: var(--ww-font-head, 'Playfair Display', Georgia, serif);
    font-size: 1.2rem;
    color: var(--ww-midnight);
}

/* -----------------------------------------------------------------------------
   8. Produktseite: Kaufbox (ruhig; Preis in Assistant mit Tabellenziffern seit 1.3.0)
   ----------------------------------------------------------------------------- */

.ww-product-page .buy-box {
    position: relative;
    padding: 1.6rem;
    background: var(--ww-snow);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(191, 230, 247, 0.9), 0 10px 30px -12px rgba(15, 35, 71, 0.35);
}

.ww-product-page .buy-box::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--ww-ice), var(--ww-gold), var(--ww-green));
}

@media (min-width: 992px) {
    .ww-product-page .buy-box {
        position: sticky;
        top: calc(var(--ww-header-h, 72px) + 20px);
    }
}

.ww-product-page .buy-box__title {
    margin: 0.2rem 0 0.5rem;
    color: var(--ww-midnight);
}

.ww-product-page .buy-box__price {
    margin: 0 0 0.6rem;
    line-height: 1.1;
}

.ww-price {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ww-berry);
}

.ww-product-page .buy-box__stock {
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    font-size: 0.9375rem;
}

.ww-product-page .buy-box__stock .fa-check-circle {
    color: #237a45 !important;   /* überschreibt .text-success */
}

.ww-product-page .buy-box__incart {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ww-deep);
    background: var(--ww-ice-soft);
    border-radius: 999px;
}

/* Hinweisboxen */
.ww-product-page .notice {
    gap: 0.8rem;
    margin-bottom: 1.1rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 0.6rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ww-product-page .notice--pickup {
    color: var(--ww-text);
    background: rgba(31, 77, 58, 0.07);
    box-shadow: inset 4px 0 0 var(--ww-fir), 0 0 0 1px rgba(31, 77, 58, 0.18);
}

.ww-product-page .notice--pickup > i {
    color: var(--ww-fir);
}

.ww-product-page .notice--closed {
    color: var(--ww-text);
    background: var(--ww-ice-soft);
    box-shadow: inset 4px 0 0 var(--ww-dusk), 0 0 0 1px rgba(43, 87, 136, 0.2);
}

.ww-product-page .notice--closed > i {
    color: var(--ww-dusk);
}

/* Menge */
.ww-product-page .buy-box__form .form-label {
    font-size: 0.875rem;
    font-weight: 800;
}

.ww-product-page .buy-box__row {
    align-items: stretch;
    gap: 0.7rem;
}

.ww-product-page .buy-box .qty-stepper {
    align-items: center;
    height: auto;
    padding: 4px;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: var(--ww-ice-soft);
    box-shadow: inset 0 0 0 1.5px #cfe0ec;
}

.ww-product-page .buy-box .qty-stepper__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ww-deep);
    background: var(--ww-snow);
    box-shadow: 0 2px 6px -2px rgba(15, 35, 71, 0.35);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s;
}

.ww-product-page .buy-box .qty-stepper__btn:hover:not(:disabled) {
    color: var(--ww-midnight);
    background: #ffffff;
    transform: scale(1.08);
}

.ww-product-page .buy-box .qty-stepper__btn:disabled {
    color: var(--ww-deep);
    opacity: 0.4;
    box-shadow: none;
}

.ww-product-page .buy-box .qty-stepper__input {
    width: 3.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ww-text);
    background: transparent;
    border-radius: 0.5rem;
}

.ww-product-page .buy-box .qty-stepper__input:focus {
    background: var(--ww-snow);
}

.ww-product-page .buy-box .qty-stepper__input:disabled {
    color: var(--ww-text-muted);
}

html.fx-on .ww-product-page .qty-stepper__input.is-bump {
    animation: ww-cart-bump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ww-product-page .buy-box__submit {
    min-height: 52px;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 800;
}

.ww-qty-hint {
    min-height: 1.4em;
    margin: 0.6rem 0 0;
    font-size: 0.875rem;
    color: var(--ww-text-muted);
}

/* Vorteilsliste + Zurück */
.ww-product-page .buy-box__facts {
    display: grid;
    gap: 0.55rem;
    margin: 1.3rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px dashed #cfe0ec;
    font-size: 0.9375rem;
    color: var(--ww-text);
}

.ww-product-page .buy-box__facts li {
    gap: 0.7rem;
    margin: 0;
}

.ww-product-page .buy-box__facts i {
    width: 1.1rem;
    color: var(--ww-green-text);
}

.ww-product-page .buy-box .btn-outline-secondary {
    min-height: 40px;
    padding: 0.45rem 1rem;
    font-weight: 700;
    color: var(--ww-deep);
    background: var(--ww-snow);
    border: 1.5px solid var(--ww-ice);
    border-radius: 999px;
}

.ww-product-page .buy-box .btn-outline-secondary:hover,
.ww-product-page .buy-box .btn-outline-secondary:focus-visible {
    color: var(--ww-midnight);
    background: var(--ww-ice-soft);
    border-color: var(--ww-deep);
}

/* -----------------------------------------------------------------------------
   9. Produktseite: „Das könnte dir auch gefallen“, nicht gefunden
   ----------------------------------------------------------------------------- */

.ww-related {
    margin-top: 4rem;
}

.ww-related__head {
    max-width: 680px;
    margin: 0 auto 2rem;
    text-align: center;
}

.ww-related__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ww-green-text);
}

.ww-related__kicker::before,
.ww-related__kicker::after {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.ww-related__title {
    margin: 0.4rem 0 0;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    color: var(--ww-midnight);
}

.ww-notfound {
    max-width: 620px;
    margin: 1rem auto 0;
    padding: 2.6rem 1.6rem;
    text-align: center;
    background: var(--ww-snow);
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(191, 230, 247, 0.9), 0 10px 30px -12px rgba(15, 35, 71, 0.35);
}

.ww-notfound__icon {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--ww-ice), var(--ww-dusk));
    -webkit-mask: url('../images/winter/snowflake.svg') no-repeat center / contain;
    mask: url('../images/winter/snowflake.svg') no-repeat center / contain;
}

html.fx-on .ww-notfound__icon {
    animation: ww-cart-rotate 14s linear infinite;
}

.ww-notfound__title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--ww-midnight);
}

.ww-notfound p {
    color: var(--ww-text-muted);
}

/* -----------------------------------------------------------------------------
   10. Kauf-Buttons: kurz „hinzugefügt“, bei Höchstmenge „Im Warenkorb“
   ----------------------------------------------------------------------------- */

.theme-winter .btn-cart.is-added {
    --bs-btn-color: #142008;
    --bs-btn-bg: #c9e47a;
    --bs-btn-border-color: #c9e47a;
    --bs-btn-hover-color: #142008;
    --bs-btn-hover-bg: #c9e47a;
    --bs-btn-hover-border-color: #c9e47a;
    color: #142008;
    background: linear-gradient(135deg, #e4f3b8, #c9e47a);
}

.theme-winter .btn-cart.is-full:disabled {
    --bs-btn-disabled-color: #3d4654;
    --bs-btn-disabled-bg: #e2e8ee;
    --bs-btn-disabled-border-color: #e2e8ee;
    --bs-btn-disabled-opacity: 1;
    color: #3d4654;
    background: #e2e8ee;
    box-shadow: none;
    cursor: not-allowed;
}

.theme-winter .btn-cart.is-full:disabled::after {
    display: none;
}

/* -----------------------------------------------------------------------------
   11. Keyframes (Präfix ww-cart-, damit nichts mit theme-winter.css kollidiert)
   ----------------------------------------------------------------------------- */

@keyframes ww-cart-trail {
    from { opacity: 1; transform: scale(1) rotate(0deg); }
    to   { opacity: 0; transform: translateY(14px) scale(0.2) rotate(120deg); }
}

@keyframes ww-cart-pop {
    0%   { transform: scale(0.4); }
    55%  { transform: scale(1.45); }
    80%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

@keyframes ww-cart-ring {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(2.2); }
}

@keyframes ww-cart-jingle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(11deg); }
    60% { transform: rotate(-7deg); }
    80% { transform: rotate(4deg); }
}

@keyframes ww-cart-flyout-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.94); }
    to   { opacity: 1; transform: none; }
}

@keyframes ww-cart-spin {
    to { --ww-angle: 360deg; }
}

@keyframes ww-cart-rotate {
    to { transform: rotate(360deg); }
}

@keyframes ww-cart-shine {
    0%        { transform: translateX(-120%); }
    35%, 100% { transform: translateX(120%); }
}

@keyframes ww-cart-view-in {
    from { opacity: 0; scale: 0.85; }
    to   { opacity: 1; scale: 1; }
}

@keyframes ww-cart-bump {
    0%, 100% { scale: 1; }
    45%      { scale: 1.35; }
}

/* -----------------------------------------------------------------------------
   12. Effekte aus (Schalter bzw. prefers-reduced-motion beim ersten Besuch)
   ----------------------------------------------------------------------------- */

html.fx-off .ww-fly,
html.fx-off .ww-trail {
    display: none;
}

html.fx-off .ww-toast,
html.fx-off .ww-flyout,
html.fx-off .ww-product-page .gallery-thumb,
html.fx-off .ww-product-page .qty-stepper__btn {
    transition: none;
}

html.fx-off .js-cart-count.is-bumped,
html.fx-off .nav-cart.is-jingle {
    animation: none;
}

/* -----------------------------------------------------------------------------
   Mobil
   ----------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .theme-winter .ww-pagehead--slim {
        padding: 3rem 0 3.8rem;
    }

    .ww-product-page .buy-box {
        padding: 1.3rem 1.1rem;
    }

    .ww-product-page .buy-box::before {
        left: 1.1rem;
        right: 1.1rem;
    }

    .ww-price-shimmer {
        font-size: 2.1rem;
    }

    .ww-product-page .gallery-thumbs {
        gap: 0.55rem;
    }

    .ww-toast {
        bottom: 16px;
    }
}
