/* ========================================
   Mikami Sushi — Ultra Dark Premium
   ======================================== */

/* Base font: DM Sans */

:root {
  --bg-primary:    #080809;
  --bg-secondary:  #0e0e10;
  --bg-card:       #111115;
  --bg-card-hover: #16161b;
  --surface:       #1a1a20;
  --surface2:      #22222a;

  --text-primary:   #f0eeea;
  --text-secondary: #8a8794;
  --text-muted:     #4e4c57;

  --accent:        #e8372a;
  --accent-hover:  #ff4435;
  --accent-glow:   rgba(232, 55, 42, 0.18);
  --accent-soft:   rgba(232, 55, 42, 0.08);

  --gold:          #c9a96e;
  --gold-soft:     rgba(201, 169, 110, 0.1);

  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(255,255,255,0.12);
  --border-accent: rgba(232, 55, 42, 0.35);

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.7);
  --shadow-red: 0 8px 32px rgba(232,55,42,0.25);

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,9,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  transition: var(--transition);
  filter: brightness(0.95);
}

.logo:hover .logo-img {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-text span {
  color: var(--accent);
}

.cart-btn {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--surface2);
  border-color: var(--accent);
  box-shadow: var(--shadow-red);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(232,55,42,0.5);
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.floating-cart {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 58px;
  height: 58px;
  background: var(--accent);
  border: none;
  box-shadow: var(--shadow-red), 0 0 40px rgba(232,55,42,0.3);
}

.floating-cart:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

.floating-cart .cart-badge {
  background: #fff;
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,55,42,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content { text-align: left; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-content h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: var(--text-primary);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Esconde a quebra forçada em telas grandes */
.title-break { display: none; }
@media (max-width: 500px) {
  .title-break { display: inline; }
}

.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #ff8070);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 440px;
  line-height: 1.7;
  font-weight: 300;
  word-break: break-word;
}

.hero-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  transition: var(--transition);
  min-width: 170px;
  justify-content: flex-start;
}

.info-chip:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.info-chip i {
  color: var(--accent);
  font-size: 1.1rem;
  width: 24px;
  height: 24px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-chip div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.info-chip strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
}

.info-chip span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(232,55,42,0.06) 30%, transparent 60%);
  animation: spin 12s linear infinite;
}

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

.hero-logo-wrapper {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(232,55,42,0.12), var(--shadow-lg);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
  transition: var(--transition-slow);
}

.hero-logo-wrapper:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 80px rgba(232,55,42,0.2), var(--shadow-lg);
  transform: scale(1.03);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== MENU SECTION ===== */
.menu {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(232,55,42,0.5);
}

.tab-bar {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,55,42,0.35);
}

/* ===== MENU GRID ===== */
.menu-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.menu-grid.active { display: grid; }

.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.menu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(232,55,42,0.04), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
  pointer-events: none;
}

.menu-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(232,55,42,0.08);
  background: var(--bg-card-hover);
}

.menu-item:hover::before { opacity: 1; }

.item-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) saturate(1.1);
}

.menu-item:hover .item-image img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.2);
}

.item-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(17,17,21,0.9), transparent);
  pointer-events: none;
}

.item-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.item-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.item-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1;
  font-weight: 300;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.item-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.item-price::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent);
}

.btn-add {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-add:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(232,55,42,0.4);
  transform: rotate(90deg) scale(1.1);
}

/* ===== CARRINHO DRAWER ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: -110%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cart-drawer.open { right: 0; }

.drawer-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.drawer-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.drawer-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: var(--transition);
}

.cart-item:hover { border-color: var(--border-accent); }

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

.cart-item-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-left: 12px;
}

.cart-item-actions button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-item-actions button:hover {
  background: var(--accent);
  color: #fff;
}

.cart-item-actions span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* ========================================
   CARRINHO — Redesign Premium
   ======================================== */

/* Drawer: layout em 3 zonas
   1) drawer-items  — itens (rola)
   2) drawer-shipping — subtotal + entrega (rola junto)
   3) drawer-footer — total + botões (FIXO na base)
*/

/* ===== ZONA ROLÁVEL: itens ===== */
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 0;
  background: var(--bg-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}
