/* ============================================
   STEPPER OVERLAY - DESIGN LIMPO E PROFISSIONAL
   ============================================ */

/* ========== OVERLAY BASE ========== */
#overlay-produto {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease;
}

/* Esconde o footer do app quando o overlay está aberto */
body.overlay-aberto .cliente-footer-wrapper,
body.overlay-aberto footer.cliente-footer-wrapper,
body.overlay-aberto nav.cliente-footer {
  display: none !important;
  visibility: hidden !important;
}

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

.stepper-overlay-conteudo {
  background: rgba(255, 255, 255, 0.98) !important;
  /* backdrop-filter: blur(20px); */
  /* border-radius: 24px; */
  width: 100vw;
  /* max-width: 540px; */
  height: 100vh;
  /* margin: 3rem auto; */
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== CABEÇALHO DO PRODUTO ========== */
.produto-header {
  flex-shrink: 0;
  padding: 1.8rem 3rem 1.2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 95%;
}

.produto-header-img {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
}

.produto-header-info {
  flex: 1;
  min-width: 0;
}

.produto-header-nome {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2563eb;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========== INDICADOR DE PROGRESSO ========== */
.stepper-progress-indicator {
  flex-shrink: 0;
  /* padding: 1.5rem 3rem; */
  background: #fffdfd;
  display: flex;
  justify-content: space-between;
  /* position: relative; */
  gap: 2rem;
  width: 98%;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.progress-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  transition: all 0.3s;
  border: 3px solid #e5e7eb;
}

.progress-step.active .progress-dot {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.progress-step.completed .progress-dot {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.progress-step-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  transition: all 0.3s;
  white-space: nowrap;
}

.progress-step.active .progress-step-label {
  color: #2563eb;
  font-weight: 700;
}

.progress-step.completed .progress-step-label {
  color: #10b981;
}

.progress-line {
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  right: calc(-100% + 22px);
  height: 3px;
  background: #e5e7eb;
  z-index: 1;
  transition: all 0.3s;
}

.progress-step:last-child .progress-line {
  display: none;
}

.progress-line.completed {
  background: #10b981;
}

/* ========== BOTÃO FECHAR ========== */
.stepper-overlay-fechar {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 102;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stepper-overlay-fechar:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  transform: rotate(90deg);
}

/* ========== CONTEÚDO ========== */
.stepper-pane-content {
  flex: 1;
  overflow-y: auto;
  /* padding: 2rem 3rem 2rem; */
  margin: 1rem;
  width: 95%;
}

.stepper-step {
  display: none;
  animation: fadeInContent 0.3s ease;
}

.stepper-step.active {
  display: flex;
  width: 98%;
  margin: 5px;
  flex-direction: column;
  align-items: stretch;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== TÍTULO DO PANE ========== */
.pane-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #2563eb;
  margin: 0 0 2.5rem 0;
  text-align: center;
  letter-spacing: -0.03em;
}

.stepper-pane-header {
  margin-bottom: 0.5rem;
  text-align: center;
  background-color: #aaddfaa1;
  border-radius: 15px;
  padding-top: 1px;
}

/* ========== OPÇÕES (TAMANHOS/GRUPOS) ========== */
.stepper-pane-options {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2rem;
  justify-items: stretch;
}

.stepper-grupo-item {
  background: white;
  border: 2px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stepper-grupo-item:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(239, 246, 255, 0.8);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.stepper-grupo-item.selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.9));
  /* box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.2); */
  /* transform: translateX(8px); */
}

.stepper-grupo-item input[type="radio"],
.stepper-grupo-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: white;
  transition: all 0.2s ease;
  position: relative;
}

.stepper-grupo-item input[type="radio"]:checked,
.stepper-grupo-item input[type="checkbox"]:checked {
  background: #10b981;
  border-color: #10b981;
}

.stepper-grupo-item input[type="checkbox"]:checked::after,
.stepper-grupo-item input[type="radio"]:checked::after {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.stepper-grupo-item-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.stepper-grupo-item-nome {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f172a;
}

.stepper-grupo-item-preco {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

/* ========== GRUPOS DE ADICIONAIS ========== */
.stepper-grupo-pane {
  margin-bottom: 2.5rem;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 2rem;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(147, 51, 234, 0.4)) border-box;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stepper-grupo-pane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  opacity: 0.8;
}

.stepper-grupo-pane:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}

