/* ============================================================
   MEMORA HALL - CSS Principal
   Paleta: Vinho #6B1F3B | Grafite #2C3E50 | Dourado #D4A574 | Bege #F5F3F0
   ============================================================ */

:root {
  --primary:        #6B1F3B;
  --primary-dark:   #4A1528;
  --primary-light:  #8B2F4F;
  --secondary:      #2C3E50;
  --secondary-dark: #1a252f;
  --accent:         #D4A574;
  --accent-dark:    #B8895A;
  --beige:          #F5F3F0;
  --beige-dark:     #EDE8E3;
  --white:          #FFFFFF;
  --text:           #1A1A1A;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --shadow:         0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.12);
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     0.25s ease;
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--secondary); color: var(--white); }
.section-beige { background: var(--beige); }

/* ── TIPOGRAFIA ── */
h1,h2,h3 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,31,59,0.3); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
  width: 44px; height: 44px; background: var(--primary); color: var(--white);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; flex-shrink: 0;
}
.logo-name { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.logo-tagline { display: block; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 0.85rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500;
  color: var(--secondary); transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: var(--beige); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-whatsapp {
  display: flex; align-items: center; gap: 0.4rem;
  background: #25D366; color: var(--white); padding: 0.5rem 1rem;
  border-radius: 8px; font-size: 0.875rem; font-weight: 600; transition: var(--transition);
}
.btn-whatsapp:hover { background: #1EB358; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  color: var(--white); padding: 6rem 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212,165,116,0.2); border: 1px solid rgba(212,165,116,0.4);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; opacity: 0.85; margin-bottom: 2.5rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-box {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 2.5rem; text-align: center;
}
.hero-image-placeholder {
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  height: 300px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; margin-bottom: 1.5rem;
}
.hero-image-placeholder .icon { font-size: 4rem; }
.hero-image-placeholder p { opacity: 0.6; font-size: 0.9rem; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; }
.hero-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--accent); }
.hero-stat span { font-size: 0.8rem; opacity: 0.7; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 200px; background: var(--beige-dark); display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { font-size: 3rem; color: var(--text-muted); }
.card-body { padding: 1.5rem; }
.card-badge {
  display: inline-block; background: var(--beige); color: var(--primary);
  padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem;
}
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.card-hours { font-size: 0.8rem; color: var(--text-muted); }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ── BOLICHE DESTAQUE ── */
.bowling-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  color: var(--white); padding: 5rem 0;
}
.bowling-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bowling-checklist { list-style: none; margin: 1.5rem 0 2.5rem; }
.bowling-checklist li {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem;
}
.bowling-checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.bowling-image-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 3rem;
  display: flex; align-items: center; justify-content: center; min-height: 340px;
  font-size: 5rem; text-align: center;
}

/* ── POSTS ── */
.post-card { display: flex; flex-direction: column; }
.post-date { font-size: 0.8rem; color: var(--text-muted); margin-top: auto; padding-top: 1rem; }

