﻿/* ===== FONTE ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

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

:root {
  --bg:        #f0edf8;
  --surface:   #ffffff;
  --surface2:  #e9e4f7;
  --border:    #d4cee8;
  --green:     #22c55e;
  --green-dim: #16a34a;
  --green-bg:  rgba(22, 163, 74, 0.08);
  --text:      #1a1028;
  --text-sec:  #6b5f82;
  --radius:    10px;
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(160deg, #f0edf8 0%, #e9e4f7 40%, #ede8fa 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select { font-family: inherit; outline: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 237, 248, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo span {
  background: linear-gradient(135deg, #22c55e, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color .2s;
}

.nav-search input:focus { border-color: var(--green); }
.nav-search input::placeholder { color: var(--text-sec); }

.nav-search .search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sec);
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: color .2s, background .2s;
}

.nav-links a:hover { color: var(--text); background: var(--surface2); }

.nav-links .btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.nav-links .btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }

.nav-links .btn-green {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.nav-links .btn-green:hover { background: var(--green-dim); }

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .2s;
}
.hamburger-btn:hover { background: var(--surface2); }
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== MOBILE MENU DRAWER ===== */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mob-overlay.show { opacity: 1; pointer-events: all; }

.mob-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 280px;
  max-width: 85vw;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.10);
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.mob-drawer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}
.mob-drawer-logo span {
  background: linear-gradient(135deg, #22c55e, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mob-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  transition: background .2s, color .2s;
}
.mob-drawer-close:hover { background: var(--surface2); color: var(--text); }

.mob-drawer-links {
  list-style: none;
  padding: .75rem 0;
  flex: 1;
}
.mob-drawer-links li a {
  display: block;
  padding: .9rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background .2s;
}
.mob-drawer-links li a:hover { background: var(--surface2); }
.mob-btn-green {
  margin: .5rem 1rem 0 !important;
  background: var(--green) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: 8px !important;
  padding: .75rem 1rem !important;
}
.mob-btn-green:hover { background: var(--green-dim) !important; }

/* Drawer — estado logado */
.mob-user-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
  color: #fff;
}
.mob-user-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .88rem; color: #fff;
  flex-shrink: 0;
}
.mob-user-info { display: flex; flex-direction: column; gap: 2px; }
.mob-user-name { font-size: .88rem; font-weight: 700; color: #fff; }
.mob-user-role { font-size: .72rem; color: rgba(255,255,255,.6); }

.mob-section-divider {
  height: 1px;
  background: var(--border);
  margin: .3rem 1.2rem;
  list-style: none;
}

.mob-drawer-links li a {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.mob-drawer-links li a svg { flex-shrink: 0; color: var(--text-sec); }

.mob-logout-link { color: #dc2626 !important; }
.mob-logout-link svg { color: #dc2626 !important; }
.mob-logout-link:hover { background: #fef2f2 !important; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #052e16 0%, #064e3b 40%, #065f46 75%, #14532d 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(168,85,247,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(22,163,74,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(135deg, #c084fc, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}

.hero-search:focus-within { border-color: var(--green); }

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.2rem;
  color: #fff;
  font-size: 1rem;
}

.hero-search input::placeholder { color: rgba(255,255,255,0.4); }

.hero-search button {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  font-weight: 700;
  padding: 0 1.6rem;
  font-size: 0.95rem;
  transition: opacity .2s;
}

.hero-search button:hover { opacity: .85; }

/* ===== SECTION ===== */
.section { padding: 3rem 2rem; max-width: 1280px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.section-title span { color: var(--green); }

.see-all {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--green);
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.see-all:hover { background: var(--green); color: #fff; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.category-card:hover {
  border-color: var(--green);
  background: var(--green-bg);
  transform: translateY(-2px);
}

.category-icon {
  width: 32px;
  height: 32px;
  color: rgba(26,23,20,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg { width: 100%; height: 100%; }

.category-card:hover .category-icon { color: rgba(22,163,74,0.7); }

.category-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sec);
}

.category-card:hover .category-name { color: var(--green); }

/* ===== EVENT CARDS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.event-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(22,163,74,0.18);
}

.event-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--surface2);
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.event-card:hover .event-img {
  transform: scale(1.05);
}

.event-body { padding: 1rem; }

.event-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  font-size: 0.82rem;
  color: var(--text-sec);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.event-meta span { display: flex; align-items: center; gap: 0.35rem; }

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.event-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}

.event-price.free { color: var(--green); }

.btn-comprar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: opacity .2s, box-shadow .2s;
  position: relative;
  z-index: 2;
}

.btn-comprar:hover { opacity: .88; box-shadow: 0 4px 14px rgba(22,163,74,.4); color: #fff; }

/* ===== BANNER ===== */
.banner {
  margin: 0 2rem 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #052e16 0%, #065f46 60%, #14532d 100%);
  border: 1px solid rgba(22,163,74,0.35);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; color: #fff; }
.banner h2 span { color: var(--green); }
.banner p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.banner .btn-green-solid {
  background: linear-gradient(135deg, #34d399, #22c55e);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(22,163,74,.4);
}

.banner .btn-green-solid:hover { opacity: .88; box-shadow: 0 6px 24px rgba(22,163,74,.6); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(22,163,74,.18);
  padding: 3rem 2rem;
  margin-top: 2rem;
  background: linear-gradient(160deg, #1a0a3c 0%, #052e16 100%);
  color: rgba(255,255,255,.8);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 0.6rem; color: #fff; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 0.88rem; line-height: 1.6; }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,.45); }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-col ul a:hover { color: #c084fc; }

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(22,163,74,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}

/* ===== RESPONSIVE ===== */

html, body { overflow-x: hidden; max-width: 100%; }

/* Spacer para páginas sem hamburger (evento.html) — invisível no desktop */
.nav-ham-spacer { display: none; }

@media (max-width: 768px) {
  /* ---- Navbar mobile: hamburger | logo centralizado | espaço ---- */
  .navbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    padding: 0 0.75rem;
    gap: 0;
  }
  .hamburger-btn { display: flex; }
  /* Spacer ocupa col 1 quando não há hamburger, empurrando logo para col 2 */
  .nav-ham-spacer { display: block; }
  .nav-logo { text-align: center; font-size: 1.05rem; }
  .nav-search { display: none; }
  .nav-links { display: none; }
  /* Carrinho: oculto por padrão no mobile (FAB cobre). Em evento.html fica em col 3 */
  .cart-nav-btn { display: none; }

  /* Ativa overlay do drawer mobile */
  .mob-overlay { display: block; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }

  .hero { padding: 2.5rem 1rem; min-height: 320px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero p { font-size: 0.95rem; }

  .section { padding: 2rem 1rem; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; }
  .category-card { padding: 1rem 0.5rem; }

  .banner { margin: 0 1rem 2rem; padding: 1.5rem; flex-direction: column; }

  footer { padding: 2rem 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }

  .nav-logo { font-size: 0.95rem; }
  .nav-links { gap: .2rem; }
  .nav-links a { padding: 0.35rem 0.5rem; font-size: 0.78rem; }

  /* Hero search empilhado no mobile */
  .hero-search { flex-direction: column; border-radius: 10px; }
  .hero-search input { font-size: 0.9rem; padding: 0.9rem 1rem; width: 100%; }
  .hero-search button {
    width: 100%;
    padding: .9rem 1rem;
    font-size: 0.9rem;
    border-radius: 0;
  }

  /* Section header wrapping */
  .section-header { flex-wrap: wrap; gap: .5rem; }
  .section-title { font-size: 1.1rem; }

  /* Banner centrado e empilhado */
  .banner { padding: 1.2rem; text-align: center; gap: 1rem; }
  .banner h2 { font-size: 1.2rem; }
  .banner .btn-green-solid { width: 100%; text-align: center; padding: .75rem 1rem; }

  /* Category cards menores */
  .category-card { padding: .9rem .4rem; }
  .category-name { font-size: .76rem; }
  .category-icon { width: 26px; height: 26px; }

  /* Event card body mais compacto */
  .event-body { padding: .85rem; }
  .event-title { font-size: .93rem; }

  /* Evita zoom do iOS nos inputs */
  input, select, textarea { font-size: 16px !important; }
}

/* ===================================================
   SIDEBAR DA PÁGINA PRINCIPAL
   =================================================== */

.main-sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 64px;
  background: linear-gradient(180deg, #052e16 0%, #064e3b 100%);
  color: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: width .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  box-shadow: 4px 0 32px rgba(0,0,0,.22);
}

.main-sidebar.ms-expanded { width: 250px; }

/* ---------- BANNER LARANJA ---------- */

.ms-banner {
  position: relative;
  height: 136px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #14532d 0%, #22c55e 45%, #34d399 100%);
  overflow: hidden;
}

/* Círculos decorativos */
.ms-banner::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  top: -80px; right: -50px;
}
.ms-banner::after {
  content: '';
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  bottom: -40px; left: -20px;
}

/* Textura de pontos */
.ms-banner-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .5;
}

.ms-banner-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 14px;
  gap: 3px;
  z-index: 1;
}

.ms-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2.5px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .88rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.ms-name {
  font-size: .76rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 190px;
  transition: opacity .2s;
}

.ms-role {
  font-size: .68rem; color: rgba(255,255,255,.6);
  transition: opacity .2s;
}

.main-sidebar:not(.ms-expanded) .ms-name,
.main-sidebar:not(.ms-expanded) .ms-role { opacity: 0; pointer-events: none; }

/* ---------- NAV LINKS ---------- */

.ms-nav {
  flex: 1;
  padding: 1rem .5rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .08rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ms-nav::-webkit-scrollbar { display: none; }

.ms-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s;
  min-height: 40px;
}
.ms-link:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.ms-link.ms-active { background: rgba(22,163,74,.22); color: #c084fc; font-weight: 600; }
.ms-link svg { flex-shrink: 0; }

.ms-label {
  overflow: hidden;
  max-width: 170px;
  transition: opacity .2s, max-width .25s;
}
.main-sidebar:not(.ms-expanded) .ms-label { opacity: 0; max-width: 0; }
.main-sidebar:not(.ms-expanded) .ms-link { justify-content: center; gap: 0; }

.ms-div {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: .35rem .3rem;
}

/* Tooltip no modo colapsado */
.main-sidebar:not(.ms-expanded) .ms-link { position: relative; }
.main-sidebar:not(.ms-expanded) .ms-link:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%; transform: translateY(-50%);
  background: #333;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 400;
}


/* ---------- OFFSET DO CONTEÚDO QUANDO SIDEBAR EXISTE ---------- */

body.has-sidebar {
  padding-left: 64px;
  transition: padding-left .28s cubic-bezier(.4,0,.2,1);
}

/* ---------- MOBILE/TABLET: sidebar escondida, sem offset ---------- */

@media (max-width: 1024px) {
  .main-sidebar { display: none !important; }
  body.has-sidebar { padding-left: 0 !important; }
}

/* ===================================================
   SEARCH SLIM (substitui hero)
   =================================================== */

.slim-search {
  padding: 1.1rem 1rem 0.6rem;
}

.slim-search-inner {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0 0.5rem 0 1.1rem;
  box-shadow: 0 2px 16px rgba(22,163,74,.1);
  transition: border-color .2s, box-shadow .2s;
}

.slim-search-inner:focus-within {
  border-color: var(--green);
  box-shadow: 0 2px 20px rgba(22,163,74,.2);
}

.slim-search-inner svg { color: var(--text-sec); flex-shrink: 0; }

.slim-search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}

.slim-search-inner input::placeholder { color: var(--text-sec); }

.slim-search-inner button {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
  flex-shrink: 0;
}

.slim-search-inner button:hover { opacity: .85; }

/* ===================================================
   CARROSSEL EM DESTAQUE
   =================================================== */

.ev-carousel-section {
  padding: 1rem 0 1.5rem;
  overflow: hidden;
}

.ev-carousel-header {
  padding: 0 1.25rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ev-carousel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.ev-carousel-title span {
  background: linear-gradient(135deg, #22c55e, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Track ---- */
.ev-carousel-wrap {
  overflow: hidden;
  cursor: grab;
  /* padding vertical p/ os slides escalados não cortarem */
  padding: 16px 0 8px;
}

.ev-carousel-wrap:active { cursor: grabbing; }

.ev-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  user-select: none;
  align-items: center;
}

/* ---- Slides ---- */
.ev-cs-slide {
  /* vw é mais confiável que % dentro de flex */
  width: 70vw;
  min-width: 70vw;
  max-width: 70vw;
  height: 168px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface2);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  position: relative;
  cursor: pointer;
  /* inativo: menor e desbotado */
  transform: scale(0.84);
  opacity: 0.55;
  transition: transform .38s cubic-bezier(.4,0,.2,1),
              opacity  .38s cubic-bezier(.4,0,.2,1),
              box-shadow .3s;
}

.ev-cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* card ativo: tamanho real, na frente */
.ev-cs-slide.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(22,163,74,.32);
}

/* Gradiente escuro na base */
.ev-cs-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 28%, rgba(2,26,12,.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Conteúdo sobreposto no card */
.ev-cs-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.55rem 0.85rem 0.7rem;
  z-index: 2;
  pointer-events: none;
}

.ev-cs-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.ev-cs-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

.ev-cs-info {
  font-size: 0.7rem;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.ev-cs-info span { display: flex; align-items: center; gap: 0.22rem; }

/* ---- Painel abaixo (preço + botão) ---- */
.ev-carousel-info {
  padding: 0.8rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
}

.ev-ci-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.ev-ci-price small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-sec);
  display: block;
  margin-bottom: 0.05rem;
}

.ev-ci-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
  flex-shrink: 0;
}

.ev-ci-btn:hover { opacity: .85; }

/* ---- Dots ---- */
.ev-carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0.7rem 0 0;
}

.ev-cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}

.ev-cs-dot.active {
  background: var(--green);
  width: 20px;
}

/* ---- Tablet ---- */
@media (min-width: 640px) {
  .ev-cs-slide { width: 54vw; min-width: 54vw; max-width: 54vw; height: 194px; }
  .ev-carousel-info { padding: 0.8rem 2rem 0; }
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  .ev-cs-slide { width: 400px; min-width: 400px; max-width: 400px; height: 214px; }
  .ev-carousel-header { padding: 0 2rem; }
  .ev-carousel-info  { padding: 0.8rem 2rem 0; }
}
