/* ===== ESTILOS GERAIS ===== */
.ml-compras-wrapper {
    font-family: "Proxima Nova",-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.ml-compras-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ml-compras-header h2 { margin: 0; font-size: 24px; font-weight: 600; }

/* ===== LISTA DE COMPRAS ===== */
.ml-compra-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin: 16px 20px;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
}

.ml-compra-row { display: flex; gap: 24px; align-items: flex-start; }
.ml-compra-col { display: flex; flex-direction: column; }
.ml-compra-col-info { flex: 1; }

.ml-compra-status-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ml-compra-delivery-info { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 8px; }
.ml-compra-order-number {
    font-size: 12px; font-weight: 700; color: #666; background: #f0f0f0;
    display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 12px;
}

.ml-compra-product-line { margin: 0 0 2px 0 !important; font-size: 10px !important; color: #333 !important; }

.ml-compra-col-actions { width: 200px; gap: 8px; }
.ml-compra-action-primary, .ml-compra-action-secondary {
    display: block; width: 100%; padding: 12px; text-align: center; border-radius: 6px;
    font-size: 14px; font-weight: 600; text-decoration: none;
}

.ml-compra-col-image { width: 80px; }
.ml-product-img-wrapper { width: 80px; height: 80px; border: 1px solid #e6e6e6; border-radius: 6px; overflow: hidden; }
.ml-product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* ===== VISTA DE DETALHES ===== */
.ml-details-view .ml-details-content { padding: 16px 20px; }
.ml-details-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 2px 0 rgba(0,0,0,.1); }

.ml-details-section { margin-bottom: 24px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.ml-details-section:last-child { border-bottom: none; }
.ml-details-section h3 { font-size: 18px; margin-bottom: 16px; }

.ml-details-row-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.ml-details-row-item img { border-radius: 4px; border: 1px solid #eee; }
.ml-item-info { flex: 1; display: flex; flex-direction: column; }
.ml-item-name { font-size: 14px; font-weight: 600; }
.ml-item-qty { font-size: 12px; color: #666; }
.ml-item-price { font-weight: 600; }

.ml-summary-section { background: #fafafa; padding: 20px; border-radius: 8px; }
.ml-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.ml-total-row { border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; font-size: 18px; font-weight: 700; }
.ml-payment-row { margin-top: 15px; font-size: 12px; color: #666; }

.ml-details-actions { display: flex; gap: 15px; margin-top: 20px; }
.ml-btn-buy-again, .ml-btn-cancel {
    flex: 1; padding: 15px; text-align: center; border-radius: 6px;
    font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity 0.2s;
}
.ml-btn-buy-again:hover, .ml-btn-cancel:hover { opacity: 0.8; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .ml-compra-row { flex-direction: column-reverse; gap: 16px; }
    .ml-compra-col-actions { width: 100%; }
    .ml-details-actions { flex-direction: column; }
}
