/* ===== Variables ===== */
:root {
  --vermelho:       #C8102E;
  --vermelho-dark:  #a00d26;
  --amarelo:        #FFC72C;
  --amarelo-dark:   #e6b200;
  --dourado:        #D4A017;
  --dourado-light:  #FFF8E7;
  --dourado-dark:   #8B6914;
  --verde-oferta:   #2E7D32;
  --preto:          #1A1A1A;
  --creme:          #FAFAF8;
  --cinza:          #6B6B6B;
  --cinza-light:    #F4F4F4;
  --cinza-100:      #F0F0F0;
  --cinza-200:      #E0E0E0;
  --cinza-800:      #333333;
  --borda:          #EDECEA;
  --branco:         #FFFFFF;
  --sombra:         0 2px 12px rgba(0,0,0,0.09);
  --sombra-md:      0 4px 24px rgba(0,0,0,0.14);
  --radius:         14px;
  --radius-sm:      10px;
  --radius-full:    999px;
  --font-title:     'Montserrat', sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --topbar-h:       56px;
  --catnav-h:       48px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cinza-light);
  color: var(--preto);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: 100px;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }
img { display: block; max-width: 100%; }

/* ===== Topbar (fixa, transparente → branca ao scroll) ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  transition: background .25s, box-shadow .25s;
  background: transparent;
}
.topbar.scrolled {
  background: var(--branco);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-logo {
  width: 36px; height: 36px;
  background: var(--amarelo);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  color: var(--preto);
}
.topbar-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  color: var(--branco);
  letter-spacing: -.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
  transition: color .25s, text-shadow .25s;
}
.topbar.scrolled .topbar-name { color: var(--preto); text-shadow: none; }

.cart-btn {
  position: relative;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--branco);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.topbar.scrolled .cart-btn { background: var(--cinza-light); color: var(--preto); backdrop-filter: none; }
.cart-btn:hover { background: rgba(255,255,255,.25); }
.topbar.scrolled .cart-btn:hover { background: var(--cinza-100); }
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--amarelo);
  color: var(--preto);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--branco);
  transition: transform 0.25s cubic-bezier(.36,.07,.19,.97);
}
.cart-badge.bump { animation: bump .25s ease; }
@keyframes bump { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 220px;
  background: linear-gradient(145deg, #8B0000 0%, var(--vermelho) 55%, #D4183B 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: radial-gradient(circle, var(--amarelo) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0,0,0,.32) 0%, transparent 100%);
}
.hero-crown {
  position: absolute;
  top: 72px; left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-crown-icon {
  width: 52px; height: 52px;
  background: var(--amarelo);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  color: var(--branco);
  letter-spacing: -.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-top: 3px;
  font-weight: 500;
}
.hero-status-row {
  position: absolute;
  bottom: 14px; left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .2px;
  background: rgba(0,0,0,.3);
  color: var(--branco);
}
.badge-status--aberto {
  background: #22C55E;
  animation: none;
}
.badge-status--aberto::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--branco);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.8)} }
.badge-status--fechado { background: rgba(0,0,0,.45); }
.btn-info-loja {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: var(--branco);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s;
}
.btn-info-loja:hover { background: rgba(255,255,255,.28); }

/* ===== Info Card (ratings + chips) ===== */
.info-card {
  background: var(--branco);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cinza-100);
  flex-wrap: wrap;
  row-gap: 8px;
}
.rating-main { display: flex; align-items: center; gap: 6px; }
.rating-score {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--preto);
  line-height: 1;
}
.stars { display: flex; gap: 1px; }
.star-full, .star-half { color: var(--amarelo-dark); }
.rating-count { font-size: 11px; color: var(--cinza); margin-top: 2px; }
.rating-divider { width: 1px; height: 28px; background: var(--cinza-200); flex-shrink: 0; }
.rating-details { display: flex; gap: 12px; }
.rating-detail-item { text-align: center; }
.rating-detail-label { display: block; font-size: 10px; color: var(--cinza); margin-bottom: 1px; }
.rating-detail-value { font-size: 13px; font-weight: 600; color: var(--preto); }
.delivery-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cinza-light);
  border: 1px solid var(--cinza-200);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 12px;
  color: var(--cinza-800);
  font-weight: 500;
}
.chip svg { color: var(--vermelho); flex-shrink: 0; }
.chip-fee { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.chip-fee svg { color: #16a34a; }

/* Info Modal */
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--cinza-200);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}
.info-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; }
.info-modal { position: fixed; bottom: 0; left: 0; right: 0; max-height: 85dvh; background: var(--branco); border-radius: 20px 20px 0 0; z-index: 301; display: flex; flex-direction: column; overflow: hidden; animation: slideUp .3s cubic-bezier(.32,.72,0,1); }
.info-modal[hidden] { display: none; }
.info-overlay[hidden] { display: none; }
.info-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 12px; border-bottom: 1px solid var(--cinza-100); }
.info-modal-header h2 { font-family: var(--font-title); font-size: 16px; font-weight: 700; }
.info-modal-close { width: 30px; height: 30px; background: var(--cinza-light); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--cinza); font-size: 14px; }
.info-modal-body { overflow-y: auto; padding: 16px 20px 32px; }
.info-loading { text-align: center; color: #999; padding: 24px 0; }
.info-section { margin-bottom: 20px; }
.info-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.info-horarios { display: flex; flex-direction: column; }
.info-hora-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--cinza-100); }
.info-hora-row:last-child { border-bottom: none; }
.info-dia { color: var(--cinza-800); font-weight: 500; }
.info-hora { color: var(--preto); font-weight: 500; }
.info-fechado { color: var(--cinza); }
.info-pagamentos { display: flex; flex-wrap: wrap; gap: 7px; }
.info-pag-tag { background: var(--cinza-light); border: 1px solid var(--cinza-200); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; color: var(--cinza-800); font-weight: 500; }
.info-endereco { display: block; font-size: 14px; color: var(--cinza-800); text-decoration: none; line-height: 1.5; }
.info-maps-link { display: inline-flex; align-items: center; gap: 3px; color: var(--vermelho); font-size: 13px; font-weight: 600; margin-top: 4px; }

