/* cabeçalho */

.body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fffafa;
}

/* cabeçalho simplificado */

.simple-header {
    background-color: #ffe0e6;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-logo {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    font-size: 20px;
    margin-right: 5px;
    color: #555;
}

.header-nav {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #333;
}

.customer-support .nav-icon {
    margin-right: 5px;
}

    /* pagina checkout*/

/* reset básico */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fffafa;
}

.checkout-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* cabeçalho centralizado */

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #aa281f;
    margin-bottom: 5px;
}

.checkout-header p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* layout duas colunas */

.checkout-layout-container {
    display: flex;
    gap: 40px;
}

.details-column {
    flex: 2; 
    padding-right: 20px;
}

.summary-column {
    flex: 1; 
    background-color: white;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.details-column h2,
.summary-column h2 {
    font-size: 18px;
    font-weight: 700;
    color: #aa281f;
    margin-top: 0;
    margin-bottom: 20px;
}

/* informações do usuário */

.user-info-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.user-header h2 {
    font-size: 18px;
    margin: 0 0 0 10px;
    flex-grow: 1;
}

.user-icon {
    font-size: 20px;
    color: #333;
}

.change-link {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}

.detail-group {
    font-size: 14px;
}

.detail-label {
    display: block;
    color: #777;
    margin-bottom: 5px;
}

.detail-value {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

/* seção de detalhes do envio e itens */

.shipping-details-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #aa281f;
    margin-top: 0;
    margin-bottom: 20px;
}

/* estilo do item */
.checkout-item {
    display: flex;
    gap: 20px;
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.item-media-placeholder {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-info {
    flex-grow: 1;
}

.item-info .product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.description {
    font-size: 13px;
    color: #777;
    margin: 0 0 5px 0;
}

.quantity-control {
    margin-top: 10px;
}

.qty-input {
    width: 50px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #777;
}

.price-section {
    display: flex;
    flex-direction: column;
}

.current-price-small {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.old-price-small {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.savings-text {
    font-size: 12px;
    color: green;
    margin-top: 5px;
}

/* resumo */

.summary-details {
    padding-bottom: 20px;
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.savings-line {
    color: green;
}

.discount-code-line {
    color: orange;
}

/* Gift Card / Discount */
.discount-gift-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.discount-input-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.discount-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.apply-btn {
    padding: 10px 15px;
    background-color: #c45757;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    /*frete*/

/* --- Contêiner Principal do Cartão --- */
.shipping-options-card-group {
    max-width: 900px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 0;
    font-family: Arial, sans-serif;
    margin: 30px auto;
}

/* Linha Divisória */
.shipping-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0;
}

/* --- Item Individual (Contêiner) --- */
.shipping-option-item {
    position: relative;
}

/* --- O Label que contém rádio, conteúdo e preço --- */
.option-label {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    cursor: pointer;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Esconde o rádio nativo e o posiciona para o CSS customizado */
.option-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: 20px;
    top: 20px;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #aaa;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
}

/* Estilo do Rádio Selecionado (Círculo interno) */
.option-label input[type="radio"]:checked {
    border-color: #333;
}

.option-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

/* --- Conteúdo (Título/Tempo/Endereço) --- */
.option-content {
    flex-grow: 1; 
    margin-left: 30px;
    padding-right: 15px;
    font-size: 14px;
}

.title {
    display: block; 
    font-weight: bold;
    font-size: 15px;
    color: #333;
    line-height: 1.2;
    margin-bottom: 3px;
}

.time {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* --- Preço (Canto Direito) --- */
.price {
    flex-shrink: 0; 
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding-top: 0;
}

/* --- Detalhes do Endereço (Visível apenas em Pick-up) --- */
.address-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f9f9f9;
}

.ship-to-label {
    display: block;
    color: #777;
    margin-bottom: 3px;
    font-size: 13px;
}

.address-text {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

/* Ajuste para alinhar o preço do Home Delivery corretamente quando não há address-details */
.shipping-option-item:last-child .option-label {
    align-items: center;
}

    /* pagamento */

/* --- Reset Básico e Estrutura do Contêiner --- */

.payment-container-wrapper {
    max-width: 900px; 
    margin: 20px auto; 
    padding: 0 20px;
}

.payment-title {
    font-size: 24px;
    font-weight: bold;
    color: #aa281f;
    margin: 0 0 20px 0;
    margin-top: 30px;
}

/* --- Cartão de Opções de Pagamento --- */
.payment-option-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* --- Estilo de Cada Opção (Label) --- */
.payment-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}

/* Esconde o rádio nativo e usa o estilo customizado (simples) */
.payment-option-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    top: -1px;
    flex-shrink: 0;
}

.payment-option-label input[type="radio"]:checked {
    border-color: #333;
}

.payment-option-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.option-name {
    font-weight: bold;
    flex-grow: 1;
    margin-left: 5px;
}

.card-icon svg {
    margin-right: 5px;
    height: 24px;
    width: 24px;
}

/* --- Separador --- */
.option-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* --- Opções de Logo --- */
.payment-logo {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.pix-logo-placeholder {
    color: #32bcad;
    background-color: #e0f7f5;
}

.boleto-logo-placeholder {
    color: #333;
    background-color: #f0f0f0;
}

.paypal-logo-placeholder {
    color: #003087;
    background-color: #f7b80a;
}

.applepay-logo-placeholder {
    color: white;
    background-color: black;
    font-family: 'SF Pro Display', sans-serif;
    padding: 5px 8px;
}

/* --- Formulário de Cartão (Visível) --- */
.card-form-details {
    padding: 15px 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
}

.input-group.full-width {
    width: 100%;
}

.input-group.split-half {
    flex: 1;
}

.card-form-details input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
}

.input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
    cursor: pointer;
}

.input-icon.help-icon {
    background-color: #ddd;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    font-size: 12px;
}

/* --- Logos de Cartão --- */
.card-logos {
    margin: 10px 0;
    display: flex;
    gap: 5px;
}

.card-logo {
    width: 40px; 
    height: 25px;
    border: 1px solid #eee;
    border-radius: 3px;
    background-color: #f5f5f5;
}

/* --- Informação de Segurança --- */
.security-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    width: 100%;
}

.lock-icon {
    font-size: 16px;
    margin-right: 8px;
}

.security-info a {
    color: #555;
    text-decoration: underline;
}

/* --- Botão Final --- */
.complete-purchase-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #b72730;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.complete-purchase-btn:hover {
    background-color: #9a2029;
}

    /* rodapé */
    
/* --- estilização do rodapé --- */

.footer {
    background-color: #fffafa; 
    padding: 30px 20px; 
    border-top: 1px solid #999; 
    font-family: Arial, sans-serif;
}

/* estilização do conteúdo */

.footer .content {
    max-width: 960px; 
    margin: 0 auto;
}

.footer .has-text-centered {
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* estilização dos links */

.footer a {
    color: #b72730;
    text-decoration: none; 
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #b72730;
    text-decoration: underline;
}

/* estilização do destaque */

.footer strong {
    color: #333333;
    font-weight: bold;
}
