

:root {
  /* Paleta de cores (referência apenas) */
  /* --bg-main: #ffffff;
  --bg-header-footer: #f8f8f8;
  --text-primary: #4a4a4a;
  --text-secondary: #7a7a7a;
  --button-primary: #4CAF50;
  --button-hover: #388E3C;
  --button-text: #ffffff;
  --promo-bg: #FFD54F;
  --promo-text: #4a4a4a;
  --selected-border: #c8e6c9;
  --selected-bg: #f1f8f2;
  --security-text: #66BB6A;
  --step-active-bg: #4CAF50;
  --step-active-text: #ffffff;
  --step-inactive-bg: #e8e8e8;
  --step-inactive-text: #7a7a7a;
  --divider: #eeeeee;
  --input-border: #e0e0e0;
  --input-focus: #4CAF50;
  --shadow-light: 0 2px 5px rgba(0,0,0,0.05);
  --shadow-medium: 0 4px 10px rgba(0,0,0,0.1); */
}

/* Aplicação prática das cores */
body {
  background-color: #ffffff;
  color: #4a4a4a;
}

header,
footer {
  background-color: #f8f8f8;
  color: #4a4a4a;
}

h1, h2, h3, h4, h5, h6 {
  color: #4a4a4a;
}

button {
  background-color: #4CAF50;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover {
  background-color: #388E3C;
}

input,
textarea,
select {
  border: 1px solid #e0e0e0;
  padding: 8px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.divider {
  border-top: 1px solid #eeeeee;
}

.promo {
  background-color: #FFD54F;
  color: #4a4a4a;
}

.step-active {
  background-color: #4CAF50;
  color: #ffffff;
}

.step-inactive {
  background-color: #e8e8e8;
  color: #7a7a7a;
}

.alerta-seguro {
  color: #66BB6A;
}

.sombra-leve {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sombra-media {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}



/* Reset e estilos gerais */
.novem-checkout * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.novem-checkout {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
}

.novem-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.novem-header {
    background-color: var(--bg-header-footer);
    padding: 16px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
}

.novem-logo {
    height: 32px;
    margin-bottom: 12px;
}

/* Steps Progress */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--divider);
    z-index: -1;
    transform: translateY(-50%);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--step-inactive-bg);
    color: var(--step-inactive-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step.active .step-icon {
    background-color: var(--step-active-bg);
    color: var(--step-active-text);
}

.step.completed .step-icon {
    background-color: var(--button-primary);
    color: var(--button-text);
}

.step-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    max-width: 70px;
}

.step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Main content */
.novem-main {
    padding: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Cart summary */
.cart-summary {
    background-color: var(--bg-main);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--divider);
}

.cart-title {
    font-size: 16px;
    font-weight: 600;
}

.edit-cart {
    color: var(--button-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.cart-items {
    padding: 12px 16px;
}

.cart-item {
    display: flex;
    margin-bottom: 16px;
    position: relative;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.item-image {
    width: 64px;
    height: 80px;
    border-radius: 8px;
    background-color: #f3f3f3;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
    padding-left: 12px;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-variant {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.item-quantity {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-price {
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
}

.promo-tag {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--promo-bg);
    color: var(--promo-text);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 16px;
    animation: pulse 2s infinite;
}

/* Subtotal section */
.subtotal-section {
    background-color: var(--bg-main);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price-row.total {
    margin-top: 12px;
    border-top: 1px solid var(--divider);
    padding-top: 12px;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 14px;
    font-weight: 500;
}

.price-row.total .price-label,
.price-row.total .price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.discount {
    color: #4CAF50;
}

/* Form section */
.form-section {
    background-color: var(--bg-main);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 16px;
}

.novem-checkout label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.input-field {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.checkbox-input {
    margin-right: 12px;
    margin-top: 3px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Buttons */
.novem-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.novem-btn-primary {
    background-color: var(--button-primary);
    color: var(--button-text);
    box-shadow: var(--shadow-light);
}

.novem-btn-primary:hover {
    background-color: var(--button-hover);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    margin-left: 8px;
    font-size: 18px;
}

/* Security banner */
.security-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: var(--selected-bg);
    border-radius: 8px;
    margin-top: 16px;
}

.security-icon {
    margin-right: 8px;
    color: var(--security-text);
}

.security-text {
    font-size: 12px;
    color: var(--security-text);
    font-weight: 500;
    text-align: center;
}

/* Footer */
.novem-footer {
    background-color: var(--bg-header-footer);
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-icon {
    width: 32px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 4px;
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsividade */
@media (min-width: 480px) {
    .novem-container {
        padding: 20px;
    }
    
    .novem-header, .novem-footer {
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .novem-footer {
        margin-top: 20px;
        margin-bottom: 0;
    }
}