/* ============================================
   CART PAGE STYLES
   Styles for shopping cart page
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.hero-section .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Product Image in Cart */
.product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.product-image .bg-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 8px;
}

/* Table Styles */
.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Quantity Input */
.quantity-input {
    width: 140px;
    margin: 0 auto;
}

.quantity-field {
    border-left: 0;
    border-right: 0;
    width: 60px;
}

.quantity-field:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.btn-decrease,
.btn-increase {
    width: 40px;
    padding: 0.25rem;
}

/* Summary Section */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.summary-row.total-row {
    padding-top: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.benefit-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Empty Cart */
.empty-cart-icon {
    font-size: 5rem;
    color: var(--bs-primary);
    opacity: 0.3;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Responsive */
@media (max-width: 992px) {
    .product-image {
        width: 60px;
        height: 60px;
    }

    .quantity-input {
        width: 120px;
    }

    .quantity-field {
        width: 50px;
    }

    .btn-decrease,
    .btn-increase {
        width: 35px;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .table {
        font-size: 0.875rem;
    }

    .product-image {
        width: 50px;
        height: 50px;
    }

    .product-image i {
        font-size: 1.5rem !important;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animation for adding items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table tbody tr {
    animation: slideIn 0.3s ease-out;
}

/* Stock warning */
.badge.bg-warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
