:root {
  --bg-color: #fef8f0;
  --text-color: #333;
  --heading-color: #4d3a2e;
  --accent-color: #8B4513;
  --accent-secondary: #bfa980;
  --card-bg: #fffdf5;
  --card-border: #d6c7a1;
  --sidebar-bg: rgba(254, 248, 240, 0.8);
  --footer-bg: #f4f0e6;
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --heading-color: #d6c7a1;
  --accent-color: #bfa980;
  --accent-secondary: #8B4513;
  --card-bg: #1e1e1e;
  --card-border: #333;
  --sidebar-bg: rgba(18, 18, 18, 0.8);
  --footer-bg: #1a1a1a;
  --glass-bg: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
}

/* Temas Litúrgicos */
html[data-liturgy="green"] {
  --accent-color: #2e7d32;
  --accent-secondary: #81c784;
}

html[data-liturgy="purple"] {
  --accent-color: #6a1b9a;
  --accent-secondary: #ba68c8;
}

html[data-liturgy="red"] {
  --accent-color: #c62828;
  --accent-secondary: #e57373;
}

html[data-liturgy="white"] {
  --accent-color: #bfa980;
  --accent-secondary: #d6c7a1;
}

/* Manter dourado pro branco */

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color var(--transition), color var(--transition);
}

/* ======================= */
/* Cabeçalho               */
/* ======================= */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, var(--card-bg), var(--bg-color));
  border-bottom: 1px solid var(--accent-secondary);
}

.header-controls {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 12px;
}

#theme-toggle,
#favorites-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#theme-toggle:hover,
#favorites-btn:hover {
  transform: scale(1.1);
  background: var(--accent-secondary);
}

header img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--accent-secondary);
  transition: transform var(--transition);
}

header img:hover {
  transform: rotate(5deg) scale(1.05);
}

h1 {
  font-size: 3.5rem;
  font-family: 'Merriweather', 'Georgia', serif;
  color: var(--heading-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: none;
  padding-bottom: 0;
}

h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.dedication {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #DAA520;
  /* Gold */
  margin: 5px 0 10px 0;
  text-align: center;
  font-weight: 300;
  line-height: 1.4;
}

/* ======================= */
/* Barra de Pesquisa       */
/* ======================= */
.search-bar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1rem 0 2rem 0;
}

#searchBar {
  width: 80%;
  max-width: 500px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 2px solid #bfa980;
  border-radius: 25px;
  background-color: #fef8f0;
  font-family: "Georgia", serif;
  color: #4d3a2e;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchBar::placeholder {
  color: #a68b63;
  font-style: italic;
}

#searchBar:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 5px rgba(139, 69, 19, 0.4);
}

/* ======================= */
/* Estilo para leitura     */
/* ======================= */
body.content-page {
  background-color: #fdfaf6;
  color: #333;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 2rem;
  margin: 0;
}

.content-page section {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.content-page p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.content-page h2,
.content-page h3,
.content-page h4 {
  color: #4d3a2e;
  font-family: 'Merriweather', serif;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.content-page h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #d6c7a1;
  padding-bottom: 0.3rem;
}

.content-page h3 {
  font-size: 1.4rem;
}

.content-page h4 {
  font-size: 1.2rem;
  font-style: italic;
}

.content-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.content-page a {
  color: #7c4a14;
  text-decoration: none;
  font-weight: bold;
}

.content-page a:hover {
  text-decoration: underline;
  color: #a0522d;
}

.content-page hr {
  border: none;
  border-top: 1px solid #d4cfc2;
  margin: 2rem 0;
}

/* ======================= */
/* Cards e container       */
/* ======================= */
.card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.card {
  background: #fffdf5;
  border: 1px solid #d6c7a1;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
  width: 280px;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 260px;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-bottom: 1px solid #c2b280;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.card h2,
.card h3 {
  color: #4d3a2e;
  margin: 0.3rem 0 0 0;
  font-weight: 600;
}

.card h2 {
  font-size: 1.3rem;
}

/* ======================= */
/* Filtros dropdown        */
/* ======================= */
.filtro-dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

#toggle-filtros {
  cursor: pointer;
  padding: 8px 16px;
  font-size: 1rem;
  border: 2px solid #8B4513;
  border-radius: 25px;
  background: #fef8f0;
  color: #5b3a1a;
  transition: background 0.3s ease, color 0.3s ease;
}

#toggle-filtros:hover {
  background: #5b3a1a;
  color: #fef8f0;
}

.filtros-lista {
  max-height: 500px;
  overflow: visible;
  margin-top: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.filtros-lista label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #4b3a1a;
}

.filtros-lista input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #8B4513;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.filtros-lista input[type="checkbox"]:checked {
  background-color: #8B4513;
  border-color: #5b3a1a;
}

.filtros-lista input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fef8f0;
}

/* ======================= */
/* Carrossel de cards      */
/* ======================= */
.card-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  min-height: 200px;
  /* Previne colapso durante load */
}

