/* ══════════════════════════════════════════════
   DRAWERS MOBILE — filtros y sidebar de cuenta
   ══════════════════════════════════════════════ */

/* Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  opacity: 0;
  transition: opacity .3s;
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* Drawer base */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 501;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.drawer-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
}
.drawer-body { padding: 16px 20px; flex: 1; }

/* Botón filtros mobile */
.btn-filtros-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--orange-pale);
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Botón hamburguesa cuenta mobile */
.btn-menu-cuenta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  width: 100%;
}
.btn-menu-cuenta i { color: var(--orange); }

@media (max-width: 768px) {
  .btn-filtros-mobile { display: flex; }
  .btn-menu-cuenta { display: flex; }

  /* Drawer filtros — reutiliza estilos del sidebar */
  .drawer .filter-card {
    border: none;
    box-shadow: none;
    margin-bottom: 8px;
  }
  .drawer .filter-header {
    padding: 12px 0;
  }
  .drawer .filter-body {
    padding: 0 0 12px;
  }
  .drawer .btn-apply {
    margin-top: 8px;
  }

  /* Drawer cuenta */
  .drawer .account-user {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 8px;
  }
  .drawer .sidebar-nav li a {
    padding: 12px 0;
    font-size: 15px;
  }
  .drawer .sidebar-logout {
    padding: 12px 0;
    border-top: 1px solid var(--gray-100);
    margin-top: 8px;
  }
}