﻿/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    padding: 20px;
    line-height: 1.6;
}*/

.cart-container {
    margin: 0 auto;
    overflow: hidden;
}

.cart-header {
    color: #1a202c;
    padding: 24px;
}

.cart-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.cart-items {
    padding: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.cart-item:nth-child(even) {
    background-color: #f8fafc;
    margin: 0 -24px;
    padding: 20px 24px;
    border-radius: 0;
}

.cart-item:last-child {
    border-bottom: none;
}

    /*.cart-item:hover {
        background-color: #f1f5f9;
        border-radius: 12px;
        margin: 0 -16px;
        padding: 20px 16px;
    }*/

    /*.cart-item:nth-child(even):hover {
        background-color: #e2e8f0;
    }*/

.cart-product-image {
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.cart-product-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
}

.cart-product-description {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.5;
}

.cart-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-right: 16px;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #64748b;
}

.edit-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
    color: #475569;
    transform: translateY(-1px);
}

.delete-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    transform: translateY(-1px);
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
}

.cart-total {
    padding: 24px;
    border-top: 1px solid #7d7d7d88;
    text-align: right;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .cart-header h1 {
        font-size: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .cart-product-image {
        max-width: 60px;
        max-height: 60px;
        grid-row: 1 / 3;
    }

    .cart-product-details {
        grid-column: 2;
        grid-row: 1;
    }

    .cart-price-actions {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
    }

    .cart-product-name {
        font-size: 1rem;
    }

    .cart-product-description {
        font-size: 0.8rem;
    }

    .cart-product-price {
        font-size: 1.125rem;
        margin-right: 0;
    }

    .cart-actions {
        gap: 6px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cart-container {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .cart-header {
        padding: 20px;
    }

    .cart-items {
        padding: 20px;
    }

    .cart-item {
        padding: 16px 0;
    }

        /*.cart-item:hover {
            margin: 0 -12px;
            padding: 16px 12px;
        }*/

    .cart-product-image {
        max-width: 20px;
        max-height: 20px;
    }

    .cart-product-name {
        font-size: 0.95rem;
    }

    .cart-product-description {
        font-size: 0.75rem;
    }
}
