/* Modern Cart CSS */
.cart-page-wrapper {
    padding: 60px 0;
    background-color: #f9f9f9;
    min-height: 80vh;
}

/* Breadcrumb */
.cart-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.cart-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-breadcrumb .breadcrumb-item a:hover {
    color: #000;
}

.cart-breadcrumb .breadcrumb-item.active {
    color: #000;
    font-weight: 600;
}

/* Empty Cart */
.empty-cart-container {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.empty-cart-title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.empty-cart-text {
    color: #6c757d;
    margin-bottom: 30px;
}

/* Cart Table / List */
.cart-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.cart-header {
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    display: flex;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #fafafa;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    margin-right: 20px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-decoration: none;
    display: block;
}

.item-title:hover {
    color: #000;
    text-decoration: underline;
}

.item-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2px;
}

.item-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 300px;
    gap: 20px;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 100px;
    text-align: right;
}

.item-remove {
    color: #adb5bd;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.item-remove:hover {
    color: #dc3545;
}

/* Quantity Input */
.qty-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f1f1f1;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    background: #fff;
    font-weight: 600;
    color: #333;
    padding: 5px 0;
    outline: none;
}

/* Summary Card */
.cart-summary-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 100px;
    /* Adjust based on header height */
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 15px;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f1f1f1;
    color: #000;
    font-weight: 700;
    font-size: 20px;
    align-items: center;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-checkout:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-continue {
    display: block;
    width: 100%;
    background: transparent;
    color: #666;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s;
}

.btn-continue:hover {
    color: #000;
}

.btn-update-cart {
    background: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-update-cart:hover {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-image {
        margin-bottom: 15px;
    }

    .item-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }

    .item-price {
        text-align: left;
    }
}