/* ===== Category Nav ===== */
.cat-nav-wrapper {
  position: sticky;
  top: var(--topbar-h);
  background: var(--branco);
  z-index: 90;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.cat-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 4px;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cinza);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-body);
}
.cat-tab svg { flex-shrink: 0; }
.cat-tab:hover { color: var(--vermelho); }
.cat-tab.active {
  color: var(--vermelho);
  border-bottom-color: var(--vermelho);
  font-weight: 600;
}

/* ===== Store Banner ===== */
.store-banner {
  background: #FFF8E1;
  border-left: 3px solid var(--amarelo);
  color: #7B5E00;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  line-height: 1.4;
  margin-bottom: 2px;
}
.store-banner--closed { background: #FFF8E1; border-left-color: var(--amarelo); }

/* ===== Menu ===== */
.menu {
  max-width: 600px;
  margin: 0 auto;
}
.category-section { margin-bottom: 8px; }
.category-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--preto);
  padding: 18px 16px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.category-title-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--cinza);
  margin-left: 2px;
}
.products-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--cinza-100);
}

/* ===== Product Card ===== */
.product-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--branco);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.product-card:active { background: var(--cinza-light); }

/* Image wrap — right side */
.product-img-wrap {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cinza-light);
  position: relative;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, #fdecea 0%, #ffe5e8 100%);
}
.product-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add button — overlaid on image bottom-right */
.product-add-btn {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 28px; height: 28px;
  background: var(--vermelho);
  color: var(--branco);
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(200,16,46,.35);
  transition: background 0.15s, transform 0.15s;
}
.product-add-btn:hover { background: var(--vermelho-dark); }
.product-add-btn.adding { animation: addBounce .25s ease; }
@keyframes addBounce { 0%,100%{transform:scale(1)} 40%{transform:scale(.88)} 70%{transform:scale(1.1)} }

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: .2px;
  margin-bottom: 5px;
}
.badge--mais-pedido { background: var(--vermelho); color: var(--branco); }
.badge--novo        { background: #0EA5E9; color: var(--branco); }
.badge--oferta      { background: var(--amarelo); color: var(--preto); }
.badge--destaque    { background: var(--amarelo); color: var(--preto); }
.badge--esgotado    { background: var(--cinza-200); color: var(--cinza); }

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--preto);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-desc {
  font-size: 12px;
  color: var(--cinza);
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  align-items: center;
}
.product-price {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--vermelho);
}

