/* ============================================
   STUDISTEP CART SYSTEM STYLES
   Datei: cart-system.css
   ============================================ */

/* ============================================
   CART COUNTER IM HEADER
   ============================================ */
.cart-counter-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.cart-counter-wrapper .cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid #E8E8E8;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #1E1E2F;
}

.cart-counter-wrapper .cart-link:hover {
    background: #FE4D00;
    border-color: #FE4D00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 77, 0, 0.3);
}

.cart-counter-wrapper .cart-link svg {
    width: 20px;
    height: 20px;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FE4D00 0%, #FF6B35 100%);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(254, 77, 0, 0.4);
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #FE4D00 0%, #FF6B35 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(254, 77, 0, 0.3);
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FE4D00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 77, 0, 0.4);
    color: #fff;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.add-to-cart-btn.in-cart {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    cursor: default;
}

.add-to-cart-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.add-to-cart-btn i {
    font-size: 16px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.studistep-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    z-index: 99999;
    transform: translateX(450px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #10b981;
}

.studistep-toast-show {
    transform: translateX(0);
}

.studistep-toast-success {
    border-left-color: #10b981;
}

.studistep-toast-error {
    border-left-color: #ef4444;
}

.studistep-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.studistep-toast-success .studistep-toast-icon {
    background: #D1FAE5;
    color: #10b981;
}

.studistep-toast-error .studistep-toast-icon {
    background: #FEE2E2;
    color: #ef4444;
}

.studistep-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1E1E2F;
    line-height: 1.5;
}

.studistep-toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #6C7275;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.studistep-toast-close:hover {
    background: #F3F5F7;
    color: #1E1E2F;
}

.studistep-toast-close svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .cart-counter-wrapper {
        margin-right: 10px;
    }

    .cart-counter-wrapper .cart-link {
        width: 40px;
        height: 40px;
    }

    .studistep-toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
    }

    .add-to-cart-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .studistep-toast {
        top: 80px;
        padding: 12px 16px;
    }

    .studistep-toast-message {
        font-size: 13px;
    }

    .studistep-toast-icon {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   CART TABLE STYLES (für cart.html)
   ============================================ */
.tp-cart-img img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.tp-cart-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #1E1E2F;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tp-cart-product-meta {
    color: #6C7275;
    font-size: 14px;
    margin: 0;
}

.tp-cart-product-meta span {
    display: inline-block;
    margin-right: 15px;
}

.tp-cart-product-meta i {
    margin-right: 5px;
}

.tp-cart-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #F3F5F7;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1E1E2F;
}

.tp-cart-meta span {
    font-size: 14px;
    color: #6C7275;
    font-weight: 500;
}

.tp-cart-rating span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #FFB21D;
}

.tp-cart-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    color: #6C7275;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tp-cart-action-btn:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: #FEF2F2;
}

.tp-cart-action-btn svg {
    width: 10px;
    height: 10px;
}

/* ============================================
   EMPTY CART MESSAGE
   ============================================ */
#emptyCartMessage {
    text-align: center;
    padding: 60px 20px;
}

#emptyCartMessage svg {
    width: 80px;
    height: 80px;
    color: #E8E8E8;
    margin-bottom: 20px;
}

#emptyCartMessage h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1E1E2F;
    margin-bottom: 12px;
}

#emptyCartMessage p {
    font-size: 16px;
    color: #6C7275;
    margin-bottom: 30px;
}

#emptyCartMessage .tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FE4D00 0%, #FF6B35 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 77, 0, 0.3);
}

#emptyCartMessage .tp-btn:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FE4D00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 77, 0, 0.4);
    color: #fff;
}