.sg-giftbox {
    --sg-accent: #d6336c;
    --sg-accent-soft: #fde8ef;
    --sg-border: #f3c2d3;
    --sg-text: #333;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    background: var(--sg-accent-soft);
    color: var(--sg-text);
}
.sg-giftbox.sg-reached {
    --sg-accent: #2f9e44;
    --sg-accent-soft: #ebfbee;
    --sg-border: #b2f2bb;
}
.sg-giftbox .sg-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.05rem;
}
.sg-giftbox .sg-icon { font-size: 1.4rem; line-height: 1; }
.sg-giftbox .sg-msg { margin: .5rem 0 .75rem; }
.sg-giftbox .sg-hint { margin-top: -.5rem; font-size: .9em; opacity: .85; }
.sg-giftbox .sg-bar {
    height: 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .08);
    overflow: hidden;
}
.sg-giftbox .sg-bar-fill {
    height: 100%;
    background: var(--sg-accent);
    transition: width .4s ease;
}
/* Einzeilige, wischbare Auswahl */
.sg-giftbox .sg-carousel {
    position: relative;
}
.sg-giftbox .sg-gifts {
    display: flex;
    flex-wrap: nowrap;
    gap: .6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}
.sg-giftbox .sg-gifts::-webkit-scrollbar { display: none; }
.sg-giftbox .sg-gift {
    flex: 0 0 140px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .6rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.sg-giftbox .sg-gift.sg-selected { border-color: var(--sg-accent); }
.sg-giftbox .sg-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.sg-giftbox .sg-name {
    flex: 1;
    font-size: .82rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sg-giftbox .sg-btn {
    width: 100%;
    padding: .35rem .4rem;
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Pfeiltasten */
.sg-giftbox .sg-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.sg-giftbox .sg-nav[hidden] { display: none; }
.sg-giftbox .sg-prev { left: -10px; }
.sg-giftbox .sg-next { right: -10px; }
.sg-giftbox .sg-nav:hover { background: var(--sg-accent-soft); }

/* Hinweis, dass es weitergeht */
.sg-giftbox .sg-carousel::before,
.sg-giftbox .sg-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 6px;
    width: 28px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.sg-giftbox .sg-carousel::before { left: 0; background: linear-gradient(to right, var(--sg-accent-soft), transparent); }
.sg-giftbox .sg-carousel::after { right: 0; background: linear-gradient(to left, var(--sg-accent-soft), transparent); }
.sg-giftbox .sg-carousel.sg-fade-left::before,
.sg-giftbox .sg-carousel.sg-fade-right::after { opacity: 1; }

/* Auf dem Handy: Pfeile ausblenden, dort wird gewischt */
@media (hover: none) and (pointer: coarse) {
    .sg-giftbox .sg-nav { display: none !important; }
    .sg-giftbox .sg-gift { flex-basis: 128px; }
}

/* Feste Geschenke: Mengenangabe */
.sg-giftbox .sg-fixed { position: relative; border-color: var(--sg-accent); }
.sg-giftbox .sg-qty {
    position: absolute;
    top: .4rem;
    right: .4rem;
    min-width: 2.1em;
    padding: .1rem .45rem;
    border-radius: 1em;
    background: var(--sg-accent);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
}

/* Menge in der Geschenkzeile des Warenkorbs */
.sg-cartqty {
    display: inline-block;
    margin: .25rem 0;
    padding: .1rem .55rem;
    border-radius: 1em;
    background: #2f9e44;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

/* Hinweis auf der Artikelseite */
.sg-giftbox.sg-promo { margin: .75rem 0; padding: .75rem 1rem; }
.sg-giftbox.sg-promo .sg-msg { margin: .35rem 0 0; }

/* Abzeichen auf Produktbildern in Listen */
.sg-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 3;
    padding: .2rem .55rem;
    border-radius: 1em;
    background: #d6336c;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* Mehrere Aktionen untereinander */
.sg-giftboxes { margin: 0 0 1.25rem; }
.sg-giftboxes .sg-giftbox { margin-bottom: .75rem; }
.sg-giftboxes .sg-giftbox:last-child { margin-bottom: 0; }