/* ── PÁGINAS INTERNAS ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); padding: 4rem 0;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { opacity: 0.85; font-size: 1.1rem; }

/* ── HORÁRIOS ── */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 0.85rem 0; }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table tr:last-child { border-bottom: none; }
.hours-badge-open { color: #059669; font-weight: 600; }
.hours-badge-closed { color: var(--text-muted); }

/* ── FORMULÁRIO ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition); background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,31,59,0.1); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* ── FOOTER ── */
.site-footer { background: var(--secondary-dark); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
  font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); font-weight: 700;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; opacity: 0.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: rgba(255,255,255,0.7);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.875rem; opacity: 0.7; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-contact p { font-size: 0.875rem; opacity: 0.7; margin-bottom: 0.6rem; }
.footer-contact a { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; text-align: center;
  font-size: 0.8rem; opacity: 0.5;
}

/* ── ADMIN ── */
.admin-body { background: #F8FAFC; min-height: 100vh; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.admin-topbar-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.admin-topbar-user { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--text-muted); }
.admin-layout { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
  width: 260px; background: var(--white); border-right: 1px solid var(--border);
  padding: 1.5rem 0; position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; flex-shrink: 0;
}
.sidebar-section { margin-bottom: 2rem; }
.sidebar-label { padding: 0 1.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.5rem;
  font-size: 0.875rem; font-weight: 500; color: var(--text); transition: var(--transition);
}
.sidebar-link:hover { background: var(--beige); color: var(--primary); }
.sidebar-link.active { background: var(--beige); color: var(--primary); border-right: 3px solid var(--primary); }
.sidebar-link svg { width: 18px; height: 18px; opacity: 0.6; flex-shrink: 0; }
.sidebar-link:hover svg, .sidebar-link.active svg { opacity: 1; }

.admin-content { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-page-header { margin-bottom: 2rem; }
.admin-page-header h1 { font-size: 1.75rem; color: var(--secondary); }
.admin-page-header p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.25rem; }

.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-card-title { font-size: 1rem; font-weight: 600; color: var(--secondary); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--secondary); font-family: 'Playfair Display', serif; }
.stat-card.primary { border-left: 4px solid var(--primary); }
.stat-card.accent { border-left: 4px solid var(--accent); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.75rem 1rem; background: var(--beige); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--beige); }
.badge { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-admin { background: #EDE9FE; color: #5B21B6; }
.badge-store { background: #DBEAFE; color: #1E40AF; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }

/* ── LOGIN ADMIN ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  padding: 2rem;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 3rem;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-icon { width: 60px; height: 60px; font-size: 1.75rem; margin: 0 auto 1rem; border-radius: 14px; }
.login-logo h2 { font-size: 1.5rem; color: var(--secondary); margin-bottom: 0.25rem; }
.login-logo p { color: var(--text-muted); font-size: 0.875rem; }

/* ── LOJA SINGLE ── */
.store-banner { height: 360px; background: var(--secondary); display: flex; align-items: center; justify-content: center; overflow: visible; position: relative; z-index: 1; }
.store-banner img { width: 100%; height: 100%; object-fit: cover; }
.store-banner-placeholder { font-size: 5rem; color: rgba(255,255,255,0.4); }
.store-header { display: flex; gap: 2rem; align-items: flex-start; padding: 2.5rem 0; }
/* store-logo-box gerenciado inline no loja.php */
.menu-category { margin-bottom: 2.5rem; }
.menu-category-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.menu-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 600; margin-bottom: 0.25rem; }
.menu-item-desc { font-size: 0.85rem; color: var(--text-muted); }
.menu-item-price { font-weight: 700; color: var(--primary); white-space: nowrap; font-family: 'Playfair Display', serif; font-size: 1.1rem; }

/* ── POPUP ── */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn 0.3s ease;
}
.popup-box {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  max-width: 800px; width: 100%; box-shadow: var(--shadow-lg);
  position: relative; animation: slideUp 0.3s ease;
}
.popup-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(0,0,0,0.5); color: var(--white);
  border: none; border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
}
.popup-img { width: 100%; height: 600px; object-fit: cover; display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVO — Revisão completa (dev front-end sênior)
   Breakpoints:
     1200px  → Container e footer ajustados
     1024px  → Tablet landscape
      768px  → Tablet portrait / Mobile landscape
      600px  → Mobile landscape compacto
      480px  → Mobile portrait médio
      380px  → Mobile portrait pequeno
   ============================================================ */

/* ── 1200px: Ajuste fino de container e footer ── */
@media (max-width: 1200px) {
  /* Footer: 4 colunas viram 2+2 antes de quebrar tudo de uma vez */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; }
}

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  /* Footer: 2 colunas simétricas */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Admin sidebar ligeiramente mais estreita */
  .admin-sidebar { width: 220px; }

  /* Hero: reduz gap excessivo */
  .hero-grid { gap: 2.5rem; }
  .bowling-grid { gap: 2.5rem; }

  /* Sobre: stats em 4 colunas ainda cabe, mas reduz font */
  /* já usa clamp, sem ajuste extra necessário */
}

