:root {
    --primary-red: #da291c;     /* O Vermelho Principal (Ação, Destaque, Botões) */
    --text-dark: #1a1a1a;       /* Preto para Títulos e Textos Principais */
    --text-light: #666666;       /* Cinza Escuro para Descrições */
    --bg-light: #f7f7f7;        /* Fundo Cinza Claro do Corpo do App */
    --bg-white: #ffffff;        /* Branco Puro para Cards e Listas */
    --border-light: #e0e0e0;     /* Linhas Divisórias Suaves */
    --font-family: 'Poppins', sans-serif; 
}

body {
    font-family: var(--font-family)
}
/* HEADER */
/* ========================================================= */
/* CARRINHO.CSS - ESTILIZAÇÃO COMPLETA E CORRIGIDA */
/* ========================================================= */

/* Nota: As variáveis de cor (var(--primary-red), etc.) devem estar definidas no styles.css ou no head do HTML. */

/* HEADER (Correção de Alinhamento) */
/* ========================================================= */
/* src/css/carrinho.css - CLONE DO MOCKUP COM SUAS CORES */
/* ========================================================= */

/* --- HEADER CLONADO --- */
/* HEADER (Correção de Alinhamento) */
.cart-header {
    background-color: var(--bg-white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative; 
    border-bottom: 1px solid var(--border-light);
    justify-content: center; /* Centraliza o título */
}

/* Seta de Voltar: Posição absoluta para não mover o título */
.cart-header .back-link-icon {
    position: absolute; 
    left: 20px;
    font-size: 24px; 
    color: var(--primary-red); 
    text-decoration: none;
    z-index: 10;
    top: 50%; 
    transform: translateY(-50%); /* Centralização vertical precisa */
}

.page-title-header {
    font-size: 22px;
    font-weight: 700;
    margin: 0; 
}

/* MAIN CONTENT (Lista de Itens) */
.cart-main-content {
    flex-grow: 1;
    background-color: var(--bg-light); 
    padding: 20px 20px 10px 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.empty-message {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    background-color: var(--bg-white); 
    border-radius: 8px;
}


/* --- RODAPÉ FIXO (Alinhamento de Valores) --- */
.checkout-footer-fixed {
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background-color: var(--bg-white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 30;
    box-sizing: border-box;
}

/* Linhas de Detalhes (Subtotal/Entrega) */
.summary-line-detail {
    display: flex; /* FORÇA DUAS COLUNAS */
    justify-content: space-between; 
    align-items: baseline;
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-light);
}

/* Linha de Total Final (Destacada) */
.summary-total-final {
    display: flex; /* FORÇA DUAS COLUNAS */
    justify-content: space-between; 
    align-items: baseline;
    margin-bottom: 20px;
    padding-top: 10px; 
    border-top: 1px solid var(--border-light); 
}

.total-label-final {
    font-weight: 700;
    font-size: 18px; 
    color: var(--text-dark);
}

.total-value-final {
    font-weight: 900;
    font-size: 26px;
    color: var(--primary-red); 
}

/* Botão de Ação */
.btn-checkout-primary {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red); 
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.btn-checkout-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* --- ESTILO DOS CARDS DE ITENS --- */

.cart-item-card { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 15px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.item-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.item-price-unit {
    font-size: 14px;
    color: var(--primary-red); 
    font-weight: 700;
    margin-top: 2px;
}

.item-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.qty-btn-cloned {
    background-color: var(--bg-light);
    border: none;
    color: var(--text-dark);
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-btn-cloned.plus {
    background-color: var(--primary-red);
    color: var(--bg-white);
    margin-left: 5px;
}

.item-qty-display {
    font-weight: 600;
    font-size: 16px;
    padding: 0 10px;
    color: var(--text-dark);
}

.remove-btn {
    background-color: var(--primary-red);
    color: var(--bg-white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px; 
    font-size: 14px;
    flex-shrink: 0;
}
