/* ============================================================
   Sticky Cart Bar – AlpenPeptides
   ============================================================ */
.ap-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #0A0A0A;
    border-top: 2px solid #1F3A5F;
    padding: 12px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ap-sticky-cart.is-visible {
    transform: translateY(0);
}

/* --- Left: Icon + Total --- */
.ap-sticky-cart__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ap-sticky-cart__icon {
    position: relative;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
}

.ap-sticky-cart__count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #2E5C8A;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.ap-sticky-cart__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ap-sticky-cart__label {
    font-size: 11px;
    color: #6B6B66;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ap-sticky-cart__total {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

/* --- Middle: Progress Bar --- */
.ap-sticky-cart__progress {
    flex: 1;
    max-width: 340px;
}

.ap-sticky-cart__progress-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-sticky-cart__progress-label strong {
    color: #FFFFFF;
}

.ap-sticky-cart__progress-bar {
    height: 5px;
    background: #2a2a2a;
    border-radius: 9999px;
    overflow: hidden;
}

.ap-sticky-cart__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E5C8A, #1F3A5F);
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.ap-sticky-cart__progress-fill.is-complete {
    background: linear-gradient(90deg, #2D7A4F, #3a9b65);
}

/* --- Right: CTA Button --- */
.ap-sticky-cart__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2E5C8A;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 4px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(46, 92, 138, 0.30);
}

.ap-sticky-cart__cta:hover {
    background: #14273F;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(46, 92, 138, 0.40);
}

.ap-sticky-cart__cta:active {
    transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .ap-sticky-cart__progress {
        display: none;
    }
}

@media (max-width: 600px) {
    .ap-sticky-cart {
        padding: 10px 14px;
        gap: 10px;
    }

    .ap-sticky-cart__cta {
        font-size: 13px;
        padding: 11px 16px;
    }

    .ap-sticky-cart__total {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .ap-sticky-cart__label {
        display: none;
    }
}

/* Body-Padding damit Footer-Content nicht überdeckt wird */
body.woocommerce-cart-has-items {
    padding-bottom: 70px;
}
