/**
 * Apprimax LMS — Cart / Sepet modern styles
 * Extracted from inline styles in main/cart/index.blade.php
 */

.cart-page {
    padding: clamp(2.5rem, 4vw, 3.2rem) 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 100%);
    min-height: calc(100vh - 200px);
}

.cart-item-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #176be2 0%, #ff8c42 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.cart-item-card:hover::before {
    opacity: 1;
}

.cart-item-image {
    width: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-item-info h6 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cart-item-info h6 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cart-item-info h6 a:hover {
    color: #176be2;
    transform: translateX(2px);
}

.cart-item-meta {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.cart-item-meta i {
    color: #176be2;
    margin-right: 6px;
}

.cart-item-price {
    font-size: 22px;
    font-weight: 700;
    color: #176be2;
    letter-spacing: -0.5px;
}

.cart-item-price.free {
    color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-gift {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.badge-gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #176be2;
    position: relative;
}

.summary-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #176be2 0%, #ff8c42 100%);
    border-radius: 2px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.summary-row:hover {
    background: rgba(255, 107, 53, 0.02);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
}

.summary-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-total {
    font-size: 26px;
    font-weight: 800;
    color: #176be2;
    letter-spacing: -1px;
    background: #176be2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-discount {
    color: #28a745;
    font-weight: 700;
    font-size: 15px;
}

.empty-cart {
    text-align: center;
    padding: 72px 20px;
}

.empty-cart-icon {
    font-size: 120px;
    color: #e9ecef;
    margin-bottom: 30px;
}

.empty-cart h3 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Bundle + upsell (partial) */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bundle-gift-notification {
    animation: fadeIn 0.5s ease-in;
}

.upsell-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid #176be2;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.upsell-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.upsell-icon {
    width: 50px;
    height: 50px;
    background: #176be2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
}

.upsell-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.upsell-message {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #176be2;
}

/* More detailed upsell discount card styles remain defined inline or can be moved as needed */

@media (max-width: 991px) {
    .summary-card {
        margin-top: 24px;
        position: static;
    }

    .cart-item-card {
        padding: 18px;
    }
}

/* Primary actions inside summary */
.summary-card .edu-btn {
    width: 100%;
    justify-content: center;
}

