/**
 * style.css - Sistema de Design, Tokens, Layout e Header
 * Degust Pizzaria & Marmitaria
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  /* Paleta de Cores Gastronômica */
  --primary: #b91c1c;        /* Vermelho Pomodoro */
  --primary-dark: #881313;   /* Vermelho Rústico */
  --primary-light: #fef2f2;  /* Vermelho Suave */
  --accent: #15803d;         /* Verde Manjericão */
  --accent-dark: #0f5628;    /* Verde Escuro */
  --accent-light: #f0fdf4;   /* Verde Suave */
  --gold: #d97706;           /* Dourado Forno */
  --gold-light: #fef3c7;     /* Dourado Suave */
  
  /* Superfícies e Tipografia */
  --bg: #faf6ee;             /* Creme Artesanal Quente */
  --bg-subtle: #f3ece0;      /* Creme Secundário */
  --surface: #ffffff;        /* Branco Puro para Cards */
  --surface-hover: #fffdf9;  /* Superfície Interativa */
  --ink: #27180e;            /* Marrom Espresso Profundo */
  --ink-soft: #685341;       /* Texto Secundário */
  --ink-muted: #9c8877;      /* Texto Terciário */
  --border: rgba(74, 46, 26, 0.12); /* Linha Divisória Sutil */
  --border-focus: rgba(185, 28, 28, 0.4);

  /* Elevação e Sombras */
  --shadow-sm: 0 2px 8px rgba(39, 24, 14, 0.05);
  --shadow-md: 0 8px 24px rgba(39, 24, 14, 0.08);
  --shadow-lg: 0 16px 40px rgba(39, 24, 14, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 90px;
  background-image: 
    radial-gradient(circle at 10% 0%, rgba(185, 28, 28, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(21, 128, 61, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

/* ============================================================
   BARRA SUPERIOR & CABEÇALHO (SITE HEADER)
   ============================================================ */

.site-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  position: relative;
  z-index: 40;
}

.topbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.topbar-hours span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition-fast);
}

.topbar-link:hover {
  opacity: 0.8;
}

/* Header Principal */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all var(--transition-smooth);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Status Badge de Funcionamento */
.store-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.store-status-badge.open {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.store-status-badge.closed {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.store-status-badge.soon {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Ações do Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--ink);
  transition: all var(--transition-fast);
}

.btn-header-action:hover {
  background: var(--border);
}

.btn-whatsapp-pill {
  background: #25D366;
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ============================================================
   BANNER DESTAQUE / SPOTLIGHT HERO
   ============================================================ */

.spotlight-hero {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.spotlight-box {
  background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #44403c 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.spotlight-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(217, 119, 6, 0.15), transparent 60%);
  pointer-events: none;
}

.spotlight-body {
  flex: 1;
  padding: 40px 48px;
  z-index: 2;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.spotlight-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #ffffff;
}

.spotlight-desc {
  font-size: 15px;
  color: #d6d3d1;
  max-width: 480px;
  margin-bottom: 22px;
}

.spotlight-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.4);
  transition: transform var(--transition-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: background var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.spotlight-media {
  width: 420px;
  height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 25%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%);
}

/* ============================================================
   BARRA DE PESQUISA & FILTROS RÁPIDOS
   ============================================================ */

.search-filter-section {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.search-bar-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 14px 20px 14px 48px;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.quick-filters-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.quick-filters-row::-webkit-scrollbar {
  display: none;
}

.quick-filter-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.quick-filter-chip:hover {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--ink-muted);
}

.quick-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.25);
}

/* ============================================================
   SEÇÃO "MAIS PEDIDOS" / CARDS DESTAQUE
   ============================================================ */

.highlights-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.section-head-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.highlight-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.highlight-media {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.highlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.highlight-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.highlight-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.highlight-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
}

.highlight-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.price-label-small {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.price-val-large {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-dark);
}

.highlight-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-action-primary {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: opacity var(--transition-fast);
}

.btn-card-action-primary:hover {
  opacity: 0.9;
}

.btn-card-action-secondary {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(21, 128, 61, 0.2);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

/* ============================================================
   BARRA FIXA DE CATEGORIAS (STICKY CATEGORY BAR)
   ============================================================ */

.sticky-categories-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 74px;
  z-index: 45;
  box-shadow: 0 4px 12px rgba(39, 24, 14, 0.04);
}

.categories-scroll-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  background: var(--border);
  color: var(--ink);
}

.category-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}

.cat-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
