/* CSS Desktop para Carrinho */
/* Este arquivo será usado para dispositivos desktop e tablet */

/* Variáveis CSS - UNIFICADAS COM DESKINDEX.CSS */
:root {
  --primary: #8e44ad; /* Roxo principal - unificado */
  --secondary: #2C3E50;
  --background: #F8F9FA;
  --card-bg: #FFFFFF;
  --text: #2C3E50;
  --text-muted: #6C757D;
  --border: #DEE2E6;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #e74c3c;
  --info: #17A2B8;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --spacing: 1rem;
  --fidelity: #9b59b6;
  
  /* Tema escuro */
  --dark-bg: #1a1a1a;
  --dark-card: #2d2d2d;
  --dark-text: #ffffff;
  --dark-text-muted: #b0b0b0;
  --dark-border: #404040;

  /* Alias para compatibilidade */
  --primary-dark: #6c3483;
  --accent: #4361ee;
  --light: #e2e8f0;
  --lighter: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: var(--shadow);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: var(--radius);
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.2s ease;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
  transition: all 0.3s ease;
}

/* Tema escuro */
[data-theme="dark"] {
  --background: var(--dark-bg);
  --card-bg: var(--dark-card);
  --text: var(--dark-text);
  --text-muted: var(--dark-text-muted);
  --border: var(--dark-border);
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

/* Layout em grid para desktop */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

/* Welcome message - MELHORADO */
.welcome-message {
  background: linear-gradient(135deg, var(--primary) 0%, #6c3483 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.welcome-message strong {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.welcome-message .pontos-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.welcome-message .pontos-valor {
  font-weight: 700;
  color: #ffd700;
}

/* Login reminder */
.login-reminder {
  background: linear-gradient(135deg, var(--info) 0%, #138496 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 2rem;
  display: none;
  box-shadow: var(--shadow);
}

.login-reminder.show {
  display: block;
  animation: slideDown 0.5s ease-out;
}

.login-reminder-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.login-reminder-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 0.875rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.login-reminder-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Pedido mínimo warning */
.pedido-minimo-warning {
  background: #fff3cd;
  border: 2px solid #ffeaa7;
  border-left: 6px solid var(--warning);
  color: #856404;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: none;
  box-shadow: var(--shadow);
}

.pedido-minimo-warning.show {
  display: block;
  animation: slideDown 0.5s ease-out;
}

.pedido-minimo-warning i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
  color: var(--warning);
}

.warning-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.warning-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.warning-valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}

.valor-atual,
.valor-minimo {
  padding: 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-weight: 600;
}

.valor-atual span,
.valor-minimo span {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 0.25rem;
}

/* Carrinho container */
#carrinho-container {
  min-height: 200px;
}

/* Vazio state */
.vazio {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Items do carrinho */
.item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
}

.item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(142, 68, 173, 0.15);
}

.item-imagem {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

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

.item-info h3 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.item-price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.item-price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Pizza sabores no carrinho */
.pizza-sabores {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--info);
}