.product-card--esgotado { cursor: default; }
.product-card--esgotado .product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.55);
}
.product-card--esgotado .product-name,
.product-card--esgotado .product-desc { opacity: .5; }
.product-card--esgotado .product-price { color: var(--cinza); }
.product-card--esgotado .product-add-btn { display: none; }

/* ===== Skeleton Loading ===== */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 4px;
}
.product-card--skeleton { pointer-events: none; cursor: default; }
.skeleton-img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  order: 2;
}
.skeleton-line { height: 12px; margin: 8px 0; border-radius: 4px; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--branco);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,.08);
  border-radius: 50%;
  color: var(--preto);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(0,0,0,.15); }

.modal-emoji-header {
  background: linear-gradient(135deg, #fdecea 0%, #ffe0e4 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.modal-emoji-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(200,16,46,.08) 0%, transparent 60%);
}

.modal-body { padding: 16px; }
.modal-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-bottom: 6px;
}
.modal-desc { color: var(--cinza); font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.modal-price { font-size: 18px; font-weight: 700; color: var(--vermelho); margin-bottom: 16px; }

.modal-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.optional-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--cinza);
  background: var(--cinza-light);
  padding: 2px 8px;
  border-radius: 20px;
}

.option-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.option-item:hover { border-color: var(--vermelho); background: #fff5f5; }
.option-item input { width: 18px; height: 18px; accent-color: var(--vermelho); cursor: pointer; }
.option-label { flex: 1; font-size: 14px; }
.option-price { font-size: 13px; font-weight: 600; color: var(--vermelho); }

.obs-section { margin-bottom: 16px; }
.obs-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-sm);
  resize: none;
  color: var(--preto);
  transition: border-color 0.15s;
}
.obs-input:focus { outline: none; border-color: var(--vermelho); }

.modal-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--vermelho);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  color: var(--vermelho);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.qty-btn:hover { background: var(--vermelho); color: var(--branco); }
.qty-value { font-size: 22px; font-weight: 700; min-width: 32px; text-align: center; }

/* ===== Upsell Block (no modal) ===== */
.upsell-block {
  background: var(--dourado-light);
  border: 1.5px solid var(--dourado);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.upsell-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dourado-dark);
  margin-bottom: 10px;
}
.upsell-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upsell-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--preto);
}
.upsell-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--dourado-dark);
  white-space: nowrap;
}
.upsell-btn {
  background: var(--dourado);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.upsell-btn:hover { background: var(--dourado-dark); }

/* ===== Buttons ===== */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--vermelho);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--vermelho-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1da851; }

/* ===== Floating Cart Bar ===== */
.cart-float {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  width: calc(100% - 32px);
  max-width: 568px;
  animation: floatUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes floatUp { from { transform: translateX(-50%) translateY(100%); opacity:0; } to { transform: translateX(-50%) translateY(0); opacity:1; } }

.cart-float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--vermelho);
  color: #fff;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 6px 24px rgba(200,16,46,.40);
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.cart-float-btn:hover { background: var(--vermelho-dark); }
.cart-float-btn:active { transform: scale(0.99); }
.cart-float-icon { width: 20px; height: 20px; flex-shrink: 0; }
.cart-float-label { flex: 1; text-align: left; }
.cart-float-info {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}
.cart-float-arrow { font-size: 16px; opacity: 0.7; }

