.cart-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.cart-header {
    margin-bottom: 10px;
}

.cart-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cart-subtitle {
    color: #666;
    font-size: 14px;
}

/* Tabla del carrito */
.cart-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 80px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 80px;
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

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

.product-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.product-details h3 {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.product-id {
    font-size: 14px;
    color: #666;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

.delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fee;
    color: #dc2626;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.delete-btn:hover {
    background: #fecaca;
}

.delete-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Panel de resumen */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
}

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

.summary-row label {
    color: #666;
}

.summary-row .value {
    font-weight: 600;
    color: #1a1a1a;
}

.summary-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 20px 0;
}

.btn-generate {
    display: block;
    width: 100%;
    padding: 16px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-generate:hover {
    background: #0284c7;
}

.btn-continue {
    display: block;
    width: 100%;
    padding: 14px;
    background: white;
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-continue:hover {
    background: #f8f9fa;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

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

.empty-cart h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-table-header,
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 60px;
    }
}

@media (max-width: 768px) {
    .cart-table-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-info {
        grid-column: 1;
    }

    .quantity-controls,
    .product-id {
        justify-self: start;
    }

    .delete-btn {
        justify-self: end;
    }
}