.stepper-grupo-pane-header h4 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.8rem 0;
  letter-spacing: -0.02em;
}

.stepper-grupo-pane-desc {
  font-size: 1.4rem;
  color: #475569;
  margin: 0 0 2rem 0;
  line-height: 1.6;
  font-weight: 500;
}

/* ========== TELA FINAL ========== */
.final-summary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.final-summary h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.final-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.final-summary li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 1.5rem;
  color: #323c4a;
}

.final-summary li:last-child {
  border-bottom: none;
  /* border-top: 2px solid #e2e8f0; */
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.6rem;
  color: #0f172a;
}

.final-controls {
  display: grid;
  gap: 2.5rem;
}

.control-group {
  display: grid;
  gap: 1rem;
}

.control-group label {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
}

/* ========== SELETOR DE QUANTIDADE ========== */
.stepper-qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: #f8fafc;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  justify-content: center;
}

.stepper-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: white;
  color: #64748b;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
}

.stepper-qty-btn:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
  transform: scale(1.1);
}

#qty-selector {
  min-width: 50px;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: #0f172a;
}

/* ========== TEXTAREA OBSERVAÇÕES ========== */
.obs-textarea {
  /* width: 95%; */
  padding: 1.2rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.5rem;
  font-family: inherit;
  resize: none;
  transition: all 0.2s;
  background: #f8fafc;
  color: #0f172a;
}