.drawer-items::-webkit-scrollbar { width: 4px; }
.drawer-items::-webkit-scrollbar-track { background: transparent; }
.drawer-items::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.empty-cart {
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== ZONA ROLÁVEL: subtotal + entrega ===== */
.drawer-shipping {
  background: var(--bg-primary);
  overflow-y: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  max-height: 52dvh;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.drawer-shipping::-webkit-scrollbar { display: none; }

/* ===== SUBTOTAL ===== */
.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.subtotal span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Noto Serif", serif;
  font-weight: 600;
}
.subtotal strong {
  font-family: "Noto Serif", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== ENTREGA ===== */
.shipping-section {
  padding: 14px 20px 16px;
}
.shipping-section h3 {
  font-family: "Noto Serif", serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.shipping-section h3 i { color: var(--accent); font-size: 0.8rem; }

/* ===== CUSTOM SELECT DE ENTREGA ===== */
.custom-select {
  position: relative;
  width: 100%;
}

/* Trigger (botão visível) */
.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.custom-select__trigger:hover,
.custom-select.open .custom-select__trigger {
  border-color: var(--border-accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.custom-select.open .custom-select__trigger {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.custom-select__icon { font-size: 1rem; flex-shrink: 0; }

.custom-select__label {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.custom-select__price {
  font-family: "Noto Serif", serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.custom-select__price.free { color: #4ade80; }

.custom-select__arrow {
  font-size: 0.72rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.custom-select.open .custom-select__arrow { transform: rotate(180deg); }

/* Dropdown list */
.custom-select__dropdown {
  display: none;
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  overflow-y: auto;
  max-height: 320px;
  z-index: 999;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.7), 0 0 0 1px var(--border-accent);
  list-style: none;
  padding: 4px 0;
}

.custom-select.open .custom-select__dropdown { display: block; }

/* Cada opção */
.custom-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.custom-select__option:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.custom-select__option.selected {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.opt-icon { font-size: 0.95rem; flex-shrink: 0; }

.opt-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.custom-select__option.selected .opt-name { font-weight: 700; }

.opt-price {
  font-family: "Noto Serif", serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.opt-price.free { color: #4ade80; }
.custom-select__option.selected .opt-price { color: var(--accent); }
.custom-select__option.selected .opt-price.free { color: #4ade80; }

/* Separador sutil entre opções */
.custom-select__option + .custom-select__option {
  border-top: 1px solid var(--border);
}

.shipping-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.shipping-total span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "Noto Serif", serif;
  letter-spacing: 0.5px;
}
.shipping-total strong {
  font-family: "Noto Serif", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== FOOTER FIXO: total + botões ===== */
.drawer-footer {
  flex-shrink: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.final-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.final-total span {
  font-family: "Noto Serif", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.final-total strong {
  font-family: "Noto Serif", serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px;
}

.btn {
  width: 100%;
  padding: 13px;
  font-family: "Noto Serif", serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
}
.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: var(--surface);
}
.btn-primary {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.2);
  font-size: 0.85rem;
}
.btn-primary:hover {
  background: #20c05c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}
.btn-primary i { font-size: 1rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  background: var(--bg-primary);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 300;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  animation: slideIn 0.25s ease forwards;
  backdrop-filter: blur(10px);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cart-badge.pulse { animation: pulse 0.3s ease; }

@keyframes wiggle {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-6deg); }
  75%      { transform: rotate(6deg); }
}

.cart-icon.wiggle { animation: wiggle 0.3s ease; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-subtitle { margin: 0 auto 44px; }
  .hero-info { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-wrapper { width: 220px; height: 220px; }
  .desktop-cart { display: none; }
  .floating-cart { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 0; }
  .menu { padding: 70px 0; }

  .hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-info { flex-direction: column; align-items: center; gap: 12px; }
  .info-chip { width: 100%; max-width: 260px; justify-content: flex-start; }
  .info-chip div { align-items: flex-start; }

  .tab-bar { flex-direction: row; }
  .tab-btn { padding: 8px 24px; font-size: 0.75rem; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .item-image { height: 150px; }
  .item-content { padding: 14px; }
  .item-content h3 { font-size: 0.95rem; }
  .item-desc { font-size: 0.78rem; }
  .item-price { font-size: 1.1rem; }
  .btn-add { width: 34px; height: 34px; }

  .cart-drawer { max-width: 100%; }
  .drawer-footer { padding: 10px 14px; }
  .final-total strong { font-size: 1.2rem; }
  .btn { padding: 10px; font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .menu-grid { gap: 8px; }
  .item-image { height: 130px; }
  .item-content { padding: 10px; }
  .shipping-options { grid-template-columns: 1fr; }
}

/* ========================================
   MODAL PIX
   ======================================== */

.pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pix-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pix-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.pix-overlay.active .pix-modal {
  transform: translateY(0);
}

/* Botão fechar */
.pix-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.pix-close:hover { background: var(--accent); color: #fff; border-color: transparent; }

/* Header do modal */
.pix-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pix-header-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.pix-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pix-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* QR Code */
.pix-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.pix-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  display: block;
}

.pix-qr-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Divider */
.pix-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pix-divider::before,
.pix-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Chave Pix */
.pix-key-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.pix-key-wrapper:hover { border-color: var(--border-accent); }

.pix-key-value {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  word-break: break-all;
}

.pix-copy-btn {
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pix-copy-btn:hover { background: var(--accent); color: #fff; border-color: transparent; }
.pix-copy-btn.copied { background: #4ade80; color: #fff; border-color: transparent; }

/* Botão confirmar */
.pix-confirm-btn {
  margin-top: 0 !important;
}

/* ========================================
   SELETOR DE PAGAMENTO
   ======================================== */

.payment-section {
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.payment-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.payment-section h3 i { color: var(--accent); font-size: 0.8rem; }

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option i {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.pix-logo {
  width: 36px;
  height: auto;
  filter: brightness(0) invert(0.4);
  transition: var(--transition);
}

.payment-option:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--surface);
}

.payment-option:hover i { color: var(--text-primary); }
.payment-option:hover .pix-logo { filter: brightness(0) invert(0.8); }

/* Estado ativo — Dinheiro */
.payment-option.active[data-method="dinheiro"] {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
}
.payment-option.active[data-method="dinheiro"] i { color: #4ade80; }

/* Estado ativo — Pix */
.payment-option.active[data-method="pix"] {
  border-color: #00BDAE;
  background: rgba(0, 189, 174, 0.08);
  color: #00BDAE;
}
.payment-option.active[data-method="pix"] .pix-logo {
  color: #00BDAE;
}
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #07070c;
  padding: 28px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
}

.instagram-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-size: 20px;
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.25);
  transition: all 0.25s ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  color: #fff;
  background: #ff3b30;
  border-color: #ff3b30;
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.28);
}
.footer-text{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.instagram-link{
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ff3b30;
  background: rgba(255,59,48,0.08);
  border: 1px solid rgba(255,59,48,0.25);
  transition: 0.25s;
}

.instagram-link:hover{
  background: #ff3b30;
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   TYPOGRAPHY OVERRIDE — Noto Serif for headings
   ======================================== */
.logo-text,
.hero-content h1,
.section-header h2,
.item-content h3,
.item-price,
.drawer-header h2,
.pix-header h2 {
  font-family: 'Noto Serif', serif !important;
}