/* ── 768px: Tablet portrait e Mobile landscape ── */
@media (max-width: 768px) {

  /* ─── HEADER / NAV ─────────────────────────────────────── */
  /* Menu mobile: painel full-screen sobreposto */
  .main-nav {
    display: none;
    position: fixed;
    /* top = altura do header (72px) */
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    overflow-y: auto;
    /* Evita salto de conteúdo na abertura */
    overscroll-behavior: contain;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.9rem 1rem;
    width: 100%;
    border-radius: 8px;
    font-size: 1rem;
    /* Deixa área de toque generosa */
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .hamburger { display: flex; }

  /* WhatsApp: ícone apenas (economiza espaço no header) */
  .btn-whatsapp span { display: none; }
  .btn-whatsapp { padding: 0.5rem 0.65rem; }

  /* ─── HERO ─────────────────────────────────────────────── */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-box { display: none; }

  /* Hero V2 (home com imagem de fundo) */
  .hero-v2 { min-height: 85svh; }
  /* Padding-top garante que o conteúdo não fique sob o header fixo */
  .hero-v2 .container { padding-top: 5rem !important; padding-bottom: 4rem !important; }
  .hero-v2 h1 { font-size: clamp(2rem, 6vw, 2.6rem) !important; }

  /* ─── SEÇÃO BOLICHE ─────────────────────────────────────── */
  .bowling-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Imagem do boliche: altura proporcional e sem padding excesso */
  .bowling-image-box { min-height: 220px; padding: 1rem; }

  /* ─── CARDS / GRIDS ─────────────────────────────────────── */
  /* cards-grid usa auto-fit, minmax(260px,1fr): no 768px fica OK */
  /* features-grid usa auto-fit, minmax(180px,1fr): fica 2 cols */

  /* Novidades em 2 colunas (1 col só em mobile pequeno) */
  .posts-grid-featured { grid-template-columns: 1fr 1fr; gap: 1rem; }
  /* Post destaque ocupa linha inteira */
  .posts-grid-featured .post-featured { grid-column: 1 / -1; }
  /* Card destaque: horizontal vira vertical em tablet */
  .posts-grid-featured .post-featured .card { flex-direction: column; }
  .posts-grid-featured .post-featured .card-img { width: 100%; height: 220px; }

  /* ─── FORMULÁRIOS ─────────────────────────────────────── */
  .form-row { grid-template-columns: 1fr; }

  /* ─── FOOTER ─────────────────────────────────────────── */
  /* Já está em 1fr 1fr pelo breakpoint 1024. Aqui empilha tudo */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ─── LOJA SINGLE ────────────────────────────────────── */
  .store-banner { height: 220px; }
  .store-header { flex-direction: column; }

  /* Tabs: scroll horizontal suave sem scroll lateral na página */
  [style*="display:flex;border-bottom"] {
    /* Não podemos sobrescrever inline style diretamente aqui,
       mas os tabs têm overflow-x:auto inline — já está correto */
  }

  /* ─── POPUP ─────────────────────────────────────────── */
  .popup-overlay { padding: 0.75rem; }
  .popup-box { max-width: 100%; border-radius: var(--radius); }
  .popup-img { height: 280px; }

  /* ─── ADMIN ─────────────────────────────────────────── */
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-topbar { padding: 0 1rem; }
  .admin-content { padding: 1rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 600px: Mobile landscape (orientação horizontal) ── */
/*
   Objetivo: aproveitar a largura disponível sem espreme tudo
   em coluna única. Mantemos 2 colunas onde faz sentido e
   ajustamos alturas excessivas.
*/
@media (max-width: 768px) and (orientation: landscape) {
  /* Hero: altura menor — já há conteúdo acima da dobra */
  .hero-v2 {
    min-height: 100vh;
    /* Em landscape, 85svh pode ser muito pequeno: usamos 100vh */
  }
  .hero-v2 .container { padding-top: 5rem !important; padding-bottom: 3rem !important; }
  .hero-v2 h1 { font-size: clamp(1.7rem, 4vw, 2.2rem) !important; }

  /* Botões hero: lado a lado (não empilhados) */
  /* O PHP usa inline style; não podemos forçar aqui sem JS.
     Mas o flex-wrap:wrap já resolve em telas maiores. */

  /* Boliche: 2 colunas mantidas em landscape */
  .bowling-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .bowling-image-box { min-height: 180px; }

  /* Cards: 2 colunas em landscape mobile */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  /* Feat cards em landscape: 3 colunas */
  /* auto-fit minmax(200px, 1fr) → já resolve */

  /* Novidades: 3 colunas em landscape */
  .posts-grid-featured { grid-template-columns: repeat(3, 1fr); }
  .posts-grid-featured .post-featured { grid-column: 1 / -1; }
  .posts-grid-featured .post-featured .card-img { height: 180px; }

  /* Banner da loja menor em landscape */
  .store-banner { height: 180px; }

  /* Popup menor em landscape */
  .popup-img { height: 200px; }

  /* Menu mobile: menos padding vertical para caber mais links */
  .main-nav { padding: 0.75rem 1rem; }
  .main-nav a { padding: 0.65rem 1rem; min-height: 44px; font-size: 0.95rem; }

  /* Seções: padding menor para economizar espaço vertical */
  .section { padding: 3rem 0; }

  /* Footer: 2 colunas em landscape */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ── 480px: Mobile portrait médio ── */
@media (max-width: 480px) {

  /* ─── LAYOUT GERAL ─────────────────────────────────────── */
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .section-sm { padding: 2rem 0; }
  .hero { padding: 3rem 0; }

  /* Subtítulos: fonte menor para caber sem overflow */
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

  /* ─── HERO V2 ────────────────────────────────────────── */
  .hero-v2 { min-height: 80svh; }
  .hero-v2 .container { padding-top: 5rem !important; padding-bottom: 3rem !important; }
  .hero-v2 h1 { font-size: clamp(1.9rem, 7vw, 2.4rem) !important; line-height: 1.15 !important; }

  /* Badge eyebrow: tamanho menor */
  .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.85rem; }

  /* Botões hero: empilham no portrait pequeno */
  .hero-buttons { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat strong { font-size: 1.4rem; }

  /* ─── CARDS ─────────────────────────────────────────── */
  /* Operações e posts: 1 coluna */
  .cards-grid { grid-template-columns: 1fr; }
  /* Features: 2 colunas (ainda cabe bem) */
  .features-grid { grid-template-columns: 1fr 1fr; }

  /* Feat cards (home "O que você encontra"): 2 colunas */
  /* O grid inline usa auto-fit minmax(200px,1fr).
     Em 480px o minmax(200px) forçaria 1 coluna — corrigimos via override */
  [style*="minmax(200px,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ─── BOLICHE ────────────────────────────────────────── */
  .bowling-section { padding: 3rem 0; }
  .bowling-image-box { display: none; } /* Esconde imagem em mobile pequeno */

  /* ─── LOJA SINGLE ────────────────────────────────────── */
  .store-banner { height: 180px; }
  /* Logo da loja: menor para não vazar */
  /* O logo usa margin-top:-55px inline; reduzimos via transform */
  /* Não podemos sobrescrever facilmente o inline, mas o flex-wrap:wrap já ajuda */

  /* Cardápio: preço vai abaixo do nome/descrição */
  .menu-item { flex-wrap: wrap; gap: 0.5rem; }
  .menu-item-price { width: 100%; text-align: left; margin-top: 0.25rem; }

  /* Galeria: 2 colunas */
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }

  /* Tabs da loja: scroll horizontal nativo */
  .store-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; display: flex; }
  .store-tabs a { flex-shrink: 0; }

  /* ─── SOBRE: STATS ─────────────────────────────────── */
  /* 4 colunas viram 2x2 */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  [style*="font-size:3rem"][style*="Playfair"] {
    font-size: 2.2rem !important;
  }

  /* ─── CONTATO: GRID ─────────────────────────────────── */
  /* Info + Formulário: empilha */
  [style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* ─── FOOTER ─────────────────────────────────────────── */
  .footer-grid { gap: 1.5rem; }
  .footer-bottom { font-size: 0.72rem; }

  /* ─── POPUP ─────────────────────────────────────────── */
  .popup-overlay { padding: 0.5rem; align-items: flex-end; }
  .popup-box { margin: 0; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .popup-img { height: 220px; }

  /* ─── ADMIN ─────────────────────────────────────────── */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-value { font-size: 1.5rem; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.65rem 0.6rem; }

  /* ─── LOGIN ─────────────────────────────────────────── */
  .login-card { padding: 2rem 1.25rem; }

  /* ─── BOTÕES: garante que não colem nas bordas ────── */
  .btn { white-space: normal; text-align: center; }
  .btn-block { width: 100%; }
}

/* ── 380px: Mobile portrait pequeno ── */
@media (max-width: 380px) {

  .container { padding: 0 0.875rem; }

  /* Header: logo pode precisar de menos espaço */
  .header-inner { gap: 1rem; }
  .logo-name { font-size: 1rem; }
  .logo-tagline { display: none; } /* Remove tagline minúscula */

  /* Hero */
  .hero-v2 h1 { font-size: 1.75rem !important; }

  /* Feat cards: 1 coluna em telas muito pequenas */
  [style*="minmax(200px,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .features-grid { grid-template-columns: 1fr; }

  /* Cards de lojas e posts: 1 coluna (já estava) */
  .cards-grid { grid-template-columns: 1fr; }

  /* Botões do hero e CTA: coluna */
  .hero-buttons { flex-direction: column; gap: 0.75rem; }

  /* Popup: imagem menor */
  .popup-img { height: 180px; }

  /* Admin stats: 1 coluna em tela muito pequena */
  .stat-grid { grid-template-columns: 1fr; }

  /* Boliche checklist: fonte menor */
  .bowling-checklist li { font-size: 0.875rem; }

  /* Footer: compacto */
  .footer-grid { gap: 1.25rem; }
  .site-footer { padding: 3rem 0 0; }
}

/* ── FEATURE CARDS REDESIGN ── */
.feat-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 22px 26px;
  border: 1px solid rgba(0,0,0,0.07);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
.feat-card:hover::before { opacity: 1; }
.feat-num {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 11px; font-weight: 800;
  color: #EBEBEB;
  letter-spacing: .08em;
}
.feat-icon-box {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feat-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.feat-title-new {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}
.feat-desc-new {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── HERO V2 (full-bleed com imagem de fundo) ── */



/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  flex-direction: column;
}
#lightbox-overlay.active { display: flex; }
.lb-img-wrap { max-width: 90vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
#lb-img { max-width: 90vw; max-height: 80vh; border-radius: 8px; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.lb-close {
  position: fixed; top: 1.25rem; right: 1.5rem; background: rgba(255,255,255,.15);
  border: none; color: #fff; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; transition: background .2s; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 2.5rem; width: 54px; height: 54px; border-radius: 50%;
  cursor: pointer; transition: background .2s; z-index: 10000;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-counter { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .75rem; letter-spacing: .04em; }
a[data-lightbox] { display: block; cursor: zoom-in; }
a[data-lightbox]:hover img { opacity: .88; }

/* ============================================================
   DRAG & DROP (Admin Cardápio)
   ============================================================ */
.dd-category-row, .dd-item-row { transition: opacity .2s, box-shadow .2s; }
.drag-dragging { opacity: .4; }
.drag-over { box-shadow: 0 0 0 2px var(--primary) !important; border-radius: var(--radius) !important; }
.drag-handle { cursor: grab; color: var(--text-muted); font-size: 1.1rem; padding: 0 .5rem; flex-shrink: 0; user-select: none; }
.drag-handle:active { cursor: grabbing; }

/* ============================================================
   CARD LOJA — Logo destaque na home
   ============================================================ */
.store-card-logo {
  width: 72px; height: 72px; background: var(--white);
  border-radius: 12px; border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: absolute; bottom: -20px; left: 1rem;
  padding: 6px; z-index: 5;
}
.store-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.store-card-logo-emoji { font-size: 2rem; }
.card-img-wrap { position: relative; }

/* ============================================================
   NOVIDADES — Grid 3 colunas com destaque (loja.php)
   ============================================================ */
.posts-grid-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.posts-grid-featured .post-featured { grid-column: 1 / -1; }
.posts-grid-featured .post-featured .card { display: flex; flex-direction: row; min-height: 240px; }
.posts-grid-featured .post-featured .card-img { width: 45%; height: auto; flex-shrink: 0; }
.posts-grid-featured .post-featured .card-body { flex: 1; padding: 2rem; }
.posts-grid-featured .post-featured .card-title { font-size: 1.5rem; }

/* ============================================================
   LOGIN — com logo
   ============================================================ */
.login-logo img { max-width: 160px; height: auto; margin: 0 auto 1rem; display: block; }
.login-logo-placeholder {
  width: 64px; height: 64px; background: var(--primary); color: var(--white);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700;
  margin: 0 auto 1rem;
}

/* ============================================================
   ADMIN NOVIDADES — Miniatura na lista
   ============================================================ */
.post-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--beige); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CARDÁPIO — Foto do produto
   ============================================================ */
.menu-item-photo { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--beige-dark); cursor: zoom-in; }
.menu-item-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   ADMIN MÍDIA
   ============================================================ */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.media-item { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--beige-dark); aspect-ratio: 1; border: 2px solid transparent; transition: border-color .2s; }
.media-item:hover { border-color: var(--primary); }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; padding: .35rem .5rem; display: none; }
.media-item:hover .media-item-info { display: block; }
.media-filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.media-filter-bar button { font-size: .8rem; }

/* ============================================================
   ADMIN — Botões de ícone com tooltip
   ============================================================ */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--secondary);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--beige); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.icon-btn.icon-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn.icon-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.icon-btn.icon-btn-danger { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.icon-btn.icon-btn-danger:hover { background: #FCA5A5; border-color: #F87171; }
.icon-btn svg { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }

/* Tooltip */
.icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  background: var(--secondary-dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .25rem .6rem;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 100;
}
.icon-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--secondary-dark);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 100;
}
.icon-btn:hover::after, .icon-btn:hover::before { opacity: 1; }

.icon-btn-group { display: flex; gap: .35rem; align-items: center; flex-wrap: nowrap; }

/* ============================================================
   MEDIA PICKER MODAL
   ============================================================ */
#media-picker-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55); align-items: center; justify-content: center;
}
#media-picker-overlay.open { display: flex; }
#media-picker-modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: min(95vw, 860px); max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.mp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mp-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.mp-close {
  background: none; border: none; cursor: pointer; font-size: 1.25rem;
  color: var(--text-muted); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .2s;
}
.mp-close:hover { background: var(--beige); }
.mp-filters {
  display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mp-filter-btn {
  font-size: .75rem; padding: .25rem .75rem; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all .2s; color: var(--text-muted); font-weight: 500;
}
.mp-filter-btn.active, .mp-filter-btn:hover {
  border-color: var(--primary); color: var(--primary); background: var(--beige);
}
.mp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem; padding: 1rem 1.5rem; overflow-y: auto; flex: 1;
  max-height: 50vh; align-content: start;
}
.mp-item {
  aspect-ratio: 1; height: 130px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2.5px solid transparent; transition: all .2s; position: relative;
  background: var(--beige-dark);
}
.mp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-item:hover { border-color: var(--primary); transform: scale(1.03); }
.mp-item.selected { border-color: var(--primary); }
.mp-item.selected::after {
  content: '✓'; position: absolute; top: .35rem; right: .35rem;
  background: var(--primary); color: #fff; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.mp-item-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.5); color: #fff; font-size: .65rem;
  padding: .2rem .4rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; opacity: 0; transition: opacity .2s;
}
.mp-item:hover .mp-item-name { opacity: 1; }
.mp-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem; border-top: 1px solid var(--border);
  flex-shrink: 0; gap: 1rem;
}
.mp-preview {
  display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0;
}
.mp-preview img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0;
}
.mp-preview-name { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-empty { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text-muted); }
.mp-loading { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text-muted); }

