/* ============================================
   PÁGINA DE ITENS DA CATEGORIA
   ============================================ */

/* Importa as variáveis e componentes globais */
@import url("app_variables.c4f97732f0b6.css");
@import url("app_components.998532c5e99a.css");

/* ========== LAYOUT PRINCIPAL ========== */
/* Layout controlado por cliente_layout.css (flexbox) */

/* ========== CARDS DE PRODUTO ========== */
.item-pizza {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  background-color: #ffffff !important;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.item-pizza:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pizza-selection {
  border: none;
  border-radius: var(--radius-xl);
}

.img-desc {
  display: flex;
  gap: var(--space-4);
}

.img-item {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ========== COLUNAS DO PRODUTO ========== */
.col-esquerda {
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.col-esquerda h2 {
  font-size: var(--font-size-md);
  margin: 0.2rem 0;
  font-weight: var(--font-weight-medium);
  color: #0f172a !important;
}

.col-esquerda p {
  font-size: var(--font-size-md);
  color: #666 !important;
  word-break: break-word;
  margin: 0.2rem 0 0 0;
  line-height: 1.4;
}

.descricao-colapsada {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition-slow);
  text-align: justify;
  hyphens: auto;
  font-size: var(--font-size-md);
  color: #666 !important;
  word-break: break-word;
  margin: 0.2rem 0 0 0;
  line-height: 1.4;
}

.col-direita {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.col-direita h2 {
  font-size: var(--font-size-md);
  margin: 0.2rem 0;
}

/* ========== CONTROLES DE QUANTIDADE ========== */
.botao_circulo2 {
  height: 32px;
  font-size: var(--font-size-base);
  border: none;
  color: #dd6f6f;
  background-color: var(--color-bg-card);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--transition-base);
}

.botao-menos {
  background-color: var(--color-bg-card);
  color: var(--color-bg-card);
}

.botao-menos.ativo {
  background-color: var(--color-bg-card);
  color: #dd6f6f;
}

.input_qtd2 {
  width: 10px;
  text-align: center;
  font-size: var(--font-size-md);
  border: none;
  background: transparent;
}

/* ========== BOTÕES DE TAMANHO NO OVERLAY ========== */
.btn-tamanho {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.4rem;
  text-align: left;
}

.btn-tamanho:hover {
  border-color: #3498db;
  background: #f8f9fa;
  transform: translateX(2px);
}

.btn-tamanho.selecionado {
  border-color: #3498db;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
  font-weight: 600;
}

.btn-tamanho.selecionado::before {
  content: '✓ ';
  color: #2980b9;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ========== STEPPER WIZARD ========== */
.stepper-header {
  padding: 2rem 2rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  box-shadow: 0 4px 20px rgba(25, 58, 132, 0.3);
}

.overlay-fechar {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-fechar:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg) scale(1.1);
}

.overlay-fechar:active {
  transform: rotate(90deg) scale(0.95);
}

.stepper-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stepper-progress-fill {
  height: 100%;
  background: white;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.stepper-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stepper-steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.stepper-step {
  flex: 1;
  text-align: center;
  opacity: 0.4;
  transition: all 0.3s;
}

.stepper-step.active,
.stepper-step.completed {
  opacity: 1;
}

.stepper-step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-step.active .stepper-step-number {
  background: white;
  color: var(--color-primary);
  border-color: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.stepper-step.completed .stepper-step-number {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.stepper-step-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stepper-summary {
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  gap: 1.8rem;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-height: 100px;
}

.summary-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

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

.summary-nome {
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
  line-height: 1.2;
}

.summary-detalhes {
  font-size: 1.3rem;
  color: #64748b;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.summary-preco {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stepper-content {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem;
  background: #fafbfc;
}

.stepper-pane {
  display: none;
}

.stepper-pane.active {
  display: block;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.pane-produto {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.pane-produto-img {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 3px solid white;
}

.pane-produto-nome {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--color-text-primary);
}

.pane-produto-desc {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 450px;
  margin: 0 auto;
}

.pane-header {
  margin-bottom: 3rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 2px dashed #e2e8f0;
}

.pane-header h3 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pane-subtitle {
  font-size: 1.5rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.6;
}

.pane-options {
  display: grid;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.pane-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid #fca5a5;
  margin-top: 1.5rem;
  display: none;
  text-align: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

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

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

.pane-resumo {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 2px solid #93c5fd;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.pane-resumo h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid #bfdbfe;
}

.pane-resumo ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pane-resumo li {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #bfdbfe;
}

.pane-resumo li:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.6rem;
  padding-top: 1.2rem;
  margin-top: 0.8rem;
  border-top: 2px solid #bfdbfe;
}

.pane-resumo strong {
  color: var(--color-primary);
  font-weight: 700;
}

.pane-field {
  margin-bottom: 2.5rem;
}

.pane-field label {
  display: block;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.pane-textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  font-size: 1.4rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
  background: white;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.pane-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pane-textarea-counter {
  text-align: right;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-top: 0.8rem;
  font-weight: 600;
}

.stepper-nav {
  padding: 2rem;
  background: white;
  border-top: 2px solid var(--color-border-default);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.stepper-btn {
  padding: 1.4rem 2.5rem;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 54px;
}

.stepper-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #d1d5db;
}

.stepper-btn-secondary:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.stepper-btn-primary {
  background: var(--gradient-primary);
  color: white;
  flex: 1;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.stepper-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.stepper-btn-primary:active {
  transform: translateY(-1px);
}

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

.grupo-pane {
  margin-bottom: 2.5rem;
}

.grupo-pane-header h4 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--color-text-primary);
}

.grupo-pane-desc {
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.8rem;
  font-weight: 500;
}

.grupo-item {
  background: white;
  border: 2px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  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);
}

.grupo-item:hover {
  border-color: var(--color-primary);
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.grupo-item:active {
  transform: translateY(0);
}

.grupo-item.selected {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
  border-width: 2px;
}

.grupo-item input[type="radio"],
.grupo-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

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

.grupo-item-nome {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.grupo-item-preco {
  font-size: 1.4rem;
  font-weight: 800;
  color: #10b981;
  white-space: nowrap;
}

/* ========== QUANTITY SELECTOR ========== */
.qty-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  background: white;
  color: var(--color-text-primary);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

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