.card-container::-webkit-scrollbar {
  display: none;
}

.card-container .card {
  flex-shrink: 0;
  min-width: 260px;
}

/* Botões do carrossel */
.carousel-wrapper {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #8B4513dd;
  border: none;
  color: #fef8f0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  user-select: none;
  z-index: 10;
  transition: background-color 0.3s ease;
}

/* Aqui levy */
.card img.special-img {
  width: 260px;
  height: 250px;
  /* altura fixa */
  object-fit: cover;
  /* cobre todo o espaço, cortando o excesso */
  object-position: center bottom;
  /* mostra a parte inferior da imagem */
}

.carousel-btn:hover {
  background-color: #5b3a1a;
}

.carousel-btn.left {
  left: 5px;
}

.carousel-btn.right {
  right: 5px;
}

/* ======================= */
/* Barra de busca + filtros */
/* ======================= */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 500px;
  width: 100%;
  justify-content: flex-end;
}

.search-filter-bar input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 2px solid #bfa980;
  border-radius: 25px;
  background-color: #fef8f0;
  font-family: "Georgia", serif;
  color: #4d3a2e;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-filter-bar input[type="text"]::placeholder {
  color: #a68b63;
  font-style: italic;
}

.search-filter-bar input[type="text"]:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 5px rgba(139, 69, 19, 0.4);
}

.search-filter-bar #toggle-filtros {
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border: 2px solid #8B4513;
  border-radius: 25px;
  background: #fef8f0;
  color: #5b3a1a;
  font-family: "Georgia", serif;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.search-filter-bar #toggle-filtros:hover {
  background: #5b3a1a;
  color: #fef8f0;
}

/* ======================= */
/* Rodapé                  */
/* ======================= */
/* ======================= */
/* Barra de Progresso      */
/* ======================= */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-color);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent-color);
}

/* ======================= */
/* Citações e Destaques    */
/* ======================= */
#daily-highlight {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--accent-secondary);
  box-shadow: var(--shadow);
  text-align: center;
}

#quote-container {
  margin-bottom: 2rem;
  font-style: italic;
}

#daily-quote {
  font-size: 1.4rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

#quote-author {
  font-weight: bold;
  color: var(--accent-color);
}

/* Animações de Scroll (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-interação: Tilt sutil nos cards */
.card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#santo-do-dia-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#santo-do-dia-card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  letter-spacing: 2px;
}

/* ======================= */
/* Liturgia Diária UI      */
/* ======================= */
#liturgia-diaria {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--accent-secondary);
}

#toggle-liturgia {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: var(--transition);
  display: inline-block;
  margin: 0 5px;
}

#toggle-liturgia:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#liturgia-content {
  text-align: left;
  margin-top: 2rem;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 5px solid var(--accent-color);
}

.liturgia-item {
  margin-bottom: 2rem;
}

.liturgia-item h4 {
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.liturgia-text {
  line-height: 1.8;
  font-size: 1.1rem;
}

#toggle-filtros {
  background: var(--accent-secondary);
  color: var(--card-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

#toggle-filtros:hover {
  background: #5b3a1a;
  color: #fef8f0;
}

.filtros-lista {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 8px;
}

.filtros-lista.show {
  max-height: 200px;
}

.filtros-lista label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-color);
}

footer {
  background-color: #f4f0e6;
  color: #5a4d3e;
  text-align: center;
  padding: 30px 10px;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  border-top: 1px solid #d4cfc2;
  margin-top: 40px;
}

.footer-dedication {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* ======================= */
/* MEDIA QUERIES MOBILE    */
/* ======================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  .search-filter-bar {
    display: flex;
    /* Force display */
    flex-direction: column;
    width: 100%;
    margin: 1rem 0;
  }

  #searchBar,
  .search-filter-bar input[type="text"],
  .search-filter-bar #toggle-filtros {
    width: 100%;
    max-width: 100%;
  }

  .card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow: visible;
  }

  .card {
    width: 100%;
    max-width: 100%;
  }

  .card img {
    width: 100%;
    height: auto;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  #searchBar,
  .search-filter-bar input[type="text"],
  .search-filter-bar #toggle-filtros {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .card h2 {
    font-size: 1.1rem;
  }
}

/* ======================= */
/* Redesign Content Pages  */
/* ======================= */
.hero-header {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center 20%;
  background: linear-gradient(135deg, var(--accent-color), var(--heading-color));
  /* Ajuste para focar mais rostos/parte superior */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Escurece a imagem */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-family: 'Merriweather', serif;
  border-bottom: none;
}

.hero-content h1::after {
  display: none;
  /* Remove a linha padrão do h1 global */
}

.hero-subtitle {
  font-size: 1.5rem;
  font-style: italic;
  font-family: 'Merriweather', serif;
  opacity: 0.9;
}

.btn-voltar-hero {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.4);
}



.btn-voltar-hero:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-5px);
}