/* Botão "Escolher da Mídia" junto ao input de upload */
.media-pick-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 8px; font-size: .8rem; font-weight: 600;
  border: 1.5px solid var(--primary); color: var(--primary); background: var(--white);
  cursor: pointer; transition: all .2s; white-space: nowrap; margin-top: .4rem;
}
.media-pick-btn:hover { background: var(--primary); color: #fff; }
.media-pick-btn svg { width: 14px; height: 14px; }
.media-selected-preview {
  display: none; align-items: center; gap: .75rem; margin-top: .5rem;
  padding: .5rem; background: var(--beige); border-radius: 8px; font-size: .8rem;
}
.media-selected-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.media-selected-preview.visible { display: flex; }

/* FIX: Media picker grid altura */
.mp-grid { max-height: 50vh !important; align-content: start !important; }
.mp-item { height: 130px !important; }

/* Popup 800x600 */
.popup-content { max-width: 800px !important; min-height: 500px !important; }
.popup-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ============================================================
   CORREÇÕES ADICIONAIS — Grids inline e seções específicas
   Aplica-se a grids definidos via style="" no PHP
   ============================================================ */

/* Garante que nenhum elemento cause scroll lateral */
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── 768px: Seções com grid inline ── */
@media (max-width: 768px) {

  /* Seção Kids e demais grids de 2 colunas inline */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Contato: 1fr 2fr → 1 coluna */
  [style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Imagem Kids: altura menor */
  [style*="min-height:280px"] {
    min-height: 200px !important;
  }

  /* Tabs da loja: oculta scrollbar mantendo funcionalidade */
  [style*="overflow-x:auto"] {
    scrollbar-width: none;
  }
  [style*="overflow-x:auto"]::-webkit-scrollbar { display: none; }
}

/* ── 600px: Stats 4 → 2 colunas ── */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* ── 480px: Mobile pequeno ── */
@media (max-width: 480px) {

  /* Feat-cards: 2 colunas */
  [style*="minmax(200px,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Logo da loja single: reduz para não vazar */
  [style*="width:110px;height:110px"] {
    width: 80px !important;
    height: 80px !important;
    margin-top: -40px !important;
    border-radius: 12px !important;
  }
  [style*="flex:1;padding-top:1.5rem"] {
    padding-top: 0.25rem !important;
  }

  /* Galeria da loja: 2 colunas menores */
  [style*="minmax(220px,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  [style*="minmax(220px,1fr)"] a {
    height: 140px !important;
  }

  /* CTA buttons: coluna */
  [style*="display:flex;gap:1rem;justify-content:center"] {
    flex-direction: column !important;
    align-items: center !important;
  }
  [style*="display:flex;gap:1rem;justify-content:center"] .btn,
  [style*="display:flex;gap:1rem;justify-content:center"] a[class^="btn"] {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* Hero V2 botões: coluna */
  .hero-v2 [style*="gap:1rem"] {
    flex-wrap: wrap;
  }

  /* Loja: kids min-height menor */
  [style*="min-height:280px"] { min-height: 160px !important; }

  /* Stats números: menor */
  [style*="font-size:3rem"] {
    font-size: 2rem !important;
  }

  /* Tabela de horários: fonte menor */
  .hours-table td { padding: 0.65rem 0; font-size: 0.9rem; }

  /* Posts em loja.php */
  .posts-grid-featured { grid-template-columns: 1fr !important; }
  .posts-grid-featured .post-featured { grid-column: auto !important; }
}

/* ── 380px: Mobile muito pequeno ── */
@media (max-width: 380px) {
  .container { padding: 0 0.875rem; }
  .logo-tagline { display: none; }
  .hero-v2 h1 { font-size: 1.75rem !important; }

  /* Feat-cards: 1 coluna em tela muito estreita */
  [style*="minmax(200px,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Boliche checklist */
  .bowling-checklist li { font-size: 0.875rem; }

  /* Admin */
  .stat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FIX ESPAÇO KIDS — usa .section (nao .bowling-section)
   ============================================================ */
@media (max-width: 768px) {

  .section > .container > div[style*="grid-template-columns"][style*="4rem"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .section > .container > div[style*="grid-template-columns"][style*="4rem"] > div:first-child {
    width: 100% !important;
    min-height: 220px !important;
    border-radius: var(--radius) !important;
    order: 0;
  }

  .section > .container > div[style*="grid-template-columns"][style*="4rem"] > div:last-child {
    order: 1;
    padding-top: 0 !important;
  }

  /* Boliche: imagem permanece visivel */
  .bowling-section .bowling-image-box {
    display: flex !important;
    min-height: 220px !important;
  }
}

/* ============================================================
   FIX HEADER + HERO MOBILE
   ============================================================ */
@media (max-width: 768px) {

  /* Oculta botão WhatsApp no header mobile */
  .btn-whatsapp { display: none !important; }

  /* Hero: centraliza conteúdo */
  .hero-v2 .container > div {
    max-width: 100% !important;
    text-align: center;
  }

  /* Badge eyebrow: centralizado */
  .hero-v2 .container > div > div:first-child {
    margin-left: auto;
    margin-right: auto;
  }

  /* Botões: lado a lado compactos, centralizados */
  .hero-v2 [style*="display:flex"][style*="gap:1rem"] {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
  }

  /* Cada botão: tamanho automático, não ocupa linha inteira */
  .hero-v2 [style*="display:flex"][style*="gap:1rem"] > * {
    width: auto !important;
    flex: 0 1 auto !important;
    padding: 0.75rem 1.4rem !important;
    font-size: 0.9rem !important;
  }
}

/* ============================================================
   FIX MENU MOBILE — sobreposição correta
   ============================================================ */
@media (max-width: 768px) {

  /* Garante que o header fique acima de tudo */
  .site-header { z-index: 200 !important; }

  /* Menu: painel fixo abaixo do header, sobre o conteúdo */
  .main-nav {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 199 !important;
    background: var(--white) !important;
    overflow-y: auto !important;
    /* Impede que empurre o conteúdo */
    height: calc(100vh - 72px) !important;
  }

  /* Quando fechado: completamente oculto */
  .main-nav:not(.open) {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ============================================================
   MENU MOBILE — Redesign elegante
   ============================================================ */
@media (max-width: 768px) {

  .main-nav {
    padding: 2.5rem 2rem !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background: var(--secondary-dark) !important;
  }

  .main-nav a {
    font-size: 1.35rem !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.85) !important;
    text-align: center !important;
    padding: 1.1rem 1rem !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    letter-spacing: 0.02em !important;
    transition: color 0.2s, padding-left 0.2s !important;
    min-height: auto !important;
    justify-content: center !important;
  }

  .main-nav a:first-child {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--accent) !important;
    background: transparent !important;
    padding-left: 1rem !important;
  }
}

/* ============================================================
   FIX LOJA SINGLE — Header da loja no mobile
   ============================================================ */
@media (max-width: 768px) {

  /* Container do header da loja: centraliza tudo */
  [style*="display:flex;gap:2rem;align-items:flex-start;padding:0 0 2rem;flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem 0 2rem !important;
    gap: 1rem !important;
  }

  /* Logo: maior e centralizado */
  [style*="width:110px;height:110px"] {
    width: 130px !important;
    height: 130px !important;
    margin-top: -65px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Info: ocupa largura total, centralizado */
  [style*="flex:1;padding-top:1.5rem"] {
    width: 100% !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Badge categoria: centralizado */
  [style*="flex:1;padding-top:1.5rem"] .card-badge {
    align-self: center !important;
  }

  /* Botões: largura generosa, centralizados */
  [style*="display:flex;gap:.75rem;flex-wrap:wrap"] {
    justify-content: center !important;
    width: 100% !important;
  }

  [style*="display:flex;gap:.75rem;flex-wrap:wrap"] .btn {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
  }
}

/* ============================================================
   FIX NOVIDADES — Card destaque na loja.php
   ============================================================ */
@media (max-width: 768px) {

  /* Grid de novidades: 1 coluna */
  .posts-grid-featured {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Card destaque: empilha verticalmente */
  .posts-grid-featured .post-featured { grid-column: auto !important; }
  .posts-grid-featured .post-featured .card {
    flex-direction: column !important;
  }

  /* Imagem do card destaque: largura total, altura fixa */
  .posts-grid-featured .post-featured .card-img {
    width: 100% !important;
    height: 220px !important;
    flex-shrink: 0 !important;
  }

  /* Corpo do card: padding normal */
  .posts-grid-featured .post-featured .card-body {
    padding: 1.25rem !important;
  }

  /* Título do destaque: tamanho menor no mobile */
  .posts-grid-featured .post-featured .card-title {
    font-size: 1.2rem !important;
  }
}

/* ============================================================
   ADMIN — RESPONSIVO COMPLETO
   Breakpoints: 1024px | 768px | 480px
   ============================================================ */

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {

  /* Sidebar: mais estreita */
  .admin-sidebar { width: 200px; }

  /* Topbar: compacta */
  .admin-topbar { padding: 0 1.25rem; }

  /* Conteúdo: menos padding lateral */
  .admin-content { padding: 1.5rem; }

  /* Formulários 2fr 1fr → colunas iguais */
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 3fr 2fr !important;
    gap: 1.25rem !important;
  }

  /* Stats: 4 colunas ainda cabem, mas compactas */
  .stat-grid { gap: 0.75rem; }
  .stat-value { font-size: 1.75rem; }
}

/* ── 768px: Tablet portrait / Mobile ── */
@media (max-width: 768px) {

  /* ─── LAYOUT GERAL ─────────────────────────────────────── */
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    /* Sidebar vira barra horizontal com scroll */
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }

  /* Seções da sidebar: inline */
  .sidebar-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
    padding: 0 0.5rem;
    border-right: 1px solid var(--border);
  }
  .sidebar-section:last-child { border-right: none; }

  /* Label das seções: oculta no horizontal */
  .sidebar-label { display: none; }

  /* Links: compactos e horizontais */
  .sidebar-link {
    padding: 0.5rem 0.75rem;
    border-right: none !important;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sidebar-link.active {
    border-right: none !important;
    border-bottom: 2px solid var(--primary) !important;
    background: var(--beige) !important;
    border-radius: 6px !important;
  }
  .sidebar-link svg { display: none; }

  /* Topbar */
  .admin-topbar { padding: 0 1rem; height: 56px; }
  .admin-topbar-user { gap: 0.5rem; font-size: 0.8rem; }
  .admin-topbar-user .badge { display: none; }

  /* Conteúdo */
  .admin-content { padding: 1rem; }

  /* ─── FORMULÁRIOS ─────────────────────────────────────── */

  /* Grid 2fr 1fr → 1 coluna */
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Grid 1fr 1fr (form-row) → 1 coluna */
  .form-row { grid-template-columns: 1fr; }

  /* ─── TABELAS ─────────────────────────────────────────── */
  /* Tabelas de dados: scroll horizontal */
  .admin-card { overflow-x: auto; }
  .data-table { min-width: 520px; font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.65rem 0.75rem; }

  /* Ações de tabela: botões não quebram */
  .icon-btn-group { flex-wrap: nowrap; }

  /* ─── STATS ───────────────────────────────────────────── */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-value { font-size: 1.6rem; }

  /* ─── PAGE HEADER ─────────────────────────────────────── */
  .admin-page-header { margin-bottom: 1.25rem; }
  .admin-page-header h1 { font-size: 1.35rem; }

  /* Header com botão de ação: empilha */
  .admin-page-header[style*="display:flex"],
  [style*="display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem"] {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }

  /* ─── TABS ADMIN ──────────────────────────────────────── */
  [style*="display:flex;gap:0;border-bottom"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
  }
  [style*="display:flex;gap:0;border-bottom"]::-webkit-scrollbar { display: none; }
  [style*="display:flex;gap:0;border-bottom"] a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* ─── CARDÁPIO ────────────────────────────────────────── */
  .menu-item { flex-wrap: wrap; }
  .menu-item-price { width: 100%; margin-top: 0.25rem; }

  /* ─── MEDIA GRID ──────────────────────────────────────── */
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }

  /* ─── CONFIGURAÇÕES ───────────────────────────────────── */
  /* Grid de logos/imagens: 1 coluna */
  .admin-card [style*="display:grid"],
  .admin-card [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ── 480px: Mobile pequeno ── */
@media (max-width: 480px) {

  /* Topbar: só logo + usuário abreviado */
  .admin-topbar { padding: 0 0.875rem; height: 52px; }
  .admin-topbar-brand span,
  .admin-topbar-brand img { max-width: 120px; }
  .admin-topbar-user span:first-child {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Sidebar: fonte menor, itens mais compactos */
  .sidebar-link { padding: 0.45rem 0.6rem; font-size: 0.75rem; }

  /* Stats: 1 coluna em tela muito pequena */
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }

  /* Conteúdo */
  .admin-content { padding: 0.875rem; }
  .admin-card { padding: 1rem; }

  /* Page header */
  .admin-page-header h1 { font-size: 1.2rem; }

  /* Botões de ação: largura total */
  .admin-page-header .btn,
  .admin-card-header .btn {
    width: 100%;
    justify-content: center;
  }

  /* Tabela: fonte menor */
  .data-table { font-size: 0.75rem; }
  .data-table th, .data-table td { padding: 0.55rem 0.5rem; }

  /* Login admin */
  .login-card { padding: 1.75rem 1rem; }
  .login-logo h2 { font-size: 1.25rem; }

  /* Media picker */
  .mp-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important; gap: 0.5rem !important; }
  .mp-item { height: 90px !important; }
}

/* ============================================================
   FIX ADMIN — Configurações, Dashboard, Mídia
   ============================================================ */

/* ── DASHBOARD: Botão "+ Nova" no card de Lojas & Restaurantes ── */
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
/* Garante que o botão não suma em telas pequenas */
.admin-card-header .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── MÍDIA: Forçar 2 colunas no mobile ── */
@media (max-width: 768px) {
  /* Grid de mídia inline minmax(180px) → 2 colunas fixas */
  [style*="minmax(180px,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  /* Card de imagem: altura da thumbnail menor */
  [style*="minmax(180px,1fr)"] a[style*="height:140px"] {
    height: 110px !important;
  }
}

@media (max-width: 480px) {
  [style*="minmax(180px,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
}

/* ── CONFIGURAÇÕES: Grids responsivos ── */
@media (max-width: 900px) {
  /* Logos: 2 → 1 coluna */
  [style*="grid-template-columns:1fr 1fr;gap:1.5rem"] {
    grid-template-columns: 1fr !important;
  }
  /* Imagens da home: 3 → 2 colunas */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Configurações gerais: 2 colunas → 1 */
  /* (já coberto pelo breakpoint 768px anterior) */
}

@media (max-width: 640px) {
  /* Imagens da home: 2 → 1 coluna */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Logos: já em 1 coluna */

  /* Filtros de mídia: empilha busca abaixo dos filtros */
  [style*="display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-bottom:1.5rem"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  [style*="display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-bottom:1.5rem"] form {
    margin-left: 0 !important;
    width: 100%;
  }
  [style*="display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-bottom:1.5rem"] form input[type="text"] {
    width: 100% !important;
    flex: 1;
  }

  /* Botões de filtro de pasta: wrap natural */
  [style*="display:flex;gap:.4rem;flex-wrap:wrap"] {
    gap: 0.35rem !important;
  }

  /* Configurações cores: inputs lado a lado */
  .admin-card .form-row { grid-template-columns: 1fr 1fr; }

  /* Acesso rápido do dashboard: 3 colunas em vez de auto-fit */
  [style*="minmax(140px,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.65rem !important;
  }
  [style*="minmax(140px,1fr)"] a {
    padding: 0.85rem 0.5rem !important;
    gap: 0.35rem !important;
  }
  [style*="minmax(140px,1fr)"] a span:first-child {
    font-size: 1.4rem !important;
  }
  [style*="minmax(140px,1fr)"] a strong {
    font-size: 0.78rem !important;
  }
  [style*="minmax(140px,1fr)"] a span:last-child {
    display: none; /* Oculta descrição em telas pequenas */
  }
}

@media (max-width: 480px) {
  /* Acesso rápido: 2 colunas em mobile pequeno */
  [style*="minmax(140px,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="minmax(140px,1fr)"] a span:last-child { display: none; }
}

/* ============================================================
   FIX ADMIN — Usuários
   ============================================================ */

/* ── Tablet: reduz a assimetria do grid ── */
@media (max-width: 1024px) {
  [style*="grid-template-columns:1.5fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }
}

/* ── Mobile: empilha tabela acima do formulário ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:1.5fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Tabela: scroll horizontal interno */
  [style*="grid-template-columns:1.5fr 1fr"] .admin-card:first-child {
    overflow-x: auto;
  }
  [style*="grid-template-columns:1.5fr 1fr"] .data-table {
    min-width: 460px;
  }

  /* Header da tabela: botão e título não colam */
  [style*="padding:1rem 1.5rem;border-bottom"] {
    padding: 0.875rem 1rem !important;
    gap: 0.5rem;
  }

  /* Formulário: título mais claro */
  [style*="grid-template-columns:1.5fr 1fr"] .admin-card:last-child {
    border-top: 3px solid var(--primary);
  }

  /* Botões do form: largura total */
  [style*="grid-template-columns:1.5fr 1fr"] [style*="display:flex;gap:.75rem"] {
    flex-direction: column !important;
  }
  [style*="grid-template-columns:1.5fr 1fr"] [style*="display:flex;gap:.75rem"] .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ============================================================
   SOBRE — Grids responsivos
   ============================================================ */
@media (max-width: 900px) {
  .sobre-proposta-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .sobre-cta-grid      { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .sobre-cards-grid    { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
}
@media (max-width: 600px) {
  .sobre-cards-grid { grid-template-columns: 1fr !important; }
}
