/* ==========================================================================
   1. VARIÁVEIS & BASES (PALETA CAFÉ & AVELÃ - DARK MODE)
   ========================================================================== */
:root {
  --bg-main: #12090a;
  --surface-card: #1a120e;
  --surface-muted: #241a14;
  --sidebar-bg: #0c0806;
  --banner-bg: #18100c;
  --border-clean: #2e2018;
  --border-dark: #c87d46;
  --text-primary: #fdfbf7;
  --text-secondary: #d2c2b6;
  --text-on-dark: #ffffff;
  --accent-spot: #c87d46;
  --accent-hover: #e08f52;
  --gold: #c87d46;
  --font-clean: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --font-serif: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-clean);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   2. CLASSES UTILITÁRIAS
   ========================================================================== */
.gold-line {
  width: 50px;
  height: 3px;
  background: var(--accent-spot);
  margin: 12px 0 16px;
}

.full-width {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--accent-spot);
  color: #1A0F08;
  box-shadow: 0 4px 15px rgba(200, 125, 70, 0.35);
}

.btn-gold:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. LAYOUT BASE DO CARDÁPIO (APP DESKTOP)
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-sidebar {
  width: 280px;
  flex-shrink: 0;
  background-color: var(--sidebar-bg);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  padding: 30px 24px;
  gap: 28px;
  border-right: 1px solid var(--border-clean);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-back {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.btn-back:hover {
  opacity: 1;
  color: var(--accent-spot);
}

.brand-block {
  border-bottom: 1px solid var(--border-clean);
  padding-bottom: 20px;
}

.top-bar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sidebar-search .search-box {
  position: relative;
  width: 100%;
}
.sidebar-search .search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-spot);
  font-size: 0.85rem;
}

.sidebar-search .search-box input {
  width: 100%;
  background: var(--surface-muted);
  border: 1px solid var(--border-clean);
  border-radius: 6px;
  padding: 12px 14px 12px 40px;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.sidebar-search .search-box input::placeholder {
  color: var(--text-secondary);
}
.sidebar-search .search-box input:focus {
  border-color: var(--accent-spot);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav .category-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.sidebar-nav .category-btn i {
  font-size: 0.95rem;
  color: var(--accent-spot);
}
.sidebar-nav .category-btn:hover {
  color: var(--text-primary);
  background: var(--surface-muted);
}
.sidebar-nav .category-btn.active {
  background: var(--accent-spot);
  color: #1A0F08;
  font-weight: 700;
}
.sidebar-nav .category-btn.active i {
  color: #1A0F08;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-clean);
}

.btn-cart-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--accent-spot);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cart-trigger .cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-cart-trigger .cart-badge {
  background: var(--sidebar-bg);
  color: var(--text-on-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ÁREA PRINCIPAL DO CARDÁPIO */
.app-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.menu-banner {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center;
}

.menu-banner .banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.menu-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(12, 8, 6, 0.65),
    rgba(12, 8, 6, 0.85)
  );
  z-index: 1;
}

.menu-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-banner {
    min-height: 200px;
  }
}

.menu-banner .gold-line {
  margin: 12px auto 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* GRID DE PRODUTOS DINÂMICO */
.menu-container {
  width: 100%;
  padding: 40px 30px;
  box-sizing: border-box;
  flex: 1;
}

.menu-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
   min-height: 600px;
}

.menu-grid .card {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.menu-grid .card:hover {
  border-color: var(--accent-spot);
  transform: translateY(-4px);
}

.menu-grid .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.menu-grid .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.menu-grid .card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.menu-grid .card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}
.menu-grid .card-price-start {
  font-weight: 800;
  color: var(--accent-spot);
  font-size: 1.05rem;
}

