/* --- Layout Principal da Página --- */


.cart-items-column h1 {
    font-family: 'roboto flex';
    font-size: 1.7em;
    margin-top: 0;
    margin-bottom: 10px; /* Reduz a margem para acomodar o novo bloco */
}

/* --- NOVOS ESTILOS PARA O CABEÇALHO DO CARRINHO --- */
.cart-header-summary {
    margin-bottom: 20px;
}

.cart-total-summary {
    display: flex;
    justify-content: left; /* Alinha o TOTAL à esquerda e o Preço à direita */
    align-items: center;
    font-size: 1.0em;
    font-weight: 600;
    padding: 10px 0;
}

.cart-disclaimer {
    font-size: 0.85em;
    color: #6c757d;
    margin: 5px 0 0 0;
    text-align: left;
}

.cart-page-container {
    font-family: 'Victor mono';
    display: flex;
    flex-wrap: wrap; /* Permite que a coluna de sumário vá para baixo em telas menores */
    gap: 20px;
    max-width: 1200px;
    margin: 40px 70PX;
}

.total-header-cart {
    margin-left: 10px;
    color: #a71c1c;
    font-family: 'quicksand';
}

.cart-items-column {
    flex: 2; /* Ocupa 2/3 do espaço */
    min-width: 300px;
}
.cart-items-column h1 {
    font-size: 1.8em;
    margin-top: 0;
}
.cart-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.cart-summary-column {
    flex: 1; /* Ocupa 1/3 do espaço */
    min-width: 300px;
}

/* --- Card de Item do Carrinho --- */
.cart-item-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: black solid 1px;
    margin-bottom: 2em;
}

.card-image-section {
    display: flex;
    height: 100%;
}
.card-image-section img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    object-position: top;
}

.card-details-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.card-info-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 0.4rem;
}

.product-name-link {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}
.variant-attributes {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 0 0;
}

.card-price {
    font-size: 1.1em;
    font-weight: 600;
    white-space: nowrap;
}

.card-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
    -moz-appearance: textfield; /* Remove setas em Firefox */
    appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Remove setas em Chrome/Safari */
  margin: 0;
}
.quantity-selector button {
    border: none;
    background: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
}

.item-buttons {
    display: flex;
    gap: 15px;
}

.action-link {
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}
.action-link:hover {
    text-decoration: underline;
}

/* --- Card de Sumário da Compra --- */
.summary-card {
    border-radius: 8px;
    padding: 25px;
}
.summary-card h3 {
    margin-top: 0;
    font-size: 1.4em;
    font-family: 'roboto flex';
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.summary-row, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85em;
}
.summary-total {
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
}
.checkout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: #000000;
    color: #fff;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
