.md-cart-section {
    padding: 2rem 0 4rem;
}

.md-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.md-cart-items {
    background-color: var(--md-card-bg);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    overflow: hidden;
}

.md-cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 16px;
    padding: 1rem 1.5rem;
    background-color: var(--md-bg);
    border-bottom: 1px solid var(--md-border);
    font-weight: 500;
    color: var(--md-text-secondary);
    font-size: 0.9rem;
}

.md-cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 16px;
    padding: 1.5rem;
    align-items: center;
    border-bottom: 1px solid var(--md-border);
}

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

.md-cart-product-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--md-text);
}

.md-cart-product-link img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--md-radius);
    border: 1px solid var(--md-border);
}

.md-cart-product-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.md-cart-product-category {
    font-size: 0.85rem;
    color: var(--md-text-muted);
}

.md-cart-col-price .md-price {
    font-weight: 600;
    color: var(--md-text);
}

.md-price-original-small {
    display: block;
    font-size: 0.85rem;
    color: var(--md-text-muted);
    text-decoration: line-through;
}

.md-cart-qty {
    width: 120px;
}

.md-cart-qty input {
    width: 40px;
}

.md-item-subtotal {
    font-weight: 600;
    color: var(--md-primary);
    font-size: 1.1rem;
}

.md-remove-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--md-text-muted);
    cursor: pointer;
    border-radius: var(--md-radius);
    transition: all var(--md-transition);
}

.md-remove-item:hover {
    background-color: #FEE2E2;
    color: var(--md-error);
}

.md-cart-summary {
    background-color: var(--md-card-bg);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.md-cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--md-border);
}

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

.md-summary-total {
    border-top: 2px solid var(--md-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.md-summary-total span:last-child {
    color: var(--md-primary);
}

.md-free-shipping {
    color: var(--md-success);
    font-weight: 500;
}

.md-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
}

.md-cart-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--md-border);
}

.md-cart-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--md-text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .md-cart-layout {
        grid-template-columns: 1fr;
    }
    
    .md-cart-header {
        display: none;
    }
    
    .md-cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .md-cart-product-link {
        margin-bottom: 8px;
    }
    
    .md-cart-col-price,
    .md-cart-col-qty,
    .md-cart-col-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .md-cart-col-price::before { content: 'Price:'; color: var(--md-text-muted); }
    .md-cart-col-subtotal::before { content: 'Subtotal:'; color: var(--md-text-muted); }
    
    .md-cart-col-remove {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    
    .md-cart-item {
        position: relative;
    }
    
    .md-cart-summary {
        position: static;
    }
}