/* ==========================================================================
   4. MODAIS E CARRINHO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  padding: 20px;
}

.modal-overlay.show,
.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface-card);
  border: 1px solid var(--border-clean);
  border-radius: 12px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: var(--text-primary);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 36px;
  height: 36px;
  background: var(--surface-muted);
  border: 1px solid var(--border-clean);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.modal-img-wrapper img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.modal-body {
  padding: 28px;
}

.cart-floating-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  background: var(--accent-spot);
  color: #1A0F08;
  padding: 16px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  z-index: 50;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.cart-floating-bar:hover {
  background: var(--accent-hover);
  transform: translateX(-50%) translateY(-2px);
}

.cart-floating-bar.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer {
  width: 100%;
  padding: 35px 20px;
  text-align: center;
  background-color: var(--sidebar-bg);
  border-top: 1px solid var(--border-clean);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: auto;
}

.footer-copy {
  margin: 0;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. RESPONSIVIDADE E AJUSTES DE TELAS
   ========================================================================== */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }
  .app-sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 16px 20px;
    gap: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-clean);
  }
  .sidebar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .brand-block {
    border-bottom: none;
    padding-bottom: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
  }
  .sidebar-nav .category-btn {
    width: auto;
    white-space: nowrap;
  }
  .sidebar-footer {
    display: none;
  }
  .app-main-content {
    width: 100%;
  }
  .menu-banner {
    padding: 35px 16px;
  }
  .menu-container {
    padding: 20px 16px;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 901px) {
  .app-layout {
    display: flex;
    flex-direction: row;
    width: 100vw;
  }
  .app-sidebar {
    width: 280px;
    flex-shrink: 0;
  }
  .app-main-content {
    flex: 1 1 0%;
    min-width: 0;
    width: calc(100vw - 280px);
  }
  .menu-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 40px 30px;
  }
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
  }
}

/* ==========================================================================
   6. ESTILOS EXCLUSIVOS DA PÁGINA INICIAL (INDEX.HTML / .HOME-PAGE)
   ========================================================================== */
.home-page {
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HERO SECTION DE DESTAQUE */
.home-page .classic-hero {
  padding: 120px 20px;
  background:
    linear-gradient(rgba(12, 8, 6, 0.85), rgba(12, 8, 6, 0.95)),
    url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=800&q=70")
      center/cover no-repeat;
  border-bottom: 1px solid var(--border-clean);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page .hero-frame {
  max-width: 800px;
  width: 100%;
  border: 1px solid var(--border-clean);
  padding: 60px 40px;
  background: rgba(26, 18, 14, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.home-page .vintage-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-spot);
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: block;
  text-transform: uppercase;
}

.home-page .brand-title-large {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  text-transform: uppercase;
}

.home-page .brand-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
  margin: 12px 0 16px;
  text-transform: uppercase;
}

.home-page .hero-quote {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.home-page .hero-cta-group .btn-gold {
  padding: 18px 36px;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
}

/* SESSÃO DE DESTAQUES E SOBRE */
.home-page .trattoria-highlights,
.home-page .location-hours-section {
  padding: 90px 20px;
}

.home-page .section-title-wrapper {
  margin-bottom: 55px;
  text-align: center;
}

.home-page .section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-top: 6px;
}

.home-page .highlights-grid,
.home-page .info-box-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-page .highlight-card {
  background: var(--surface-card);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.home-page .highlight-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-spot);
}

.home-page .highlight-card .card-content {
  padding: 40px 30px;
  text-align: center;
}

.home-page .card-icon,
.home-page .info-icon {
  font-size: 2.5rem;
  color: var(--accent-spot);
  margin-bottom: 20px;
}

.home-page .info-box-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  padding: 50px 30px;
  text-align: center;
}

.home-page .info-column h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 16px 0 8px;
}

.home-page .info-column p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-page .highlight-text {
  font-weight: 800;
  color: var(--accent-spot);
  font-size: 0.95rem;
  margin-top: 8px;
  display: block;
}

/* RESPONSIVIDADE ESPECÍFICA DA HOME PAGE */
@media (max-width: 992px) {
  .home-page .highlights-grid,
  .home-page .info-box-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }

  .home-page .hero-frame {
    padding: 40px 20px;
  }
}

.modal-content select,
.modal-content input[type="text"],
.wizard-select,
.wizard-input,
#modalObs,
#wizardObs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 50px;
  background-color: var(--surface-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-clean);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-family: var(--font-clean);
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Seta elegante para todos os menus de seleção */
.modal-content select,
.wizard-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C87D46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