.pizza-tipo {
  font-weight: 700;
  color: var(--info);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sabor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.sabor-item:last-child {
  border-bottom: none;
}

.sabor-nome {
  font-weight: 600;
  color: var(--text);
}

.sabor-preco {
  font-weight: 600;
  color: var(--info);
}

/* Pizza borda */
.pizza-borda {
  background: #f0fff4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--success);
}

.borda-titulo {
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.borda-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.borda-nome {
  font-weight: 600;
  color: var(--text);
}

.borda-preco {
  font-weight: 600;
  color: var(--success);
}

.borda-preco.free {
  color: var(--success);
}

/* Pizza complementos */
.pizza-complementos {
  background: #f3e5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--fidelity);
}

.complementos-titulo {
  font-weight: 700;
  color: var(--fidelity);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.complemento-pizza-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(156, 39, 176, 0.2);
}

.complemento-pizza-item:last-child {
  border-bottom: none;
}

.complemento-pizza-nome {
  font-weight: 600;
  color: var(--text);
}

.complemento-pizza-preco {
  font-weight: 600;
  color: var(--fidelity);
}

/* Pizza adicionais */
.pizza-adicionais {
  background: #f3e5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--fidelity);
}

.adicionais-titulo {
  font-weight: 700;
  color: var(--fidelity);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.adicional-pizza-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(156, 39, 176, 0.2);
}

.adicional-pizza-item:last-child {
  border-bottom: none;
}

.adicional-pizza-nome {
  font-weight: 600;
  color: var(--text);
}

.adicional-pizza-preco {
  font-weight: 600;
  color: var(--fidelity);
}

/* Adicionais lista (outros itens) */
.adicionais-lista {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.adicional-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.adicional-item:last-child {
  border-bottom: none;
}

/* Observação do item */
.item-observacao {
  background: #fff3cd;
  color: #856404;
  padding: 0.75rem;
  border-radius: 6px;
  font-style: italic;
  margin-top: 1rem;
  border-left: 4px solid var(--warning);
}

/* Preço e contador */
.preco {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: right;
}

.contador {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.contador button {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contador button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.contador input {
  width: 60px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--background);
  color: var(--text);
}

/* Limpar carrinho */
.limpar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 2px dashed var(--danger);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  color: var(--danger);
}

.limpar-wrapper:hover {
  background: rgba(231, 76, 60, 0.05);
  border-style: solid;
  transform: translateY(-2px);
}

.limpar-icon {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.limpar-wrapper:hover .limpar-icon {
  transform: scale(1.1);
}

.limpar-texto {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Delivery options */
.delivery-options {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.delivery-options h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

.options-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.option-card {
  background: var(--background);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.option-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(142, 68, 173, 0.2);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(142, 68, 173, 0.05);
}

.option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
}

.option-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.option-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.option-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.option-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.tempo {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-weight: 600;
  display: inline-block;
}

.disabled-message {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Seção de pagamento */
.pagamento-section {
  position: sticky;
  top: 2rem;
}

/* Endereço section */
.endereco-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: none;
}

.endereco-section.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.pergunta-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  display: block;
  text-align: center;
}

/* Endereço salvo */
.saved-address-card {
  background: #f0fff4;
  border: 2px solid #c3e6cb;
  border-left: 6px solid var(--success);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.saved-address-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.saved-address-card p {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.saved-address-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.edit-address-btn,
.use-address-btn {
  flex: 1;
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.edit-address-btn {
  background: var(--warning);
  color: white;
}

.edit-address-btn:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.use-address-btn {
  background: var(--success);
  color: white;
}

.use-address-btn:hover {
  background: #1e7e34;
  transform: translateY(-2px);
}

/* Form groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-control {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.form-group input.valid,
.form-control.valid {
  border-color: var(--success);
}

.form-group input.invalid,
.form-control.invalid {
  border-color: var(--danger);
}

/* Distance calculation status */
.distance-calculation-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.distance-calculation-status.loading {
  background: #e3f2fd;
  color: var(--info);
  border-left: 4px solid var(--info);
  display: block;
}

.distance-calculation-status.success {
  background: #f0fff4;
  color: var(--success);
  border-left: 4px solid var(--success);
  display: block;
}

.distance-calculation-status.error {
  background: #fff5f5;
  color: var(--danger);
  border-left: 4px solid var(--danger);
  display: block;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

.distance-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.distance-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
}

.distance-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.distance-value {
  font-weight: 700;
  color: var(--text);
}

/* Modalidade de pagamento */
.modalidade-pagamento-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: none;
}

.modalidade-pagamento-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

.modalidade-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.modalidade-card {
  background: var(--background);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.modalidade-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(142, 68, 173, 0.2);
}

.modalidade-card.selected {
  border-color: var(--primary);
  background: rgba(142, 68, 173, 0.05);
}

.modalidade-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
}

.modalidade-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.modalidade-card.fidelidade {
  border-color: var(--fidelity);
}

.modalidade-card.fidelidade:hover,
.modalidade-card.fidelidade.selected {
  border-color: var(--fidelity);
  background: rgba(155, 89, 182, 0.05);
}

.modalidade-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.modalidade-card.fidelidade i {
  color: var(--fidelity);
}

.modalidade-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.modalidade-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

.fidelidade-taxa-info {
  background: rgba(155, 89, 182, 0.1);
  color: var(--fidelity);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Formas de pagamento */
.formas-pagamento {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: none;
}

.payment-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.payment-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.payment-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.payment-option {
  display: block;
  cursor: pointer;
  position: relative;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--background);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.payment-option:hover .payment-content {
  border-color: var(--primary);
  background: rgba(142, 68, 173, 0.05);
}

.payment-option.selected .payment-content {
  border-color: var(--primary);
  background: rgba(142, 68, 173, 0.05);
}

.payment-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.payment-option.disabled:hover .payment-content {
  border-color: var(--border);
  background: var(--background);
}

.payment-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.payment-details {
  flex: 1;
}

.payment-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.payment-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.payment-check {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.3s ease;
}

.payment-option.selected .payment-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.payment-disabled-message {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Troco info */
.troco-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: none;
}

.troco-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.troco-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.troco-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.troco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.troco-option {
  display: block;
  cursor: pointer;
  position: relative;
}

.troco-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.troco-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--background);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.troco-option:hover .troco-content {
  border-color: var(--warning);
  background: rgba(230, 126, 34, 0.05);
}

.troco-option.selected .troco-content {
  border-color: var(--warning);
  background: rgba(230, 126, 34, 0.05);
}

.troco-icon {
  width: 50px;
  height: 50px;
  background: var(--warning);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.troco-details {
  flex: 1;
}

.troco-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.troco-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.troco-check {
  width: 25px;
  height: 25px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.3s ease;
}

.troco-option.selected .troco-check {
  background: var(--warning);
  border-color: var(--warning);
  color: white;
}

/* Valor do troco */
.valor-troco-container {
  background: #fff3cd;
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 6px solid var(--warning);
  display: none;
}

.valor-troco-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.valor-troco-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  border: 3px solid var(--warning);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
}

.valor-troco-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.valor-troco-hint {
  margin-top: 1rem;
  color: #856404;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* Error message */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 4px solid var(--danger);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cart summary */
.cart-summary {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 2px solid var(--primary);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.cart-row.subtotal {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.delivery-fee {
  color: var(--warning);
  font-weight: 600;
}

.pontos-discount {
  color: var(--fidelity);
  font-weight: 600;
}

.cart-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Calculation status */
.calculation-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Confirmar pedido */
.confirmar-btn {
  width: 100%;
  background: #ccc;
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: not-allowed;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.confirmar-btn.ativo {
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(142, 68, 173, 0.3);
}

.confirmar-btn.ativo:hover {
  background: #6c3483;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(142, 68, 173, 0.4);
}

.confirmar-btn.bloqueado {
  background: var(--warning);
  cursor: not-allowed;
}

/* ===== MODAIS UNIFICADOS ===== */

/* Modal overlay - fundo semi-transparente */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

/* Container do modal */
.modal-container {
  background: var(--card-bg);
  width: 90%;
  max-width: 500px;
  margin: 50px auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  border: 2px solid var(--border);
}

/* Header do modal */
.modal-header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botão de fechar */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Corpo do modal */
.modal-body {
  padding: 2rem;
}

/* Botões do modal */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-submit:hover {
  background: #6c3483;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(142, 68, 173, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-cancel {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.btn-confirmar,
.btn-cancelar {
  flex: 1;
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirmar {
  background: var(--primary);
  color: white;
}

.btn-confirmar:hover {
  background: #6c3483;
  transform: translateY(-2px);
}

.btn-cancelar {
  background: var(--background);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-cancelar:hover {
  background: var(--border);
}

/* Alertas */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

/* Tema escuro para alertas */
[data-theme="dark"] .alert-danger {
  background: #2d1b1e;
  color: #f8d7da;
  border-color: #721c24;
}

[data-theme="dark"] .alert-success {
  background: #1c2d20;
  color: #d4edda;
  border-color: #155724;
}

/* Spinner de carregamento */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

/* Loader overlay */
.loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  backdrop-filter: blur(4px);
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Menu inferior */
.menu-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

.menu-inferior a {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.menu-inferior a:hover {
  color: var(--primary);
  background: rgba(142, 68, 173, 0.1);
}

.menu-inferior a.active {
  color: var(--primary);
  background: rgba(142, 68, 173, 0.1);
}

.menu-inferior a i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.notificacao-carrinho {
  position: absolute;
  top: 0.5rem;
  right: 50%;
  transform: translateX(50%);
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Animações do modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo para tablets */
@media (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }
  
  .main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pagamento-section {
    position: static;
  }
  
  .options-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modalidade-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .troco-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .warning-valores {
    grid-template-columns: 1fr;
  }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .container h2 {
    font-size: 2rem;
  }
  
  .welcome-message {
    padding: 1.5rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .login-reminder {
    padding: 1.5rem;
  }
  
  .login-reminder-text {
    font-size: 1rem;
  }
  
  .pedido-minimo-warning {
    padding: 1.5rem;
  }
  
  .warning-title {
    font-size: 1.1rem;
  }
  
  .item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .item-imagem {
    width: 100%;
    height: 150px;
  }
  
  .delivery-options {
    padding: 1.5rem;
  }
  
  .delivery-options h3 {
    font-size: 1.25rem;
  }
  
  .option-card {
    padding: 1.5rem;
  }
  
  .option-card i {
    font-size: 2.5rem;
  }
  
  .option-card h4 {
    font-size: 1.1rem;
  }
  
  .endereco-section,
  .modalidade-pagamento-section,
  .formas-pagamento,
  .troco-info,
  .cart-summary {
    padding: 1.5rem;
  }
  
  .pergunta-label {
    font-size: 1.1rem;
  }
  
  .saved-address-card {
    padding: 1.5rem;
  }
  
  .saved-address-actions {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .distance-info {
    grid-template-columns: 1fr;
  }
  
  .payment-grid {
    gap: 0.75rem;
  }
  
  .payment-content {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .payment-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .payment-title {
    font-size: 1.1rem;
  }
  
  .payment-subtitle {
    font-size: 0.85rem;
  }
  
  .troco-content {
    padding: 1.25rem;
  }
  
  .troco-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .troco-title {
    font-size: 1rem;
  }
  
  .troco-subtitle {
    font-size: 0.85rem;
  }
  
  .valor-troco-container {
    padding: 1.5rem;
  }
  
  .valor-troco-label {
    font-size: 1.1rem;
  }
  
  .valor-troco-input {
    font-size: 1.2rem;
  }
  
  .cart-row {
    font-size: 1rem;
  }
  
  .cart-total {
    font-size: 1.25rem;
  }
  
  .confirmar-btn {
    font-size: 1.1rem;
  }
  
  .modal-container {
    width: 95%;
    margin: 30px auto;
  }
  
  .modal-title {
    font-size: 1.25rem;
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-buttons {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
}

/* Animações */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}