.obs-textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.obs-counter {
  text-align: right;
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ========== DISPLAY DE PREÇO ========== */
.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.price-label {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-value {
  font-size: 3.2rem;
  font-weight: 900;
  color: #1e40af;
  letter-spacing: -0.02em;
}

/* ========== NAVEGAÇÃO ========== */
.stepper-nav {
  flex-shrink: 0;
  padding: 1.5rem 3rem 2rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-top: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: 0 0 24px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(37, 99, 235, 0.1);
  width: 95%;
}

.btn-voltar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  background: white;
  color: #2563eb;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-voltar:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

.btn-continuar {
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-continuar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
}

.btn-continuar:active {
  transform: translateY(0);
}

.btn-continuar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== MENSAGENS DE ERRO ========== */
.stepper-pane-error {
  background: #fee2e2;
  color: #dc2626;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  display: none;
  text-align: center;
}

.stepper-pane-error.show {
  display: block;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  .overlay-conteudo {
    width: calc(100vw - 1rem);
    height: calc(100vh - 4rem);
    margin: 2rem auto;
    border-radius: 20px;
  }

  .stepper-content {
    padding: 1.5rem 2rem 1.5rem;
  }

  .pane-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .produto-header {
    padding: 1.2rem 1.5rem 1rem;
    border-radius: 20px 20px 0 0;
  }

  .produto-header-img {
    width: 150px;
    height: 150px;
  }

  .produto-header-nome {
    font-size: 2.2rem;
  }

  .stepper-progress-indicator {
    /* padding: 1rem 1.5rem 1.5rem; */
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  .progress-dot {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .progress-step-label {
    font-size: 1.1rem;
  }

  .stepper-overlay-fechar {
    top: 4.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .stepper-nav {
    padding: 1.2rem 1.5rem 1.5rem;
    border-radius: 0 0 20px 20px;
    width: 95%;
  }

  .btn-continuar {
    height: 46px;
    font-size: 1.4rem;
  }

  .btn-voltar {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  .stepper-grupo-item {
    padding: 1.5rem 1.8rem;
  }

  .stepper-grupo-item-nome {
    font-size: 1.5rem;
  }

  .stepper-grupo-item-preco {
    font-size: 1.4rem;
  }

  .price-display {
    padding: 2rem;
  }

  .price-value {
    font-size: 2rem;
  }
}

/* ==========================================
   NOVO LAYOUT MOBILE-FIRST (2026-01-05)
   Baseado em design limpo e funcional
   ========================================== */

/* Backdrop escuro */
.overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeIn 0.3s ease;
}

/* Sheet que sobe de baixo */
.overlay-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  height: 100dvh;
  background: #fff;
  border-radius: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botão fechar (X) */
.overlay-close-btn {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.overlay-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.overlay-close-btn i {
  font-size: 1.6rem;
  color: #64748b;
}

/* Conteúdo scrollável */
.overlay-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 9rem 0; /* Espaço para o footer fixo */
  -webkit-overflow-scrolling: touch;
}

/* Imagem do produto */
.product-image-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  /* width: 100%; */
  /* height: 100%; */
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-xl);
  margin: 0rem 2rem 0 2rem;
}

/* Informações do produto */
.product-info {
  padding: 0rem 1.5rem 0;
}

.product-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.product-description {
  font-size: 1.5rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 1rem 1rem;
}

/* Seletor de quantidade */
.quantity-selector {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.5rem;
  border-left: 7px solid var(--color-primary);
  border-radius: 18px;
}

.quantity-label {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  /* gap: 0.8rem; */
  /* background: #f1f5f9; */
  /* padding: 0.8rem 1.2rem; */
  /* border-radius: 12px; */
  /* width: fit-content; */
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none; /* Remove outline azul padrão do navegador */
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-btn:focus {
  outline: none; /* Remove outline azul ao focar */
  background: transparent; /* Mantém background transparente */
}

.qty-btn i {
  font-size: 1.6rem;
  color: var(--color-primary);
}

.qty-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 28px;
  text-align: center;
}

/* Seções (Tamanhos, Grupos) */
.product-section {
  padding: 1rem;
  margin: 1.2rem 1.2rem 3rem;
  /* border-top: 1px solid #e2e8f0; */
  /* background: var(--color-bg-card); */
  border: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border-left: 7px solid var(--color-primary);
  border-radius: 18px;
}

.section-header {
  /* background: #f8fafc; */
  padding: 1.2rem 0.9rem;
  border-radius: 8px;
  /* margin-bottom: 1.6rem; */
  /* box-shadow: var(--shadow-card); */
  /* background: linear-gradient(61deg, #edf0f5, #cfd8e9, #3b82f6); */
  background: #eff6ff;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Lista de opções (tamanhos e adicionais) */
.options-list {
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */
}

/* Card de opção individual */
.option-card {
  background: #fff;
  /* border: 2px solid #e2e8f0; */
  border-radius: 12px;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.4s ease;
  margin: 0 0 0.3rem 1.5rem;
}

.option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.option-card.selected {
  /* border-color: var(--color-primary);
  background: #eff6ff; */
  box-shadow: var(--shadow-card);
}

.option-card.has-quantity {
  background: #eff6ff;
  box-shadow: var(--shadow-card);
}

.option-card-info {
  flex: 1;
}

.option-card-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.option-card-price {
  font-size: 1.4rem;
  color: #64748b;
  margin: 0;
}

.option-card-action {
  width: 25px;
  height: 25px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
}

.option-card.selected .option-card-action {
  border-color: var(--color-primary);
  background: #3b82f6;
}

.option-card.selected .option-card-action i {
  color: #fff;
}

.option-card-action i {
  font-size: 1.4rem;
  color: #cbd5e1;
}

/* Check icon para seleção de tamanhos (radio-style) */
.option-card-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-card-check i {
    font-size: 2.4rem;
    color: var(--color-primary);
}

/* Controles de quantidade inline nos option-cards */
.option-card-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-btn-sm {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn-sm:hover {
  transform: scale(1.15);
}

.qty-btn-sm:active {
  transform: scale(0.95);
}

.qty-btn-sm i {
  font-size: 1.4rem;
  color: var(--color-primary);
}

.qty-value-sm {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 24px;
  text-align: center;
}

/* Campo de observações */
.observacoes-textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1.5rem;
  font-family: inherit;
  color: #0f172a;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.observacoes-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.observacoes-textarea::placeholder {
  color: #94a3b8;
}

/* Rodapé fixo */
.overlay-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 1.6rem 2rem;
  padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 1.2rem;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.btn-voltar-mobile {
  padding: 1.4rem 2rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-voltar-mobile:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-adicionar {
  flex: 1;
  padding: 1.6rem 2.4rem;
  border: none;
  background: var(--color-primary);
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.btn-adicionar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-adicionar:active {
  transform: translateY(0);
}

/* Animação de shake para campos com erro de validação */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Loading Skeletons */
.skeleton-text {
  height: 1.6rem;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  width: 80%;
}

.skeleton-section {
  height: 120px;
  background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 12px;
  margin-bottom: 1.6rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Desktop (>= 768px) */
@media (min-width: 768px) {
  .overlay-sheet {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    border-radius: 24px;
    max-height: 90vh;
  }

  .product-image-wrapper {
    height: 320px;
  }
}

/* Tablet (>= 1024px) */
@media (min-width: 1024px) {
  .overlay-sheet {
    max-width: 540px;
  }
}