/* Fundo escuro legível nas opções dos selects */
.modal-content select option,
.wizard-select option {
  background-color: var(--surface-card);
  color: var(--text-primary);
  padding: 12px;
}

/* Efeito de foco dourado para qualquer tela */
.modal-content select:focus,
.modal-content input[type="text"]:focus,
.wizard-select:focus,
.wizard-input:focus,
#modalObs:focus,
#wizardObs:focus {
  border-color: var(--gold);
}

.modal-content input[type="text"]::placeholder,
.wizard-input::placeholder,
#modalObs::placeholder,
#wizardObs::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ==========================================================================
   CORREÇÃO SEMÂNTICA DE TÍTULOS PARA ACESSIBILIDADE
   ========================================================================== */
.modal-content h2 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-content h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 8px;
}
/* ==========================================================================
   ESTILO DOS CARDS SELECIONADOS NO MODO MEIO A MEIO
   ========================================================================== */
.card.pizza-selected-half {
  border-color: var(--gold) ;
  background-color: rgba(200, 125, 70, 0.12) ;
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(200, 125, 70, 0.3);
  position: relative;
}

.card.pizza-selected-half::after {
  content: "SELECIONADO (1/2)";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Banner temporário para avisar o cliente na tela principal */
.half-mode-banner {
  background: var(--gold);
  color: #000;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-radius: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 125, 70, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 125, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 125, 70, 0);
  }
}
/* ==========================================================================
   ESTILIZAÇÃO DO BOTÃO DE REMOVER ITEM (LIXEIRA) NO CARRINHO
   ========================================================================== */
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.remove-item-btn {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #e63946;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-item-btn:hover {
  background-color: #e63946;
  color: #ffffff;
  border-color: #e63946;
  transform: scale(1.05);
}

.remove-item-btn i {
  font-size: 0.9rem;
}
/* ==========================================================================
   ESTILIZAÇÃO DO SELETOR DE TAMANHOS NO MODAL
   ========================================================================== */
.prices-container {
  margin: 15px 0;
}