.content-container {
  max-width: 1000px;
  margin: -60px auto 4rem auto;
  /* Sobe por cima do hero */
  position: relative;
  z-index: 3;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--card-border);
}

.content-card h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-top: 0;
  border-bottom: 1px solid var(--accent-secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.content-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
  margin-bottom: 1rem;
}

.content-card ul {
  padding-left: 20px;
  font-size: 1.1rem;
}

.content-card li {
  margin-bottom: 10px;
}

/* ======================= */
/* Mobile Drawer Menu      */
/* ======================= */

/* Drawer Toggle Button (Hamburger) */
.drawer-toggle {
  display: none;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--heading-color);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: var(--transition);
}

.drawer-toggle:hover {
  color: var(--accent-color);
}

.drawer-toggle .material-icons {
  font-size: 28px;
}

/* Drawer Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Drawer Menu */
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--card-bg);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer-menu.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: white;
  border-bottom: 1px solid var(--accent-secondary);
  gap: 1rem;
}

.drawer-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.drawer-header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1.5px solid white;
  object-fit: cover;
}

.drawer-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.3rem;
  font-family: 'Merriweather', serif;
  color: white;
  letter-spacing: 1px;
}

.drawer-dedication {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.4;
  font-family: 'Merriweather', serif;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
}

.drawer-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Drawer Links */
.drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.drawer-links li {
  border-bottom: 1px solid var(--card-border);
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.drawer-links a:hover {
  background: var(--accent-secondary);
  color: white;
}

/* Drawer Search and Filters Section */
.drawer-search-section {
  padding: 1rem 1.5rem;
  background: var(--bg-color);
}

.drawer-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  background: white;
  color: var(--text-color);
  transition: var(--transition);
}

.drawer-search:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.drawer-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.drawer-filter-toggle:hover {
  background: var(--accent-secondary);
}

.drawer-filter-toggle .material-icons {
  font-size: 20px;
}

.drawer-filtros {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.drawer-filtros.show {
  display: flex;
}

.drawer-filtros label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
  color: var(--text-color);
}

.drawer-filtros label:hover {
  background: var(--accent-secondary);
  color: white;
}

.drawer-filtros input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.drawer-divider {
  height: 1px;
  background: var(--card-border);
  margin: 0.5rem 0;
}

.drawer-links .material-icons {
  font-size: 24px;
  color: var(--accent-color);
}

.drawer-links a:hover .material-icons {
  color: white;
}

/* ======================= */
/* Mobile App Experience   */
/* ======================= */

/* Bottom Navigation */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card-bg);
  border-top: 1px solid var(--accent-secondary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
  height: 65px;
  backdrop-filter: blur(10px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.7rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex: 1;
}

.nav-item.active {
  opacity: 1;
  color: var(--accent-color);
}

.nav-item .material-icons {
  font-size: 24px;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
    /* Space for bottom nav */
  }

  /* Sticky App Header */
  header {
    padding: 0.5rem 1rem !important;
    position: sticky !important;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-direction: row !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 60px;
    margin-bottom: 0.5rem;
    background: var(--bg-color);
  }

  header h1 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    letter-spacing: 0.5px;
  }

  header h1::after {
    display: none;
  }

  header img {
    width: 35px !important;
    height: 35px !important;
    border-width: 1px;
    box-shadow: none;
    margin: 0 !important;
  }

  .dedication {
    display: none;
  }

  .header-controls {
    position: static !important;
    gap: 10px;
  }

  #theme-toggle,
  #favorites-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem;
    padding: 0;
    background: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  /* Layout Adaptations */
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100% !important;
    position: static !important;
    padding: 0 !important;
  }

  .search-filter-bar {
    padding: 0 1rem;
    margin: 0.5rem 0 1.5rem 0;
    flex-direction: column;
    align-items: stretch;
  }

  /* Vertical Card Lists for better Mobile Scanning */
  .category-section>.card-container:not(.carousel-wrapper .card-container) {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .category-section>.card-container:not(.carousel-wrapper .card-container) .card {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    text-align: left;
    min-height: 80px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .category-section>.card-container:not(.carousel-wrapper .card-container) .card img {
    width: 60px !important;
    height: 60px !important;
    margin: 0 12px 0 0 !important;
    border-right: none !important;
    border-radius: 8px;
    object-fit: cover;
  }

  .category-section>.card-container:not(.carousel-wrapper .card-container) .card h3 {
    font-size: 0.95rem;
    margin: 0;
  }

  .category-section>.card-container:not(.carousel-wrapper .card-container) .card p {
    font-size: 0.8rem;
    margin-top: 2px;
    opacity: 0.8;
  }

  /* Carousel Optimization */
  .carousel-wrapper .card {
    min-width: 260px;
    scroll-snap-align: center;
  }

  .bottom-nav {
    display: flex;
  }

  .drawer-toggle {
    display: flex !important;
  }

  /* Hide scrollbars */
  ::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }

  /* Touch target safety */
  .card:active {
    transform: scale(0.98);
    background-color: var(--accent-secondary);
  }
}