/* Programa Esbelt - CSS Estilizado (v2) */
:root {
  --color-green-primary: #154734; 
  --color-green-light: #2c7a5b;
  --color-beige-bg: #f8f6f0;
  --color-gold-accent: #c6a87c;
  --color-gold-hover: #e0be8d;
  --color-text-dark: #2d2d2d;
  --color-text-light: #6e6e6e;
  --color-white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

/* Hero Section */
.esbelt-hero {
  background: linear-gradient(135deg, rgba(21, 71, 52, 0.92) 0%, rgba(12, 51, 35, 0.96) 100%), 
              url('/images/esbelt-banner.png') no-repeat center center/cover;
  color: var(--color-white);
  padding: 60px 5% 50px;
  text-align: center;
  border-bottom: 4px solid var(--color-gold-accent);
}

.esbelt-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.esbelt-badge {
  display: inline-block;
  background: rgba(198, 168, 124, 0.25);
  color: var(--color-gold-hover);
  border: 1px solid var(--color-gold-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.esbelt-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.esbelt-hero p {
  font-size: 1.1rem;
  color: #d4e7df;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 20px;
}

.esbelt-logistics-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

/* Container principal */
.esbelt-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 20px 140px;
}

/* ETAPA 1: Seleção de Planos */
.section-step-title {
  font-size: 1.8rem;
  color: var(--color-green-primary);
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.section-step-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 35px;
}

.esbelt-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.esbelt-plan-card {
  background: var(--color-white);
  border-radius: 20px;
  border: 2px solid #eef2f5;
  box-shadow: var(--shadow-sm);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.esbelt-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-accent);
}

.plan-card-header {
  margin-bottom: 20px;
}

.plan-tag {
  display: inline-block;
  background: var(--color-green-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.plan-tag.tag-light {
  background: var(--color-gold-accent);
  color: var(--color-text-dark);
}

.plan-card-header h3 {
  font-size: 1.6rem;
  color: var(--color-green-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-meals {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.plan-card-body {
  flex: 1;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px dashed #e2e8f0;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--color-green-light);
  font-weight: bold;
}

.no-group2-text {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  display: block;
  margin-top: 4px;
}

.plan-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.plan-price-wrapper {
  display: flex;
  flex-direction: column;
}

.plan-price-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.plan-price {
  font-size: 1.5rem;
  color: var(--color-green-primary);
  font-weight: 800;
}

.btn-select-plan {
  background: var(--color-gold-accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(198, 168, 124, 0.3);
}

.btn-select-plan:hover {
  background: var(--color-gold-hover);
  transform: translateX(3px);
}

/* Banner de Status de Sessão (Marmitas no Carrinho) */
.cart-session-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #a5d6a7;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.csb-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.csb-icon {
  font-size: 1.8rem;
}

.csb-info strong {
  font-size: 1.05rem;
  color: var(--color-green-primary);
  display: block;
}

.csb-info p {
  font-size: 0.85rem;
  color: #2e7d32;
  margin: 0;
}

.btn-view-cart-small {
  background: var(--color-green-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-view-cart-small:hover {
  background: #0d3324;
}

/* ETAPA 2: Builder Container */
.builder-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-back-plans {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--color-text-dark);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-plans:hover {
  background: #f1f5f9;
  border-color: var(--color-green-primary);
  color: var(--color-green-primary);
}

.active-plan-badge {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: var(--color-green-primary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

.builder-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.builder-group-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
}

.group-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}

.group-step-num {
  width: 38px;
  height: 38px;
  background: var(--color-green-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.group-card-header h3 {
  font-size: 1.25rem;
  color: var(--color-green-primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.group-card-header p {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.instruction-highlight {
  color: var(--color-gold-accent) !important;
  font-weight: 600;
}

.selection-counter {
  margin-left: auto;
  background: #f1f5f9;
  color: var(--color-green-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

/* Grids de Opções (Radios e Checkboxes) */
.builder-radios-grid, .builder-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.option-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.option-box:hover {
  border-color: var(--color-gold-accent);
  background: #fff;
}

.option-box.selected {
  border-color: var(--color-green-primary);
  background: #e8f5e9;
  box-shadow: 0 2px 8px rgba(21, 71, 52, 0.1);
}

.option-box input[type="radio"],
.option-box input[type="checkbox"] {
  accent-color: var(--color-green-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option-box .option-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Tabs Grupo 2 */
.group2-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.g2-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.g2-tab-btn.active {
  background: var(--color-green-primary);
  color: #fff;
}

/* Painel Lateral / Resumo */
.builder-summary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.summary-card, .nutrition-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
}

.summary-card h3 {
  font-size: 1.1rem;
  color: var(--color-green-primary);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.summary-details {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}

.summary-placeholder {
  color: var(--color-text-light);
  font-style: italic;
}

.summary-item-row {
  margin-bottom: 8px;
}

.summary-item-row strong {
  color: var(--color-green-primary);
}

.summary-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 2px dashed #e2e8f0;
  margin-bottom: 15px;
}

.summary-price-box span {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.summary-price-box strong {
  font-size: 1.4rem;
  color: var(--color-green-primary);
  font-weight: 800;
}

/* Ações Diretas na Sidebar */
.sidebar-action-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.sidebar-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.btn-sidebar-add {
  background: var(--color-gold-accent);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(198, 168, 124, 0.3);
  text-align: center;
}

.btn-sidebar-add:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

.btn-sidebar-add-another {
  background: var(--color-green-primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-sidebar-add-another:hover {
  background: var(--color-green-light);
}

/* Tabela Nutricional */
.nutrition-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.nutrition-card-header h4 {
  font-size: 1.05rem;
  color: var(--color-green-primary);
  font-weight: 700;
}

.nutrition-portion-tag {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: var(--color-text-light);
  padding: 3px 8px;
  border-radius: 6px;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.nutrition-table th, .nutrition-table td {
  padding: 6px 4px;
  text-align: left;
  border-bottom: 1px solid #f8fafc;
}

.nutrition-table th {
  color: var(--color-text-light);
  font-weight: 600;
}

.nutrition-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-text-dark);
}

.macro-highlight td {
  color: var(--color-green-primary);
  font-weight: 800 !important;
}

/* Sticky Footer Fixa de Compra */
.esbelt-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  padding: 14px 5%;
  z-index: 10001; /* Acima de widgets flutuantes */
  border-top: 2px solid var(--color-gold-accent);
}

.footer-bar-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.esbelt-footer-price span {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.esbelt-footer-price strong {
  font-size: 1.5rem;
  color: var(--color-green-primary);
  font-weight: 800;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marmita-qty-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.btn-step {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-step:hover {
  background: var(--color-green-primary);
  color: #fff;
}

.qty-stepper input {
  width: 36px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
}

.esbelt-buy-btn {
  background-color: var(--color-gold-accent);
  color: var(--color-white);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(198, 168, 124, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.esbelt-buy-btn.secondary-btn {
  background-color: var(--color-green-primary);
  box-shadow: 0 4px 10px rgba(21, 71, 52, 0.25);
}

.esbelt-buy-btn.secondary-btn:hover {
  background-color: var(--color-green-light);
}

.esbelt-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Modal de Adição ao Carrinho / Montar Outra */
.esbelt-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.esbelt-modal-box {
  background: var(--color-white);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--color-gold-accent);
}

.modal-icon-success {
  width: 56px;
  height: 56px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid #a5d6a7;
}

.esbelt-modal-box h2 {
  font-size: 1.4rem;
  color: var(--color-green-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.esbelt-modal-box p {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-session-total {
  background: #f8fafc;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 22px;
}

.modal-session-total strong {
  color: var(--color-green-primary);
  font-size: 1.1rem;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-another {
  background: var(--color-green-primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-modal-another:hover {
  background: var(--color-green-light);
}

.btn-modal-cart {
  background: var(--color-gold-accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.btn-modal-cart:hover {
  background: var(--color-gold-hover);
}

/* Responsividade Mobile */
@media (max-width: 850px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-summary-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .esbelt-hero {
    padding: 35px 15px 30px;
  }
  .esbelt-hero h1 {
    font-size: 1.8rem;
  }
  .esbelt-hero p {
    font-size: 0.95rem;
  }
  .esbelt-container {
    padding-top: 20px;
    padding-bottom: 160px;
  }
  .footer-bar-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .footer-actions {
    flex-direction: column;
    width: 100%;
  }
  .esbelt-buy-btn {
    width: 100%;
    justify-content: center;
  }
}