.size-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.flavor-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.flavor-option-btn {
  background-color: var(--surface-card, #1e1e1e);
  border: 1px solid var(--border-clean, #333);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary, #fff);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.flavor-option-btn .flavor-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary, #aaa);
}

.flavor-option-btn:hover {
  border-color: var(--gold, #c87d46);
  background-color: rgba(200, 125, 70, 0.08);
}

/*  Estado selecionado — mesmo visual do .size-option-btn.selected */
.flavor-option-btn.selected {
  background-color: rgba(200, 125, 70, 0.2);
  border-color: var(--gold, #c87d46);
  color: var(--gold, #c87d46);
  box-shadow: 0 0 10px rgba(200, 125, 70, 0.25);
}

.flavor-option-btn.selected .flavor-sub {
  color: var(--gold, #c87d46);
  opacity: 0.85;
}

.size-option-btn {
  background-color: var(--surface-card, #1e1e1e);
  border: 1px solid var(--border-clean, #333);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary, #fff);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.85rem;
}

.size-option-btn:hover {
  border-color: var(--gold, #c87d46);
  background-color: rgba(200, 125, 70, 0.08);
}

/* Estado selecionado */
.size-option-btn.selected {
  background-color: rgba(200, 125, 70, 0.2);
  border-color: var(--gold, #c87d46);
  color: var(--gold, #c87d46);
  box-shadow: 0 0 10px rgba(200, 125, 70, 0.25);
}
/* ==========================================================================
   ESTILOS DO CONTROLE DE QUANTIDADE NO MODAL
   ========================================================================== */
.quantity-selector-wrapper {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-card, #1e1e1e);
  border: 1px solid var(--border-clean, #333);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--gold, #c87d46);
  font-size: 1.1rem;
  font-weight: bold;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.qty-btn:hover {
  background-color: rgba(200, 125, 70, 0.15);
}

#productQtyDisplay {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary, #fff);
  font-size: 0.95rem;
}
/* ==========================================================================
   ESTILOS DO MODAL DE RESUMO MEIO A MEIO
   ========================================================================== */
#halfSummaryFlavors {
  line-height: 1.6;
  background: var(--surface-muted);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-clean);
}
/* ==========================================================================
   ESTILOS DO CARRINHO E FORMULÁRIO DE ENTREGA
   ========================================================================== */
.cart-drawer-content {
  width: min(560px, 100%);
}

.cart-floating-bar .cart-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-floating-bar .cart-badge {
  background: var(--sidebar-bg);
  color: var(--text-on-dark);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 10px;
}

.cart-items-list:empty::before {
  content: "Seu carrinho está vazio.";
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 20px;
  font-size: 0.9rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  padding: 12px 14px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  font-family: var(--font-clean);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.cart-item-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-item-actions > span {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.9rem;
  white-space: nowrap;
}

.delivery-address-container {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-clean);
}

.delivery-fee-container {
  margin: 15px 0;
}

.delivery-fee-container label {
  font-size: 0.85rem;
  color: var(--gold);
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.input-select {
  width: 100%;
  height: 50px;
  background-color: var(--surface-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-clean);
  border-radius: 12px;
  padding: 0 40px 0 16px;
  font-size: 0.9rem;
  font-family: var(--font-clean);
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C87D46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.input-select:focus {
  border-color: var(--gold);
}

.input-select option {
  background-color: var(--surface-card);
  color: var(--text-primary);
  padding: 12px;
}

/* Ajuste fino para modais com muito conteúdo no mobile */
@media (max-width: 480px) {
  .modal-content {
    max-height: 95vh;
    border-radius: 8px;
  }
  .modal-body {
    padding: 20px 16px;
  }
  .close-modal {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  .cart-item-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-item-actions {
    justify-content: space-between;
    width: 100%;
  }
}
/* ==========================================================================
   COMPLEMENTOS DO AÇAÍ
   ========================================================================== */
.complements-container {
  margin: 15px 0;
}

.complements-title {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.complements-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-clean);
}

.complements-category:first-child {
  margin-top: 0;
}

.complements-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.complement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-card);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.complement-item:hover {
  border-color: var(--gold);
}

.complement-item.selected {
  border-color: var(--gold);
  background: rgba(200, 125, 70, 0.12);
}

.complement-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-right: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.complement-name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.complement-price {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 10px;
}

.complements-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(200, 125, 70, 0.1);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.complements-total span:last-child {
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
}



/* ==========================================================================
   CONTROLE DE QUANTIDADE NO CARRINHO
   ========================================================================== */
.cart-qty-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--border-clean);
  border-radius: 6px;
  padding: 2px;
  width: fit-content;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: rgba(200, 125, 70, 0.2);
}

.cart-qty-display {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}
/* ==========================================================================
   TIPO DE PEDIDO (ENTREGA / RETIRADA)
   ========================================================================== */
.order-type-container {
  margin: 15px 0;
}

.order-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-type-btn i {
  font-size: 1.5rem;
  color: var(--gold);
}

.order-type-btn:hover {
  border-color: var(--gold);
}

.order-type-btn.selected {
  background: rgba(200, 125, 70, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(200, 125, 70, 0.25);
}

.order-type-btn.selected i {
  color: var(--gold);
}

/* Campos que somem quando é retirada */
.delivery-only-field {
  transition: opacity 0.2s ease;
}

.delivery-only-field.hidden {
  display: none !important
}
/* ==========================================================================
   RESUMO DE VALORES NO CARRINHO
   ========================================================================== */
.cart-summary {
  background: var(--surface-muted);
  border: 1px solid var(--border-clean);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-summary-line span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.cart-summary-total {
  border-top: 1px solid var(--border-clean);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 1rem;
  color: var(--gold) ;
  font-weight: 700;
}

.cart-summary-total span {
  color: var(--gold) ;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Quando é retirada, esconde a linha da taxa */
.cart-summary-line.hidden {
  display: none;
}

/* ==========================================================================
   AVISO DE PEDIDO MÍNIMO
   ========================================================================== */
.min-order-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: #e63946;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 12px 0;
}

.min-order-warning i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.min-order-warning strong {
  font-weight: 800;
}

/* Botão desabilitado */
#sendWhatsappCartBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

#sendWhatsappCartBtn:disabled:hover {
  transform: none;
  background: var(--accent-spot);
}