/* ===== Cart Drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  animation: fadeIn 0.2s ease;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  background: var(--branco);
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  animation: slideRight 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--borda);
}
.cart-header h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .3px;
}
.cart-close {
  font-size: 20px;
  color: var(--cinza);
  padding: 4px 8px;
}
.cart-close:hover { color: var(--preto); }

/* Free shipping progress */
.frete-progress {
  background: #F0FFF4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.frete-msg {
  font-size: 13px;
  font-weight: 600;
  color: #1B5E20;
  margin-bottom: 8px;
}
.progress-bar {
  height: 6px;
  background: #C8E6C9;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #2E7D32;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Cart upsell banner */
.upsell-cart-banner {
  background: #FFF8F0;
  border: 1.5px solid #FFD8A8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.upsell-cart-title {
  font-size: 13px;
  font-weight: 700;
  color: #8B4513;
  margin-bottom: 10px;
}
.upsell-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upsell-cart-info { flex: 1; }
.upsell-cart-name { font-size: 14px; font-weight: 500; color: var(--preto); }
.upsell-cart-price { font-size: 13px; font-weight: 700; color: var(--vermelho); margin-top: 2px; }
.upsell-cart-add-btn {
  background: var(--vermelho);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.upsell-cart-add-btn:hover { background: var(--vermelho-dark); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 16px 4px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 200px;
  color: var(--cinza);
}
.cart-empty span { font-size: 48px; }
.cart-empty p { font-size: 15px; }

.cart-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--borda);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item-extras { font-size: 12px; color: var(--cinza); margin-bottom: 6px; line-height: 1.4; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--borda);
  border-radius: 50%;
  font-size: 16px;
  color: var(--cinza);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.cart-qty-btn:hover { border-color: var(--vermelho); color: var(--vermelho); }
.cart-item-qty { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--vermelho);
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 2px;
}

.cart-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--borda);
  background: var(--branco);
}
.cart-subtotal, .cart-delivery {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--cinza);
  margin-bottom: 8px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--borda);
}
.btn-checkout { margin-top: 0; }

/* ===== Checkout Modal ===== */
.modal-checkout .modal-body { padding-bottom: 24px; }
.checkout-subtitle { color: var(--cinza); font-size: 14px; margin-bottom: 20px; margin-top: 4px; }

.field-group { margin-bottom: 14px; }
.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--preto);
}
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-sm);
  color: var(--preto);
  background: var(--branco);
  transition: border-color 0.15s;
}
.field-group input:focus,
.field-group select:focus { outline: none; border-color: var(--vermelho); }
.field-group input.error,
.field-group select.error { border-color: var(--vermelho); }

.field-row { display: flex; gap: 10px; }
.field-small { width: 100px; flex-shrink: 0; }

.checkout-summary {
  background: var(--cinza-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 16px 0;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--cinza);
  margin-bottom: 6px;
}
.checkout-summary-row:last-child { margin-bottom: 0; }
.checkout-total-row {
  font-size: 16px;
  font-weight: 700;
  color: var(--preto);
  padding-top: 8px;
  border-top: 1px solid var(--borda);
}
.cs-desconto { color: #1da851; font-weight: 600; }

/* ===== Cupom de desconto ===== */
.cupom-input-row {
  display: flex;
  gap: 8px;
}
.cupom-input-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.15s;
}
.cupom-input-row input:focus { outline: none; border-color: var(--vermelho); }
.btn-cupom {
  padding: 0 16px;
  background: var(--vermelho);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-cupom:hover { background: var(--vermelho-dark); }
.btn-cupom:disabled { opacity: 0.6; cursor: default; }
.cupom-feedback {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
}
.cupom-feedback--ok  { color: #1da851; }
.cupom-feedback--erro { color: var(--vermelho); }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 360px;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1A1A1A;
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
  animation: toastIn .25s cubic-bezier(.4,0,.2,1);
}
.toast-item--success { background: #1B5E20; }
.toast-item--error   { background: #9B0B22; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Utility ===== */
[hidden] { display: none !important; }

/* ===== Desktop ===== */
@media (min-width: 600px) {
  .topbar, .cat-nav-wrapper, .info-modal, .cart-float { max-width: 600px; left: 50%; transform: translateX(-50%); }
  .topbar.scrolled { border-radius: 0; }
  .menu { padding-left: 0; padding-right: 0; }
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-width: 520px; margin: 0 auto; }
  .modal-overlay { align-items: flex-end; }
  .cart-float { max-width: 568px; }
  .hero, .info-card, .store-banner { max-width: 600px; margin-left: auto; margin-right: auto; }
}
